‹ 首页

my-skill

@lukerenton · 收录于 1 周前

What this skill does and when to use it. Claude reads this to decide relevance. Include keywords users would naturally say.

适合你,如果想了解这个技能的功能和用途

/ 下载安装
my-skill.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add lukerenton/explore-claude-code/my-skill
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- lukerenton/explore-claude-code/my-skill
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify lukerenton/explore-claude-code/my-skill
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
243GitHub stars
~820最小装载
~1.5K含声明引用
~1.5K文本包总量
镜像托管

怎么用

技能原文 SKILL.md作者撰写 · MIT · 68ac333

These two fields are the only ones required. name must be lowercase with hyphens, max 64 characters, and match the parent directory name. description is what Claude reads at startup to decide when the skill is relevant (max 1024 characters).

Optional Frontmatter Fields

Add any of these to the --- block above to customise behaviour:

| Field | Example | Purpose | |---|---|---| | argument-hint | [issue-number] | Hint shown during autocomplete to indicate expected arguments | | disable-model-invocation | true | Prevent Claude from auto-loading. User must type /name explicitly. Use for deploys, sends, destructive ops | | user-invocable | false | Hide from the / menu. Claude can still load it automatically. Use for background knowledge | | allowed-tools | Read, Grep, Bash(npm *) | Tools Claude can use without asking permission. Space-delimited, supports patterns | | model | claude-sonnet-4-6 | Override the model when this skill is active. Useful for cost control | | context | fork | Run in an [isolated subagent](^A separate Claude instance with its own context. The skill content becomes the subagent's system prompt). Skill content becomes the subagent's prompt | | agent | Explore | Which subagent runs when context: fork. Built-in: Explore, Plan, general-purpose, or custom from .claude/agents/ | | license | Apache-2.0 | License name or reference to a bundled LICENSE file | | compatibility | Requires git, docker | Environment requirements (max 500 chars) | | metadata | key-value pairs | Arbitrary metadata (author, version, etc.) |


Body Content

Everything below the frontmatter is the instruction body. Claude reads this when the skill is activated. Write whatever helps Claude perform the task. There are no format restrictions.

Good body content includes:

  • Step-by-step instructions for the task
  • Examples of inputs and expected outputs
  • Common edge cases and how to handle them
  • References to supporting files in this skill folder
String Substitutions

[Placeholders](^Variables in your SKILL.md that get replaced with real values before Claude sees the content) are replaced with real values before Claude sees the content:

| Placeholder | Resolves To | |---|---| | $ARGUMENTS | Everything the user typed after the skill name | | $ARGUMENTS[N] or $N | A specific argument by index (0-based) | | ${CLAUDE_SESSION_ID} | The current session ID | | ${CLAUDE_SKILL_DIR} | Path to this skill's directory |

Example: /my-skill SearchBar React Vue gives $0 = "SearchBar", $1 = "React", $2 = "Vue".

If $ARGUMENTS is not present in the content, arguments are appended as ARGUMENTS: <value>.

Dynamic Context Injection

The ! backtick syntax runs shell commands before the content reaches Claude. Output replaces the placeholder:

  • PR diff: ` !gh pr diff `
  • Dependencies: ` !cat package.json | jq .dependencies `
  • Changed files: ` !git diff --name-only `

This is [preprocessing](^The commands run at skill load time, not during conversation. Claude only sees the final output, not the commands themselves). Claude only sees the final output, not the commands.


Supporting Files

Keep SKILL.md under 500 lines. Move detailed material to separate files and reference them from the body:

  • [references/REFERENCE.md](references/REFERENCE.md): Detailed documentation loaded on demand
  • [assets/template.md](assets/template.md): Templates and static resources
  • [scripts/helper.sh](scripts/helper.sh): Executable code Claude can run

Use relative paths from SKILL.md. Keep references one level deep. Navigate into these folders to learn more about each.

按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。