# Principle Encode Lessons In Structure

> Replace a recurring correction with the strongest practical type, lint, CI, helper, or runtime mechanism and prove the observed mistake now fails automatically.

- Skill: `njs14/principle-encode-lessons-in-structure-2` (Agent Skill)
- Install (CLI): `npx get-skill add njs14/principle-encode-lessons-in-structure-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/njs14/principle-encode-lessons-in-structure-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: njs14 (https://skillmd.com/u/njs14)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/njs14/principle-encode-lessons-in-structure-2

---


# Encode the lesson

Treat the request text that activated this skill as a recurring correction to make structural.

Apply [encode lessons in structure](../pkstack-principles/references/catalog.md#encode-lessons-in-structure).
Name the repeated failure, choose the strongest practical enforcement layer, and add a regression
that demonstrates the old mistake is rejected. Keep prose only when judgment cannot be encoded.
Return the mechanism and the failing-then-passing evidence.

