{"data":{"slug":"discovered-144e201408b63430cbfcab888a4b625d6258b38cd430facd","title":"Encode Lessons in Structure","summary":"Encode recurring corrections as lint or check rules rather than text-based instructions, focusing on structural fixes when applicable.","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","download_url":"https:\/\/skillshunter.net\/skills\/discovered-144e201408b63430cbfcab888a4b625d6258b38cd430facd\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_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.","instructions":"---\nname: principle-encode-lessons-in-structure\ndescription: When a correction repeats, encode it as a lint or check, not text.\ndisable-model-invocation: true\n---\n\n# Encode Lessons in Structure\n\nIf the lesson needs judgment and cannot be encoded, make the instruction more prominent and add an example of the failure mode.\n\n**Corollary:** If the fix is structural, only use the structural fix. The instruction is the symptom.\n","use_cases":["Automating code quality checks through linting rules","Creating structured feedback mechanisms for common coding errors","Improving maintainability by encoding lessons directly into code structure"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/jueyi6\/empstack\/blob\/74181e31d2f00313f8683ba157966efcabbe109e\/skills\/principle-encode-lessons-in-structure\/SKILL.md","source_commit":"74181e31d2f00313f8683ba157966efcabbe109e","license":null,"version":null,"listing_approved_at":"2026-12-02","created_at":"2026-11-30T08:56:04.000000Z","updated_at":"2026-12-02T09:15:14.000000Z","seo_title":"Encode Lessons in Structure for Code Quality","seo_description":"Learn how to encode recurring corrections as lint or check rules to improve code quality and maintainability.","seo_keywords":["code quality","linting rules","structured feedback","coding best practices","automated code checks"]}}