/principles:principle-encode-lessons-in-structurefrom principles
Apply when you catch yourself writing the same instruction a second time, or notice a recurring correction. Encode the rule as a lint, metadata flag, runtime check, or script instead of more text.
Ships in principles. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Encode recurring fixes in mechanisms (tools, code, metadata, automation) instead of textual instructions. Every error, human correction, and unexpected outcome is a learning signal. Capture it, route it, and close the loop.
Textual instructions are easy to miss. Structural mechanisms enforce the rule without cooperation.
Pattern: When you catch yourself writing the same instruction a second time:
Pick the strongest mechanism. When more than one mechanism would work, choose the strongest the situation allows (an unrepresentable state that cannot compile, then a lint or banned API that fails CI, then a canonical helper, then a runtime check), because agents copy whatever the surrounding code already does and a weaker guard becomes the next template. Enforce a boundary (what an agent may read, run, or push) with a hook or a deny rule, not a sentence.
Corollary: If the fix is structural, only use the structural fix. The instruction is the symptom.
When the human intervenes or tests fail, decide if it's a one-off or a pattern. Route it: one-off -> brain note, recurring fix -> skill, agent role, or lint rule, systemic issue -> principle. Close the loop: don't just record; apply now or create a concrete todo. The aim is agents that hand their past mistakes to the next task as roles and skills, so no agent repeats them.
Anti-patterns:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub atlas-analytics-lab/atlas --plugin principles24 skills in this plugin
/principle-attack-the-premiseApply when two or more fixes that share one premise have failed the same gate. Write the premise down and test it directly before you write another fix that assumes it./principle-boundary-disciplineApply when wiring validation, error handling, or framework adapters. Concentrate guards at system boundaries (CLI, config, network, external APIs); trust internal types and keep business logic in pure functions./principle-build-the-leverApply to any non-trivial work, not just bulk work: edits, migrations, analyses, checks. Build the tool that does it or proves it (codemod, script, generator, or a skill your subagents follow) instead of working by hand. The tool is the artifact a reviewer can rerun.Other plugins' skills for the same job