| name | debug-review |
| description | This skill should be used when the user asks to "debug review skills", "validate generated skills", "check skill quality", "スキルをデバッグ", "生成スキルを検証", or automatically after build-skills completes. Validates that generated review skills are structurally correct, comprehensive, project-specific, and behaviorally sound.
|
Debug Review: Generated Skill Validation
Validate the quality of generated review skills in .claude/skills/.
Prerequisites: Generated skills exist in .claude/skills/ (from build-skills).
Validation Checks
Run ALL checks. Report results per-skill and as a summary.
1. Structure Validation
For each SKILL.md in .claude/skills/:
For the review entry point (review-* skill):
2. Cross-Reference Integrity
3. Completeness Validation
For each perspective:
Cross-check against knowledge-base:
4. Specificity Validation
Each perspective MUST contain project-specific content. Flag if:
- All check items could apply to ANY project (too generic)
- No file paths, module names, or component names from the actual project
- No references to knowledge-base findings
Score: count project-specific references per perspective. Flag if < 3.
5. Instruction Compliance Validation
For each skill, simulate execution by reading the SKILL.md and verifying:
6. Agent Delegation Validation
For the review entry point:
7. Skip Detection
Read each skill as if you were an LLM following instructions. Flag if:
8. Template Compliance Validation
Read the templates in ${CLAUDE_PLUGIN_ROOT}/skills/build-skills/references/templates/ and verify that generated skills include all MANDATORY elements from their corresponding template (orchestrator.md, technical-concern.md, domain-perspective.md, debate.md, consolidation.md).
Review entry point (review-*) MUST have:
Consolidation MUST have:
Each Technical Concern perspective MUST have:
If ANY mandatory element is missing: FAIL the validation and return to build-skills with the specific missing elements listed.
9. Technical Concern Coverage Validation
Verify that ALL 6 standard technical concerns exist as generated skills:
If ANY of the 8 are missing, this is a CRITICAL failure. These 8 are mandatory for all projects regardless of archetype.
Note: projects may ALSO have domain-specific perspectives in addition to these 8. The 8 perspectives and domain perspectives coexist — they are not alternatives.
Output
Validation Report
For each skill:
#### [skill-name]
- Structure: ✅/❌ [details]
- Completeness: ✅/❌ [details]
- Specificity: ✅/❌ [N project-specific references]
- Instruction Compliance: ✅/❌ [details]
- Agent Delegation: ✅/❌ [details] (review entry point only)
- Skip Risk: ✅/❌ [details]
- Template Compliance: ✅/❌ [missing mandatory elements] (review entry point, consolidation, perspectives)
- Technical Concern Coverage: ✅/❌ [missing concerns] (overall check)
Summary:
- Total skills validated: N
- Passed all checks: N
- Issues found: N (list with severity)
If issues found: return to build-skills with specific fix requests.
If all passed: report success.
Output location: If writing the validation report to a file, write it to meta/debug-review-YYYY-MM-DD.md at the PROJECT ROOT (next to config.md). Do NOT write to .claude/skills/meta/ — that directory is only for generated skill files.