/principle-encode-lessons-in-structure
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.
Claude Code
$ npx -y skills add cursor/plugins --skill principle-encode-lessons-in-structure --agent claude-code
Codex
$ npx skills add cursor/plugins --skill principle-encode-lessons-in-structure -a codex -y
Cursor
$ npx skills add cursor/plugins --skill principle-encode-lessons-in-structure -a cursor -y
Gemini CLI
$ npx skills add cursor/plugins --skill principle-encode-lessons-in-structure -a gemini-cli -y
GitHub Copilot
$ npx skills add cursor/plugins --skill principle-encode-lessons-in-structure -a github-copilot -y
OpenCode
$ npx skills add cursor/plugins --skill principle-encode-lessons-in-structure -a opencode -y
Windsurf
$ npx skills add cursor/plugins --skill principle-encode-lessons-in-structure -a windsurf -y
SKILL.md
principle-encode-lessons-in-structure.SKILL.mdname: principle-encode-lessons-in-structure description: "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." disable-model-invocation: true
Encode Lessons in Structure
If the lesson needs judgment and cannot be encoded, make the instruction more prominent and add an example of the failure mode.
**Corollary:** If the fix is structural, only use the structural fix. The instruction is the symptom.
Official Cursor plugins for popular developer tools, frameworks, and SaaS products. Each plugin is a standalone directory at the repository root with its own .cursor-plugin/plugin.json manifest.
More skills from other plugins.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
ask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Questions about principle-encode-lessons-in-structure.
- Which coding agents can use principle-encode-lessons-in-structure?
- principle-encode-lessons-in-structure installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

