senior-engineer-mode
CLAUDE.md0 starsChanged 5 months agoMITView on GitHub
You are the AI assistant, and the user has opened this repo and asked you to set up "Senior Engineer Mode" for them. The user is probably not a developer. Do the steps below carefully, explain each one in one plain sentence as you go, and confirm at the end. Be safe: never overwrite the user's existing config. Always merge or append. Make a backup first. If a step is ambiguous or could lose the user's data, stop and ask.
- Installs packages
In this repository5 other files it gives its agents.
- rules/AGENTS.mdAGENTS.md
- buildSkill
- lets-hackSkill
- scopeSkill
- shipSkill
The file
We split this CLAUDE.md into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
If the user is just browsing and did not ask you to install, don't run these steps — ask what they'd like to do.
- Very specific: line 23
fail open and silently do nothing: If it's missing, warn the user plainly and tell them to install it (brew install jq on macOS, or their …
- Very specific: line 28
If ~/.claude/senior-engineer-mode/ already exists, tell the user it's already installed and ask whether to update or stop.
- Very specific: line 39
If ~/.claude/CLAUDE.md does not exist, create it with exactly:
- Very specific: line 48
If it does exist, append the single line @senior-engineer-mode/rules/AGENTS.md on its own line.
- Distinctive: line 58
Write the whole merged object back.
- Very specific: line 78
Run the whole flow on a task with /lets-hack, or one step with /scope /build /ship.
- Distinctive: line 89
If unsure, stop and ask before changing system files.
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Senior Engineer Mode — setup instructions for the AI assistant
You are the AI assistant, and the user has opened this repo and asked you to set up "Senior Engineer Mode" for them. The user is probably not a developer. Do the steps below carefully, explain each one in one plain sentence as you go, and confirm at the end.
Be safe: never overwrite the user's existing config. Always merge or append. Make a backup first. If a step is ambiguous or could lose the user's data, stop and ask.
If the user is just browsing and did not ask you to install, don't run these steps — ask what they'd like to do.
What you're installing
A senior-engineering workflow for coding: a small rules file, three automatic guardrail "hooks", a
"skeptic" reviewer agent, and five / commands organized around a 5-verb spine
(SCOPE → BUILD → VERIFY → REVIEW → SHIP). Background is in README.md and THE-SPINE.md here.
Before you start
- This repo folder is the source. Note its absolute path — call it
REPO(runpwd). - The install target is the user's Claude Code config folder:
~/.claude(expand~to the real home path). - Check for
jq(runcommand -v jq). The guardrails parse JSON withjq; without it they fail open and silently do nothing. If it's missing, warn the user plainly and tell them to install it (brew install jqon macOS, or their package manager on Linux) for the guardrails to actually work. You can still finish the install, but say it won't enforce untiljqis present. - Back up settings: if
~/.claude/settings.jsonexists, copy it to~/.claude/settings.json.bakand tell the user. - If
~/.claude/senior-engineer-mode/already exists, tell the user it's already installed and ask whether to update or stop.
Steps
1 · Put the pack where Claude Code can find it
- Copy from
REPOinto~/.claude/senior-engineer-mode/:THE-SPINE.md,rules/,hooks/,agents/,skills/, anduninstall.sh(so the user can cleanly reverse this later). - Make the guardrail scripts runnable:
chmod +x ~/.claude/senior-engineer-mode/hooks/*.sh
2 · Load the rules in every session
- If
~/.claude/CLAUDE.mddoes not exist, create it with exactly:# Global instructions Operate in Senior Engineer Mode. Work code changes through the spine: SCOPE → BUILD → VERIFY → REVIEW → SHIP. @senior-engineer-mode/rules/AGENTS.md - If it does exist, append the single line
@senior-engineer-mode/rules/AGENTS.mdon its own line. Do not rewrite the rest of the file.
3 · Turn on the guardrails (hooks) — MERGE, don't overwrite
- Open
REPO/install/settings.snippet.json; it has ahooksobject with three events (SessionStart,PreToolUse,Stop). - Open
~/.claude/settings.json(if missing, treat it as{}). - Merge those three events into the file's
hooksobject: keep every existing setting and every hook the user already has. In each command path, replace$HOMEwith the user's real absolute home path (e.g./Users/<name>), so the path is concrete. - Write the whole merged object back. Confirm it's still valid JSON.
4 · Register the commands and the reviewer
- Make
~/.claude/agents/if needed. Then symlink (preferred) or copy:~/.claude/senior-engineer-mode/agents/skeptic.md→~/.claude/agents/skeptic.md- each folder under
~/.claude/senior-engineer-mode/skills/(lets-hack,scope,build,ship) →~/.claude/skills/<name>
5 · Verify it actually works (do not skip)
- Confirm the suppression guard blocks a bad edit:
Expectprintf '%s' '{"tool_name":"Edit","tool_input":{"file_path":"/tmp/x.ts","new_string":"const x = y as any;"}}' \ | ~/.claude/senior-engineer-mode/hooks/block-suppressions.sh; echo "exit=$?"exit=2(blocked). If you getexit=0, recheck the path andchmod. - Confirm
~/.claude/settings.jsonis still valid JSON and still has the user's original keys.
6 · Tell the user, in plain words
- It's installed. They should start a brand-new chat in a coding project to see it (the guardrails load when a session starts).
- Run the whole flow on a task with
/lets-hack, or one step with/scope/build/ship. (For REVIEW, use theskepticagent or the built-in/code-review; VERIFY is the automatic "done" gate.) - To turn it off in a project, add a file
.senior-mode.jsoncontaining{ "enabled": false }. - To uninstall later, run
bash ~/.claude/senior-engineer-mode/uninstall.sh— it surgically removes only senior-mode's hooks, lines, links, and folder, backing upsettings.jsonfirst.
Your safety rules as the installer
- Never overwrite
settings.jsonorCLAUDE.md— merge or append. - Make the backup (step "Before you start") first.
- The guardrails only act in real code projects; they stay silent during writing/notes work.
- If unsure, stop and ask before changing system files.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

