# 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` (Agent Skill)
- Install (CLI): `npx skillmds@latest add njs14/principle-encode-lessons-in-structure`
- Raw SKILL.md: https://api.skillmd.com/api/skills/njs14/principle-encode-lessons-in-structure/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: njs14 (https://skillmd.com/u/njs14)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/njs14/principle-encode-lessons-in-structure

---


# 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.

