planning-with-files
Optional persistent file-based planning for multi-phase or long-running work that benefits from recovery across sessions or…
Methods for an active engineering task: diff sizing, work sequencing, refactoring, debugging, commit stacks, verification, context pressure, recurring corrections, and tool choice.
$ npx -y skills add khaneliman/khanelinix --skill engineering-principles --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/engineering-principlesContext preview
The summary Claude sees to decide when to auto-load this skill.
Methods for an active engineering task: diff sizing, work sequencing, refactoring, debugging, commit stacks, verification, context pressure, recurring corrections, and tool choice.
name: engineering-principles description: "Methods for an active engineering task: diff sizing, work sequencing, refactoring, debugging, commit stacks, verification, context pressure, recurring corrections, and tool choice." license: Complete terms in LICENSE
Seventeen principles, one index. Match the situation to a row, then read that reference in full before applying it. Each reference is short.
| Principle | Apply when | | -------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | | [laziness-protocol](references/laziness-protocol.md) | Refactoring, sizing a diff, or tempted to add abstractions, layers, or signal threading. | | [model-the-domain](references/model-the-domain.md) | Stateful logic, repeated shape assumptions, or branching spread across files. | | [separate-before-serializing-shared-state](references/separate-before-serializing-shared-state.md) | Multiple writers contend for one slot, cache, or merged config value. | | [boundary-discipline](references/boundary-discipline.md) | Validation, error handling, parsing, framework adapters, or external data. | | [make-operations-idempotent](references/make-operations-idempotent.md) | Activation, migration, install, retry, or hook paths that can run twice. | | [type-system-discipline](references/type-system-discipline.md) | Types or signatures in a statically typed language. | | [subtract-before-you-add](references/subtract-before-you-add.md) | Sequencing an addition, refactor, or rewrite. Remove dead weight first. | | [migrate-callers-then-delete-legacy-apis](references/migrate-callers-then-delete-legacy-apis.md) | Replacing an API or call path. Migrate callers and delete the old path together. | | [minimize-reader-load](references/minimize-reader-load.md) | Code that requires too many layers or too much hidden state to understand. | | [fix-root-causes](references/fix-root-causes.md) | Debugging. Establish the failure and fix it where the behavior belongs. | | [sequence-verifiable-units](references/sequence-verifiable-units.md) | Multi-step work and commit or PR stacking. Verify each unit before the next. | | [verified-slice](references/verified-slice.md) | Implementing one reviewable, reversible unit with evidence and commit authority. | | [prove-it-works](references/prove-it-works.md) | After completing a task, before declaring done. Check the real artifact. | | [premise-review](references/premise-review.md) | Any review of a plan, diff, or PR. The one review contract: decide whether the change should exist before checking whether it works. | | [guard-the-context-window](references/guard-the-context-window.md) | Context fills up: large outputs, long files, repeated reads, fan-out planning. | | [encode-lessons-in-structure](references/encode-lessons-in-structure.md) | The same instruction gets written a second time, or a correction recurs. | | [build-the-lever](references/build-the-lever.md) | Repetition, error risk, or reproducibility justifies a tool beyond existing commands. |
Cite a principle only when it changed a concrete choice. A citation with no decision behind it means the reference was skipped.
Workflow skills reference principles by short name, for example "the prove-it-works principle". Resolve those names against this index.
Run packages directly with: Or install from the packages output. For example:
Optional persistent file-based planning for multi-phase or long-running work that benefits from recovery across sessions or…
Audit coding-agent sessions and mine cross-harness history for recurring corrections, skill-routing gaps, and harness faults. Use…
Design and audit agent instructions, skills, plugins, subagents, prompts, hooks, and provider configuration. Use for AI-tool…
Sketch interfaces, state, and module structure before code. Use for explicit design-led implementation or as a caller-owned…
Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena,…
Bevy workflows for ECS, migrations, first-party UI/input/rendering/assets/shaders, plugin selection, scenes, scheduling, hot…