npx skills add https://github.com/obra/clank --skill 'Getting Started with Skills'您的个人已验证技术、模式和工具维基,位于 ~/.claude/skills/。
请勿使用 @ 链接 - 它们会强制加载整个文件,瞬间消耗超过 20 万上下文。
请改用技能路径引用:
skills/类别/技能名称 (无 @ 前缀,无 /SKILL.md 后缀)skills/collaboration/brainstorming 或 skills/testing/test-driven-development当您在文档中看到技能引用时:
skills/路径/名称 → 对 ~/.claude/skills/路径/名称/SKILL.md 使用 Read 工具广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
1. 搜索技能:
~/.claude/skills/getting-started/skills-search PATTERN
2. 搜索对话: 派遣子代理(见工作流程 2)以检查相关的过往工作。
如果找到技能:
~/.claude/skills/路径/技能名称/SKILL.md"这不算一个任务" 是合理化借口。 技能/对话存在,而您没有搜索它们或没有使用它们 = 任务失败。
何时使用: 您的人类伙伴提到过往工作、问题感觉熟悉、在熟悉领域开始任务、遇到阻碍/阻塞、在重新发明轮子之前
何时不使用: 当前对话中的信息、代码库状态问题、首次遇到、伙伴希望获得新思路
方法(使用子代理可节省 50-100 倍上下文):
~/.claude/skills/collaboration/remembering-conversations/tool/prompts/search-agent.md示例:
伙伴:"我们之前在 React Router 中是如何处理身份验证错误的?"
您:正在搜索过往对话...
[派遣子代理 → 350 字综合摘要]
[应用,无需加载 5 万个令牌]
危险信号: 直接读取 .jsonl 文件、粘贴摘录、询问"哪个对话?"、浏览存档
模式: 搜索 → 子代理综合 → 应用。快速、专注、上下文高效。
每次开始使用技能时,请声明:
"我正在使用 [技能名称] 技能来 [您正在做什么]。"
示例:
原因: 透明度有助于您的人类伙伴理解您的流程并及早发现错误。
如果技能包含检查清单,您必须为每个检查清单项创建 TodoWrite 待办事项。
请勿:
原因: 没有 TodoWrite 跟踪的检查清单 = 步骤会被跳过。每次都是。
示例: TDD(编写测试、观察失败、实现、验证)、Systematic Debugging(4 个阶段)、Creating Skills(RED-GREEN-REFACTOR)
真的,请先尝试 skills-search。
类别: skills/INDEX.md → testing, debugging, coding, architecture, collaboration, meta 单个技能: 从类别 INDEX 加载
when_to_use 是否匹配您的情况?许多技能包含刚性规则(TDD、调试、验证)。 请严格遵守。不要为了适应而放弃纪律。
有些技能是灵活的模式(架构、命名)。 根据您的上下文调整核心原则。
技能本身会告诉您它属于哪种类型。
在编写引用其他技能的文档时:
使用不带 @ 前缀或 /SKILL.md 后缀的路径格式:
skills/testing/test-driven-developmentskills/debugging/systematic-debugging@skills/testing/test-driven-development/SKILL.md (强制加载,消耗上下文)为什么不用 @ 链接: @ 语法会立即强制加载文件,在您需要它们之前就消耗超过 20 万上下文。
要读取技能引用: 对 ~/.claude/skills/类别/技能名称/SKILL.md 使用 Read 工具
发现了有价值的东西?请参阅 skills/meta/creating-skills
想要一个不存在的技能?编辑 skills/REQUESTS.md (位于 ~/.claude/skills/REQUESTS.md)
开始对话? 您刚刚阅读了本指南。很好。
开始任何任务? 首先运行 skills-search,声明使用,遵循您找到的内容。
技能有检查清单? 为每个项创建 TodoWrite。
技能存在时是强制性的,不是可选的。
在阅读完本指南后的第一次回复中,您必须向用户声明您已阅读入门指南
每周安装次数
–
代码仓库
GitHub 星标数
38
首次出现时间
–
安全审计
Your personal wiki of proven techniques, patterns, and tools at ~/.claude/skills/.
DO NOT use @ links - they force-load entire files, burning 200k+ context instantly.
INSTEAD, use skill path references:
skills/category/skill-name (no @ prefix, no /SKILL.md suffix)skills/collaboration/brainstorming or skills/testing/test-driven-developmentWhen you see skill references in documentation:
skills/path/name → Use Read tool on ~/.claude/skills/path/name/SKILL.md1. Search skills:
~/.claude/skills/getting-started/skills-search PATTERN
2. Search conversations: Dispatch subagent (see Workflow 2) to check for relevant past work.
If skills found:
~/.claude/skills/path/skill-name/SKILL.md"This doesn't count as a task" is rationalization. Skills/conversations exist and you didn't search for them or didn't use them = failed task.
When: Your human partner mentions past work, issue feels familiar, starting task in familiar domain, stuck/blocked, before reinventing
When NOT: Info in current convo, codebase state questions, first encounter, partner wants fresh thinking
How (use subagent for 50-100x context savings):
~/.claude/skills/collaboration/remembering-conversations/tool/prompts/search-agent.mdExample:
Partner: "How did we handle auth errors in React Router?"
You: Searching past conversations...
[Dispatch subagent → 350-word synthesis]
[Apply without loading 50k tokens]
Red flags: Reading .jsonl files directly, pasting excerpts, asking "which conversation?", browsing archives
Pattern: Search → Subagent synthesizes → Apply. Fast, focused, context-efficient.
Every time you start using a skill, announce it:
"I'm using the [Skill Name] skill to [what you're doing]."
Examples:
Why: Transparency helps your human partner understand your process and catch errors early.
If a skill contains a checklist, you MUST create TodoWrite todos for EACH checklist item.
Don't:
Why: Checklists without TodoWrite tracking = steps get skipped. Every time.
Examples: TDD (write test, watch fail, implement, verify), Systematic Debugging (4 phases), Creating Skills (RED-GREEN-REFACTOR)
Really, try skills-search first.
Categories: skills/INDEX.md → testing, debugging, coding, architecture, collaboration, meta Individual skill: Load from category INDEX
when_to_use match your situation?Many skills contain rigid rules (TDD, debugging, verification). Follow them exactly. Don't adapt away the discipline.
Some skills are flexible patterns (architecture, naming). Adapt core principles to your context.
The skill itself tells you which type it is.
When writing documentation that references other skills:
Use path format without @ prefix or /SKILL.md suffix:
skills/testing/test-driven-developmentskills/debugging/systematic-debugging@skills/testing/test-driven-development/SKILL.md (force-loads, burns context)Why no @ links: @ syntax force-loads files immediately, consuming 200k+ context before you need them.
To read a skill reference: Use Read tool on ~/.claude/skills/category/skill-name/SKILL.md
Found something valuable? See skills/meta/creating-skills
Want a skill that doesn't exist? Edit skills/REQUESTS.md (at ~/.claude/skills/REQUESTS.md)
Starting conversation? You just read this. Good.
Starting any task? Run skills-search first, announce usage, follow what you find.
Skill has checklist? TodoWrite for every item.
Skills are mandatory when they exist, not optional.
In the first response after reading this guide, you MUST announce to the user that you have read the getting started guide
Weekly Installs
–
Repository
GitHub Stars
38
First Seen
–
Security Audits
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
107,800 周安装