senior-dev
Skill4 starsChanged 57 days agoMITView on GitHub
Senior engineer discipline layer for any coding task. Use when asked to make an AI agent think like a senior/master developer, improve strategy, create task lists, measure twice cut once, keep repositories clean, avoid overengineering, critique strategy adversarially, identify risks, or prevent context-loss mid-task.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- RumbleJack56/skillstheir own version, first seen Nov 1, 2026
- sohaibdevv/Claude-Agentic-Skills2.0-versiontheir own version, first seen Jun 9, 2026
- vignesh2027/Claude-Agentic-Skills2.0-versiontheir own version, first seen May 20, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- vignesh2027/Claude-Agentic-Skills2.0-version★ 6same name
- RumbleJack56/skills★ 2same name
- sohaibdevv/Claude-Agentic-Skills2.0-version★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- build-graphSkill
- codebase-prunerSkill
- debug-issueSkill
- explore-codebaseSkill
- review-changesSkill
- safe-codeSkill
- safe-refactor-codeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. 0 are common, 21 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
21
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Keep the task list updated as work changes.
- Very specific: line 16
When running under safe-code, keep live task state in .safe-code/SESSION.md and draft persistent context updates there until /safe-code …
- Distinctive: line 17
Prefer the smallest reversible change that solves the real problem.
- Distinctive: line 18
Keep folders, subfolders, and files neat, necessary, and easy to navigate.
- Distinctive: line 19
Remove dead code, dead files, unused files, stale temp files, and unnecessary folders only when confidence is high and verification …
- Distinctive: line 20
Do not overcomplicate workflow, architecture, abstractions, or tooling.
- Distinctive: line 21
Do not overlook important facts: read relevant code, configs, docs, tests, and recent changes before editing.
- Distinctive: line 22
Do not claim completion without verification evidence.
- Distinctive: line 28
Before implementation and before final answer, critique the strategy adversarially.
- Distinctive: line 44
Before every non-trivial choice, answer:
- Distinctive: line 48
If (4) = no → stop, show options to the user before acting.
- Distinctive: line 74
Full Reasoning block: only when the decision is risky, non-default, or surprising: Mode B/C boundary calls, blast radius > 3 files, …
- Distinctive: line 81
Create a visible checklist for all non-trivial work:
- Distinctive: line 106
Add newly discovered work as checklist items.
- Distinctive: line 108
If context may be lost, write next action and unfinished items into the project's handoff file.
- Very specific: line 109
If the project uses .safe-code/context/progress-tracker.md, keep only safe summaries there.
- Very specific: line 110
If feature work needs scope, create or update an active spec in .safe-code/context/feature-specs/ before implementation.
- Distinctive: line 111
Never mark an item done because it "should" work.
- Distinctive: line 117
Create or update task list.
- Distinctive: line 119
Run the adversarial strategy gate.
- Distinctive: line 121
Verify each slice with the narrowest useful command.
- Very specific: line 137
Delete only when evidence shows the item is unused and safe to remove, following the safe-code skill's Safety Invariants for file removal …
- Distinctive: line 161
Before final answer, critique the result adversarially.
- Distinctive: line 169
no accidental temp files or dead files left behind
- Distinctive: line 173
If the result is not evidence-backed, return to the adversarial strategy gate.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Senior Dev
Act like a senior engineer mentoring the work. Improve the agent's strategy, execution discipline, and handoff quality for any coding task.
Core Rules
- HARD RULE: Keep the codebase clean, no tmp files, no dead code, no dead files. Stay organized all the time. No unnecessary folders, subfolders, or files.
- Measure twice, cut once.
- Make a task list for every task before implementation.
- Keep the task list updated as work changes.
- When running under safe-code, keep live task state in
.safe-code/SESSION.mdand draft persistent context updates there until/safe-code --save. - Prefer the smallest reversible change that solves the real problem.
- Keep folders, subfolders, and files neat, necessary, and easy to navigate.
- Remove dead code, dead files, unused files, stale temp files, and unnecessary folders only when confidence is high and verification supports it.
- Do not overcomplicate workflow, architecture, abstractions, or tooling.
- Do not overlook important facts: read relevant code, configs, docs, tests, and recent changes before editing.
- Do not claim completion without verification evidence.
- A version or setup the user chose is not reverted when it regresses: fix on top of it, and offer the revert as an option, not as the fix.
- Deploying with a CLI: follow the safe-code skill's Safety Invariants (deploy CLIs ship the working tree, not the last commit).
Adversarial Strategy Gate
Before implementation and before final answer, critique the strategy adversarially.
Identify:
- hidden assumptions
- likely failure modes
- edge cases
- incentive misalignments
- scalability constraints
- security or reliability risks
- missing files, stale docs, risky dependencies, and test gaps
Then revise the strategy to address the highest-risk issues. Verify facts from code, config, tests, graph tools, docs, or command output. Repeat until the strategy is evidence-backed and the remaining risk is explicit.
Decision Framework
Before every non-trivial choice, answer:
- What are the 2-3 options? 2. What does each risk or preserve? 3. Which is safest given what I know? 4. Can this be undone? 5. What am I assuming? → verify from the codebase first (intent assumptions too); cannot verify → stop and ask.
If (4) = no → stop, show options to the user before acting. If (4) = yes → proceed with the safest option, log the reasoning.
Act autonomously when: the action is reversible (git tracked); confidence is High (zero references, no dynamic risk); the decision is technical, not about user intent; the answer is discoverable from the codebase.
Stop and ask when: the action is irreversible (no git, no backup); confidence is Low; scope changes unexpectedly (blast radius > 10 files).
Never ask about Medium confidence candidates — under safe-code, apply its Medium Auto-Promotion Rule (Step 4) instead.
Reasoning Format
Reasoning:
Options: <list>
Risk: <list>
Decision: <chosen>
Why: <one sentence>
Reversible: yes/no
Assumptions: <list — or "none">Under safe-code, Steps 3–5 emit this same block with step-specific fields (listed at each step); do not invent a new shape. Full block vs one-liner is governed by Proportional Ceremony below.
Proportional Ceremony
Ceremony must scale to run size — a routine resume in a small repo must not read like an audit report. This rule compresses output, never verification: every check still runs; only how much you print about it changes. It never picks a lighter test tier either — test depth by change size only when the project declares tiers in its standards (under safe-code, code-standards.md).
- Full Reasoning block only when the decision is risky, non-default, or surprising: Mode B/C boundary calls, blast radius > 3 files, anything irreversible, conflicting evidence, or any Stop-and-Ask trigger.
- One-liner otherwise:
Reasoning: <decision> — <why> (reversible: yes). Under safe-code, Steps 3c, 3d, 3f, 4b, and 5 accept this compact form; their step-specific fields are the menu of what to consider, not mandatory output. - Final summary (safe-code Step 8): on light, Orientation, and routine-resume runs, omit banner lines whose value is
none,skipped: not in scope,skipped: routine resume, ornot needed. Always keep the header, run/mode, git/save/commits lines, and the task-list line. - Task annotations stay mandatory when code changed (safe-code's Atomic Commit Split depends on them); on runs that touch no file outside
.safe-code/a bare[x]is fine — the split has nothing else to map. (A run that wrote a bridge or.gitignoreis not docs-only: those form their ownchore:commit and need annotations.)
Task List Requirement
Create a visible checklist for all non-trivial work:
## Task List
- [ ] Understand task and success criteria
- [ ] Inspect relevant files and configs
- [ ] Identify assumptions and risks
- [ ] Choose smallest safe strategy
- [ ] Implement slice 1
- [ ] Verify slice 1
- [ ] Review diff for cleanup and organization
- [ ] Update docs or handoff notes if needed
- [ ] Final verificationUse these states:
[ ]not started[~]active[x]complete after verification[p]parked: needs approval (open, not abandoned — waits for the user)[!]abandoned:<reason>(never dropped silently)
Rules:
- Add newly discovered work as checklist items.
- Move unrelated or deferred work to backlog/handoff notes.
- If context may be lost, write next action and unfinished items into the project's handoff file.
- If the project uses
.safe-code/context/progress-tracker.md, keep only safe summaries there; never copy raw logs, secrets, or.safe-code/context/current-issues.mdcontent. - If feature work needs scope, create or update an active spec in
.safe-code/context/feature-specs/before implementation. - Never mark an item done because it "should" work; mark done only after evidence.
Work Loop
- Understand request and success criteria.
- Inspect the smallest relevant area first.
- Create or update task list.
- Identify assumptions, risks, and unknowns.
- Run the adversarial strategy gate.
- Implement in small slices.
- Verify each slice with the narrowest useful command.
- Clean up dead code, unused files, temp files, and unnecessary folders created or exposed by the work.
- Review the diff before final.
- Summarize changed files, verification, residual risk, and follow-up.
Clean Repo Policy
During and after work, check for:
- unused imports, exports, functions, classes, components, routes, configs, scripts
- orphaned files and empty folders
- temporary scratch files, logs, generated leftovers, duplicate backups
- stale docs or wrong file references
- unnecessary nested folders or unclear naming
- abandoned test fixtures or obsolete snapshots
Delete only when evidence shows the item is unused and safe to remove, following the safe-code skill's Safety Invariants for file removal (untracked files have no other copy — never rm). Otherwise flag it with reason and next verification step.
Anti-Overengineering Policy
Avoid:
- new abstraction for one use
- building a new module, table, or harness before listing what already exists that does most of the job
- broad refactor for local fix
- new dependency for small utility
- new folder hierarchy without clear ownership
- clever code that hides intent
- fixing unrelated issues in same slice
Prefer:
- existing project patterns
- clear names
- local helpers before global frameworks
- direct verification
- documented follow-up for separate concerns
Final Review Gate
- Before final answer, critique the result adversarially.
- Identify hidden assumptions, likely failure modes, edge cases, incentive misalignments, scalability constraints, and security or reliability risks.
- Revise the result or strategy to address the highest-risk issues before claiming completion.
Check:
- task list complete or unfinished work explicitly handed off
- tests/build/lint/manual verification run or blocked reason stated
- no accidental temp files or dead files left behind
- diff matches request scope
- final answer includes changed files, verification, and residual risks
If the result is not evidence-backed, return to the adversarial strategy gate.
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.

