Execute a skill within the main conversation
When users ask you to perform tasks, check if any of the available skills match. Skills provide specialized capabilities and domain knowledge.
When users reference a "slash command" or "/<something>" (e.g., "/commit", "/review-pr"), they are referring to a skill. Use this tool to invoke it.
How to invoke:
- Use this tool with the skill name and optional arguments
- Examples:
- `skill: "pdf"` - invoke the pdf skill
- `skill: "commit", args: "-m 'Fix bug'"` - invoke with arguments
- `skill: "review-pr", args: "123"` - invoke with arguments
- `skill: "ms-office-suite:pdf"` - invoke using fully qualified name
Important:
- Available skills are listed in system-reminder messages in the conversation
- When a skill matches the user's request, this is a BLOCKING REQUIREMENT: invoke the relevant Skill tool BEFORE generating any other response about the task
- NEVER mention a skill without actually calling this tool
- Do not invoke a skill that is already running
- Do not use this tool for built-in CLI commands (like /help, /clear, etc.)
- If you see a <${SKILL_TAG_NAME}> tag in the current conversation turn, the skill has ALREADY been loaded - follow the instructions directly instead of calling this tool again
1---2name: 2-23description: Skill Tool4---5# Skill Tool67## 基本信息89| 属性 | 值 |10|------|-----|11| 工具名称 | Skill |12| Claude Code 版本 | 2.1.23 |13| 类别 | 扩展工具 |14| Sage 实现 | `sage-tools/src/tools/extensions/skill.rs` |1516## 功能描述1718在主对话中执行技能,提供专门的能力和领域知识。1920## 完整 Prompt2122```markdown23Execute a skill within the main conversation2425When users ask you to perform tasks, check if any of the available skills match. Skills provide specialized capabilities and domain knowledge.2627When users reference a "slash command" or "/<something>" (e.g., "/commit", "/review-pr"), they are referring to a skill. Use this tool to invoke it.2829How to invoke:30- Use this tool with the skill name and optional arguments31- Examples:32 - `skill: "pdf"` - invoke the pdf skill33 - `skill: "commit", args: "-m 'Fix bug'"` - invoke with arguments34 - `skill: "review-pr", args: "123"` - invoke with arguments35 - `skill: "ms-office-suite:pdf"` - invoke using fully qualified name3637Important:38- Available skills are listed in system-reminder messages in the conversation39- When a skill matches the user's request, this is a BLOCKING REQUIREMENT: invoke the relevant Skill tool BEFORE generating any other response about the task40- NEVER mention a skill without actually calling this tool41- Do not invoke a skill that is already running42- Do not use this tool for built-in CLI commands (like /help, /clear, etc.)43- If you see a <${SKILL_TAG_NAME}> tag in the current conversation turn, the skill has ALREADY been loaded - follow the instructions directly instead of calling this tool again44```4546## 参数4748| 参数 | 类型 | 必需 | 说明 |49|------|------|------|------|50| skill | string | ✅ | 技能名称 |51| args | string | ❌ | 技能参数 |5253## 设计原理5455### 1. 斜杠命令映射56**为什么**:57- 用户熟悉的交互方式58- 快速调用常用功能59- 与 CLI 工具一致6061### 2. 阻塞式要求62**为什么**:63- 技能应该立即执行64- 避免先描述再执行65- 保持响应简洁6667### 3. 避免重复调用68**为什么**:69- 技能可能已经加载70- 检查 skill tag 避免重复71- 提高效率7273### 4. 完全限定名74**为什么**:75- 支持命名空间76- 避免名称冲突77- 如 `ms-office-suite:pdf`7879## 使用场景8081### ✅ 应该使用82- 用户输入 `/commit`83- 用户请求 "review this PR"84- 匹配可用技能的任务8586### ❌ 不应该使用87- 内置 CLI 命令 (`/help`, `/clear`)88- 技能已经在运行89- 技能 tag 已经存在9091## 常见技能9293| 技能 | 用途 |94|------|------|95| commit | Git 提交 |96| review-pr | PR 审查 |97| pdf | PDF 处理 |98| test | 运行测试 |99100## 示例101102```markdown103用户: /commit -m "Fix login bug"104Agent: [调用 Skill 工具]105{106 "skill": "commit",107 "args": "-m 'Fix login bug'"108}109```110111## 变量说明112113| 变量 | 说明 |114|------|------|115| SKILL_TAG_NAME | 技能标签名称 (如 "command-name") |116117## Sage 实现差异118119Sage 的 SkillTool 支持:120- 自定义技能注册121- 技能参数验证122- 技能执行历史123- 技能依赖管理
Run npx skillmds@latest add majiayu000/2-2 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Skill Tool It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
majiayu000 (@majiayu000) published this skill. Their other Agent Skills are listed on their SkillMD profile.