trove-principle-encode-in-structure
Encode Lessons in Structure — when you catch yourself writing the same instruction a second time, encode it as a lint, rubric, metadata flag, runtime check, or script instead of more prose. The repeated instruction is the symptom. Use when a correction recurs, or when tempted to add another "remember to…" line.
- License 许可
- MIT
- 所属仓库
- bravew/trove
- 最近更新
- 2026-11-12
- Stars
- ★ 10
- Forks
- 1
01 前言 Front Matter
- name
- trove-principle-encode-in-structure
- metadata
- { "trove-category": "code", "trove-category-label": "Code" }
- description
- Encode Lessons in Structure — when you catch yourself writing the same instruction a second time, encode it as a lint, rubric, metadata flag, runtime check, or script instead of more prose. The repeated instruction is the symptom. Use when a correction recurs, or when tempted to add another "remember to…" line.
- when_to_use
- encode this as a check; stop repeating this instruction; make this structural
- user-invocable
- true
02 资源文件 1
- 其他SKILL.md.tmpl1.2 KB
03 SKILL.md 正文
<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly --> <!-- Regenerate: bun run build:skills -->
Principle: Encode Lessons in Structure
When the same instruction has to be written twice, the instruction is the symptom. Encode the lesson in structure so it enforces itself.
Route by recurrence:
- One-off → a note in the moment; no structure needed.
- Recurring → a lint, a rubric criterion, a script, or a skill edit that makes the wrong thing fail loudly.
- Systemic → a principle (like this one) that shapes future design.
"I'll keep that in mind" doesn't persist across sessions or agents. A check does. This is the philosophy behind the marketplace's eval rubrics and learnings.jsonl; pairs with trove-reflect (mine a session for lessons and route each into a concrete edit).
04 同仓库更多 Skills
using-trove
Skill discipline anchor for the Trove marketplace. Loaded once per session; routes the agent to the right trove-* skill before code, planning, review, or git actions.
trove-write-skill
Skill authoring workflow. Use when creating or updating a Codex or Trove skill, including rubrics, tasks, metadata, and validation.
trove-worktree
Git worktree workflow for spikes, risky experiments, and broad refactors that should not disturb the user's current branch.
trove-why
Reconstruct design rationale and decision history from evidence — source control, issue tracker (Linear), docs (Notion), chat (Slack), error tracking (Sentry) — with calibrated confidence. Use for "why does X work this way", "why did we pick Y", regressions, and postmortems. Use trove-explain for how it works now.
trove-verify
Completion verification workflow. Use before claiming done, fixed, complete, ready, or shipped.
trove-unslop
Cut AI tells from writing — PR descriptions, release notes, specs, commit bodies, and replies. Use before finalizing prose, or when the user asks to clean up, de-slop, or make text sound human.