/britts-agent-skills:repairing-project-setupfrom Britt's Agent Skills
Audits a repo's agent setup against the setting-up-a-project spec and repairs gaps without rebuilding. Use when CLAUDE.md/AGENTS.md is thin, stale, or has placeholder text, or when agents behave inconsistently.
Ships in Britt's Agent 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.
The setting-up-a-project skill defines what a correctly configured project looks like. This skill checks a real repo against that target state and repairs the delta.
Core principle: repair the delta, never rebuild. The existing files record decisions the user already made. Your job is to bring them in line with what setting-up-a-project would generate, keeping every decision already recorded.
setting-up-a-project run failed or was interrupted partwayCLAUDE.md or AGENTS.md exists but is thin, stale, or missing sections{{PLACEHOLDER}} text, an AGENTS.md symlink, an AGENT.md (singular), documented commands that fail, the two instruction files disagreeing, agents behaving inconsistently in the reposetting-up-a-project has changed since this project was set up, and the project should catch upworking-on-an-issue checklist)CLAUDE.md, no AGENTS.md, no rule files): run setting-up-a-project itself - the interview matters and there is nothing to preserve.setting-up-a-project, do not convert it uninvited. Report the differences and ask.Read the current setting-up-a-project SKILL.md - via the Skill tool, or from the installed plugin's skill directory. It is the source of truth. The audit table below is a fast index of its requirements; if the two ever disagree, the skill file wins - it evolves, this table can lag.
The canonical rule files sit next to that SKILL.md: TDD.rules.md, git-commit-rules.md, CLAUDE-specific-fuckups.md. If you cannot find them locally, fetch:
https://raw.githubusercontent.com/britt/agent-skills/refs/heads/main/rules/TDD.rules.mdhttps://raw.githubusercontent.com/britt/agent-skills/refs/heads/main/rules/CLAUDE-specific-fuckups.mdhttps://raw.githubusercontent.com/britt/agent-skills/refs/heads/main/skills/setting-up-a-project/git-commit-rules.mdRun every check and record PASS / FAIL / N-A. Do not start fixing mid-audit; a full picture first prevents piecemeal edits that miss cross-file drift.
| # | Check | How |
|---|---|---|
| 1 | CLAUDE.md exists with the sections from the skill's "Finished Files" list (Overview, Tech Stack, Commands, Development Practices; Layout / Environment / Boundaries / CI-CD as applicable) | read headings |
| 2 | AGENTS.md exists and is a real file | test -L AGENTS.md && echo "symlink - defect" |
| 3 | No AGENT.md (singular) - no agent reads it | ls AGENT.md fails |
| 4 | AGENTS.md has Required Reading, Non-Negotiables, and Maintaining This File sections | read headings |
| 5 | AGENTS.md carries no Claude Code-isms | `grep -nE '@[[:alnum:]] |
| 6 | No unfilled placeholders anywhere | grep -Fn '{{' CLAUDE.md AGENTS.md TDD.rules.md returns nothing |
| 7 | TDD.rules.md at project root, template banner removed, structurally matching the canonical template | diff against canonical; only placeholder values and the banner should differ |
| 8 | CLAUDE.md points at TDD.rules.md in prose and via @TDD.rules.md | grep |
| 9 | Commit rules present verbatim in both CLAUDE.md and AGENTS.md | compare against canonical git-commit-rules.md |
| 10 | CLAUDE-specific-fuckups.md at root, byte-identical to canonical, referenced from CLAUDE.md and not from AGENTS.md | diff + grep |
| 11 | VERIFICATION_PLAN.md exists; CLAUDE.md has a Verification section with @VERIFICATION_PLAN.md; it appears in AGENTS.md Required Reading | grep |
| 12 | Every command in the Commands table actually runs | run each one |
| 13 | CLAUDE.md and AGENTS.md agree on commands, stack, layout, and boundaries | read both, side by side |
| 14 | CI/CD Practices section present iff the repo uses GitHub Actions | ls .github/workflows/ |
| 15 | .claude/settings.json command allowlist | note only - optional, consent required |
Fix only the FAIL rows, under these rules:
CLAUDE.md says something setting-up-a-project would not have written but it is a project fact, it stays.TDD.rules.md, the commit rules, and CLAUDE-specific-fuckups.md by copying from the canonical source and filling placeholders - nothing else. If the project has no linter or build step, fill that placeholder with an honest value (echo "no linter configured - update this line when one is added"), do not delete the rule sections that mention it.setting-up-a-project documents (e.g. 90%/85% coverage) and record every assumption for the final report.VERIFICATION_PLAN.md is not optional. Missing means write it, with the writing-verification-plans skill if available. A young project gets scenarios scoped to what exists today - not a skipped file..claude/settings.json needs consent. Offer it if missing; in an autonomous session, recommend it in the report instead of writing it.Re-run the entire audit table - every row must now be PASS or N-A, including the ones that passed before your edits (a repair can break a neighbor). Then run setting-up-a-project's own final verification step (its step 9).
Report: each check as before → action → after, plus every assumption made. If the audit was clean at step 2, say so and change nothing - a clean audit is a valid result.
| Excuse | Reality |
|---|---|
| "The project is too young for honest verification scenarios" | writing-verification-plans handles nascent projects. Scope scenarios to what exists. Skipping leaves AGENTS.md telling agents to read a file that isn't there. |
| "This rule section doesn't apply here, I'll delete it" | Fill the placeholder with an honest value instead. Pruned copies drift from canonical and can never be diffed again. |
| "The existing CLAUDE.md is messy - cleaner to rewrite it" | A rewrite destroys recorded decisions. Merge. |
| "The obvious defects are fixed, that's surely all of them" | Drift lives in the subtle rows: verbatim diffs, cross-file agreement, commands that run. Every row, every time. |
| "I'll just run the full setting-up-a-project interview again" | That interrogates the user about facts the repo and existing files already answer. Audit and repair instead; fall back to the full skill only when nothing exists. |
| "It passed before my edit, no need to re-check" | Repairs break neighbors - a fixed command row can desync AGENTS.md. Re-run the whole table. |
Write over a CLAUDE.md or AGENTS.md you haven't readCLAUDE.md and forgetting AGENTS.md must independently agree with itAGENTS.md as "close enough" - it ships @ imports to agents that read them as dead textpackage.json / Makefile / CIdiff against the canonical copysetting-up-a-project used to sayWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
project-setup, agent-configuration, claude-md, agents-md, setup-repair
2 plugins in one repository ship this exact skill · first indexed Sep 1, 2026
32 skills in this plugin
/architecture-diagrammingUse when the user asks for an architecture diagram, says 'show me the system architecture' or 'diagram the components', or during project planning - generates GitHub-compatible Mermaid flowcharts showing components, layers, subgraph boundaries, and data flows/at-risk-detectionUse when asked about project health, stale or blocked issues, deadline risk, or scope creep - scans GitHub issues and PRs with heuristics (staleness, blocked labels, milestone dates, size, unassigned high-priority) and produces a severity-ranked at-risk report/build-faq-from-issuesUse when building or updating an FAQ from closed GitHub issues, documenting recurring support questions, or reducing repeat questions - extracts common questions from resolved issues and generates a categorized FAQ document with synthesized answers and source linksnpx claudepluginhub britt/agent-skills --plugin britts-agent-skillsOther plugins' skills for the same job