skill-creator by mrgoonie/claudekit-skills
npx skills add https://github.com/mrgoonie/claudekit-skills --skill skill-creator本技能提供创建高效技能的指导。
技能是模块化、自包含的包,通过提供专业知识、工作流程和工具来扩展 Claude 的能力。可以将它们视为针对特定领域或任务的“入职指南”——它们将 Claude 从一个通用代理转变为配备有程序性知识的专业代理,而这些知识是任何模型都无法完全掌握的。
重要提示:
每个技能都包含一个必需的 SKILL.md 文件和可选的捆绑资源:
.claude/skills/
└── skill-name/
├── SKILL.md (必需)
│ ├── YAML 前置元数据 (必需)
│ │ ├── name: (必需)
│ │ ├── description: (必需)
│ │ ├── license: (可选)
│ │ └── version: (可选)
│ └── Markdown 指令 (必需)
└── 捆绑资源 (可选)
├── scripts/ - 可执行代码 (Python/Bash 等)
├── references/ - 根据需要加载到上下文中的文档
└── assets/ - 输出中使用的文件 (模板、图标、字体等)
cloudflare、、、、 应合并到 中广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
cloudflare-r2cloudflare-workersdockergclouddevopsSKILL.md 应少于 150 行,并包含相关 Markdown 文件和脚本的引用。SKILL.md 文件元数据中的描述应既简洁(少于 200 个字符),又包含足够的引用和脚本的用例,这将有助于技能在 Claude Code 的实现过程中自动激活。requirements.txt.env 文件的优先级顺序:process.env > $HOME/.claude/skills/${SKILL}/.env (全局) > $HOME/.claude/skills/.env (全局) > $HOME/.claude/.env (全局) > ./.claude/skills/${SKILL}/.env (当前工作目录) > ./.claude/skills/.env (当前工作目录) > ./.claude/.env (当前工作目录).env.example 文件以显示所需的环境变量。重要提示:
SKILL.md 和引用文件应具有高效的令牌消耗,以便最好地利用渐进式披露。SKILL.md 应少于 150 行为什么? 更好的上下文工程:利用 Agent Skills 的渐进式披露技术,当代理技能被激活时,Claude Code 将考虑仅将相关文件加载到上下文中,而不是像以前那样读取所有冗长的 SKILL.md。
文件名: SKILL.md (大写) 文件大小: 少于 150 行,如果需要更多,请将其拆分为 references 文件夹中的多个文件(每个文件 <150 行)。SKILL.md 应始终简短、简洁、直截了当,将其视为快速参考指南。
元数据质量: YAML 前置元数据中的 name 和 description (必须少于 200 个字符) 决定了 Claude 何时使用该技能。具体说明技能的作用以及何时使用它,不要听起来笼统、模糊或说教。使用第三人称(例如,“此技能应在...时使用”,而不是“当...时使用此技能”)。
scripts/)用于需要确定性可靠性或重复编写的任务的可执行代码(Python/Bash 等)。
scripts/rotate_pdf.py重要提示:
.env 文件的优先级顺序:process.env > $HOME/.claude/skills/${SKILL}/.env (全局) > $HOME/.claude/skills/.env (全局) > $HOME/.claude/.env (全局) > ./.claude/skills/${SKILL}/.env (当前工作目录) > ./.claude/skills/.env (当前工作目录) > ./.claude/.env (当前工作目录)references/)旨在根据需要加载到上下文中的文档和参考资料,以告知 Claude 的流程和思考。
references/finance.md,用于公司 NDA 模板的 references/mnda.md,用于公司政策的 references/policies.md,用于 API 规范的 references/api_docs.mdreferences 文件夹中的多个文件(每个文件 <150 行),在 SKILL.md 中包含 grep 搜索模式SKILL.md 或 references 文件中,而不是两者都有。对于详细信息,优先使用 references 文件,除非它确实是技能的核心——这可以保持 SKILL.md 的精简,同时使信息可被发现而不占用上下文窗口。在 SKILL.md 中仅保留基本的程序指令和工作流程指导;将详细的参考资料、模式和示例移至 references 文件。重要提示:
assets/)不打算加载到上下文中的文件,而是在 Claude 产生的输出中使用。
assets/logo.png,用于 PowerPoint 模板的 assets/slides.pptx,用于 HTML/React 样板代码的 assets/frontend-template/,用于字体的 assets/font.ttf技能使用三级加载系统来高效管理上下文:
*无限制是因为脚本可以在不读入上下文窗口的情况下执行。
要创建技能,请按顺序遵循“技能创建流程”,只有在有明确理由不适用时才跳过步骤。
仅当技能的使用模式已经明确理解时才跳过此步骤。即使在使用现有技能时,它仍然有价值。
要创建有效的技能,请清楚地了解技能将如何使用的具体示例。这种理解可以来自直接的用户示例,也可以来自经过用户反馈验证的生成示例。
使用 AskUserQuestion 工具收集用户反馈并验证理解。
例如,在构建图像编辑技能时,相关的问题包括:
为避免让用户不知所措,避免在单条消息中提出太多问题。从最重要的问题开始,并根据需要跟进以获得更好的效果。
当对技能应支持的功能有清晰的认识时,结束此步骤。
一个有效的技能是来自专业工作流程和案例研究的现实工作流程的子集,因此在互联网上研究以了解当前的最新技术和最佳实践非常重要。
如果需要,激活 /docs-seeker 技能来搜索文档。
如果您收到大量 URL 或文件,请使用多个 WebFetch 工具和 Explore 子代理并行探索它们,然后向主代理报告。
激活 /research 技能来研究:
npx、bunx 或 pipx 执行)及其使用模式写下研究中的报告,以便在下一步中使用。
要将具体示例转化为有效的技能,请通过以下方式分析每个示例:
npx、bunx 或 pipx)而不是编写自定义代码示例: 在构建 pdf-editor 技能来处理诸如“帮我旋转这个 PDF”之类的查询时,分析显示:
scripts/rotate_pdf.py 脚本将有助于存储在技能中示例: 在设计 frontend-webapp-builder 技能来处理诸如“为我构建一个待办事项应用”或“为我构建一个跟踪步数的仪表板”之类的查询时,分析显示:
assets/hello-world/ 模板将有助于存储在技能中示例: 在构建 big-query 技能来处理诸如“今天有多少用户登录?”之类的查询时,分析显示:
references/schema.md 文件将有助于存储在技能中要建立技能的内容,请分析每个具体示例,以创建要包含的可重用资源列表:脚本、参考资料和资产。
.env 文件的优先级顺序:process.env > $HOME/.claude/skills/${SKILL}/.env (全局) > $HOME/.claude/skills/.env (全局) > $HOME/.claude/.env (全局) > ./.claude/skills/${SKILL}/.env (当前工作目录) > ./.claude/skills/.env (当前工作目录) > ./.claude/.env (当前工作目录)此时,是时候实际创建技能了。
仅当正在开发的技能已经存在,并且需要迭代或打包时才跳过此步骤。在这种情况下,请继续下一步。
从头开始创建新技能时,始终运行 init_skill.py 脚本。该脚本方便地生成一个新的模板技能目录,自动包含技能所需的一切,使技能创建过程更加高效和可靠。
用法:
scripts/init_skill.py <skill-name> --path <output-directory>
该脚本:
scripts/、references/ 和 assets/初始化后,根据需要自定义或删除生成的 SKILL.md 和示例文件。
编辑(新生成或现有的)技能时,请记住,该技能是为另一个 Claude 实例使用而创建的。专注于包含对 Claude 有益且非显而易见的信息。考虑哪些程序性知识、领域特定细节或可重用资产将有助于另一个 Claude 实例更有效地执行这些任务。
要开始实施,请从上面确定的可重用资源开始:scripts/、references/ 和 assets/ 文件。请注意,此步骤可能需要用户输入。例如,在实施 brand-guidelines 技能时,用户可能需要提供品牌资产或模板以存储在 assets/ 中,或提供文档以存储在 references/ 中。
此外,删除技能不需要的任何示例文件和目录。初始化脚本在 scripts/、references/ 和 assets/ 中创建示例文件以演示结构,但大多数技能不需要所有这些文件。
写作风格: 使用命令式/不定式形式(动词优先的指令)编写整个技能,而不是第二人称。使用客观、指导性的语言(例如,“要完成 X,请执行 Y”,而不是“你应该做 X”或“如果你需要做 X”)。这为 AI 消费保持了一致性和清晰度。
要完成 SKILL.md,请回答以下问题:
一旦技能准备就绪,应将其打包成可分发的 zip 文件,与用户共享。打包过程首先自动验证技能,以确保其满足所有要求:
scripts/package_skill.py <path/to/skill-folder>
可选的输出目录指定:
scripts/package_skill.py <path/to/skill-folder> ./dist
打包脚本将:
验证 技能,自动检查:
打包 技能(如果验证通过),创建一个以技能命名的 zip 文件(例如,my-skill.zip),其中包含所有文件并保持适当的分发目录结构。
如果验证失败,脚本将报告错误并退出,不创建包。修复任何验证错误并再次运行打包命令。
测试技能后,用户可能会请求改进。这通常发生在使用技能后不久,对技能的表现有新鲜的了解。
迭代工作流程:
用于评估技能的详细验证标准:
references/validation-checklist.mdreferences/metadata-quality-criteria.mdreferences/token-efficiency-criteria.mdreferences/script-quality-criteria.mdreferences/structure-organization-criteria.md有关通过市场分发技能作为插件的信息,请参阅:
references/plugin-marketplace-overview.mdreferences/plugin-marketplace-schema.mdreferences/plugin-marketplace-sources.mdreferences/plugin-marketplace-hosting.mdreferences/plugin-marketplace-troubleshooting.md每周安装量
180
代码仓库
GitHub Stars
1.9K
首次出现
2026年1月22日
安全审计
安装于
opencode152
claude-code151
gemini-cli143
codex138
cursor124
github-copilot120
This skill provides guidance for creating effective skills.
Skills are modular, self-contained packages that extend Claude's capabilities by providing specialized knowledge, workflows, and tools. Think of them as "onboarding guides" for specific domains or tasks—they transform Claude from a general-purpose agent into a specialized agent equipped with procedural knowledge that no model can fully possess.
IMPORTANT:
Every skill consists of a required SKILL.md file and optional bundled resources:
.claude/skills/
└── skill-name/
├── SKILL.md (required)
│ ├── YAML frontmatter metadata (required)
│ │ ├── name: (required)
│ │ ├── description: (required)
│ │ ├── license: (optional)
│ │ └── version: (optional)
│ └── Markdown instructions (required)
└── Bundled Resources (optional)
├── scripts/ - Executable code (Python/Bash/etc.)
├── references/ - Documentation intended to be loaded into context as needed
└── assets/ - Files used in output (templates, icons, fonts, etc.)
cloudflare, cloudflare-r2, cloudflare-workers, docker, gcloud should be combined into devopsSKILL.md should be less than 150 lines and include the references of related markdown files and scripts.SKILL.md files should be both concise (less than 200 characters) and still contains enough usecases of the references and scripts, this will help skills can be activated automatically during the implementation process of Claude Code.IMPORTANT:
SKILL.md and reference files should be token consumption efficient, so that progressive disclosure can be leveraged at best.SKILL.md should be less than 150 linesWhy? Better context engineering : leverage progressive disclosure technique of Agent Skills, when agent skills are activated, Claude Code will consider to load only relevant files into the context, instead of reading all long SKILL.md as before.
File name: SKILL.md (uppercase) File size: Under 150 lines, if you need more, split it to multiple files (<150 lines each) in references folder. SKILL.md is always short and concise, straight to the point, treat it as a quick reference guide.
Metadata Quality: The name and description (MUST be under 200 characters) in YAML frontmatter determine when Claude will use the skill. Be specific about what the skill does and when to use it, DO NOT sound generic, vague or educational. Use the third-person (e.g. "This skill should be used when..." instead of "Use this skill when...").
scripts/)Executable code (Python/Bash/etc.) for tasks that require deterministic reliability or are repeatedly rewritten.
scripts/rotate_pdf.py for PDF rotation tasksIMPORTANT:
.env file follow this order: process.env > $HOME/.claude/skills/${SKILL}/.env (global) > $HOME/.claude/skills/.env (global) > $HOME/.claude/.env (global) > ./.claude/skills/${SKILL}/.env (cwd) > ./.claude/skills/.env (cwd) > ./.claude/.env (cwd)references/)Documentation and reference material intended to be loaded as needed into context to inform Claude's process and thinking.
references/finance.md for financial schemas, references/mnda.md for company NDA template, references/policies.md for company policies, references/api_docs.md for API specificationsreferences folder, include grep search patterns in SKILL.mdSKILL.md or files, not both. Prefer files for detailed information unless it's truly core to the skill—this keeps lean while making information discoverable without hogging the context window. Keep only essential procedural instructions and workflow guidance in ; move detailed reference material, schemas, and examples to files.IMPORTANT:
assets/)Files not intended to be loaded into context, but rather used within the output Claude produces.
assets/logo.png for brand assets, assets/slides.pptx for PowerPoint templates, assets/frontend-template/ for HTML/React boilerplate, assets/font.ttf for typographySkills use a three-level loading system to manage context efficiently:
*Unlimited because scripts can be executed without reading into context window.
To create a skill, follow the "Skill Creation Process" in order, skipping steps only if there is a clear reason why they are not applicable.
Skip this step only when the skill's usage patterns are already clearly understood. It remains valuable even when working with an existing skill.
To create an effective skill, clearly understand concrete examples of how the skill will be used. This understanding can come from either direct user examples or generated examples that are validated with user feedback.
Use AskUserQuestion tool to gather user feedback and validate understanding.
For example, when building an image-editor skill, relevant questions include:
To avoid overwhelming users, avoid asking too many questions in a single message. Start with the most important questions and follow up as needed for better effectiveness.
Conclude this step when there is a clear sense of the functionality the skill should support.
An effective skill is a subset of real-life workflows from professional workflows and case studies, so it's important to research on the internet to understand the current state of the art and best practices.
Activate /docs-seeker skill to search for documentation if needed.
If you receive a lot of URLs or files, use multiple WebFetch tools and Explore subagents to explore them in parallel, then report back to main agent.
Activate /research skill to research for:
npx, bunx or pipx) and their usage patternsWrite down the reports from the research to be used in the next step.
To turn concrete examples into an effective skill, analyze each example by:
npx, bunx or pipx) over writing custom codeExample: When building a pdf-editor skill to handle queries like "Help me rotate this PDF," the analysis shows:
scripts/rotate_pdf.py script would be helpful to store in the skillExample: When designing a frontend-webapp-builder skill for queries like "Build me a todo app" or "Build me a dashboard to track my steps," the analysis shows:
assets/hello-world/ template containing the boilerplate HTML/React project files would be helpful to store in the skillExample: When building a big-query skill to handle queries like "How many users have logged in today?" the analysis shows:
references/schema.md file documenting the table schemas would be helpful to store in the skillTo establish the skill's contents, analyze each concrete example to create a list of the reusable resources to include: scripts, references, and assets.
.env file follow this order: process.env > $HOME/.claude/skills/${SKILL}/.env (global) > $HOME/.claude/skills/.env (global) > $HOME/.claude/.env (global) > ./.claude/skills/${SKILL}/.env (cwd) > ./.claude/skills/.env (cwd) > ./.claude/.env (cwd)At this point, it is time to actually create the skill.
Skip this step only if the skill being developed already exists, and iteration or packaging is needed. In this case, continue to the next step.
When creating a new skill from scratch, always run the init_skill.py script. The script conveniently generates a new template skill directory that automatically includes everything a skill requires, making the skill creation process much more efficient and reliable.
Usage:
scripts/init_skill.py <skill-name> --path <output-directory>
The script:
scripts/, references/, and assets/After initialization, customize or remove the generated SKILL.md and example files as needed.
When editing the (newly-generated or existing) skill, remember that the skill is being created for another instance of Claude to use. Focus on including information that would be beneficial and non-obvious to Claude. Consider what procedural knowledge, domain-specific details, or reusable assets would help another Claude instance execute these tasks more effectively.
To begin implementation, start with the reusable resources identified above: scripts/, references/, and assets/ files. Note that this step may require user input. For example, when implementing a brand-guidelines skill, the user may need to provide brand assets or templates to store in assets/, or documentation to store in references/.
Also, delete any example files and directories not needed for the skill. The initialization script creates example files in scripts/, references/, and assets/ to demonstrate structure, but most skills won't need all of them.
Writing Style: Write the entire skill using imperative/infinitive form (verb-first instructions), not second person. Use objective, instructional language (e.g., "To accomplish X, do Y" rather than "You should do X" or "If you need to do X"). This maintains consistency and clarity for AI consumption.
To complete SKILL.md, answer the following questions:
Once the skill is ready, it should be packaged into a distributable zip file that gets shared with the user. The packaging process automatically validates the skill first to ensure it meets all requirements:
scripts/package_skill.py <path/to/skill-folder>
Optional output directory specification:
scripts/package_skill.py <path/to/skill-folder> ./dist
The packaging script will:
Validate the skill automatically, checking:
Package the skill if validation passes, creating a zip file named after the skill (e.g., my-skill.zip) that includes all files and maintains the proper directory structure for distribution.
If validation fails, the script will report the errors and exit without creating a package. Fix any validation errors and run the packaging command again.
After testing the skill, users may request improvements. Often this happens right after using the skill, with fresh context of how the skill performed.
Iteration workflow:
Detailed validation criteria for evaluating skills:
references/validation-checklist.mdreferences/metadata-quality-criteria.mdreferences/token-efficiency-criteria.mdreferences/script-quality-criteria.mdreferences/structure-organization-criteria.mdFor distributing skills as plugins via marketplaces, see:
references/plugin-marketplace-overview.mdreferences/plugin-marketplace-schema.mdreferences/plugin-marketplace-sources.mdreferences/plugin-marketplace-hosting.mdreferences/plugin-marketplace-troubleshooting.mdWeekly Installs
180
Repository
GitHub Stars
1.9K
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode152
claude-code151
gemini-cli143
codex138
cursor124
github-copilot120
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
150,000 周安装
PostgreSQL 数据库架构设计模板 - Claude 代码模板库,提升数据库设计效率
210 周安装
合规审查工具 - 自动检查业务计划、产品功能、营销活动的法律合规性 | GDPR/CCPA/HIPAA
425 周安装
代码质量审计员 - 自动化代码复杂度、算法效率与常量管理审计工具
275 周安装
VSCode Agent Sessions 窗口开发指南:架构、布局与AI自定义规范
384 周安装
HTML标题标签优化指南:提升SEO排名与点击率的完整策略
301 周安装
Python代码质量工具速查:Ruff代码检查与格式化、ty类型检查完整指南
252 周安装
requirements.txt.env file follow this order: process.env > $HOME/.claude/skills/${SKILL}/.env (global) > $HOME/.claude/skills/.env (global) > $HOME/.claude/.env (global) > ./.claude/skills/${SKILL}/.env (cwd) > ./.claude/skills/.env (cwd) > ./.claude/.env (cwd).env.example files to show the required environment variables.referencesreferencesSKILL.mdSKILL.mdreferences