Plugin Command Examples
Commandby davila7 · Added 5mo ago
Claude
Install
npx claude-code-templates@latest --command=cli-tool/components/skills/development/command-development/examples --yesAdd to Claude
claude mcp add plugin-command-examplesAbout
Plugin Command Examples
Practical examples of commands designed for Claude Code plugins, demonstrating plugin-specific patterns and features.
Table of Contents
- Simple Plugin Command
- Script-Based Analysis
- Template-Based Generation
- Multi-Script Workflow
- Configuration-Driven Deployment
- Agent Integration
- Skill Integration
- Multi-Component Workflow
- Validated Input Command
- Environment-Aware Command
1. Simple Plugin Command
Use case: Basic command that uses plugin script
File: commands/analyze.md
---
description: Analyze code quality using plugin tools
argument-hint: [file-path]
allowed-tools: Bash(node:*), Read
---
Analyze @$1 using plugin's quality checker:
!`node ${CLAUDE_PLUGIN_ROOT}/scripts/quality-check.js $1`
Review the analysis output and provide:
1. Summary of findings
2. Priority issues to address
3. Suggested improvements
4. Code quality score interpretation
Key features:
- Uses
${CLAUDE_PLUGIN_ROOT}for portable path - Combines file reference with script execution
- Simple single-purpose command
2. Script-Based Analysis
Use case: Run comprehensive analysis using multiple plugin scripts
File: commands/full-audit.md
---
description: Complete code audit using plugin suite
argument-hint: [directory]
allowed-tools: Bash(*)
model: sonnet
---
Running complete audit on $1:
**Security scan:**
!`bash ${CLAUDE_PLUGIN_ROOT}/scripts/security-scan.sh $1`
**Performance analysis:**
!`bash ${CLAUDE_PLUGIN_ROOT}/scripts/perf-analyze.sh $1`
**Best practices check:**
!`bash ${CLAUDE_PLUGIN_ROOT}/scripts/best-practices.sh $1`
Analyze all results and create comprehensiv
Tags
CodeAnalysisaitmplclaude-code-templates