principle-encode-lessons-in-structure

Converts recurring corrections into lint rules, runtime checks, and automation scripts.

Updated Sep 2, 2026
One-click install
npx skills add https://github.com/jnyross/pstack-muse --skill principle-encode-lessons-in-structure-jnyross
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: principle-encode-lessons-in-structure
Source: https://github.com/jnyross/pstack-muse/tree/main/skills/principle-encode-lessons-in-structure
Command: npx skills add https://github.com/jnyross/pstack-muse --skill principle-encode-lessons-in-structure-jnyross

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Repeatedly writing the same instruction or correction wastes effort and relies on readers noticing and remembering it. This Skill replaces fragile textual instructions with structural mechanisms that enforce the rule automatically. ## Core Features & Use Cases - Structural Encoding: Turns recurring fixes into lint rules, metadata flags, runtime checks, or scripts instead of more documentation. - Strongest-Rung Selection: Guides you to pick the strongest enforcement mechanism available, from unrepresentable states down to runtime checks. - Feedback Loop Discipline: Captures every correction, routes it to the right layer (note, skill, lint rule, or principle), and closes the loop with concrete action. - Use Case: You catch yourself telling the AI a second time not to use a deprecated API. Instead of repeating the instruction, you add a lint rule that fails CI when the API appears, then delete the instruction. ## Quick Start Ask the AI to apply the encode-lessons-in-structure principle to turn a repeated correction into a lint rule or runtime check.

Frequently Asked Questions about principle-encode-lessons-in-structure

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stop repeating the same code review feedback?

Encode the recurring correction as a lint rule, metadata flag, runtime check, or script instead of writing it again. If the rule genuinely requires human judgment, make the instruction more prominent and add an example of the failure mode.

What is the strongest way to enforce a coding rule?

Choose the strongest mechanism the situation allows: first an unrepresentable state that cannot compile, then a lint rule or banned API that fails CI, then a canonical helper, then a runtime check. Weaker guards become templates that agents copy.

When should a correction become a lint rule versus a note?

Route one-off issues to a simple note, recurring fixes to a skill or lint rule, and systemic issues to a principle. The key decision is whether the correction is a one-off or a repeating pattern.

Why do textual coding instructions fail in teams?

Textual instructions require readers to notice, remember, and comply, which makes them easy to miss. Structural mechanisms like lint rules and runtime checks enforce the rule without depending on cooperation.

What are common mistakes when encoding lessons in structure?

Common anti-patterns include acknowledging feedback without recording it, recording it without routing it to implementation, and fixing one instance while leaving the recurring pattern intact. Each breaks the feedback loop.