skill-creator by jezweb/claude-skills
npx skills add https://github.com/jezweb/claude-skills --skill skill-creator包含 YAML 前导元数据和 Markdown 指令的文件,加上按用途组织并逐步加载的可选捆绑资源(脚本、参考资料、资产),以最小化上下文膨胀
init_skill.py 初始化,编辑资源和文档,使用 package_skill.py 打包,并根据实际使用情况迭代compatibility: claude-code-only 标记SKILL.md
此技能为创建有效的技能提供指导。
技能是模块化、自包含的包,通过提供专业知识、工作流程和工具来扩展 Claude 的能力。可以将它们视为特定领域或任务的“入门指南”——它们将 Claude 从一个通用代理转变为配备了任何模型都无法完全掌握的程序性知识的专业代理。
上下文窗口是公共资源。技能与 Claude 所需的一切共享上下文窗口:系统提示、对话历史、其他技能的元数据以及实际的用户请求。
默认假设:Claude 已经非常智能。 只添加 Claude 尚不具备的上下文。质疑每条信息:“Claude 真的需要这个解释吗?”以及“这段文字是否值得其令牌成本?”
优先选择简洁的示例,而非冗长的解释。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
将具体程度与任务的脆弱性和可变性相匹配:
高自由度(基于文本的指令) :当存在多种有效方法、决策取决于上下文或启发式方法指导操作时使用。
中等自由度(带有参数的伪代码或脚本) :当存在首选模式、允许一定变化或配置影响行为时使用。
低自由度(特定脚本,参数很少) :当操作脆弱易出错、一致性至关重要或必须遵循特定顺序时使用。
将 Claude 想象成在探索一条路径:两侧是悬崖的狭窄桥梁需要特定的护栏(低自由度),而开阔的田野则允许多条路线(高自由度)。
每个技能都包含一个必需的 SKILL.md 文件和可选的捆绑资源:
skill-name/
├── SKILL.md (必需)
│ ├── YAML 前导元数据 (必需)
│ │ ├── name: (必需)
│ │ ├── description: (必需)
│ │ └── compatibility: (可选,很少需要)
│ └── Markdown 指令 (必需)
└── 捆绑资源 (可选)
├── scripts/ - 可执行代码 (Python/Bash/等)
├── references/ - 旨在根据需要加载到上下文中的文档
└── assets/ - 输出中使用的文件 (模板、图标、字体等)
每个 SKILL.md 包含:
name 和 description 字段(必需),以及可选字段如 license、metadata 和 compatibility。只有 name 和 description 会被 Claude 读取以确定技能何时触发,因此要清晰全面地说明技能是什么以及何时应使用它。compatibility 字段用于注明环境要求(目标产品、系统包等),但大多数技能不需要它。scripts/)用于需要确定性可靠性或需要重复重写的任务的可执行代码(Python/Bash/等)。
scripts/rotate_pdf.pyreferences/)旨在根据需要加载到上下文中以告知 Claude 过程和思考的文档和参考资料。
references/finance.md,用于公司 NDA 模板的 references/mnda.md,用于公司政策的 references/policies.md,用于 API 规范的 references/api_docs.mdassets/)不打算加载到上下文中,而是在 Claude 生成的输出中使用的文件。
assets/logo.png,用于 PowerPoint 模板的 assets/slides.pptx,用于 HTML/React 样板代码的 assets/frontend-template/,用于字体的 assets/font.ttf技能应仅包含直接支持其功能的基本文件。请勿创建无关的文档或辅助文件,包括:
技能应仅包含 AI 代理执行手头任务所需的信息。它不应包含关于创建它的过程、设置和测试程序、面向用户的文档等的辅助上下文。创建额外的文档文件只会增加混乱和困惑。
技能使用三级加载系统来高效管理上下文:
保持 SKILL.md 正文简洁,少于 500 行,以最小化上下文膨胀。在接近此限制时,将内容拆分为单独的文件。将内容拆分到其他文件中时,从 SKILL.md 引用它们并清晰地描述何时读取它们非常重要,以确保技能的读者知道它们的存在以及何时使用它们。
关键原则: 当技能支持多种变体、框架或选项时,仅在 SKILL.md 中保留核心工作流程和选择指导。将特定于变体的细节(模式、示例、配置)移到单独的参考资料文件中。
模式 1:带有参考资料的高级指南
# PDF 处理
## 快速开始
使用 pdfplumber 提取文本:
[代码示例]
## 高级功能
- **表单填写**:完整指南请参阅 [FORMS.md](FORMS.md)
- **API 参考**:所有方法请参阅 [REFERENCE.md](REFERENCE.md)
- **示例**:常见模式请参阅 [EXAMPLES.md](EXAMPLES.md)
Claude 仅在需要时加载 FORMS.md、REFERENCE.md 或 EXAMPLES.md。
模式 2:特定领域组织
对于具有多个领域的技能,按领域组织内容以避免加载不相关的上下文:
bigquery-skill/
├── SKILL.md (概述和导航)
└── reference/
├── finance.md (收入、账单指标)
├── sales.md (机会、管道)
├── product.md (API 使用、功能)
└── marketing.md (活动、归因)
当用户询问销售指标时,Claude 只读取 sales.md。
模式 3:条件性细节
显示基本内容,链接到高级内容:
# DOCX 处理
## 创建文档
使用 docx-js 创建新文档。请参阅 [DOCX-JS.md](DOCX-JS.md)。
## 编辑文档
对于简单的编辑,直接修改 XML。
**对于跟踪的更改**:请参阅 [REDLINING.md](REDLINING.md)
**对于 OOXML 详细信息**:请参阅 [OOXML.md](OOXML.md)
Claude 仅在用户需要这些功能时读取 REDLINING.md 或 OOXML.md。
重要指南:
技能创建涉及以下步骤:
按顺序遵循这些步骤,仅在有明确理由说明它们不适用时才跳过。
仅当技能的使用模式已经清晰理解时才跳过此步骤。即使在使用现有技能时,它仍然有价值。
要创建有效的技能,请清晰地理解技能将如何使用的具体示例。这种理解可以来自直接的用户示例,也可以来自经过用户反馈验证的生成示例。
例如,在构建图像编辑器技能时,相关的问题包括:
为避免让用户不知所措,避免在单个消息中提出太多问题。从最重要的问题开始,并根据需要进行跟进以获得更好的效果。
当对技能应支持的功能有了清晰的认识时,结束此步骤。
要将具体示例转化为有效的技能,请通过以下方式分析每个示例:
示例:在构建 pdf-editor 技能来处理诸如“帮我旋转这个 PDF”之类的查询时,分析显示:
scripts/rotate_pdf.py 脚本将有助于存储在技能中示例:在设计 frontend-webapp-builder 技能来处理诸如“为我构建一个待办事项应用”或“为我构建一个跟踪步数的仪表板”之类的查询时,分析显示:
assets/hello-world/ 模板将有助于存储在技能中示例:在构建 big-query 技能来处理诸如“今天有多少用户登录?”之类的查询时,分析显示:
references/schema.md 文件将有助于存储在技能中要建立技能的内容,请分析每个具体示例,以创建要包含的可复用资源列表:脚本、参考资料和资产。
此时,是时候实际创建技能了。
仅当正在开发的技能已经存在,并且需要迭代或打包时才跳过此步骤。在这种情况下,继续下一步。
从头开始创建新技能时,始终运行 init_skill.py 脚本。该脚本方便地生成一个新的模板技能目录,自动包含技能所需的一切,使技能创建过程更加高效和可靠。
用法:
python3 plugins/dev-tools/skills/skill-creator/scripts/init_skill.py <skill-name> --path plugins/<category>/skills/
该脚本:
scripts/、references/ 和 assets/初始化后,根据需要自定义或删除生成的 SKILL.md 和示例文件。
在编辑(新生成的或现有的)技能时,请记住,技能是为另一个 Claude 实例使用而创建的。包含对 Claude 有益且非显而易见的信息。考虑哪些程序性知识、领域特定细节或可复用资产将帮助另一个 Claude 实例更有效地执行这些任务。
安装你技能的其他用户将不会拥有你的 ~/.claude/rules/、你的 CLAUDE.md、你的 MCP 服务器或你的 Vault。技能所需的一切都必须在技能本身内部:
| 不要依赖... | 而是... |
|---|---|
你的 ~/.claude/rules/*.md | 将指导放在 SKILL.md 或 references/ 中 |
| 你的项目/全局 CLAUDE.md | 将相关上下文直接包含在技能中 |
| 特定的 MCP 服务器(Brain、Vault 等) | 使 MCP 使用成为可选项,或记录所需内容 |
你的 settings.local.json 权限 | 记录技能所需的权限,以便用户可以添加它们 |
| 环境特定的路径或工具 | 使用检测逻辑或记录先决条件 |
测试:一个拥有全新 Claude Code 安装的人能使用此技能吗?如果它会在没有你的个人配置的情况下崩溃,那么它就不是自包含的。
根据你的技能需求,参考这些有用的指南:
这些文件包含了有效技能设计的既定最佳实践。
如果技能步骤涉及从多个来源收集数据、扫描文件或批量操作,请指导 Claude 编写并运行一个脚本,而不是列出单独的 bash 命令。每个 bash 命令都需要单独的用户批准——一个运行 10 个命令的步骤会创建 10 个批准提示。
| 而不是... | 指导... |
|---|---|
“运行 git log,然后 grep,然后 jq...” | “编写一个收集 git 历史记录、提取模式并输出摘要的 Python 脚本。从 /tmp 运行它。” |
“对于每个文件,运行 cat 并检查...” | “编写一个扫描所有匹配文件并返回结构化报告的脚本。” |
| “运行这 5 个 curl 命令...” | “编写一个进行 API 调用并聚合结果的脚本。” |
经验法则:如果一个步骤需要 3 个以上的 bash 命令来完成一个逻辑操作,那么它应该是一个脚本。一次编写 + 一次 Bash 运行 = 2 次批准,而不是多次。
保存位置:将脚本写入项目的 .claude/scripts/ 中——而不是 /tmp。项目脚本是项目演进的一部分,可供未来的会话使用。仅对真正一次性的一次性操作使用 /tmp。
要开始实现,请从上面识别的可复用资源开始:scripts/、references/ 和 assets/ 文件。请注意,此步骤可能需要用户输入。例如,在实现 brand-guidelines 技能时,用户可能需要提供品牌资产或模板以存储在 assets/ 中,或提供文档以存储在 references/ 中。
添加的脚本必须通过实际运行来测试,以确保没有错误并且输出符合预期。如果有许多类似的脚本,则只需要测试一个代表性样本,以确保它们都能正常工作,同时平衡完成时间。
应删除技能不需要的任何示例文件和目录。初始化脚本在 scripts/、references/ 和 assets/ 中创建示例文件以演示结构,但大多数技能不需要所有这些文件。
写作指南: 始终使用祈使句/不定式形式。
使用 name 和 description 编写 YAML 前导元数据:
name:技能名称description:这是技能的主要触发机制,帮助 Claude 理解何时使用该技能。
docx 技能的描述示例:“全面的文档创建、编辑和分析,支持跟踪的更改、评论、格式保留和文本提取。当 Claude 需要使用专业文档(.docx 文件)进行以下操作时使用:(1) 创建新文档,(2) 修改或编辑内容,(3) 处理跟踪的更改,(4) 添加评论,或任何其他文档任务”不要在 YAML 前导元数据中包含任何其他字段。
编写使用技能及其捆绑资源的说明。
技能开发完成后,可以打包以供分发:
对于 claude.ai(网页界面):
python3 plugins/dev-tools/skills/skill-creator/scripts/package_skill.py <path/to/skill-folder>
这将创建一个 .skill 文件(zip 格式),用于上传到 claude.ai。
对于 Claude Code(CLI):
技能以目录形式工作——无需打包。直接安装:
# 从此仓库安装
/plugin install ./skills/<skill-name>
# 或者将仓库添加为市场
/plugin marketplace add owner/repo-name
/plugin install <bundle-name>
打包脚本将:
自动验证技能,检查:
如果验证通过,则打包技能,创建一个以技能命名的 .skill 文件(例如,my-skill.skill),其中包含所有文件并保持适当的目录结构以供分发。
如果验证失败,脚本将报告错误并退出,不创建包。修复任何验证错误并再次运行打包命令。
批量打包:
# 打包所有与 Claude AI 兼容的技能
python3 plugins/dev-tools/skills/skill-creator/scripts/package_all.py --claude-ai-only
# 打包所有技能
python3 plugins/dev-tools/skills/skill-creator/scripts/package_all.py
# 列出技能和兼容性
python3 plugins/dev-tools/skills/skill-creator/scripts/package_all.py --list
技能可以在 Claude AI(网页版)和 Claude Code(CLI)中工作。在为两个环境构建时,请注意这些差异:
| 能力 | Claude AI | Claude Code |
|---|---|---|
| 文件输出 | /mnt/user-data/outputs/ | 本地文件系统 |
| 用户交互 | ask_user_input 工具 | 终端提示 |
| 网络搜索 | 内置 web_search 工具 | WebSearch 工具 |
| Shell 命令 | 不可用 | Bash 工具 |
| 子代理 | 不可用 | Task 工具(Explore、Plan 等) |
| MCP 工具 | 如果已连接则名称相同 | 如果已连接则名称相同 |
| 工件 | 内联 HTML、React 渲染 | 不可用 |
标记兼容性: 对于需要本地文件系统、bash 或 CLI 工具的技能,在前导元数据中添加 compatibility: claude-code-only。没有此字段的技能被假定为在两个环境中都能工作。
---
name: my-cli-skill
description: "..."
compatibility: claude-code-only
---
编写双环境技能: 如果技能应根据环境调整其行为,请添加“环境说明”部分:
## 环境说明
- **Claude AI:** 将输出文件保存到 `/mnt/user-data/outputs/`。使用 `present_files` 来分享。
- **Claude Code:** 将输出文件保存到项目目录或用户指定的路径。
描述中的触发短语: description 字段是主要的触发机制。Claude 使用它来决定是否激活技能。包括用户可能说的具体短语,而不仅仅是技能做什么。示例:“当用户说‘制作一个 favicon’、‘生成图标’、‘创建 favicon 包’或提到缺少 favicons 时使用。”
测试技能后,用户可能会请求改进。这通常发生在使用技能后不久,对技能的表现有新鲜的上下文。
迭代工作流程:
每周安装次数
501
仓库
GitHub 星标数
643
首次出现
2026年1月20日
安全审计
安装于
claude-code394
opencode361
gemini-cli351
cursor326
codex326
github-copilot284
file with YAML frontmatter and markdown instructions, plus optional bundled resources (scripts, references, assets) organized by purpose and loaded progressively to minimize context bloat
init_skill.py, edit resources and documentation, package with package_skill.py, and iterate based on real usagecompatibility: claude-code-only in frontmatterSKILL.md
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.
The context window is a public good. Skills share the context window with everything else Claude needs: system prompt, conversation history, other Skills' metadata, and the actual user request.
Default assumption: Claude is already very smart. Only add context Claude doesn't already have. Challenge each piece of information: "Does Claude really need this explanation?" and "Does this paragraph justify its token cost?"
Prefer concise examples over verbose explanations.
Match the level of specificity to the task's fragility and variability:
High freedom (text-based instructions) : Use when multiple approaches are valid, decisions depend on context, or heuristics guide the approach.
Medium freedom (pseudocode or scripts with parameters) : Use when a preferred pattern exists, some variation is acceptable, or configuration affects behavior.
Low freedom (specific scripts, few parameters) : Use when operations are fragile and error-prone, consistency is critical, or a specific sequence must be followed.
Think of Claude as exploring a path: a narrow bridge with cliffs needs specific guardrails (low freedom), while an open field allows many routes (high freedom).
Every skill consists of a required SKILL.md file and optional bundled resources:
skill-name/
├── SKILL.md (required)
│ ├── YAML frontmatter metadata (required)
│ │ ├── name: (required)
│ │ ├── description: (required)
│ │ └── compatibility: (optional, rarely needed)
│ └── 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.)
Every SKILL.md consists of:
name and description fields (required), plus optional fields like license, metadata, and compatibility. Only name and description are read by Claude to determine when the skill triggers, so be clear and comprehensive about what the skill is and when it should be used. The compatibility field is for noting environment requirements (target product, system packages, etc.) but most skills don't need it.scripts/)Executable code (Python/Bash/etc.) for tasks that require deterministic reliability or are repeatedly rewritten.
scripts/rotate_pdf.py for PDF rotation tasksreferences/)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 specificationsassets/)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 typographyA skill should only contain essential files that directly support its functionality. Do NOT create extraneous documentation or auxiliary files, including:
The skill should only contain the information needed for an AI agent to do the job at hand. It should not contain auxiliary context about the process that went into creating it, setup and testing procedures, user-facing documentation, etc. Creating additional documentation files just adds clutter and confusion.
Skills use a three-level loading system to manage context efficiently:
Keep SKILL.md body to the essentials and under 500 lines to minimize context bloat. Split content into separate files when approaching this limit. When splitting out content into other files, it is very important to reference them from SKILL.md and describe clearly when to read them, to ensure the reader of the skill knows they exist and when to use them.
Key principle: When a skill supports multiple variations, frameworks, or options, keep only the core workflow and selection guidance in SKILL.md. Move variant-specific details (patterns, examples, configuration) into separate reference files.
Pattern 1: High-level guide with references
# PDF Processing
## Quick start
Extract text with pdfplumber:
[code example]
## Advanced features
- **Form filling**: See [FORMS.md](FORMS.md) for complete guide
- **API reference**: See [REFERENCE.md](REFERENCE.md) for all methods
- **Examples**: See [EXAMPLES.md](EXAMPLES.md) for common patterns
Claude loads FORMS.md, REFERENCE.md, or EXAMPLES.md only when needed.
Pattern 2: Domain-specific organization
For Skills with multiple domains, organize content by domain to avoid loading irrelevant context:
bigquery-skill/
├── SKILL.md (overview and navigation)
└── reference/
├── finance.md (revenue, billing metrics)
├── sales.md (opportunities, pipeline)
├── product.md (API usage, features)
└── marketing.md (campaigns, attribution)
When a user asks about sales metrics, Claude only reads sales.md.
Pattern 3: Conditional details
Show basic content, link to advanced content:
# DOCX Processing
## Creating documents
Use docx-js for new documents. See [DOCX-JS.md](DOCX-JS.md).
## Editing documents
For simple edits, modify the XML directly.
**For tracked changes**: See [REDLINING.md](REDLINING.md)
**For OOXML details**: See [OOXML.md](OOXML.md)
Claude reads REDLINING.md or OOXML.md only when the user needs those features.
Important guidelines:
Skill creation involves these steps:
Follow these steps in order, skipping 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.
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.
To turn concrete examples into an effective skill, analyze each example by:
Example: 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.
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:
python3 plugins/dev-tools/skills/skill-creator/scripts/init_skill.py <skill-name> --path plugins/<category>/skills/
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. Include 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.
Other users who install your skill will NOT have your ~/.claude/rules/, your CLAUDE.md, your MCP servers, or your Vault. Everything the skill needs must be inside the skill itself:
| Don't rely on... | Instead... |
|---|---|
Your ~/.claude/rules/*.md | Put the guidance in SKILL.md or references/ |
| Your project/global CLAUDE.md | Include relevant context directly in the skill |
| Specific MCP servers (Brain, Vault, etc.) | Make MCP usage optional, or document what's needed |
Your settings.local.json permissions | Document what permissions the skill needs so users can add them |
| Environment-specific paths or tools | Use detection logic or document prerequisites |
Test : Could someone with a fresh Claude Code install use this skill? If it would break without your personal config, it's not self-contained.
Consult these helpful guides based on your skill's needs:
These files contain established best practices for effective skill design.
If a skill step involves collecting data from multiple sources, scanning files, or bulk operations, instruct Claude to write and run a script rather than listing individual bash commands. Each bash command requires a separate user approval — a step that runs 10 commands creates 10 approval prompts.
| Instead of... | Instruct... |
|---|---|
"Run git log, then grep, then jq..." | "Write a Python script that collects git history, extracts patterns, and outputs a summary. Run it from /tmp." |
"For each file, run cat and check..." | "Write a script that scans all matching files and returns a structured report." |
| "Run these 5 curl commands..." | "Write a script that makes the API calls and aggregates results." |
Rule of thumb : If a step needs 3+ bash commands for one logical operation, it should be a script. One Write + one Bash run = 2 approvals instead of many.
Where to save : Write scripts to .claude/scripts/ in the project — not /tmp. Project scripts are part of the project's evolution and available to future sessions. Only use /tmp for truly disposable one-shot operations.
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/.
Added scripts must be tested by actually running them to ensure there are no bugs and that the output matches what is expected. If there are many similar scripts, only a representative sample needs to be tested to ensure confidence that they all work while balancing time to completion.
Any example files and directories not needed for the skill should be deleted. The initialization script creates example files in scripts/, references/, and assets/ to demonstrate structure, but most skills won't need all of them.
Writing Guidelines: Always use imperative/infinitive form.
Write the YAML frontmatter with name and description:
name: The skill namedescription: This is the primary triggering mechanism for your skill, and helps Claude understand when to use the skill.
docx skill: "Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. Use when Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks"Do not include any other fields in YAML frontmatter.
Write instructions for using the skill and its bundled resources.
Once development of the skill is complete, it can be packaged for distribution:
For claude.ai (web interface):
python3 plugins/dev-tools/skills/skill-creator/scripts/package_skill.py <path/to/skill-folder>
This creates a .skill file (zip format) for uploading to claude.ai.
For Claude Code (CLI):
Skills work as directories — no packaging needed. Install directly:
# Install from this repo
/plugin install ./skills/<skill-name>
# Or add a repo as a marketplace
/plugin marketplace add owner/repo-name
/plugin install <bundle-name>
The packaging script will:
Validate the skill automatically, checking:
Package the skill if validation passes, creating a .skill file named after the skill (e.g., my-skill.skill) 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.
Bulk packaging:
# Package all Claude AI-compatible skills
python3 plugins/dev-tools/skills/skill-creator/scripts/package_all.py --claude-ai-only
# Package all skills
python3 plugins/dev-tools/skills/skill-creator/scripts/package_all.py
# List skills and compatibility
python3 plugins/dev-tools/skills/skill-creator/scripts/package_all.py --list
Skills can work in both Claude AI (web) and Claude Code (CLI). When building for both environments, be aware of these differences:
| Capability | Claude AI | Claude Code |
|---|---|---|
| File output | /mnt/user-data/outputs/ | Local filesystem |
| User interaction | ask_user_input tool | Terminal prompts |
| Web search | Built-in web_search tool | WebSearch tool |
| Shell commands | Not available | Bash tool |
| Subagents | Not available | Task tool (Explore, Plan, etc.) |
| MCP tools | Same names if connected | Same names if connected |
| Artifacts |
Marking compatibility: Add compatibility: claude-code-only to the frontmatter of skills that require local filesystem, bash, or CLI tools. Skills without this field are assumed to work in both environments.
---
name: my-cli-skill
description: "..."
compatibility: claude-code-only
---
Writing dual-environment skills: If a skill should adapt its behaviour based on environment, add an "Environment Notes" section:
## Environment Notes
- **Claude AI:** Save output files to `/mnt/user-data/outputs/`. Use `present_files` to share.
- **Claude Code:** Save output files to the project directory or path specified by the user.
Trigger phrases in descriptions: The description field is the primary trigger mechanism. Claude uses it to decide whether to activate the skill. Include specific phrases users might say, not just what the skill does. Example: "Use when the user says 'make a favicon', 'generate icons', 'create favicon package', or mentions missing favicons."
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:
Weekly Installs
501
Repository
GitHub Stars
643
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code394
opencode361
gemini-cli351
cursor326
codex326
github-copilot284
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
136,300 周安装
| HTML, React render inline |
| Not available |