[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C7N0A89JETB58KFPNAWSMD":3,"skill-same:01M6C7N0A89JETB58KFPNAWSMD":114},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":45,"linkOnly":46,"markdownContent":47,"markdownBody":48,"frontMatter":49,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":13,"ownerHtmlUrl":56,"ownerBlogUrl":13,"ownerDescription":13,"updatedAt":57,"install":58,"resources":71},"01M6C7N0A89JETB58KFPNAWSMD","command-development","Claude斜杠命令开发","This skill should be used when the user asks to \"create a slash command\", \"add a command\", \"write a custom command\", \"define command arguments\", \"use command frontmatter\", \"organize commands\", \"create command with file references\", \"interactive command\", \"use AskUserQuestion in command\", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.","当用户要求“创建斜杠命令”、“添加命令”、“编写自定义命令”、“定义命令参数”、“使用命令 frontmatter”、“组织命令”、“创建带文件引用的命令”、“交互式命令”、“在命令中使用 AskUserQuestion”，或需要关于 Claude Code 的斜杠命令结构、YAML frontmatter 字段、动态参数、命令中的 bash 执行、用户交互模式或命令开发最佳实践的指导时，应使用此技能。","xiaoyuge886\u002Faigc","xiaoyuge886","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12636900?v=4","01M6C7J3YT6CQHYHZ29SF3VNBC",null,"01M6C7J42B85WJJ9BQGRDED804",200,"MIT","https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fcommand-development\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理","SCENARIO","使用场景",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],"development","Command Development","command","create","code","best practices","file","yaml","execution","Bash","write","interactive","user","use","create command","2026-11-10 10:12:30",false,"---\nname: command-development\ndescription: This skill should be used when the user asks to \"create a slash command\", \"add a command\", \"write a custom command\", \"define command arguments\", \"use command frontmatter\", \"organize commands\", \"create command with file references\", \"interactive command\", \"use AskUserQuestion in command\", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.\nversion: 0.2.0\n---\n\n# Command Development for Claude Code\n\n## Overview\n\nSlash commands are frequently-used prompts defined as Markdown files that Claude executes during interactive sessions. Understanding command structure, frontmatter options, and dynamic features enables creating powerful, reusable workflows.\n\n**Key concepts:**\n- Markdown file format for commands\n- YAML frontmatter for configuration\n- Dynamic arguments and file references\n- Bash execution for context\n- Command organization and namespacing\n\n## Command Basics\n\n### What is a Slash Command?\n\nA slash command is a Markdown file containing a prompt that Claude executes when invoked. Commands provide:\n- **Reusability**: Define once, use repeatedly\n- **Consistency**: Standardize common workflows\n- **Sharing**: Distribute across team or projects\n- **Efficiency**: Quick access to complex prompts\n\n### Critical: Commands are Instructions FOR Claude\n\n**Commands are written for agent consumption, not human consumption.**\n\nWhen a user invokes `\u002Fcommand-name`, the command content becomes Claude's instructions. Write commands as directives TO Claude about what to do, not as messages TO the user.\n\n**Correct approach (instructions for Claude):**\n```markdown\nReview this code for security vulnerabilities including:\n- SQL injection\n- XSS attacks\n- Authentication issues\n\nProvide specific line numbers and severity ratings.\n```\n\n**Incorrect approach (messages to user):**\n```markdown\nThis command will review your code for security issues.\nYou'll receive a report with vulnerability details.\n```\n\nThe first example tells Claude what to do. The second tells the user what will happen but doesn't instruct Claude. Always use the first approach.\n\n### Command Locations\n\n**Project commands** (shared with team):\n- Location: `.claude\u002Fcommands\u002F`\n- Scope: Available in specific project\n- Label: Shown as \"(project)\" in `\u002Fhelp`\n- Use for: Team workflows, project-specific tasks\n\n**Personal commands** (available everywhere):\n- Location: `~\u002F.claude\u002Fcommands\u002F`\n- Scope: Available in all projects\n- Label: Shown as \"(user)\" in `\u002Fhelp`\n- Use for: Personal workflows, cross-project utilities\n\n**Plugin commands** (bundled with plugins):\n- Location: `plugin-name\u002Fcommands\u002F`\n- Scope: Available when plugin installed\n- Label: Shown as \"(plugin-name)\" in `\u002Fhelp`\n- Use for: Plugin-specific functionality\n\n## File Format\n\n### Basic Structure\n\nCommands are Markdown files with `.md` extension:\n\n```\n.claude\u002Fcommands\u002F\n├── review.md           # \u002Freview command\n├── test.md             # \u002Ftest command\n└── deploy.md           # \u002Fdeploy command\n```\n\n**Simple command:**\n```markdown\nReview this code for security vulnerabilities including:\n- SQL injection\n- XSS attacks\n- Authentication bypass\n- Insecure data handling\n```\n\nNo frontmatter needed for basic commands.\n\n### With YAML Frontmatter\n\nAdd configuration using YAML frontmatter:\n\n```markdown\n---\ndescription: Review code for security issues\nallowed-tools: Read, Grep, Bash(git:*)\nmodel: sonnet\n---\n\nReview this code for security vulnerabilities...\n```\n\n## YAML Frontmatter Fields\n\n### description\n\n**Purpose:** Brief description shown in `\u002Fhelp`\n**Type:** String\n**Default:** First line of command prompt\n\n```yaml\n---\ndescription: Review pull request for code quality\n---\n```\n\n**Best practice:** Clear, actionable description (under 60 characters)\n\n### allowed-tools\n\n**Purpose:** Specify which tools command can use\n**Type:** String or Array\n**Default:** Inherits from conversation\n\n```yaml\n---\nallowed-tools: Read, Write, Edit, Bash(git:*)\n---\n```\n\n**Patterns:**\n- `Read, Write, Edit` - Specific tools\n- `Bash(git:*)` - Bash with git commands only\n- `*` - All tools (rarely needed)\n\n**Use when:** Command requires specific tool access\n\n### model\n\n**Purpose:** Specify model for command execution\n**Type:** String (sonnet, opus, haiku)\n**Default:** Inherits from conversation\n\n```yaml\n---\nmodel: haiku\n---\n```\n\n**Use cases:**\n- `haiku` - Fast, simple commands\n- `sonnet` - Standard workflows\n- `opus` - Complex analysis\n\n### argument-hint\n\n**Purpose:** Document expected arguments for autocomplete\n**Type:** String\n**Default:** None\n\n```yaml\n---\nargument-hint: [pr-number] [priority] [assignee]\n---\n```\n\n**Benefits:**\n- Helps users understand command arguments\n- Improves command discovery\n- Documents command interface\n\n### disable-model-invocation\n\n**Purpose:** Prevent SlashCommand tool from programmatically calling command\n**Type:** Boolean\n**Default:** false\n\n```yaml\n---\ndisable-model-invocation: true\n---\n```\n\n**Use when:** Command should only be manually invoked\n\n## Dynamic Arguments\n\n### Using $ARGUMENTS\n\nCapture all arguments as single string:\n\n```markdown\n---\ndescription: Fix issue by number\nargument-hint: [issue-number]\n---\n\nFix issue #$ARGUMENTS following our coding standards and best practices.\n```\n\n**Usage:**\n```\n> \u002Ffix-issue 123\n> \u002Ffix-issue 456\n```\n\n**Expands to:**\n```\nFix issue #123 following our coding standards...\nFix issue #456 following our coding standards...\n```\n\n### Using Positional Arguments\n\nCapture individual arguments with `$1`, `$2`, `$3`, etc.:\n\n```markdown\n---\ndescription: Review PR with priority and assignee\nargument-hint: [pr-number] [priority] [assignee]\n---\n\nReview pull request #$1 with priority level $2.\nAfter review, assign to $3 for follow-up.\n```\n\n**Usage:**\n```\n> \u002Freview-pr 123 high alice\n```\n\n**Expands to:**\n```\nReview pull request #123 with priority level high.\nAfter review, assign to alice for follow-up.\n```\n\n### Combining Arguments\n\nMix positional and remaining arguments:\n\n```markdown\nDeploy $1 to $2 environment with options: $3\n```\n\n**Usage:**\n```\n> \u002Fdeploy api staging --force --skip-tests\n```\n\n**Expands to:**\n```\nDeploy api to staging environment with options: --force --skip-tests\n```\n\n## File References\n\n### Using @ Syntax\n\nInclude file contents in command:\n\n```markdown\n---\ndescription: Review specific file\nargument-hint: [file-path]\n---\n\nReview @$1 for:\n- Code quality\n- Best practices\n- Potential bugs\n```\n\n**Usage:**\n```\n> \u002Freview-file src\u002Fapi\u002Fusers.ts\n```\n\n**Effect:** Claude reads `src\u002Fapi\u002Fusers.ts` before processing command\n\n### Multiple File References\n\nReference multiple files:\n\n```markdown\nCompare @src\u002Fold-version.js with @src\u002Fnew-version.js\n\nIdentify:\n- Breaking changes\n- New features\n- Bug fixes\n```\n\n### Static File References\n\nReference known files without arguments:\n\n```markdown\nReview @package.json and @tsconfig.json for consistency\n\nEnsure:\n- TypeScript version matches\n- Dependencies are aligned\n- Build configuration is correct\n```\n\n## Bash Execution in Commands\n\nCommands can execute bash commands inline to dynamically gather context before Claude processes the command. This is useful for including repository state, environment information, or project-specific context.\n\n**When to use:**\n- Include dynamic context (git status, environment vars, etc.)\n- Gather project\u002Frepository state\n- Build context-aware workflows\n\n**Implementation details:**\nFor complete syntax, examples, and best practices, see `references\u002Fplugin-features-reference.md` section on bash execution. The reference includes the exact syntax and multiple working examples to avoid execution issues\n\n## Command Organization\n\n### Flat Structure\n\nSimple organization for small command sets:\n\n```\n.claude\u002Fcommands\u002F\n├── build.md\n├── test.md\n├── deploy.md\n├── review.md\n└── docs.md\n```\n\n**Use when:** 5-15 commands, no clear categories\n\n### Namespaced Structure\n\nOrganize commands in subdirectories:\n\n```\n.claude\u002Fcommands\u002F\n├── ci\u002F\n│   ├── build.md        # \u002Fbuild (project:ci)\n│   ├── test.md         # \u002Ftest (project:ci)\n│   └── lint.md         # \u002Flint (project:ci)\n├── git\u002F\n│   ├── commit.md       # \u002Fcommit (project:git)\n│   └── pr.md           # \u002Fpr (project:git)\n└── docs\u002F\n    ├── generate.md     # \u002Fgenerate (project:docs)\n    └── publish.md      # \u002Fpublish (project:docs)\n```\n\n**Benefits:**\n- Logical grouping by category\n- Namespace shown in `\u002Fhelp`\n- Easier to find related commands\n\n**Use when:** 15+ commands, clear categories\n\n## Best Practices\n\n### Command Design\n\n1. **Single responsibility:** One command, one task\n2. **Clear descriptions:** Self-explanatory in `\u002Fhelp`\n3. **Explicit dependencies:** Use `allowed-tools` when needed\n4. **Document arguments:** Always provide `argument-hint`\n5. **Consistent naming:** Use verb-noun pattern (review-pr, fix-issue)\n\n### Argument Handling\n\n1. **Validate arguments:** Check for required arguments in prompt\n2. **Provide defaults:** Suggest defaults when arguments missing\n3. **Document format:** Explain expected argument format\n4. **Handle edge cases:** Consider missing or invalid arguments\n\n```markdown\n---\nargument-hint: [pr-number]\n---\n\n$IF($1,\n  Review PR #$1,\n  Please provide a PR number. Usage: \u002Freview-pr [number]\n)\n```\n\n### File References\n\n1. **Explicit paths:** Use clear file paths\n2. **Check existence:** Handle missing files gracefully\n3. **Relative paths:** Use project-relative paths\n4. **Glob support:** Consider using Glob tool for patterns\n\n### Bash Commands\n\n1. **Limit scope:** Use `Bash(git:*)` not `Bash(*)`\n2. **Safe commands:** Avoid destructive operations\n3. **Handle errors:** Consider command failures\n4. **Keep fast:** Long-running commands slow invocation\n\n### Documentation\n\n1. **Add comments:** Explain complex logic\n2. **Provide examples:** Show usage in comments\n3. **List requirements:** Document dependencies\n4. **Version commands:** Note breaking changes\n\n```markdown\n---\ndescription: Deploy application to environment\nargument-hint: [environment] [version]\n---\n\n\u003C!--\nUsage: \u002Fdeploy [staging|production] [version]\nRequires: AWS credentials configured\nExample: \u002Fdeploy staging v1.2.3\n-->\n\nDeploy application to $1 environment using version $2...\n```\n\n## Common Patterns\n\n### Review Pattern\n\n```markdown\n---\ndescription: Review code changes\nallowed-tools: Read, Bash(git:*)\n---\n\nFiles changed: !`git diff --name-only`\n\nReview each file for:\n1. Code quality and style\n2. Potential bugs or issues\n3. Test coverage\n4. Documentation needs\n\nProvide specific feedback for each file.\n```\n\n### Testing Pattern\n\n```markdown\n---\ndescription: Run tests for specific file\nargument-hint: [test-file]\nallowed-tools: Bash(npm:*)\n---\n\nRun tests: !`npm test $1`\n\nAnalyze results and suggest fixes for failures.\n```\n\n### Documentation Pattern\n\n```markdown\n---\ndescription: Generate documentation for file\nargument-hint: [source-file]\n---\n\nGenerate comprehensive documentation for @$1 including:\n- Function\u002Fclass descriptions\n- Parameter documentation\n- Return value descriptions\n- Usage examples\n- Edge cases and errors\n```\n\n### Workflow Pattern\n\n```markdown\n---\ndescription: Complete PR workflow\nargument-hint: [pr-number]\nallowed-tools: Bash(gh:*), Read\n---\n\nPR #$1 Workflow:\n\n1. Fetch PR: !`gh pr view $1`\n2. Review changes\n3. Run checks\n4. Approve or request changes\n```\n\n## Troubleshooting\n\n**Command not appearing:**\n- Check file is in correct directory\n- Verify `.md` extension present\n- Ensure valid Markdown format\n- Restart Claude Code\n\n**Arguments not working:**\n- Verify `$1`, `$2` syntax correct\n- Check `argument-hint` matches usage\n- Ensure no extra spaces\n\n**Bash execution failing:**\n- Check `allowed-tools` includes Bash\n- Verify command syntax in backticks\n- Test command in terminal first\n- Check for required permissions\n\n**File references not working:**\n- Verify `@` syntax correct\n- Check file path is valid\n- Ensure Read tool allowed\n- Use absolute or project-relative paths\n\n## Plugin-Specific Features\n\n### CLAUDE_PLUGIN_ROOT Variable\n\nPlugin commands have access to `${CLAUDE_PLUGIN_ROOT}`, an environment variable that resolves to the plugin's absolute path.\n\n**Purpose:**\n- Reference plugin files portably\n- Execute plugin scripts\n- Load plugin configuration\n- Access plugin templates\n\n**Basic usage:**\n\n```markdown\n---\ndescription: Analyze using plugin script\nallowed-tools: Bash(node:*)\n---\n\nRun analysis: !`node ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fanalyze.js $1`\n\nReview results and report findings.\n```\n\n**Common patterns:**\n\n```markdown\n# Execute plugin script\n!`bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fscript.sh`\n\n# Load plugin configuration\n@${CLAUDE_PLUGIN_ROOT}\u002Fconfig\u002Fsettings.json\n\n# Use plugin template\n@${CLAUDE_PLUGIN_ROOT}\u002Ftemplates\u002Freport.md\n\n# Access plugin resources\n@${CLAUDE_PLUGIN_ROOT}\u002Fdocs\u002Freference.md\n```\n\n**Why use it:**\n- Works across all installations\n- Portable between systems\n- No hardcoded paths needed\n- Essential for multi-file plugins\n\n### Plugin Command Organization\n\nPlugin commands discovered automatically from `commands\u002F` directory:\n\n```\nplugin-name\u002F\n├── commands\u002F\n│   ├── foo.md              # \u002Ffoo (plugin:plugin-name)\n│   ├── bar.md              # \u002Fbar (plugin:plugin-name)\n│   └── utils\u002F\n│       └── helper.md       # \u002Fhelper (plugin:plugin-name:utils)\n└── plugin.json\n```\n\n**Namespace benefits:**\n- Logical command grouping\n- Shown in `\u002Fhelp` output\n- Avoid name conflicts\n- Organize related commands\n\n**Naming conventions:**\n- Use descriptive action names\n- Avoid generic names (test, run)\n- Consider plugin-specific prefix\n- Use hyphens for multi-word names\n\n### Plugin Command Patterns\n\n**Configuration-based pattern:**\n\n```markdown\n---\ndescription: Deploy using plugin configuration\nargument-hint: [environment]\nallowed-tools: Read, Bash(*)\n---\n\nLoad configuration: @${CLAUDE_PLUGIN_ROOT}\u002Fconfig\u002F$1-deploy.json\n\nDeploy to $1 using configuration settings.\nMonitor deployment and report status.\n```\n\n**Template-based pattern:**\n\n```markdown\n---\ndescription: Generate docs from template\nargument-hint: [component]\n---\n\nTemplate: @${CLAUDE_PLUGIN_ROOT}\u002Ftemplates\u002Fdocs.md\n\nGenerate documentation for $1 following template structure.\n```\n\n**Multi-script pattern:**\n\n```markdown\n---\ndescription: Complete build workflow\nallowed-tools: Bash(*)\n---\n\nBuild: !`bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fbuild.sh`\nTest: !`bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Ftest.sh`\nPackage: !`bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fpackage.sh`\n\nReview outputs and report workflow status.\n```\n\n**See `references\u002Fplugin-features-reference.md` for detailed patterns.**\n\n## Integration with Plugin Components\n\nCommands can integrate with other plugin components for powerful workflows.\n\n### Agent Integration\n\nLaunch plugin agents for complex tasks:\n\n```markdown\n---\ndescription: Deep code review\nargument-hint: [file-path]\n---\n\nInitiate comprehensive review of @$1 using the code-reviewer agent.\n\nThe agent will analyze:\n- Code structure\n- Security issues\n- Performance\n- Best practices\n\nAgent uses plugin resources:\n- ${CLAUDE_PLUGIN_ROOT}\u002Fconfig\u002Frules.json\n- ${CLAUDE_PLUGIN_ROOT}\u002Fchecklists\u002Freview.md\n```\n\n**Key points:**\n- Agent must exist in `plugin\u002Fagents\u002F` directory\n- Claude uses Task tool to launch agent\n- Document agent capabilities\n- Reference plugin resources agent uses\n\n### Skill Integration\n\nLeverage plugin skills for specialized knowledge:\n\n```markdown\n---\ndescription: Document API with standards\nargument-hint: [api-file]\n---\n\nDocument API in @$1 following plugin standards.\n\nUse the api-docs-standards skill to ensure:\n- Complete endpoint documentation\n- Consistent formatting\n- Example quality\n- Error documentation\n\nGenerate production-ready API docs.\n```\n\n**Key points:**\n- Skill must exist in `plugin\u002Fskills\u002F` directory\n- Mention skill name to trigger invocation\n- Document skill purpose\n- Explain what skill provides\n\n### Hook Coordination\n\nDesign commands that work with plugin hooks:\n- Commands can prepare state for hooks to process\n- Hooks execute automatically on tool events\n- Commands should document expected hook behavior\n- Guide Claude on interpreting hook output\n\nSee `references\u002Fplugin-features-reference.md` for examples of commands that coordinate with hooks\n\n### Multi-Component Workflows\n\nCombine agents, skills, and scripts:\n\n```markdown\n---\ndescription: Comprehensive review workflow\nargument-hint: [file]\nallowed-tools: Bash(node:*), Read\n---\n\nTarget: @$1\n\nPhase 1 - Static Analysis:\n!`node ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Flint.js $1`\n\nPhase 2 - Deep Review:\nLaunch code-reviewer agent for detailed analysis.\n\nPhase 3 - Standards Check:\nUse coding-standards skill for validation.\n\nPhase 4 - Report:\nTemplate: @${CLAUDE_PLUGIN_ROOT}\u002Ftemplates\u002Freview.md\n\nCompile findings into report following template.\n```\n\n**When to use:**\n- Complex multi-step workflows\n- Leverage multiple plugin capabilities\n- Require specialized analysis\n- Need structured outputs\n\n## Validation Patterns\n\nCommands should validate inputs and resources before processing.\n\n### Argument Validation\n\n```markdown\n---\ndescription: Deploy with validation\nargument-hint: [environment]\n---\n\nValidate environment: !`echo \"$1\" | grep -E \"^(dev|staging|prod)$\" || echo \"INVALID\"`\n\nIf $1 is valid environment:\n  Deploy to $1\nOtherwise:\n  Explain valid environments: dev, staging, prod\n  Show usage: \u002Fdeploy [environment]\n```\n\n### File Existence Checks\n\n```markdown\n---\ndescription: Process configuration\nargument-hint: [config-file]\n---\n\nCheck file exists: !`test -f $1 && echo \"EXISTS\" || echo \"MISSING\"`\n\nIf file exists:\n  Process configuration: @$1\nOtherwise:\n  Explain where to place config file\n  Show expected format\n  Provide example configuration\n```\n\n### Plugin Resource Validation\n\n```markdown\n---\ndescription: Run plugin analyzer\nallowed-tools: Bash(test:*)\n---\n\nValidate plugin setup:\n- Script: !`test -x ${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fanalyze && echo \"✓\" || echo \"✗\"`\n- Config: !`test -f ${CLAUDE_PLUGIN_ROOT}\u002Fconfig.json && echo \"✓\" || echo \"✗\"`\n\nIf all checks pass, run analysis.\nOtherwise, report missing components.\n```\n\n### Error Handling\n\n```markdown\n---\ndescription: Build with error handling\nallowed-tools: Bash(*)\n---\n\nExecute build: !`bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fbuild.sh 2>&1 || echo \"BUILD_FAILED\"`\n\nIf build succeeded:\n  Report success and output location\nIf build failed:\n  Analyze error output\n  Suggest likely causes\n  Provide troubleshooting steps\n```\n\n**Best practices:**\n- Validate early in command\n- Provide helpful error messages\n- Suggest corrective actions\n- Handle edge cases gracefully\n\n---\n\nFor detailed frontmatter field specifications, see `references\u002Ffrontmatter-reference.md`.\nFor plugin-specific features and patterns, see `references\u002Fplugin-features-reference.md`.\nFor command pattern examples, see `examples\u002F` directory.\n","# Command Development for Claude Code\n\n## Overview\n\nSlash commands are frequently-used prompts defined as Markdown files that Claude executes during interactive sessions. Understanding command structure, frontmatter options, and dynamic features enables creating powerful, reusable workflows.\n\n**Key concepts:**\n- Markdown file format for commands\n- YAML frontmatter for configuration\n- Dynamic arguments and file references\n- Bash execution for context\n- Command organization and namespacing\n\n## Command Basics\n\n### What is a Slash Command?\n\nA slash command is a Markdown file containing a prompt that Claude executes when invoked. Commands provide:\n- **Reusability**: Define once, use repeatedly\n- **Consistency**: Standardize common workflows\n- **Sharing**: Distribute across team or projects\n- **Efficiency**: Quick access to complex prompts\n\n### Critical: Commands are Instructions FOR Claude\n\n**Commands are written for agent consumption, not human consumption.**\n\nWhen a user invokes `\u002Fcommand-name`, the command content becomes Claude's instructions. Write commands as directives TO Claude about what to do, not as messages TO the user.\n\n**Correct approach (instructions for Claude):**\n```markdown\nReview this code for security vulnerabilities including:\n- SQL injection\n- XSS attacks\n- Authentication issues\n\nProvide specific line numbers and severity ratings.\n```\n\n**Incorrect approach (messages to user):**\n```markdown\nThis command will review your code for security issues.\nYou'll receive a report with vulnerability details.\n```\n\nThe first example tells Claude what to do. The second tells the user what will happen but doesn't instruct Claude. Always use the first approach.\n\n### Command Locations\n\n**Project commands** (shared with team):\n- Location: `.claude\u002Fcommands\u002F`\n- Scope: Available in specific project\n- Label: Shown as \"(project)\" in `\u002Fhelp`\n- Use for: Team workflows, project-specific tasks\n\n**Personal commands** (available everywhere):\n- Location: `~\u002F.claude\u002Fcommands\u002F`\n- Scope: Available in all projects\n- Label: Shown as \"(user)\" in `\u002Fhelp`\n- Use for: Personal workflows, cross-project utilities\n\n**Plugin commands** (bundled with plugins):\n- Location: `plugin-name\u002Fcommands\u002F`\n- Scope: Available when plugin installed\n- Label: Shown as \"(plugin-name)\" in `\u002Fhelp`\n- Use for: Plugin-specific functionality\n\n## File Format\n\n### Basic Structure\n\nCommands are Markdown files with `.md` extension:\n\n```\n.claude\u002Fcommands\u002F\n├── review.md           # \u002Freview command\n├── test.md             # \u002Ftest command\n└── deploy.md           # \u002Fdeploy command\n```\n\n**Simple command:**\n```markdown\nReview this code for security vulnerabilities including:\n- SQL injection\n- XSS attacks\n- Authentication bypass\n- Insecure data handling\n```\n\nNo frontmatter needed for basic commands.\n\n### With YAML Frontmatter\n\nAdd configuration using YAML frontmatter:\n\n```markdown\n---\ndescription: Review code for security issues\nallowed-tools: Read, Grep, Bash(git:*)\nmodel: sonnet\n---\n\nReview this code for security vulnerabilities...\n```\n\n## YAML Frontmatter Fields\n\n### description\n\n**Purpose:** Brief description shown in `\u002Fhelp`\n**Type:** String\n**Default:** First line of command prompt\n\n```yaml\n---\ndescription: Review pull request for code quality\n---\n```\n\n**Best practice:** Clear, actionable description (under 60 characters)\n\n### allowed-tools\n\n**Purpose:** Specify which tools command can use\n**Type:** String or Array\n**Default:** Inherits from conversation\n\n```yaml\n---\nallowed-tools: Read, Write, Edit, Bash(git:*)\n---\n```\n\n**Patterns:**\n- `Read, Write, Edit` - Specific tools\n- `Bash(git:*)` - Bash with git commands only\n- `*` - All tools (rarely needed)\n\n**Use when:** Command requires specific tool access\n\n### model\n\n**Purpose:** Specify model for command execution\n**Type:** String (sonnet, opus, haiku)\n**Default:** Inherits from conversation\n\n```yaml\n---\nmodel: haiku\n---\n```\n\n**Use cases:**\n- `haiku` - Fast, simple commands\n- `sonnet` - Standard workflows\n- `opus` - Complex analysis\n\n### argument-hint\n\n**Purpose:** Document expected arguments for autocomplete\n**Type:** String\n**Default:** None\n\n```yaml\n---\nargument-hint: [pr-number] [priority] [assignee]\n---\n```\n\n**Benefits:**\n- Helps users understand command arguments\n- Improves command discovery\n- Documents command interface\n\n### disable-model-invocation\n\n**Purpose:** Prevent SlashCommand tool from programmatically calling command\n**Type:** Boolean\n**Default:** false\n\n```yaml\n---\ndisable-model-invocation: true\n---\n```\n\n**Use when:** Command should only be manually invoked\n\n## Dynamic Arguments\n\n### Using $ARGUMENTS\n\nCapture all arguments as single string:\n\n```markdown\n---\ndescription: Fix issue by number\nargument-hint: [issue-number]\n---\n\nFix issue #$ARGUMENTS following our coding standards and best practices.\n```\n\n**Usage:**\n```\n> \u002Ffix-issue 123\n> \u002Ffix-issue 456\n```\n\n**Expands to:**\n```\nFix issue #123 following our coding standards...\nFix issue #456 following our coding standards...\n```\n\n### Using Positional Arguments\n\nCapture individual arguments with `$1`, `$2`, `$3`, etc.:\n\n```markdown\n---\ndescription: Review PR with priority and assignee\nargument-hint: [pr-number] [priority] [assignee]\n---\n\nReview pull request #$1 with priority level $2.\nAfter review, assign to $3 for follow-up.\n```\n\n**Usage:**\n```\n> \u002Freview-pr 123 high alice\n```\n\n**Expands to:**\n```\nReview pull request #123 with priority level high.\nAfter review, assign to alice for follow-up.\n```\n\n### Combining Arguments\n\nMix positional and remaining arguments:\n\n```markdown\nDeploy $1 to $2 environment with options: $3\n```\n\n**Usage:**\n```\n> \u002Fdeploy api staging --force --skip-tests\n```\n\n**Expands to:**\n```\nDeploy api to staging environment with options: --force --skip-tests\n```\n\n## File References\n\n### Using @ Syntax\n\nInclude file contents in command:\n\n```markdown\n---\ndescription: Review specific file\nargument-hint: [file-path]\n---\n\nReview @$1 for:\n- Code quality\n- Best practices\n- Potential bugs\n```\n\n**Usage:**\n```\n> \u002Freview-file src\u002Fapi\u002Fusers.ts\n```\n\n**Effect:** Claude reads `src\u002Fapi\u002Fusers.ts` before processing command\n\n### Multiple File References\n\nReference multiple files:\n\n```markdown\nCompare @src\u002Fold-version.js with @src\u002Fnew-version.js\n\nIdentify:\n- Breaking changes\n- New features\n- Bug fixes\n```\n\n### Static File References\n\nReference known files without arguments:\n\n```markdown\nReview @package.json and @tsconfig.json for consistency\n\nEnsure:\n- TypeScript version matches\n- Dependencies are aligned\n- Build configuration is correct\n```\n\n## Bash Execution in Commands\n\nCommands can execute bash commands inline to dynamically gather context before Claude processes the command. This is useful for including repository state, environment information, or project-specific context.\n\n**When to use:**\n- Include dynamic context (git status, environment vars, etc.)\n- Gather project\u002Frepository state\n- Build context-aware workflows\n\n**Implementation details:**\nFor complete syntax, examples, and best practices, see `references\u002Fplugin-features-reference.md` section on bash execution. The reference includes the exact syntax and multiple working examples to avoid execution issues\n\n## Command Organization\n\n### Flat Structure\n\nSimple organization for small command sets:\n\n```\n.claude\u002Fcommands\u002F\n├── build.md\n├── test.md\n├── deploy.md\n├── review.md\n└── docs.md\n```\n\n**Use when:** 5-15 commands, no clear categories\n\n### Namespaced Structure\n\nOrganize commands in subdirectories:\n\n```\n.claude\u002Fcommands\u002F\n├── ci\u002F\n│   ├── build.md        # \u002Fbuild (project:ci)\n│   ├── test.md         # \u002Ftest (project:ci)\n│   └── lint.md         # \u002Flint (project:ci)\n├── git\u002F\n│   ├── commit.md       # \u002Fcommit (project:git)\n│   └── pr.md           # \u002Fpr (project:git)\n└── docs\u002F\n    ├── generate.md     # \u002Fgenerate (project:docs)\n    └── publish.md      # \u002Fpublish (project:docs)\n```\n\n**Benefits:**\n- Logical grouping by category\n- Namespace shown in `\u002Fhelp`\n- Easier to find related commands\n\n**Use when:** 15+ commands, clear categories\n\n## Best Practices\n\n### Command Design\n\n1. **Single responsibility:** One command, one task\n2. **Clear descriptions:** Self-explanatory in `\u002Fhelp`\n3. **Explicit dependencies:** Use `allowed-tools` when needed\n4. **Document arguments:** Always provide `argument-hint`\n5. **Consistent naming:** Use verb-noun pattern (review-pr, fix-issue)\n\n### Argument Handling\n\n1. **Validate arguments:** Check for required arguments in prompt\n2. **Provide defaults:** Suggest defaults when arguments missing\n3. **Document format:** Explain expected argument format\n4. **Handle edge cases:** Consider missing or invalid arguments\n\n```markdown\n---\nargument-hint: [pr-number]\n---\n\n$IF($1,\n  Review PR #$1,\n  Please provide a PR number. Usage: \u002Freview-pr [number]\n)\n```\n\n### File References\n\n1. **Explicit paths:** Use clear file paths\n2. **Check existence:** Handle missing files gracefully\n3. **Relative paths:** Use project-relative paths\n4. **Glob support:** Consider using Glob tool for patterns\n\n### Bash Commands\n\n1. **Limit scope:** Use `Bash(git:*)` not `Bash(*)`\n2. **Safe commands:** Avoid destructive operations\n3. **Handle errors:** Consider command failures\n4. **Keep fast:** Long-running commands slow invocation\n\n### Documentation\n\n1. **Add comments:** Explain complex logic\n2. **Provide examples:** Show usage in comments\n3. **List requirements:** Document dependencies\n4. **Version commands:** Note breaking changes\n\n```markdown\n---\ndescription: Deploy application to environment\nargument-hint: [environment] [version]\n---\n\n\u003C!--\nUsage: \u002Fdeploy [staging|production] [version]\nRequires: AWS credentials configured\nExample: \u002Fdeploy staging v1.2.3\n-->\n\nDeploy application to $1 environment using version $2...\n```\n\n## Common Patterns\n\n### Review Pattern\n\n```markdown\n---\ndescription: Review code changes\nallowed-tools: Read, Bash(git:*)\n---\n\nFiles changed: !`git diff --name-only`\n\nReview each file for:\n1. Code quality and style\n2. Potential bugs or issues\n3. Test coverage\n4. Documentation needs\n\nProvide specific feedback for each file.\n```\n\n### Testing Pattern\n\n```markdown\n---\ndescription: Run tests for specific file\nargument-hint: [test-file]\nallowed-tools: Bash(npm:*)\n---\n\nRun tests: !`npm test $1`\n\nAnalyze results and suggest fixes for failures.\n```\n\n### Documentation Pattern\n\n```markdown\n---\ndescription: Generate documentation for file\nargument-hint: [source-file]\n---\n\nGenerate comprehensive documentation for @$1 including:\n- Function\u002Fclass descriptions\n- Parameter documentation\n- Return value descriptions\n- Usage examples\n- Edge cases and errors\n```\n\n### Workflow Pattern\n\n```markdown\n---\ndescription: Complete PR workflow\nargument-hint: [pr-number]\nallowed-tools: Bash(gh:*), Read\n---\n\nPR #$1 Workflow:\n\n1. Fetch PR: !`gh pr view $1`\n2. Review changes\n3. Run checks\n4. Approve or request changes\n```\n\n## Troubleshooting\n\n**Command not appearing:**\n- Check file is in correct directory\n- Verify `.md` extension present\n- Ensure valid Markdown format\n- Restart Claude Code\n\n**Arguments not working:**\n- Verify `$1`, `$2` syntax correct\n- Check `argument-hint` matches usage\n- Ensure no extra spaces\n\n**Bash execution failing:**\n- Check `allowed-tools` includes Bash\n- Verify command syntax in backticks\n- Test command in terminal first\n- Check for required permissions\n\n**File references not working:**\n- Verify `@` syntax correct\n- Check file path is valid\n- Ensure Read tool allowed\n- Use absolute or project-relative paths\n\n## Plugin-Specific Features\n\n### CLAUDE_PLUGIN_ROOT Variable\n\nPlugin commands have access to `${CLAUDE_PLUGIN_ROOT}`, an environment variable that resolves to the plugin's absolute path.\n\n**Purpose:**\n- Reference plugin files portably\n- Execute plugin scripts\n- Load plugin configuration\n- Access plugin templates\n\n**Basic usage:**\n\n```markdown\n---\ndescription: Analyze using plugin script\nallowed-tools: Bash(node:*)\n---\n\nRun analysis: !`node ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fanalyze.js $1`\n\nReview results and report findings.\n```\n\n**Common patterns:**\n\n```markdown\n# Execute plugin script\n!`bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fscript.sh`\n\n# Load plugin configuration\n@${CLAUDE_PLUGIN_ROOT}\u002Fconfig\u002Fsettings.json\n\n# Use plugin template\n@${CLAUDE_PLUGIN_ROOT}\u002Ftemplates\u002Freport.md\n\n# Access plugin resources\n@${CLAUDE_PLUGIN_ROOT}\u002Fdocs\u002Freference.md\n```\n\n**Why use it:**\n- Works across all installations\n- Portable between systems\n- No hardcoded paths needed\n- Essential for multi-file plugins\n\n### Plugin Command Organization\n\nPlugin commands discovered automatically from `commands\u002F` directory:\n\n```\nplugin-name\u002F\n├── commands\u002F\n│   ├── foo.md              # \u002Ffoo (plugin:plugin-name)\n│   ├── bar.md              # \u002Fbar (plugin:plugin-name)\n│   └── utils\u002F\n│       └── helper.md       # \u002Fhelper (plugin:plugin-name:utils)\n└── plugin.json\n```\n\n**Namespace benefits:**\n- Logical command grouping\n- Shown in `\u002Fhelp` output\n- Avoid name conflicts\n- Organize related commands\n\n**Naming conventions:**\n- Use descriptive action names\n- Avoid generic names (test, run)\n- Consider plugin-specific prefix\n- Use hyphens for multi-word names\n\n### Plugin Command Patterns\n\n**Configuration-based pattern:**\n\n```markdown\n---\ndescription: Deploy using plugin configuration\nargument-hint: [environment]\nallowed-tools: Read, Bash(*)\n---\n\nLoad configuration: @${CLAUDE_PLUGIN_ROOT}\u002Fconfig\u002F$1-deploy.json\n\nDeploy to $1 using configuration settings.\nMonitor deployment and report status.\n```\n\n**Template-based pattern:**\n\n```markdown\n---\ndescription: Generate docs from template\nargument-hint: [component]\n---\n\nTemplate: @${CLAUDE_PLUGIN_ROOT}\u002Ftemplates\u002Fdocs.md\n\nGenerate documentation for $1 following template structure.\n```\n\n**Multi-script pattern:**\n\n```markdown\n---\ndescription: Complete build workflow\nallowed-tools: Bash(*)\n---\n\nBuild: !`bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fbuild.sh`\nTest: !`bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Ftest.sh`\nPackage: !`bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fpackage.sh`\n\nReview outputs and report workflow status.\n```\n\n**See `references\u002Fplugin-features-reference.md` for detailed patterns.**\n\n## Integration with Plugin Components\n\nCommands can integrate with other plugin components for powerful workflows.\n\n### Agent Integration\n\nLaunch plugin agents for complex tasks:\n\n```markdown\n---\ndescription: Deep code review\nargument-hint: [file-path]\n---\n\nInitiate comprehensive review of @$1 using the code-reviewer agent.\n\nThe agent will analyze:\n- Code structure\n- Security issues\n- Performance\n- Best practices\n\nAgent uses plugin resources:\n- ${CLAUDE_PLUGIN_ROOT}\u002Fconfig\u002Frules.json\n- ${CLAUDE_PLUGIN_ROOT}\u002Fchecklists\u002Freview.md\n```\n\n**Key points:**\n- Agent must exist in `plugin\u002Fagents\u002F` directory\n- Claude uses Task tool to launch agent\n- Document agent capabilities\n- Reference plugin resources agent uses\n\n### Skill Integration\n\nLeverage plugin skills for specialized knowledge:\n\n```markdown\n---\ndescription: Document API with standards\nargument-hint: [api-file]\n---\n\nDocument API in @$1 following plugin standards.\n\nUse the api-docs-standards skill to ensure:\n- Complete endpoint documentation\n- Consistent formatting\n- Example quality\n- Error documentation\n\nGenerate production-ready API docs.\n```\n\n**Key points:**\n- Skill must exist in `plugin\u002Fskills\u002F` directory\n- Mention skill name to trigger invocation\n- Document skill purpose\n- Explain what skill provides\n\n### Hook Coordination\n\nDesign commands that work with plugin hooks:\n- Commands can prepare state for hooks to process\n- Hooks execute automatically on tool events\n- Commands should document expected hook behavior\n- Guide Claude on interpreting hook output\n\nSee `references\u002Fplugin-features-reference.md` for examples of commands that coordinate with hooks\n\n### Multi-Component Workflows\n\nCombine agents, skills, and scripts:\n\n```markdown\n---\ndescription: Comprehensive review workflow\nargument-hint: [file]\nallowed-tools: Bash(node:*), Read\n---\n\nTarget: @$1\n\nPhase 1 - Static Analysis:\n!`node ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Flint.js $1`\n\nPhase 2 - Deep Review:\nLaunch code-reviewer agent for detailed analysis.\n\nPhase 3 - Standards Check:\nUse coding-standards skill for validation.\n\nPhase 4 - Report:\nTemplate: @${CLAUDE_PLUGIN_ROOT}\u002Ftemplates\u002Freview.md\n\nCompile findings into report following template.\n```\n\n**When to use:**\n- Complex multi-step workflows\n- Leverage multiple plugin capabilities\n- Require specialized analysis\n- Need structured outputs\n\n## Validation Patterns\n\nCommands should validate inputs and resources before processing.\n\n### Argument Validation\n\n```markdown\n---\ndescription: Deploy with validation\nargument-hint: [environment]\n---\n\nValidate environment: !`echo \"$1\" | grep -E \"^(dev|staging|prod)$\" || echo \"INVALID\"`\n\nIf $1 is valid environment:\n  Deploy to $1\nOtherwise:\n  Explain valid environments: dev, staging, prod\n  Show usage: \u002Fdeploy [environment]\n```\n\n### File Existence Checks\n\n```markdown\n---\ndescription: Process configuration\nargument-hint: [config-file]\n---\n\nCheck file exists: !`test -f $1 && echo \"EXISTS\" || echo \"MISSING\"`\n\nIf file exists:\n  Process configuration: @$1\nOtherwise:\n  Explain where to place config file\n  Show expected format\n  Provide example configuration\n```\n\n### Plugin Resource Validation\n\n```markdown\n---\ndescription: Run plugin analyzer\nallowed-tools: Bash(test:*)\n---\n\nValidate plugin setup:\n- Script: !`test -x ${CLAUDE_PLUGIN_ROOT}\u002Fbin\u002Fanalyze && echo \"✓\" || echo \"✗\"`\n- Config: !`test -f ${CLAUDE_PLUGIN_ROOT}\u002Fconfig.json && echo \"✓\" || echo \"✗\"`\n\nIf all checks pass, run analysis.\nOtherwise, report missing components.\n```\n\n### Error Handling\n\n```markdown\n---\ndescription: Build with error handling\nallowed-tools: Bash(*)\n---\n\nExecute build: !`bash ${CLAUDE_PLUGIN_ROOT}\u002Fscripts\u002Fbuild.sh 2>&1 || echo \"BUILD_FAILED\"`\n\nIf build succeeded:\n  Report success and output location\nIf build failed:\n  Analyze error output\n  Suggest likely causes\n  Provide troubleshooting steps\n```\n\n**Best practices:**\n- Validate early in command\n- Provide helpful error messages\n- Suggest corrective actions\n- Handle edge cases gracefully\n\n---\n\nFor detailed frontmatter field specifications, see `references\u002Ffrontmatter-reference.md`.\nFor plugin-specific features and patterns, see `references\u002Fplugin-features-reference.md`.\nFor command pattern examples, see `examples\u002F` directory.\n",{"name":5,"version":50,"description":7},"0.2.0","main","e970014d895eae2572d8c434d79f2c6acea22417","plugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fcommand-development",20,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc","https:\u002F\u002Fgithub.com\u002Fxiaoyuge886","2026-07-14 17:19:42",{"source":9,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add xiaoyuge886\u002Faigc --skill command-development",{"tool":64,"command":65},"bunx","bunx skills add xiaoyuge886\u002Faigc --skill command-development",{"tool":67,"command":68},"pnpm","pnpm dlx skills add xiaoyuge886\u002Faigc --skill command-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fcommand-development\u002FSKILL.md",true,[72,78,82,86,90,94,98,102,106,110],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"examples\u002Fplugin-commands.md","REFERENCE","参考文档",13989,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fcommand-development\u002Fexamples\u002Fplugin-commands.md",{"path":79,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":80,"sourceHtmlUrl":81},"examples\u002Fsimple-commands.md",8675,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fcommand-development\u002Fexamples\u002Fsimple-commands.md",{"path":83,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":84,"sourceHtmlUrl":85},"README.md",7651,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fcommand-development\u002FREADME.md",{"path":87,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fadvanced-workflows.md",13618,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fcommand-development\u002Freferences\u002Fadvanced-workflows.md",{"path":91,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fdocumentation-patterns.md",14971,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fcommand-development\u002Freferences\u002Fdocumentation-patterns.md",{"path":95,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Ffrontmatter-reference.md",9162,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fcommand-development\u002Freferences\u002Ffrontmatter-reference.md",{"path":99,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Finteractive-commands.md",20980,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fcommand-development\u002Freferences\u002Finteractive-commands.md",{"path":103,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Fmarketplace-considerations.md",16437,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fcommand-development\u002Freferences\u002Fmarketplace-considerations.md",{"path":107,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":108,"sourceHtmlUrl":109},"references\u002Fplugin-features-reference.md",14622,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fcommand-development\u002Freferences\u002Fplugin-features-reference.md",{"path":111,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":112,"sourceHtmlUrl":113},"references\u002Ftesting-strategies.md",14803,"https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fcommand-development\u002Freferences\u002Ftesting-strategies.md",[115,139,157,174,199,218],{"skillNo":116,"name":117,"nameZh":118,"description":119,"descriptionZh":120,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":121,"categories":122,"keywords":127,"publishedAt":45},"01M6C7NPNK167QMPERW14AY55J","skill-creator","技能创建与优化","Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.","创建新技能、修改和改进现有技能，并衡量技能性能。当用户想要从零开始创建技能、更新或优化现有技能、运行评估（evals）来测试技能、通过方差分析对技能性能进行基准测试，或优化技能描述以提高触发准确性时使用。","https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fskill-creator\u002Fskills\u002Fskill-creator\u002FSKILL.md",[123,124],{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},{"categoryNo":125,"categoryName":126,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",[128,129,130,43,131,132,133,134,135,33,136,137,138],"skill creator","variance analysis","evals","improve","analysis","benchmark","update","run","test","run evals","performance",{"skillNo":140,"name":141,"nameZh":142,"description":143,"descriptionZh":143,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":144,"categories":145,"keywords":152,"publishedAt":45},"01M6C7NKXRM77AMYXSQCX8S15A","investment-due-diligence-report","投资尽调报告生成","投资尽调报告专业生成工具。当用户需要撰写投资尽调报告、尽职调查报告、投资分析报告时使用此skill。支持处理Excel财务数据、PDF文档等多种格式数据源，自动生成包含执行摘要、业务分析、财务分析、风险提示、投资建议等核心章节的专业报告。无论用户明确要求\"写报告\"还是提到\"分析投资标的\"、\"评估项目\"、\"做DD\"等相关需求时，都应使用此skill。","https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fskill-creator\u002Fskills\u002Finvestment-due-diligence-report\u002FSKILL.md",[146,149],{"categoryNo":147,"categoryName":148,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BTV4QBQYRS1HWEVGR64N4J","金融投资分析",{"categoryNo":150,"categoryName":151,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BTV4RBGF5SFPS4M35EM7YQ","金融分析师",[153,154,155,156],"report","investment due diligence report","生成","文档",{"skillNo":158,"name":159,"nameZh":160,"description":161,"descriptionZh":162,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":163,"categories":164,"keywords":167,"publishedAt":45},"01M6C7NGS2K1NZQ3PR3GM7VMWT","skill-development","Claude 技能开发与创建","This skill should be used when the user wants to \"create a skill\", \"add a skill to plugin\", \"write a new skill\", \"improve skill description\", \"organize skill content\", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.","当用户想要\"创建技能\"、\"向插件添加技能\"、\"编写新技能\"、\"改进技能描述\"、\"组织技能内容\"，或需要有关技能结构、渐进式披露或 Claude Code 插件技能开发最佳实践的指导时，应使用此技能。","https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fskill-development\u002FSKILL.md",[165,166],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[30,168,35,169,170,171,34,33,42,172,131,173,40],"skill development","improve skill","plugins","content","plugin","claude code plugins",{"skillNo":175,"name":176,"nameZh":177,"description":178,"descriptionZh":179,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":180,"categories":181,"keywords":184,"publishedAt":45},"01M6C7NDRYM015B9B6T4YHY3NF","plugin-structure","Claude 插件结构搭建","This skill should be used when the user asks to \"create a plugin\", \"scaffold a plugin\", \"understand plugin structure\", \"organize plugin components\", \"set up plugin.json\", \"use ${CLAUDE_PLUGIN_ROOT}\", \"add commands\u002Fagents\u002Fskills\u002Fhooks\", \"configure auto-discovery\", or needs guidance on plugin directory layout, manifest configuration, component organization, file naming conventions, or Claude Code plugin architecture best practices.","当用户要求\"创建插件\"、\"搭建插件框架\"、\"理解插件结构\"、\"组织插件组件\"、\"设置 plugin.json\"、\"使用 ${CLAUDE_PLUGIN_ROOT}\"、\"添加命令\u002F智能体\u002F技能\u002F钩子\"、\"配置自动发现\"，或需要有关插件目录布局、清单配置、组件组织、文件命名规范或 Claude Code 插件架构最佳实践的指导时，应使用此技能。","https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fplugin-structure\u002FSKILL.md",[182,183],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[172,185,186,187,43,188,189,190,191,192,193,194,36,35,34,33,195,196,197,198],"Plugin Structure","plugin architecture","file naming conventions","auto","up","hooks","SET","components","discovery","manifest","architecture","component","configure","claude code plugin",{"skillNo":200,"name":201,"nameZh":202,"description":203,"descriptionZh":204,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":205,"categories":206,"keywords":209,"publishedAt":45},"01M6C7NAM6KNC9NT147RJ41V2N","plugin-settings","插件配置与状态管理","This skill should be used when the user asks about \"plugin settings\", \"store plugin configuration\", \"user-configurable plugin\", \".local.md files\", \"plugin state files\", \"read YAML frontmatter\", \"per-project plugin settings\", or wants to make plugin behavior configurable. Documents the .claude\u002Fplugin-name.local.md pattern for storing plugin-specific configuration with YAML frontmatter and markdown content.","当用户询问“插件设置”、“存储插件配置”、“用户可配置插件”、“.local.md 文件”、“插件状态文件”、“读取 YAML frontmatter”、“按项目划分的插件设置”，或希望让插件行为可配置时，应使用本技能。本技能介绍 .claude\u002Fplugin-name.local.md 模式，用于通过 YAML frontmatter 和 markdown 内容存储插件专属配置。","https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fplugin-settings\u002FSKILL.md",[207,208],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[210,172,211,212,213,42,214,215,216,217,37,171],"Plugin Settings","settings","documents","state","behavior","read","markdown content","markdown",{"skillNo":219,"name":220,"nameZh":221,"description":222,"descriptionZh":223,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":224,"categories":225,"keywords":228,"publishedAt":45},"01M6C7N79Y8P14GGCJRCM706EK","mcp-integration","MCP 服务器集成配置","This skill should be used when the user asks to \"add MCP server\", \"integrate MCP\", \"configure MCP in plugin\", \"use .mcp.json\", \"set up Model Context Protocol\", \"connect external service\", mentions \"${CLAUDE_PLUGIN_ROOT} with MCP\", or discusses MCP server types (SSE, stdio, HTTP, WebSocket). Provides comprehensive guidance for integrating Model Context Protocol servers into Claude Code plugins for external tool and service integration.","当用户要求“添加 MCP 服务器”、“集成 MCP”、“在插件中配置 MCP”、“使用 .mcp.json”、“设置 Model Context Protocol”、“连接外部服务”，提及“在 MCP 中使用 ${CLAUDE_PLUGIN_ROOT}”，或讨论 MCP 服务器类型（SSE、stdio、HTTP、WebSocket）时，应使用本技能。本技能提供将 Model Context Protocol 服务器集成到 Claude Code 插件中的全面指导，以实现外部工具和服务集成。","https:\u002F\u002Fgithub.com\u002Fxiaoyuge886\u002Faigc\u002Fblob\u002Fmain\u002Fplugins\u002Fclaude-plugins-official-main\u002Fplugins\u002Fplugin-dev\u002Fskills\u002Fmcp-integration\u002FSKILL.md",[226,227],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},[229,230,231,197,189,232,43,173,233,234,235,236,237,191,238,34,239,240,241,242],"integration","MCP","MCP Integration","integrate","context","add mcp","model","tool","websocket","server","connect","http","model context protocol","mcp server"]