Skill Reviewing
Provides comprehensive validation of Claude Code skills and agents against:
- Plugin Storage Conventions (NORMATIVE)
- Agent Tool Use Best Practices
- Architecture Guidelines v0.5
Capabilities
This skill orchestrates three specialized review agents, each focusing on a distinct concern:
| Agent |
Focus |
Source Document |
skill-metadata-storage-review |
Frontmatter & persistence |
PLUGIN-STORAGE-CONVENTIONS.md |
skill-implementation-review |
Code mechanics & security |
agent-tool-use-best-practices.md |
skill-architecture-review |
Design patterns & structure |
claude-code-skills-agents-guidelines-0.4.md |
Agent Delegation
All three agents are invoked via Agent Runner for parallel execution:
Metadata & Storage Reviewer
Validates:
- YAML frontmatter (name, version, description)
- Version consistency with registry.yaml
- Storage paths (logs, settings, outputs)
- Secret handling
- Documentation completeness
Returns: {success, data: {checks_performed, checks_passed, warnings, errors}, error}
Implementation Reviewer
Validates:
- JSON fencing
- Hook implementation (Python preferred)
- Dependency declarations
- Security patterns
- Cross-platform compatibility
Returns: {success, data: {checks_performed, checks_passed, warnings, errors}, error}
Architecture Reviewer
Validates:
- Two-tier skill/agent separation
- Response contract compliance
- Single responsibility principle
- Agent size and complexity
- File organization
Returns: {success, data: {checks_performed, checks_passed, warnings, errors}, error}
Orchestration Pattern
When user requests a review:
Determine target
- Parse user input to identify what to review
- Resolve to absolute path if needed
- Determine target_type: "agent", "skill", or "package"
Invoke agents in parallel
Use Agent Runner to invoke all three reviewers concurrently with parameters:
For skill-metadata-storage-review:
{
"target_type": "<agent|skill|package>",
"target_path": "/absolute/path/to/target",
"package_name": "<package-name-if-applicable>",
"check_registry": true,
"registry_path": ".claude/agents/registry.yaml"
}
For skill-implementation-review:
{
"target_path": "/absolute/path/to/target",
"check_hooks": true,
"check_dependencies": true,
"check_security": true,
"manifest_path": "manifest.yaml"
}
For skill-architecture-review:
{
"target_type": "<agent|skill|package>",
"target_path": "/absolute/path/to/target",
"check_two_tier": true,
"check_contracts": true,
"check_naming": true,
"registry_path": ".claude/agents/registry.yaml"
}
Aggregate results
- Collect fenced JSON from all three agents
- Parse and merge findings
- Group by severity: errors, warnings, info
- Organize by concern area (metadata, implementation, architecture)
Format report
Present findings to user in this structure:
## Review Summary: [package-name]
✅ Metadata & Storage: X checks passed, Y warnings, Z errors
⚠️ Implementation: X checks passed, Y warnings, Z errors
✅ Architecture: X checks passed, Y warnings, Z errors
### Critical Issues (must fix)
[List all errors with file:line and suggested actions]
### Warnings (should fix)
[List all warnings with suggestions]
### Info (optional improvements)
[List all info-level findings]
Usage Examples
Review entire package:
/skill-reviewing sc-managing-worktrees
Review specific agent:
/skill-reviewing .claude/agents/sc-worktree-create.md
Review skill:
/skill-reviewing .claude/skills/managing-worktrees/
Review during development:
Review the skill I just created in .claude/skills/my-new-skill/
Error Handling
If Any Reviewer Fails
- Report which reviewer failed and why
- Include partial results from successful reviewers
- Suggest corrective action (e.g., "Registry file not found at .claude/agents/registry.yaml")
- Do not fail entire review if one agent has issues
If All Reviewers Return No Issues
- Congratulate user on clean implementation
- Show summary: "All X checks passed across metadata, implementation, and architecture"
- Optionally suggest next steps (testing, documentation improvements)
If Target Not Found
- Return clear error message
- Suggest correct paths for common targets
- Examples:
- Agents:
.claude/agents/<name>.md
- Skills:
.claude/skills/<name>/SKILL.md
- Packages:
packages/<name>/
Notes
- Parallel Execution: All three agents run independently in isolated contexts
- Structured Output: Each agent returns fenced JSON for reliable parsing
- Read-Only: No agent modifies files; this is analysis only
- Comprehensive: Covers three orthogonal concerns for complete validation
- Actionable: Every finding includes suggested_action for quick fixes
Related Documentation
1---2name: skill-reviewing3description: Comprehensive review of Claude Code skills and agents against v0.5 guidelines. Validates metadata, implementation, and architecture. Use when reviewing existing packages or during skill development.4---5
6# Skill Reviewing
7
8Provides comprehensive validation of Claude Code skills and agents against:
9- Plugin Storage Conventions (NORMATIVE)
10- Agent Tool Use Best Practices
11- Architecture Guidelines v0.5
12
13## Capabilities
14
15This skill orchestrates three specialized review agents, each focusing on a distinct concern:
16
17| Agent | Focus | Source Document |
18|-------|-------|-----------------|
19| `skill-metadata-storage-review` | Frontmatter & persistence | PLUGIN-STORAGE-CONVENTIONS.md |
20| `skill-implementation-review` | Code mechanics & security | agent-tool-use-best-practices.md |
21| `skill-architecture-review` | Design patterns & structure | claude-code-skills-agents-guidelines-0.4.md |
22
23## Agent Delegation
24
25All three agents are invoked via Agent Runner for parallel execution:
26
27### Metadata & Storage Reviewer
28**Validates:**
29- YAML frontmatter (name, version, description)
30- Version consistency with registry.yaml
31- Storage paths (logs, settings, outputs)
32- Secret handling
33- Documentation completeness
34
35**Returns:** `{success, data: {checks_performed, checks_passed, warnings, errors}, error}`
36
37### Implementation Reviewer
38**Validates:**
39- JSON fencing
40- Hook implementation (Python preferred)
41- Dependency declarations
42- Security patterns
43- Cross-platform compatibility
44
45**Returns:** `{success, data: {checks_performed, checks_passed, warnings, errors}, error}`
46
47### Architecture Reviewer
48**Validates:**
49- Two-tier skill/agent separation
50- Response contract compliance
51- Single responsibility principle
52- Agent size and complexity
53- File organization
54
55**Returns:** `{success, data: {checks_performed, checks_passed, warnings, errors}, error}`
56
57## Orchestration Pattern
58
59When user requests a review:
60
611. **Determine target**
62 - Parse user input to identify what to review
63 - Resolve to absolute path if needed
64 - Determine target_type: "agent", "skill", or "package"
65
662. **Invoke agents in parallel**
67 Use Agent Runner to invoke all three reviewers concurrently with parameters:
68
69 **For skill-metadata-storage-review:**
70 ```json
71 {
72 "target_type": "<agent|skill|package>",
73 "target_path": "/absolute/path/to/target",
74 "package_name": "<package-name-if-applicable>",
75 "check_registry": true,
76 "registry_path": ".claude/agents/registry.yaml"
77 }
78 ```
79
80 **For skill-implementation-review:**
81 ```json
82 {
83 "target_path": "/absolute/path/to/target",
84 "check_hooks": true,
85 "check_dependencies": true,
86 "check_security": true,
87 "manifest_path": "manifest.yaml"
88 }
89 ```
90
91 **For skill-architecture-review:**
92 ```json
93 {
94 "target_type": "<agent|skill|package>",
95 "target_path": "/absolute/path/to/target",
96 "check_two_tier": true,
97 "check_contracts": true,
98 "check_naming": true,
99 "registry_path": ".claude/agents/registry.yaml"
100 }
101 ```
102
1033. **Aggregate results**
104 - Collect fenced JSON from all three agents
105 - Parse and merge findings
106 - Group by severity: errors, warnings, info
107 - Organize by concern area (metadata, implementation, architecture)
108
1094. **Format report**
110 Present findings to user in this structure:
111
112 ```
113 ## Review Summary: [package-name]
114
115 ✅ Metadata & Storage: X checks passed, Y warnings, Z errors
116 ⚠️ Implementation: X checks passed, Y warnings, Z errors
117 ✅ Architecture: X checks passed, Y warnings, Z errors
118
119 ### Critical Issues (must fix)
120 [List all errors with file:line and suggested actions]
121
122 ### Warnings (should fix)
123 [List all warnings with suggestions]
124
125 ### Info (optional improvements)
126 [List all info-level findings]
127 ```
128
129## Usage Examples
130
131**Review entire package:**
132```
133/skill-reviewing sc-managing-worktrees
134```
135
136**Review specific agent:**
137```
138/skill-reviewing .claude/agents/sc-worktree-create.md
139```
140
141**Review skill:**
142```
143/skill-reviewing .claude/skills/managing-worktrees/
144```
145
146**Review during development:**
147```
148Review the skill I just created in .claude/skills/my-new-skill/
149```
150
151## Error Handling
152
153### If Any Reviewer Fails
154- Report which reviewer failed and why
155- Include partial results from successful reviewers
156- Suggest corrective action (e.g., "Registry file not found at .claude/agents/registry.yaml")
157- Do not fail entire review if one agent has issues
158
159### If All Reviewers Return No Issues
160- Congratulate user on clean implementation
161- Show summary: "All X checks passed across metadata, implementation, and architecture"
162- Optionally suggest next steps (testing, documentation improvements)
163
164### If Target Not Found
165- Return clear error message
166- Suggest correct paths for common targets
167- Examples:
168 - Agents: `.claude/agents/<name>.md`
169 - Skills: `.claude/skills/<name>/SKILL.md`
170 - Packages: `packages/<name>/`
171
172## Notes
173
174- **Parallel Execution:** All three agents run independently in isolated contexts
175- **Structured Output:** Each agent returns fenced JSON for reliable parsing
176- **Read-Only:** No agent modifies files; this is analysis only
177- **Comprehensive:** Covers three orthogonal concerns for complete validation
178- **Actionable:** Every finding includes suggested_action for quick fixes
179
180## Related Documentation
181
182- [Design Document](../../docs/design/skill-review-system.md) — Complete specification
183- [Architecture Guidelines v0.5](../../docs/claude-code-skills-agents-guidelines-0.4.md) — Source guidelines
184- [Plugin Storage Conventions](../../docs/PLUGIN-STORAGE-CONVENTIONS.md) — NORMATIVE storage rules
185- [Tool Use Best Practices](../../docs/agent-tool-use-best-practices.md) — Implementation patterns