Use before proposing a workaround for third-party code, answering from memory about what a library supports, patching the same area a second time, adding a dependency, or taking an action whose blast radius is unconsidered. Routes to the matching runbook. For TDD, SOLID, DDD, debugging, or code review, use those skills instead.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Senior Engineering Best Practices?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/joeblackwaslike-senior-engineering-best-practices)
---
name: senior-engineering-best-practices
description: >-
Use before proposing a workaround for third-party code, answering from memory about what a
library supports, patching the same area a second time, adding a dependency, or taking an action
whose blast radius is unconsidered. Routes to the matching runbook. For TDD, SOLID, DDD,
debugging, or code review, use those skills instead.
metadata:
last_updated: "2026-08-23"
---
# Senior Engineering Best Practices
Most agents don't have the instincts a senior engineer builds over a career — not because the
instincts are secret, but because nobody wrote them down where an agent would find them at the
right moment. This skill is that: a growing, incident-anchored collection of judgment calls a
senior engineer makes by reflex, plus a router to the skills that already cover the ones with a
home elsewhere.
**This skill does not duplicate what already exists.** If a situation is already covered by
`test-driven-development`, `solid-principles`, `domain-driven-design`, `code-architectures`, or a `superpowers` skill,
route there — see [Route to an existing skill](#route-to-an-existing-skill) below. This skill's
own `references/` hold only instincts that had no home before it existed.
## Route to a runbook here
| Situation | Read |
| --- | --- |
| About to propose a workaround/patch/shim for third-party code, or answer from memory about what a library/SDK/framework supports | [`references/verify-before-acting.md`](references/verify-before-acting.md) |
| A bug's symptom recurred after being "fixed," or you're about to patch the same area again | [`references/progressive-root-cause-discipline.md`](references/progressive-root-cause-discipline.md) |
| You found the real root cause and fix — now decide where else it applies | [`references/extract-and-propagate-the-real-fix.md`](references/extract-and-propagate-the-real-fix.md) |
| Deciding how much ceremony/caution an action deserves | [`references/blast-radius-judgment.md`](references/blast-radius-judgment.md) |
| About to write new code, or code is showing a smell | [`references/prior-art-and-code-smells.md`](references/prior-art-and-code-smells.md) |
| Considering adding a third-party dependency | [`references/dependency-judgment.md`](references/dependency-judgment.md) |
| Writing code that could fail in production | [`references/observability-instinct.md`](references/observability-instinct.md) |
| Code touches a loop, a query, pagination, or I/O on a hot path | [`references/performance-pattern-matching.md`](references/performance-pattern-matching.md) |
| A bug just got fixed — is it a one-off or a systemic gap? | [`references/fix-the-process-not-just-the-instance.md`](references/fix-the-process-not-just-the-instance.md) |
**Planning high-stakes infrastructure or architecture?** No single runbook covers this — read
`blast-radius-judgment`, `prior-art-and-code-smells`, `dependency-judgment`, and
`observability-instinct` together; each contributes one facet (risk scaling, not reinventing what
already exists, dependency cost, and designing in debuggability before it ships).
## Route to an existing skill
Don't duplicate — these situations already have a home:
| Situation | Already covered by |
| --- | --- |
| Ambiguous requirements / new feature design | `superpowers:brainstorming` |
| Writing a feature or bugfix | `superpowers:test-driven-development` |
| Any bug, test failure, unexpected behavior — the mechanics of investigating it | `superpowers:systematic-debugging` |
| About to claim a task complete | `superpowers:verification-before-completion` |
| Receiving code review feedback | `superpowers:receiving-code-review` |
| Class/interface/module design | `agent-skills:solid-principles` |
| Domain modeling | `agent-skills:domain-driven-design` |
| System architecture (layers, CQRS, event sourcing, services) | `agent-skills:code-architectures` |
| Auth/crypto/input-validation/secrets/external APIs | `security-review` |
| Editing an existing skill, runbook, or instruction file (`SKILL.md`, `AGENTS.md`, `CLAUDE.md`) | `agent-skills:agent-instructions` (`references/editing-discipline.md`) |
| Creating a brand-new skill from nothing | `superpowers:writing-skills` |
## Red flags — stop and reconsider
- "This library doesn't support X." → Verify. You probably haven't checked the current docs yet.
See `verify-before-acting.md`.
- "I already fixed this once." → If the symptom is back, the first fix addressed a symptom, not
the cause. See `progressive-root-cause-discipline.md`.
- "That was verified in an earlier investigation." → An old "verified" claim that's currently
blocking a fix is a hypothesis to re-test, not settled fact. See
`progressive-root-cause-discipline.md`.
- "The fix is merged." → Merged is not deployed. Verify the artifact actually running, not just
the source. See `progressive-root-cause-discipline.md`.
- "I fixed it here, that's done." → If the same defect shape exists in three other places, "done"
means auditing all of them, not just the one you started with. See
`extract-and-propagate-the-real-fix.md`.
- "It has a passing test." → A passing test proves the test data shape works, not that production
data has that shape. See `progressive-root-cause-discipline.md`.
- "I'll just add this dependency, it's small." → Check maintenance burden and removal cost first.
See `dependency-judgment.md`.
- "It'll throw an error if it fails, that's enough." → Will the error say what was expected vs.
what happened, to someone with no context, later? See `observability-instinct.md`.
## Growth protocol
A new runbook is added here only once there's a real incident to anchor it — grep or cite the
transcript, PR, or postmortem where its absence caused a failure, write the runbook, link it from
the table above. This mirrors the RED→edit→GREEN discipline in
`agent-skills:agent-instructions`'s `references/editing-discipline.md` — read that before adding
or revising a runbook here. No speculative runbooks — an unanchored "best practice" is exactly
the kind of padding this skill exists to avoid producing.