principle-encode-lessons-in-structure
Apply when you repeat an instruction or notice a recurring correction: encode the rule as a lint, flag, runtime check, or script instead of more text.
- License 许可
- MIT
- 最近更新
- 2026-10-21
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- principle-encode-lessons-in-structure
- description
- Apply when you repeat an instruction or notice a recurring correction: encode the rule as a lint, flag, runtime check, or script instead of more text.
03 SKILL.md 正文
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.
04 同仓库更多 Skills
why
Trace why code works this way or why a design was chosen, from source control, trackers, docs, and telemetry. Use for rationale, regressions, or postmortems.
unslop
Cut AI tells from any writing.
typescript-best-practices
TypeScript best practices. Use when reading or editing any .ts or .tsx file.
technical-writing
Write or review docs, RFCs, readmes, PR descriptions, and commit messages in Diataxis structure with Google style, STE, and Global English.
teach
Explain a body of work so a person actually understands it, running how and why and weaving both into one clear explanation. Use for teach me this.
tdd
Use only when the user asks for TDD, a failing test, or a regression test, or when a bug has a cheap local test target; skip unclear or costly test paths.