/skills:test-skillsfrom skills
Meta skill that applies ALL skills into sandboxes in dependency order, validates the full composition, fixes errors in the skill markdowns, and ports fixes back to skills/. Use this skill when you need to test all skills together, validate skill composition, run integration tests across skills, test dependency ordering, or verify that skills work when layered on top of each other.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Applies every skill into sandboxes in topological (dependency) order, validates each layer, fixes broken skill markdowns, and ports fixes back to skills/. This tests real-world skill composition — not just individual skills in isolation.
1. Scan all skills/*/SKILL.md — parse frontmatter, build dependency graph
2. Topologically sort skills, group into sandbox families
3. Present execution plan to user for approval
4. Per sandbox group: scaffold → layered implementation loop → report
5. Final report at test-results/report.md
┌────────────────────────────────────────────────────────────────────┐
│ TEST ALL SKILLS │
│ │
│ ┌──────────────┐ ┌──────────────┐ ┌─────────────────────┐ │
│ │ SCAN & PLAN │───▶│ INIT GROUP │───▶│ LAYERED IMPL LOOP │ │
│ │ parse deps, │ │ sandbox per │ │ │ │
│ │ topo sort, │ │ family │ │ for skill in order:│ │
│ │ group skills │ └──────────────┘ │ tag ──▶ impl │ │
│ └──────────────┘ │ ──▶ validate │ │
│ │ ──▶ on error: │ │
│ │ fix markdown │ │
│ │ revert to tag │ │
│ │ retry (max 3) │ │
│ │ ──▶ on success: │ │
│ │ tag + next │ │
│ └─────────────────────┘ │
│ │ │
│ ┌─────────▼───────────┐ │
│ │ REPORT │ │
│ │ test-results/ │ │
│ │ report.md │ │
│ └─────────────────────┘ │
└────────────────────────────────────────────────────────────────────┘
Each skill is git-tagged so any skill can be reverted independently.
skills/ directory with polished skill markdownssandbox/ directory (working area — created per group)scripts/validate.sh from this skill's directoryParse every saved skill, build the dependency graph, topologically sort, group into sandbox families, and present the execution plan.
Agent instructions:
ls skills/*/SKILL.md
Parse frontmatter from each skill:
name fielddependencies array (may be empty or missing)Build dependency graph — see DEPENDENCY_RESOLUTION.md:
skill → [dependencies]Known sandbox groups (based on current skills):
Group A — Next.js Family (~38 skills connected through dependency chains):
Skills that directly or transitively depend on create-next, env-config, docker, or connect through shared dependencies like auth, db, storage:
Layer 0 (no deps): create-next, docker, env-config
Layer 1: add-shadcn, add-pwa, add-seo, auth, db, storage, email, ai-core
Layer 2: auth-dev, storage-ui, media-bunny, realtime, image-editor, ai-chat,
payments, queue, ai-image-gen, ai-video-gen, ai-rag-ingest, ai-rag-viewer
Layer 3: cms, ai-tools, ai-reasoning, ai-rag-vectors,
embeddable-widget, voice-retell
Layer 4: ai-memory, ai-tasks, ai-artifacts, ai-generative-ui, ai-rag-chat, ai-mcp,
knowledge-sync
Layer 5: ai-rag-app
Group B — Standalone (skills with no deps that don't assume Next.js):
setup-lefthook, mcp-server, yt-dlp, lottie, react-flow, react-three-fiber, e2e,
env-from-1password, workflow
Note: e2e has no dependencies frontmatter but assumes a Next.js app exists. If it fails standalone, move it to Group A at the appropriate layer.
Before presenting the plan, validate catalog consistency so renamed/deleted skills are caught early.
Run:
# Skills on disk
DISK_SKILLS=$(ls -d skills/*/SKILL.md 2>/dev/null | sed 's|skills/||;s|/SKILL.md||' | sort)
# Skills listed in README markdown tables
README_SKILLS=$(rg -o '(?<=\\| `)[^`]+' README.md | sort)
# Skills listed in add-feature catalog bullets
ADD_FEATURE_SKILLS=$(rg -o '^- [a-z0-9-]+' skills/add-feature/SKILL.md | sed 's/^- //' | sort)
# Skill names referenced by scaffold DAG
DAG_SKILLS=$(jq -r '
[
.tiers[].layers[]?.skills[]?,
.tiers[].packs[]?[]?.skills[]?,
.extensionPoints[]?.id?
] | .[]
' skills/add-project/references/scaffold-dag.json | sort -u)
echo "---- On disk but missing from README ----"
comm -23 <(echo "$DISK_SKILLS") <(echo "$README_SKILLS")
echo "---- In README but missing on disk ----"
comm -13 <(echo "$DISK_SKILLS") <(echo "$README_SKILLS")
echo "---- In add-feature but missing on disk ----"
comm -13 <(echo "$DISK_SKILLS") <(echo "$ADD_FEATURE_SKILLS")
echo "---- On disk but missing from add-feature ----"
comm -23 <(echo "$DISK_SKILLS") <(echo "$ADD_FEATURE_SKILLS")
echo "---- In scaffold DAG but missing on disk ----"
comm -13 <(echo "$DISK_SKILLS") <(echo "$DAG_SKILLS")
If any of these lists are non-empty, treat as a catalog drift defect and fix docs before continuing skill composition tests.
Present plan to user — show:
Wait for user approval before proceeding. User may:
Agent instructions — repeat for each sandbox group:
# Group A uses: sandbox/
# Group B uses: sandbox-standalone/
# Group A (Next.js):
rm -rf sandbox/* sandbox/.* 2>/dev/null
cd sandbox && bunx create-next-app@latest . --typescript --tailwind --eslint --app --src-dir --no-import-alias --use-bun && cd ..
# Group B (Node.js / varies per skill):
rm -rf sandbox-standalone/* sandbox-standalone/.* 2>/dev/null
cd sandbox-standalone && bun init -y && cd ..
cd sandbox
git init
git add -A
git commit -m "baseline: scaffold for test-skills group-a"
cd ..
cd sandbox && bun run build && cd ..
Process skills in topological order within each group. Each skill builds on top of the previous ones.
Set tracking variables:
RESULTS = {} # skill → { status, attempts, fixes }
CURRENT_LAYER = 0
For each skill in topological order:
Create a git tag so this skill can be reverted independently:
cd sandbox
git tag "before-<SKILL_NAME>"
cd ..
Read the skill markdown and implement it on top of the current sandbox state.
Agent instructions:
skills/<SKILL_NAME>/SKILL.md completelyFile mapping: All skill paths are relative to sandbox root:
src/lib/auth.tsx → sandbox/src/lib/auth.tsxRun the validation script:
cd sandbox && ../scripts/validate.sh . && cd ..
Collect errors into structured format:
VALIDATION_ERRORS = [
{ source: "tsc", file: "...", line: N, message: "..." },
...
]
If VALIDATION_ERRORS is empty:
RESULTS[SKILL_NAME] = { status: "PASS", attempts: 1, fixes: [] }cd sandbox && git add -A && git commit -m "skill: <SKILL_NAME>" && git tag "after-<SKILL_NAME>" && cd ..If VALIDATION_ERRORS is not empty and attempts < 3:
If attempts >= 3:
RESULTS[SKILL_NAME] = { status: "FAIL", attempts: 3, fixes: [...], remaining_errors: [...] }cd sandbox && git reset --hard "before-<SKILL_NAME>" && git clean -fd && cd ..SKIPPED set with reason "dependency <SKILL_NAME> failed"CRITICAL: Analyze each error and determine what the skill markdown should have said to prevent it.
Agent instructions:
Classify each error — see ERROR_CLASSIFICATION.md
Determine the fix — What specific markdown change prevents this error?
Apply the fix directly to skills/<SKILL_NAME>/SKILL.md:
Composition-specific error types (beyond standard ERROR_CLASSIFICATION):
| Error Type | Description | Fix Location |
|---|---|---|
composition-conflict | Two skills create/modify the same file incompatibly | Later skill's Setup Steps — add merge instructions |
missing-import-from-dep | Skill imports from a dependency's file but path is wrong | Code snippet import paths |
type-mismatch-across-skills | Type exported by one skill doesn't match what another expects | Earlier or later skill's type definitions |
env-var-collision | Two skills use same env var name for different purposes | Environment Variables section |
route-conflict | Two skills register the same API route | Later skill's route path |
cd sandbox
git reset --hard "before-<SKILL_NAME>"
git clean -fd
cd ..
Record fixes: RESULTS[SKILL_NAME].fixes.push({ error_type, description })
When all skills in a layer are processed, verify the cumulative build still passes:
cd sandbox && ../scripts/validate.sh . && cd ..
If the validate.sh check fails with errors not attributable to any single skill, investigate composition issues between skills in this layer.
Also run all accumulated tests at layer boundaries:
cd sandbox && bun test 2>&1 && cd ..
If a test fails at the layer boundary that wasn't failing after individual skills, investigate composition issues between skills in this layer.
After each skill passes validation (Step 2d PASS branch), write tests for that skill's contribution:
Agent instructions:
mkdir -p sandbox/__tests__/<SKILL_NAME>
cd sandbox && bun test 2>&1
If a previously-passing test fails → composition regression detected:
composition-conflict error type (see Step 2e)Install vitest on first use (if not already installed):
cd sandbox && bun add -d vitest @testing-library/react @testing-library/jest-dom 2>/dev/null
Track test counts: RESULTS[SKILL_NAME].tests_written = N
Generate a comprehensive test report.
Agent instructions:
mkdir -p test-results
test-results/report.md:# Test All Skills — Report
**Date:** YYYY-MM-DD
**Total skills:** N
**Passed:** N | **Failed:** N | **Skipped:** N
## Summary
| Skill | Group | Layer | Status | Attempts | Fixes Applied | Tests Written |
|-------|-------|-------|--------|----------|---------------|---------------|
| create-next | A | 0 | PASS | 1 | 0 | 2 |
| auth | A | 1 | PASS | 2 | 1 | 5 |
| ... | ... | ... | ... | ... | ... | ... |
## Fixes Applied
### <skill-name> (attempt N)
**Error:** <classification> — <description>
**Fix:** <what was changed in the markdown>
**File:** skills/<skill-name>/SKILL.md
---
## Failed Skills
### <skill-name>
**Attempts:** 3
**Remaining errors:**
- <error details>
**Downstream impact:** [list of skipped skills]
---
## Composition Issues
Any cross-skill conflicts discovered during layered validation.
## Test Coverage
| Layer | Skills | Tests Written | Tests Passing |
|-------|--------|--------------|---------------|
| 0 | N | N | N |
| 1 | N | N | N |
| ... | ... | ... | ... |
| **Total** | **N** | **N** | **N** |
Regression tests caught: N (tests that failed due to composition conflicts)
---
## Recommendations
- Skills that need manual attention
- Dependency ordering suggestions
- Composition patterns that should be documented
Test All Skills — Complete!
Group A (Next.js): X/Y passed, Z failed
Group B (Standalone): X/Y passed, Z failed
Fixes applied: N total across M skills
Fixes ported back to skills/
Full report: test-results/report.md
If the topological sort detects a cycle:
If a skill lists a dependency that doesn't exist in skills/:
NAME depends on MISSING_DEPENDENCY which is not in skills/"Common shared files that multiple skills touch:
src/app/layout.tsx — many skills add providers heresrc/lib/db/schema.ts — database skills add tables.env.local — most skills add env varsnext.config.ts — some skills add configStrategy: Skills should use comment slots (// [skill-name]: description) to mark where they inject code. When implementing a skill that modifies a shared file, look for existing comment slots from dependency skills and inject at the right location.
Some Group B skills may fail because they implicitly assume a Next.js project despite having no declared dependencies. If a standalone skill fails with errors like "Cannot find module 'next/...'" or missing tsconfig.json paths:
create-next)create-next to its dependencies in the frontmatter as a fixskills/<name>/SKILL.mdskills/<name>/SKILL.mdtest-results/report.md with full resultsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mattwoodco/skills --plugin skillsOther plugins' skills for the same job
84 skills in this plugin
/add-featureParent skill for feature and project workflows. Use when the user wants to build a project, add a feature, polish a skill, test all skills, or browse the skill catalog. Routes to add-project (build project from idea), improve-skill (refine one skill in a sandbox), test-skills (validate full skill composition), or any child skill by name.
/add-projectEnd-to-end project builder: idea → spec → shell → ralph loop → secrets → report. SMS notification after every phase. Creates a project directory with symlinked skills and a ralph execution loop. Does NOT scaffold Next.js — ralph does that as step 1.1 of the plan. Use when the user says "build project", "build a project", "new project", "create project", "build from idea", "scaffold and notify", "spec a project", "plan a project", or "scaffold project".
/