Telling a coding agent to “think like a senior engineer” rarely changes its behavior in concrete ways. High-level advice blurs distinct habits like scoping the real problem or spotting failure modes before writing code. A recent project tackles this by decomposing engineering judgment into 23 small, self-contained Agent Skill modules.

Separating the Router from Specific Disciplines

The Senior-thinking-skills repository splits responsibilities between a router and focused disciplines. senior-engineer-mindset acts as the router, loading only the discipline files relevant to the current task. Examples include clarify-the-real-problem for questioning surface-level tickets, premortem for listing failure modes prior to implementation, surgical-change for keeping diffs minimal, and measure-before-optimizing for capturing baseline metrics first. Additional skills cover subagent parallelization and recording baseline Git SHAs.

Small Skill Files and Hard Runtime Boundaries

Loading a few 30-70 line skill files on demand is far easier to maintain than wrestling with a single 1,100-line mega-prompt. Each skill puts its trigger conditions in the description field and keeps the body strictly focused on concrete actions. The author also draws a clear boundary around what Markdown instructions cannot do: skills shape reasoning habits, whereas hard runtime guardrails belong in a separate Hook layer that blocks unsafe actions deterministically. Keeping judgment guidance separate from hard enforcement makes agent behavior much easier to debug.

Breaking monolithic agent instructions into composable decision units gives teams a clean pattern for steering coding agents across long-lived repositories.

Summary

  • Routing 30-70 line modular skills scales better than maintaining a single monolithic prompt
  • Separates soft reasoning guidance (‘Skills’) from deterministic runtime enforcement (‘Hooks’)
  • Keeps trigger timing in skill descriptions and concrete actions in skill bodies to avoid wasting prompt context