Skills cursor plugins pstack

principle-encode-lessons-in-structure

Use it when:
You catch yourself, or the agent, writing the same instruction a second time, or making the same correction again.
It does:
Encodes the rule as a lint, metadata flag, runtime check or script; when the lesson needs judgment, it makes the instruction more prominent and adds an example of the failure.
Length:
Its description plus two sentences.
Runs:
Only when you call it.

Skill 14 of 14 in the pstack bundle, after principle-guard-the-context-window.

TL;DR

One of pstack's principle skills, in Cursor's plugin repo, and one of its shortest. Its corollary: when the fix is structural, use only the structural fix, because the repeated instruction is the symptom.

Summarizes the skill at 8ecfb19.

npx skills add https://github.com/cursor/plugins --skill principle-encode-lessons-in-structure
Total Downloads
5,600 on skills.sh, Nov 9, 2026
Repo stars
15,776 cursor/plugins
First seen
May 24, 2026 on skills.sh
Weekly Downloads
316
-16% over the 8 weeks to Nov 9
Weekly values
Week toInstalls
Sep 21378
Sep 28412
Oct 5517
Oct 12444
Oct 19506
Oct 26477
Nov 2363
Nov 9316
Category

Test-first work, implementation from specs, git hygiene and scope control.

Build agents, orchestrate workers and give agents memory.

Everything for building software: planning, coding, debugging, design, frameworks, cloud, agents and skills.

Type

Knowledge and rules the agent applies while it works: best practices, design principles, API references.

Effect

Adds no side effects of its own. It shapes how the agent thinks, writes or reviews. Guidelines and routers are always effect:none, even when the task they support edits code.

Needs

Instructions only. Works in any agent that supports skills.

Publisher

Everyone else. Unverified vendor claims default to community.

Topics

SKILL.md

From cursor/plugins at 8ecfb19. Checked daily, last changed Nov 6, 2026.

Frontmatter
name: 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.