/faf:repo-maintainerfrom FAF Skills
Audits leftover test artifacts, dependencies, CI workflows, docs that have drifted from the code, git hygiene and FAF alignment, then writes a cleanup plan ordered by impact. Use when someone wants a repository cleaned up or checked: "clean up this repo", "audit the repo", "health check before the release". Changes nothing without approval.
Ships in FAF 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.
None: SKILL.md is the whole skill.
v: 1
needs: [git, "npx (for depcheck and npm outdated)", "faf-cli, for the FAF alignment check"]
reads: [the repository, dependencies, CI workflows, docs, git history]
writes:
- "the health report and the cleanup plan"
- "approved changes only, after an explicit yes"
network: ["registry.npmjs.org (read: depcheck, npm outdated)"]
publishes: false
done_when: "the health report and the cleanup plan, ordered by impact, are written; nothing changed without approval"
project: project.faf
"When brakes must work flawlessly, so must our repos."
Activate when:
/repo-maintainerSystematically checks 7 critical areas:
# Find test artifacts
*.test.js leftovers
*.spec.ts.snap orphans
.DS_Store files
tmp/, temp/, cache/ directories
coverage/ not in .gitignore
dist/, build/ committed by accident
node_modules/ somehow in git
Detection Strategy:
git status for untracked patterns# Check package health
npm outdated
npm audit
npx depcheck (find unused deps)
Check for pinned versions ([email protected] pattern)
Verify Dependabot config
Red Flags:
# Workflow consistency check
Node versions across all workflows
Test matrices (should match across ci.yml, release.yml)
Action versions (@v6 vs @v5)
Failed/skipped workflow runs
Secrets/tokens properly configured
Common Fixes:
# Context alignment check
README.md ↔ CLAUDE.md ↔ project.faf
CHANGELOG up to date with git tags
package.json version matches latest tag
Examples in README still work
Links not broken (404 checks)
FAF-Specific:
faf sync, one way)# .gitignore audit
Untracked files that should be ignored
*.config.mjs
*.faf test artifacts
.env.local, .env.development
Large files in git history (use git-filter-repo)
Binary files that don't belong
Pattern Recognition:
# Add to .gitignore based on artifacts found
*.faf.backup
.faf-dna.tmp
test-*.faf
# Quick health indicators
Dead code (unused exports via ts-prune or depcheck)
TODO/FIXME comments (track count, prioritize)
Commented code blocks (remove or document)
Console.log statements in production code
Hardcoded secrets/tokens
For FAF projects specifically:
# Check FAF alignment
.faf score accuracy (run faf score)
Sync alignment — .faf → CLAUDE.md (run `faf sync`; one way, writes faf's block only)
MCP server compliance (if applicable)
WJTTC test coverage (for faf-cli, MCP servers)
For MCP servers:
# MCP-specific checks
package.json has "mcpName" + server.json (MCP Registry)
Server implements required tools
Tests cover all tool endpoints
README has MCP installation instructions
Registry listing accurate (npm + MCP registry)
After audit, generate prioritized task list:
# REPO HEALTH REPORT: faf-cli
**Overall Score:** 85% ◇ Bronze
**Status:** Production-ready with minor cleanup needed
---
## CRITICAL (Fix Now)
### 1. Security: `open@10` breaking CI/CD
- **Impact:** Release pipeline failing
- **Fix:** Pin to `[email protected]` (fixed)
- **Effort:** 5 minutes
- **Auto-fix:** Available
---
## MEDIUM (This Week)
### 3. .gitignore Gaps
- **Issue:** `*.config.mjs`, `*.faf` test files not ignored
- **Fix:** Add patterns to .gitignore
- **Effort:** 1 minute
- **Auto-fix:** Available
```gitignore
*.config.mjs
test-*.faf
depcheck found unused packagesQuick wins: .gitignore + CHANGELOG entry + README links + a reviewed npm update.
This week: triage TODOs, remove unused deps, bump patch.
Monthly: full dependency audit, large-file scan, perf baseline.
I can automatically fix:
Run auto-fix? (yes/no)
---
### **Phase 3: Auto-Fix (Optional)**
For safe, non-breaking fixes:
```bash
# 1. Update .gitignore
cat >> .gitignore <<EOF
# Auto-added by repo-maintainer
*.faf.backup
.faf-dna.tmp
test-*.faf
EOF
# 2. Generate CHANGELOG entry from git log
git log <last-tag>..HEAD --pretty=format:"- %s (%h)" >> CHANGELOG.draft.md # review, then merge into CHANGELOG.md
# 3. Dependency updates — REVIEW REQUIRED: show the diff and run the tests before committing
npm update --save
# 4. Create cleanup branch
git checkout -b repo-maintenance/$(date +%Y-%m-%d)
git add .gitignore CHANGELOG.draft.md package.json package-lock.json
git commit -m "chore: repo maintenance - cleanup artifacts and update deps
- Add missing .gitignore patterns
- Draft CHANGELOG entry since the last tag
- Dependency updates (patch/minor, reviewed and tested)
Generated by /repo-maintainer skill"
# Quick health check
pwd
git status
git log --oneline -5
ls -la | head -20
Run checks in order of priority:
Create structured report with:
Ask user:
Never make changes without explicit approval.
# 1. MCP-specific structure
package.json has "mcpName" + server.json (MCP Registry)
Server exports via index.ts
Tools properly registered
# 2. Registry compliance
Registry listing accurate (npm + MCP registry)
README has MCP install instructions
Works with Claude Desktop config
# 3. Tool coverage
Each tool has tests
Each tool has description
Error handling implemented
# 4. Version alignment
package.json version
git tag version
MCP registry version
npm published version
CRITICAL: Use Official FAF Tiers for All Scoring
| Score | Tier | Symbol | Status |
|---|---|---|---|
| 100% | Trophy | ✪ | AI is optimized to code |
| 99% | Gold | ★ | Exceptional |
| 95% | Silver | ◆ | Top tier |
| 85% | Bronze | ◇ | Production ready |
| 70% | Green | ● | Solid foundation |
| 55% | Yellow | ● | Needs improvement |
| 1% | Red | ○ | Major work needed |
| 0% | White | ♡ | Empty |
The score is deterministic — same input → same score, every time. FAF doesn't lie.
Note: Big Orange is an HONOR, not a score or a badge. It recognizes sustained excellence across multiple criteria; it is never calculated from a single score.
Apply These Tiers to:
Examples:
95% Security → ◆ Silver
88% Overall → ◇ Bronze
78% Dependencies → ● Green
70% Git Hygiene → ● Green
40% CI/CD → ○ Red
100% Tests → ✪ Trophy
/wjttc-builder · /wjttc-tester - generate + run championship-grade tests before a release/faf-expert - master the .faf format + score the repo's AI-readinessUser: /repo-maintainer
Claude: Starting championship repo maintenance audit...
[Runs git status]
[Checks workflows]
[Scans for artifacts]
[Runs npm outdated]
[Checks .gitignore]
AUDIT COMPLETE
Overall Health: 85% ◇ Bronze
Critical Issues: 2
Medium Issues: 3
Low Priority: 5
Top Issues:
1. [critical] open@10 breaking CI/CD (auto-fixable)
2. [critical] Node 16 in workflows (EOL)
3. [medium] .gitignore missing *.faf.backup
4. [medium] 15 outdated dependencies
5. [medium] CHANGELOG missing v4.4.0
I can auto-fix items 1, 2, 3, and draft 5.
Would you like me to proceed? (yes/no)
User: yes
Claude: Fixing...
[Pins [email protected]]
[Updates workflows to the current Node LTS]
[Adds .gitignore patterns]
[Drafts CHANGELOG entry]
✓ Auto-fixes complete!
Remaining manual items:
- Review 15 dependency updates
- 3 TODO comments need review
Create cleanup branch? (yes/no)
"Pit crews service the car between every race. Your repos deserve the same attention."
Repo Maintainer - Championship Repository Hygiene "When brakes must work flawlessly, so must our repos."
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub wolfe-jam/faf-skills --plugin faf7 skills in this plugin
/faf-contextRuns `faf auto` to detect the stack, suggests the goal and six W's from what the repo already says and asks you to confirm each one, scores the project.faf 0–100%, and `faf sync` writes the facts into CLAUDE.md. Use when someone wants Claude to know their project from the first message: "improve my CLAUDE.md", "set up project context", "Claude keeps forgetting my stack". Takes a CLAUDE.md from GOOD (it exists) to BETTER (backed by a scored project.faf). The quickest path; faf-go fills the last gaps, faf-expert goes deep./faf-expertThe reference for the IANA-registered .faf format (application/vnd.faf+yaml): the 33 slots every .faf is scored on, scoring, MCP setup, `faf sync` to CLAUDE.md, `faf export` to AGENTS.md and other files, and project memory (.fafm) for the BEST rung. Use for questions about how FAF works: "how is my score calculated?", "what does slotignored mean?", "set up the FAF MCP server", "how does faf sync work with CLAUDE.md?". New to FAF? Start with faf-context./faf-goRuns `faf score`, then asks about each empty slot with AskUserQuestion, one question at a time, until the score reaches 100%. For the goal and six W's it offers a suggestion from the repo with its source, and writes only what the user confirms. Use when someone wants to fill in what only they know about their project: "interview me", "ask me what's missing", "get my project.faf to 100%". The answers go into project.faf; `faf sync` carries them into CLAUDE.md. Finishes the BETTER rung: every fact Claude can't detect, supplied by the person who knows it./faf-wizardDetects the stack, reads what already exists (README, docs, an existing CLAUDE.md or .cursorrules), writes project.faf and scores it. The stack comes from the repo; the goal and six W's are suggested from what exists, each with its source, and written only once the user confirms them. Use when someone wants project context set up for them: "set up Claude for this repo", "onboard AI to this codebase", "make me a project.faf". Works on new, legacy or inherited code. Turns the CLAUDE.md you already have into the structured facts behind it: GOOD to BETTER./wjttc-builderReads the codebase and sorts each part by how bad a failure would be, using the WJTTC tiers (Brake: data loss or security · Engine: wrong results · Aero: edge cases · Tyre: load over time · Pit: the release gate), then writes a test plan in that order and scaffolds the test files. Use when someone wants tests planned or written: "plan tests for this repo", "what should I test first?", "write a test suite for this". Plans and generates; wjttc-tester runs the suite and reports./wjttc-testerFirst checks that a failing test still means a real failure, then runs the plan, reproduces and root-causes each failure, and writes a WJTTC report sorted by severity (Brake, Engine, Aero, Tyre, Pit) with a verdict. Use when someone wants tests run or a bug chased down: "run the tests and tell me what broke", "reproduce this bug", "can I trust our CI?". Runs and reports; wjttc-builder plans and writes the tests.