From forge
Audit the existing `.claude/` setup — find gaps, outdated info, missing primitives, and fix them.
How this skill is triggered — by the user, by Claude, or both
Slash command
/forge:auditThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Audit the existing `.claude/` setup — find gaps, outdated info, missing primitives, and fix them.
Audit the existing .claude/ setup — find gaps, outdated info, missing primitives, and fix them.
/forge:setup instead).claude/ folder should exist for a meaningful auditRun these 6 phases in order.
CLAUDE.md exists. If not: "No CLAUDE.md found. Run /forge:setup to generate one, or /forge:audit is not applicable." — abort..claude/ folder exists. If not: warn that audit will be limited to CLAUDE.md only.CLAUDE.md fully into memory..claude/ recursively (primitives, agents, skills, prompts).Perform a thorough comparison between what CLAUDE.md/.claude/ claims and what the codebase actually contains.
Version Check:
package.json dependencies — compare versions against what CLAUDE.md states*.csproj — compare .NET version, NuGet packagesPrimitive Accuracy:
.claude/primitives/:
Agent Relevance:
.claude/agents/:
Skill Coverage:
.claude/skills/:
Structural Check:
Plan Freshness (if plans/ exists):
Generate a traffic-light report. Group findings by severity:
## Audit Report
### 🔴 Critical (must fix)
- **Next.js version mismatch** — CLAUDE.md says 15.x, package.json has 16.0.0
- **Missing primitive** — Project uses Biome but no BIOME_LINTING primitive exists
- **Dead agent** — sql-agent references MSSQL but no database dependency found
### 🟡 Warning (should fix)
- **Outdated design tokens** — CLAUDE.md lists --color-primary: #ea580c but app.css has #f97316
- **Missing skill** — firebase-auth is in dependencies but no Firebase Auth skill exists
- **Stale plan** — plans/v1/03-content/PLAN.md is marked TODO but Sanity schemas exist
### 🟢 OK
- TypeScript strict mode — correctly documented
- Tailwind v4 — correctly identified
- Git rules — match actual branch naming
- Frontend agents — up to date
- 12 of 15 primitives accurate
### Summary
| Category | 🔴 | 🟡 | 🟢 |
|----------|-----|-----|-----|
| Versions | 1 | 0 | 3 |
| Primitives | 1 | 0 | 5 |
| Agents | 1 | 0 | 2 |
| Skills | 0 | 1 | 3 |
| Structure | 0 | 1 | 4 |
| **Total** | **3** | **2** | **17** |
Ask the user how to proceed:
Found 3 critical issues and 2 warnings.
How would you like to proceed?
1. **Fix all** — automatically fix all critical and warning issues
2. **Fix critical only** — fix 🔴 issues, skip 🟡
3. **Selective** — let me choose which to fix
4. **Report only** — don't fix anything, just save the report
For each fix:
Fix types:
.claude/primitives/{NAME}.md using reference templates.claude/skills/{name}/SKILL.mdCheck if recommended companion plugins are installed:
market-lens commands — if project would benefit but not installed, suggest itcross-lens commands — if project is complex enough, suggest itUse recommendations from ${CLAUDE_PLUGIN_ROOT}/references/plugins.md.
## Plugin Recommendations
- market-lens — NOT installed. Recommended for your project type (Portfolio).
Install: `/plugin marketplace add shavidze/market-lens`
- cross-lens — NOT installed. Useful for complex feature planning.
Install: `/plugin marketplace add shavidze/cross-lens`
Print a final summary with before/after stats:
## Audit Complete
### Before
- 🔴 3 critical issues
- 🟡 2 warnings
- 🟢 17 items OK
### After
- 🔴 0 critical issues (3 fixed)
- 🟡 0 warnings (2 fixed)
- 🟢 22 items OK
### Changes Made
- Updated Next.js version in CLAUDE.md (15.x → 16.0.0)
- Created .claude/primitives/BIOME_LINTING.md
- Removed .claude/agents/sql-agent.md (no database detected)
- Updated design token --color-primary (#ea580c → #f97316)
- Created .claude/skills/firebase-auth/SKILL.md
Run `/forge:audit` again after major changes to keep your ecosystem fresh.
/forge:setup.claude/ folder has unexpected structure, audit what exists and note anomaliesnpx claudepluginhub shavidze/forge --plugin forgeGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.