/pauls-skills:engineering-principlesfrom pauls-skills
Seven working principles for building and maintaining software with agents - prove it works against the real artifact, fix root causes not symptoms, test behavior not implementation, encode repeated lessons in structure, subtract before you add, type discipline, and validate at boundaries. Use when debugging, writing or reviewing tests, finishing a task and about to say it's done, refactoring, designing types or data models, adding validation or error handling, or when the same correction comes up twice.
Ships in pauls-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Seven short principles. Read the section that matches what you're doing; you don't need all seven every time.
| Doing this | Read |
|---|---|
| About to say "done" | Prove it works |
| Debugging | Fix root causes |
| Writing, changing, or keeping a test | Test behavior, not implementation |
| Giving or receiving the same instruction twice | Encode lessons in structure |
| Adding a feature, refactoring, rewriting | Subtract before you add |
| Designing types, props, data models | Type discipline |
| Adding validation, error handling, parsing | Validate at boundaries |
Verify every task by checking the real thing directly. Not a proxy, not a self-report, not "it compiles", not "the tests pass" when the tests don't exercise the change.
Unverified work has unknown correctness. Indirect checks (a file's timestamp, a subagent saying it finished, an old screenshot) feel cheaper than looking, but acting on a wrong inference costs far more.
verify-<app> skill, if it has one, is the way in.When debugging, trace every symptom to its root cause and fix it there.
Symptom fixes pile up. Each workaround makes the system harder to reason about, and the real bug stays.
A test calls the code the way its users do and asserts the exact result they see. Rewrite or delete any test that would still pass if every imported function returned undefined or a wrong value.
These shapes fail that check:
toBeDefined, toBeTruthy, not.toThrow, toBeGreaterThan(0).toHaveBeenCalled, not.toHaveBeenCalled, toBeUndefined, toEqual([]).expect(f(a)).toBe(f(a)).Fix: call the subject with one concrete input and assert the literal output or effect. For a mock, assert the payload it received. For an absence, also assert the presence on another input. For a constant, test the code that reads it.
Keep relational checks across tables (a key exists in both) and *.test-d.ts type tests.
When you catch yourself writing the same instruction a second time, or the user corrects the same mistake twice, encode the rule as a type, lint, hook, runtime check, or script instead of more text. Prose gets skipped; a failing build doesn't.
If the lesson needs judgment and can't be encoded, make the instruction more prominent and add an example of the failure.
If the fix is structural, use only the structural fix. The instruction was the symptom. The /correct skill runs this process across a whole repo.
When changing a system, remove complexity first, then build.
Make the compiler reject impossible states, mixed-up values, and unhandled cases. TypeScript syntax for each rule is in the typescript-best-practices skill.
{ completed: boolean; completedAt?: Date } allows completed: true with no date. Model { kind: "open" } | { kind: "done"; at: Date }. If you can write a comment explaining when a combination of fields is valid, split it into a union.UserId and WidgetId are both strings but shouldn't be interchangeable.any, as, or ! is a latent crash. Trace it back to the boundary and validate there.!, a cast, or a "should never happen" throw marks a type that's too weak. Fix that spot, then stop.Put validation, type narrowing, and error handling at system boundaries. Trust internal code. Business logic lives in pure functions; the shell around it is thin.
Scattered validation is noisy, redundant, and gives a false sense of safety. Logic tangled into framework wiring can't be tested without the framework.
Two questions settle most cases. "Is this data crossing a boundary right now?" If not, the check is redundant. "Could this be a pure function the shell just calls?" If yes, extract it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ops-pivers/claude-skills --plugin pauls-skills41 skills in this plugin
/aim-higherTake a task, research how top practitioners in its field work, push it to go deeper across altitude, depth, range and verification, grill the user until the plan is settled, then do the work and prove it worked with real measurements./animateBuild an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations./Other plugins' skills for the same job