A collection of custom Claude Code and Codex instructions, settings, skills, and agents for independent code review, QA testing, plan critique, code simplification, subagent orchestration, and session handoffs.
Codex equivalents can be found under codex/; see its README for Codex-specific setup and installation.
| Path | What it is |
|---|---|
CLAUDE.md |
Global Claude Code instructions — see Configuration |
settings.json |
Harness config: plugins, env, permissions — see Configuration |
skills/ |
6 slash-command skills — see Skills |
agents/ |
1 sandboxed subagent — see Agents |
codex/ |
Codex equivalents — see the Codex README |
Two harness-level files live at the repo root. Unlike the skills and agents, these affect every Claude Code session once installed, not individual commands. But they can be adapted for per-project requirements.
Global instructions Claude Code reads on every session startup. Drop-in replacement for (or content to merge into) ~/.claude/CLAUDE.md. Sections:
- Corrections Log — running list of one-liners the user has had to correct so Claude stops repeating them
- Code Quality — use correct data structures, fix root causes, error handling for realistic failure modes, no commented-out behavior switches
- Workflow — planning-mode gating for complex changes, author-critic review discipline, tests required alongside implementation
- Subagents & Orchestration — self-contained subagent briefs with an explicit mandate to be thorough and push back (even against the orchestrator), delegate only what you can evaluate, plans classify blocks
[subagent]/[main], automaticHANDOFF.mdvia/handoffwhen stopping for human input - Scientific Programming (Python/ML projects) — reproducibility (seeding, config-alongside-outputs), numerics (precision, guards, device/dtype propagation), invariant tests, logging
- Software Engineering Standards — dependency pinning + lockfiles, no binaries/secrets in git, CI + pre-commit
- Karpathy-style — think before coding, simplicity first, surgical changes, goal-driven execution
Claude Code harness configuration. Drop-in replacement for (or content to merge into) ~/.claude/settings.json.
The permissions block is designed as a safer substitute for --dangerously-skip-permissions. This settings.json keeps the same ergonomic "don't ask me every time" feel by putting all the common tools (Read, Edit, Write, Glob, Grep, Bash(*), WebFetch, WebSearch, NotebookEdit) in allow, but it still gates potentially important patterns behind ask so they require confirmation:
Bash(rm -rf *),rm -fr *,rm -r *Bash(git commit *),git push *,git reset --hard *,git rebase *Bash(git clean *),git branch -D *,git stash drop *,git stash clearBash(git checkout .),git restore .Bash(killall *),docker rm *,docker rmi *
Other keys:
enabledPlugins—code-review@claude-plugins-official(Anthropic's code review plugin) andcodex@openai-codex(OpenAI Codex CLI integration, registered viaextraKnownMarketplacesfromgithub:openai/codex-plugin-cc)env—CLAUDE_CODE_EFFORT_LEVEL=maxandCLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1. The latter is a temporary workaround for a regression in adaptive thinking (see this thread); remove it once the upstream fix landsoutputStyle—explanatory
These tools enforce an author-critic separation workflow: the session that writes code should never review it. A separate session runs these skills to provide genuinely independent feedback, avoiding the self-rationalization that happens when Claude reviews its own work in the same context.
Session A (author) → write code or plan
Session B (critic) → /review, /qa, /review-plan
Session A (author) → paste feedback, fix issues
Session C (critic) → re-review if changes were significant
| Command | Purpose | Edits Files? |
|---|---|---|
/review <files> |
4-phase code review: learn project, critique, write tests, validate | Yes |
/review-plan <plan.md> |
Evaluate a plan for correctness, completeness, risks, and gaps | No |
/qa [test-paths] |
Run tests, analyze failures, assess test quality | No |
/qa_subagent [test-paths] |
Same as /qa but hard-sandboxed via subagent (cannot edit files) |
No |
/simplify-code <files> |
Simplify code one edit at a time with safety guards and test validation | Yes |
/handoff |
Write HANDOFF.md capturing session state so a fresh session can resume |
Yes |
Senior staff engineer code review. Phases:
- Learn — Read project docs, test directory, tooling config, domain invariants
- Critique — Classify issues by severity (critical/high/medium/low) across correctness, edge cases, error handling, security, API design, and more
- Write tests — Tests that mirror the project's existing patterns, fixtures, and assertion style
- Validate — Run the test suite, fix any test failures, report results
Pre-implementation plan review. Evaluates against 9 dimensions:
- Correctness, completeness, ordering & dependencies, edge cases & error handling, feasibility, scope & focus, consistency, testability & verification, risks
Delivers a verdict: Ready / Ready with caveats / Needs revision / Needs rethink, plus clarifying questions for any ambiguities.
Independent QA testing. Discovers the test environment, runs the suite, classifies each failure (test bug / code bug / environment issue), and evaluates overall test quality across coverage, assertion quality, determinism, and test smells.
/qarestricts tools behaviorally (soft — allowed-tools list)/qa_subagentdelegates to theqa-testeragent with a hard tool restriction — the subagent physically cannot call Edit or Write
Methodical code simplification with safety guards. Identifies opportunities (extract duplication, replace manual implementations, reduce function length, remove dead code, etc.) while enforcing hard rules against removing precision code, safety checks, seeded RNGs, numerical tolerances, or diagnostic logging.
Each simplification is applied one at a time: edit, run tests, show change, wait for approval.
Session handoff writer. Produces a HANDOFF.md at the repo root that a fresh, zero-context session can resume from: goal, current state (verified vs. unverified work), key files, decisions made, open questions, ordered next steps with verification checks, and gotchas.
Unlike the other skills, /handoff is model-invocable (no disable-model-invocation): the CLAUDE.md orchestration rules tell Claude to invoke it on its own whenever it stops mid-task for human input or finishes a long autonomous stretch. Clearing context and resuming from HANDOFF.md in a new session is far cheaper than replaying a long conversation at uncached token prices. Never commit the generated file.
A read-only agent with a hard tool restriction (Read, Bash, Grep, Glob). Used by /qa_subagent or invocable directly mid-conversation by saying "use the qa-tester agent."
These merge into ~/.claude/skills/ and ~/.claude/agents/ by directory name and are safe to copy blindly unless you already have a skill or agent of the same name.
# Skills
cp -r skills/* ~/.claude/skills/
# Agents
cp -r agents/* ~/.claude/agents/Skills are discovered at session startup — start a new Claude Code session after installing for them to appear in / autocomplete.
Do not blind-copy these if you already have a ~/.claude/CLAUDE.md or ~/.claude/settings.json — a plain cp will overwrite your existing config. Diff first and merge by hand:
diff ~/.claude/CLAUDE.md CLAUDE.md
diff ~/.claude/settings.json settings.jsonIf you don't already have these files (fresh Claude Code install), pick one of the two install modes:
# Option A — copy (independent of the repo after install)
cp CLAUDE.md ~/.claude/CLAUDE.md
cp settings.json ~/.claude/settings.json
# Option B — symlink (repo stays the source of truth; `git pull` updates your config)
ln -s "$PWD/CLAUDE.md" ~/.claude/CLAUDE.md
ln -s "$PWD/settings.json" ~/.claude/settings.jsonMerge notes:
CLAUDE.md— most sections (Code Quality, Workflow, Scientific Programming, Software Engineering Standards, Karpathy-style) append cleanly; the Corrections Log is personal, merge entries individually. Subagents & Orchestration references/handoff, so installskills/handoff/alongside it.settings.json—enabledPlugins,extraKnownMarketplaces,env, andpermissions.askall merge additively. Be deliberate aboutpermissions.allow(widening it affects every session) andskipDangerousModePermissionPrompt(opts you out of the dangerous-mode warning entirely — only safe in combination with the fullasklist from this repo).
- All skills are project-agnostic — they discover conventions from CLAUDE.md, README, CI config, and existing tests rather than assuming any specific project structure.
/reviewand/simplify-coderun in the main context so you see edits in real-time.skills/README.mdhas a longer usage guide with examples and workflow walkthroughs.