# Encode Lessons in Structure

Encode recurring corrections as lint or check rules rather than text-based instructions, focusing on structural fixes when applicable.

**Canonical URL:** https://skillshunter.net/skills/discovered-144e201408b63430cbfcab888a4b625d6258b38cd430facd

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-144e201408b63430cbfcab888a4b625d6258b38cd430facd

**Markdown URL:** https://skillshunter.net/skills/discovered-144e201408b63430cbfcab888a4b625d6258b38cd430facd.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-144e201408b63430cbfcab888a4b625d6258b38cd430facd/download

**Category:** Software & Development

**Source URL:** https://github.com/jueyi6/empstack/blob/74181e31d2f00313f8683ba157966efcabbe109e/skills/principle-encode-lessons-in-structure/SKILL.md

**Source commit:** 74181e31d2f00313f8683ba157966efcabbe109e

**Listing approved at:** 2026-12-02

**Created at:** 2026-11-30T08:56:04.000000Z

**Updated at:** 2026-12-02T09:15:14.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

When encoding lessons, ensure that the instruction is prominent and accompanied by an example of the failure mode if judgment is required. Structural fixes should be prioritized over textual instructions.

### When to use it

- Automating code quality checks through linting rules
- Creating structured feedback mechanisms for common coding errors
- Improving maintainability by encoding lessons directly into code structure

## Skill instructions

---
name: principle-encode-lessons-in-structure
description: When a correction repeats, encode it as a lint or check, not text.
disable-model-invocation: true
---

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

