Loading...
Loading...
Compare original and translation side by side
/learn <topic> # Create new skill from docs
/learn <topic> --update # Update existing skill with latest docs
/learn <topic> --project # Save to project (.claude/skills/) instead of global/learn <主题> # 从文档创建新技能
/learn <主题> --update # 使用最新文档更新现有技能
/learn <主题> --project # 保存到项目目录(.claude/skills/)而非全局目录mcp__plugin_context7_context7__resolve-library-id
query: "user's task/question"
libraryName: "<topic>"WebSearch: "<topic>" guide tutorial best practices
WebSearch: "<topic>" official documentation
WebSearch: "<topic>" examples patternsWebSearch: "<topic>" comprehensive guide
WebSearch: "<topic>" key concepts terminology
WebSearch: "<topic>" common mistakes pitfallsmcp__plugin_context7_context7__resolve-library-id
query: "user's task/question"
libraryName: "<topic>"WebSearch: "<topic>" guide tutorial best practices
WebSearch: "<topic>" official documentation
WebSearch: "<topic>" examples patternsWebSearch: "<topic>" comprehensive guide
WebSearch: "<topic>" key concepts terminology
WebSearch: "<topic>" common mistakes pitfallsmcp__plugin_context7_context7__query-docs
libraryId: "<resolved-id>"
query: "getting started setup authentication common patterns"mcp__plugin_context7_context7__query-docs
libraryId: "<resolved-id>"
query: "getting started setup authentication common patterns"claude-code-guideTask tool with subagent_type: claude-code-guide
prompt: "What are the current conventions for writing Claude Code skills?
I need to know: required/optional frontmatter fields,
description best practices, and recommended structure."claude-code-guideTask tool with subagent_type: claude-code-guide
prompt: "What are the current conventions for writing Claude Code skills?
I need to know: required/optional frontmatter fields,
description best practices, and recommended structure."~/.claude/skills/<topic>/skill.md--project.claude/skills/<topic>/skill.md---
name: <topic>
description: <What the library does>. Use when <specific triggers>. Covers: <main capabilities>.
---~/.claude/skills/<topic>/skill.md--project.claude/skills/<topic>/skill.md---
name: <topic>
description: <该库的功能>。在<特定触发场景>时使用。涵盖:<核心能力>。
---| Method | Purpose | Example |
|---|---|---|
| ... | ... | ... |
| 方法 | 用途 | 示例 |
|---|---|---|
| ... | ... | ... |
undefinedundefinedUser: /learn stripe-payments
Claude:
1. Resolves "stripe" via Context7 → /stripe/stripe-node
2. Queries: setup, authentication, common patterns, webhooks
3. Consults claude-code-guide for current skill conventions
4. Creates ~/.claude/skills/stripe-payments/skill.md with:
- API key setup
- Payment intent flow
- Webhook verification
- Error handling patterns
5. Reports: "Created stripe-payments skill. Triggers on: 'Stripe payment', 'charge card', 'payment intent'"用户: /learn stripe-payments
Claude:
1. 通过Context7解析"stripe" → /stripe/stripe-node
2. 查询内容:安装配置、身份验证、常见模式、Webhook
3. 参考claude-code-guide获取当前技能编写规范
4. 创建~/.claude/skills/stripe-payments/skill.md,包含:
- API密钥配置
- 支付意向流程
- Webhook验证
- 错误处理模式
5. 告知用户:"已创建stripe-payments技能。触发词包括:'Stripe payment'、'charge card'、'payment intent'"