Loading...
Loading...
This skill should be used when the user asks to "validate a plugin", "optimize plugin", "check plugin quality", "review plugin structure", or mentions plugin optimization and validation tasks.
npx skill4agent add fradser/dotclaude optimize-plugin| Tool | Style | Correct Format |
|---|---|---|
| Read, Write, Glob, Grep, Edit | Implicit | "Find files matching...", "Read each file..." |
| Bash | Implicit | "Run |
| Task | Implicit | "Launch |
| Skill | Explicit | "Load |
| AskUserQuestion | Explicit | "Use |
| TaskCreate | Explicit | "Use TaskCreate tool to track" |
plugin-name:component-name${CLAUDE_PLUGIN_ROOT}/examples/namedescriptioncolorallowed-toolsnamedescriptionuser-invocable: trueallowed-tools## Phase N: [Phase Name]## Background Knowledge## Initialization## Contextnamedescriptionuser-invocable: false| Component Type | user-invocable | Voice | Structure | Declared in |
|---|---|---|---|---|
| Agent | N/A | Descriptive (You are...) | Knowledge Base + Core Responsibilities + Approach | |
| Instruction Skill | | Imperative (Load...) | Phase-based (Goal + Actions) | |
| Knowledge Skill | | Declarative (is/are...) | Topic-based (concepts/patterns) | |
plugin.jsoncommandsplugin.jsonskillsrealpath.claude-plugin/plugin.jsoncommands/agents/skills/hooks/${CLAUDE_PLUGIN_ROOT}/examples/commands/.mdAskUserQuestionpython3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-plugin.py "$TARGET"--check=structure,manifest,frontmatter,tools,tokens--json-v, --verboseplugin-optimizer:plugin-optimizerAskUserQuestion.claude-plugin/plugin.json./reference.md${CLAUDE_PLUGIN_ROOT}${CLAUDE_PLUGIN_ROOT}/examples/python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate-plugin.py "$TARGET"README.md## Plugin Validation Report
### Plugin: [name]
Location: [absolute-path]
Version: [old] -> [new]
### Summary
[2-3 sentences with key statistics]
### Phase 1: Issues Detected
#### Critical ([count])
- `file/path` - [Issue description]
#### Warnings ([count])
- `file/path` - [Issue description]
### Phase 2: Fixes Applied
#### Structure Fixes
- [Fix description]
#### Template Conformance
- **Agents**: [Count] validated, [count] fixed
- **Instruction-type Skills**: [Count] validated, [count] fixed
- **Knowledge-type Skills**: [Count] validated, [count] fixed
#### Redundancy Fixes
- [Consolidations applied]
### Phase 3: Verification Results
- Structure validation: [PASS/FAIL]
- Manifest validation: [PASS/FAIL]
- Component validation: [PASS/FAIL]
- Tool patterns validation: [PASS/FAIL]
- Token budgets validation: [PASS/FAIL]
### Token Budget Analysis
- Skills analyzed: [count]
- Tier 1 (Metadata ~50): [OK count], [WARNING count]
- Tier 2 (SKILL.md ~500): [OK count], [WARNING count], [CRITICAL count]
- Tier 3 (References 2000+ typical): [total tokens]
### Component Inventory
- Commands: [count] found, [count] valid
- Agents: [count] found, [count] valid
- Skills: [count] found, [count] valid
### Remaining Issues
[Issues that couldn't be auto-fixed with explanations]
### Overall Assessment
[PASS/FAIL] - [Detailed reasoning]