riekelt/principal-engineer

11 skills340k installs8 starsGitHub

Install

npx skills add https://github.com/riekelt/principal-engineer

Skills in this repo

1Writing Unit TestsWriting unit tests is a rulebook for the craft of a single unit test. It asks for tests that check the public contract, one behavior per test, and names that state the claim. It covers deterministic setup with injected clocks and seeded randomness, mocks only at boundaries you do not own, value-based assertions, and a list of common mistakes. It relies on the principal-engineering skill as background.31kinstalls2Principal EngineeringPrincipal Engineering is the foundation skill for a set of sibling engineering skills. It tells an agent to check what the system actually does, write a four field checkpoint before a non-trivial change, and follow hard rules on error handling, migrations, secrets and destructive operations. A table routes each kind of task to the sibling skill that carries the depth.31kinstalls3Grounding Before CodingGrounding Before Coding makes an agent read the real code and data before it writes a spec, a fix or a first line. Each claim in the plan carries a quoted file and line, a query result or a command output. It also covers pure investigation, such as intermittent errors after a deploy, and ends with a map of touchpoints and invariants a change must keep.30.9kinstalls4Guarding ArchitectureGuarding Architecture encodes structural invariants as named contracts with a statement, a rationale and a mechanical guard. It splits the stable principles document from the volatile realization document that changes with the code. Violations lead to redesign, and a real exception goes through a written amendment or a dated waiver with the owner's sign-off.30.9kinstalls5Testing ChangesTesting Changes decides what tests a change owes and reviews whether a diff's tests are enough. A behavior change ships with test changes, and a bug fix ships a regression test shown red against the unfixed code and green against the fix. It also lists tests a change does not owe, such as tests of framework internals.30.9kinstalls6Verifying Before DoneThis skill makes verification the definition of done for any change. It applies before a completion claim such as done, fixed, or shipped. A solo builder reaches for it to stop an agent from declaring success based only on a passing unit suite.30.9kinstalls7Keeping One Source Of TruthThis skill enforces a one-fact-one-source rule for data, config, state, constants, and caches. It applies when a value could exist in two places or two sources already disagree. A solo builder reaches for it to stop copies from drifting apart as the project grows.30.9kinstalls8Handling FailuresThis skill governs error paths, catch blocks, fallbacks, defaults, and retries in any language. It applies when an exception is about to be caught or a failure could pass unnoticed. A solo builder reaches for it to keep production failures visible instead of hidden.30.9kinstalls9Scoping ChangesThis skill keeps the size of a change matched to its cause. It applies when scope drifts, a plan is quietly trimmed, or extra work starts with while you are at it. A solo builder reaches for it to avoid both gold-plating and half-finished deliveries.30.9kinstalls10Operating SafelyThis skill sets guards for actions that touch live systems, shared state, or irreversible data. It applies before deleting, overwriting, restarting, or editing shared config. A solo builder reaches for it before a risky command, when a mistake cannot be undone.30.9kinstalls11Adding DependenciesThis skill governs adding, updating, vetting, or removing a dependency such as a package, SDK, or GitHub action. It applies even to a small utility package. A solo builder reaches for it to keep the dependency tree small and every upgrade verified.30.8kinstalls

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.