# Principle Encode Lessons In Structure

Apply when you catch yourself writing the same instruction a second time, or notice a...

- Repository: https://github.com/nightly-labs/openbot (4509 stars)
- Category: Writing
- License: see repository
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add nightly-labs/openbot --skill principle-encode-lessons-in-structure -g -a claude-code -y`
Codex: `npx skills add nightly-labs/openbot --skill principle-encode-lessons-in-structure -g -a codex -y`
Cursor: `npx skills add nightly-labs/openbot --skill principle-encode-lessons-in-structure -g -a cursor -y`
Gemini CLI: `npx skills add nightly-labs/openbot --skill principle-encode-lessons-in-structure -g -a gemini-cli -y`

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

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

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

