principle-encode-lessons-in-structure

Converts recurring corrections into lint rules, metadata flags, runtime checks, or automation scripts.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/gmackie/agent-skills --skill principle-encode-lessons-in-structure-gmackie
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: principle-encode-lessons-in-structure
Source: https://github.com/gmackie/agent-skills/tree/main/skills/principle-encode-lessons-in-structure
Command: npx skills add https://github.com/gmackie/agent-skills --skill principle-encode-lessons-in-structure-gmackie

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Repeatedly writing the same textual instruction wastes effort and fails because readers must notice, remember, and comply. This Skill replaces recurring instructions with structural mechanisms that enforce rules automatically. ## Core Features & Use Cases - Structural Encoding: Turns repeated corrections 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: Captures every correction, routes it to the right layer (brain note, skill, lint rule, or principle), and closes the loop with concrete action. - Use Case: When you catch yourself telling an agent the same fix a second time, encode it as a CI lint rule and delete the instruction. ## Quick Start Ask the agent to encode a recurring correction you keep repeating as a lint rule, metadata flag, runtime check, or script instead of another instruction.

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 instruction to an AI agent?▼

Encode the rule as a lint rule, metadata flag, runtime check, or script instead of writing it again. Structural mechanisms enforce the rule without requiring the reader to notice, remember, or comply.

What is the best way to enforce coding rules automatically?▼

Pick the strongest mechanism 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. Weaker guards become templates agents copy.

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

Route one-off corrections to a brain 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 the reader to notice, remember, and comply, so they are easy to miss. Structural mechanisms like lint rules and runtime checks enforce the rule without cooperation from the reader.

What are common mistakes when recording lessons from corrections?▼

Common anti-patterns include acknowledging without recording, recording without routing the fix to implementation, and fixing one instance without generalizing the recurring pattern. Always close the loop with a concrete action or todo.