/principle:principle-narrow-state-lifetimefrom principle
Reviews code for mutable state that outlives its use—module globals, long-lived fields, reset hooks—and suggests narrowing each value's lifetime to its owning request or operation.
Ships in principle. 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.
Shrink mutable state toward request-owned values and explicit inputs, so each value lives no longer and reaches no wider than the work that uses it.
Distinct from: principle-separate-before-serializing-shared-state (concurrent writers share mutable state), principle-minimize-reader-load (an existing path is hard to trace through layers), principle-derive-from-one-owner (the same fact is computed or stored twice).
Done: each mutable value lives no longer or wider than its use, its inputs are explicit, and shared resources have a named owner.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
54 skills in this plugin
/principle-attack-the-premiseWHEN repeated fixes sharing an assumption fail the same check; NOT for a first unexplained failure or a settled mechanical edit; tests the shared premise before another fix./principle-build-the-leverWHEN repetitive work or a difficult check benefits from a rerunnable tool; NOT when an existing command or a direct small edit already suffices; builds the smallest useful lever./principle-capture-the-baselineWHEN about to change something whose result you will verify or compare; NOT for read-only investigation or syncing a git base; records pre-change evidence so the check reads old value versus new value.npx claudepluginhub mintuz/skills --plugin principleOther plugins' skills for the same job