Skip to main content

principle-encode-lessons-in-structure

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.

설치로 이동

소스 정보

저장소
storybookjs/storybook
최근 소스 활동
2026년 9월 13일 18:06
감지된 SKILL.md 언어
영어
스타
91,111
포크
10,455

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
principle-encode-lessons-in-structure
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.
metadata
{"internal":true}
# Encode Lessons in Structure Encode recurring fixes in mechanisms (tools, code, metadata, automation) instead of textual instructions. Every error, human correction, and unexpected outcome is a learning signal. Capture it, route it, and close the loop. **Why:** Textual instructions are easy to miss. They require the reader to notice, remember, and comply. Structural mechanisms (lint rules, metadata flags, runtime checks, automation scripts) enforce the rule without cooperation. **Pattern:** When you catch yourself writing the same instruction a second time: 1. Ask: can this be a lint rule, a metadata flag, a runtime check, or a script? 2. If yes, encode it. Delete the instruction 3. If no (requires judgment), make the instruction more prominent and add an example of the failure mode **Pick the strongest mechanism.** When more than one mechanism would work, choose the strongest the situation allows (an unrepresentable state that cannot compile, then a lint or banned API that fails CI, then a canonical helper, then a runtime check), because agents copy whatever the surrounding code already does and a weaker guard becomes the next template. **Corollary:** If the fix is structural, only use the structural fix. The instruction is the symptom. **Feedback loop:** - **Capture every correction.** When the human intervenes or tests fail, decide if it's a one-off or a pattern. - **Route to the right layer.** One-off -> brain note. Recurring fix -> skill or lint rule. Systemic issue -> principle. - **Close the loop.** Don't just record. Apply now or create a concrete todo. **Anti-patterns:** - Acknowledging without recording ("I'll keep that in mind" does not persist) - Recording without routing (a brain note about a lint rule that should exist is wasted unless the lint rule gets implemented) - Fixing without generalizing (fixing one instance while leaving the recurring pattern intact)
GitHub에서 보기