principle-encode-lessons-in-structure
Apply when you catch yourself writing the same instruction a second time, or notice a recurring correction.
Skill by dhanji4U
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/dhanji4u-principle-encode-lessons-in-structure
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill 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.
- License
- MIT
- Metadata
- license: MIT · source_url: https://github.com/cursor/plugins/tree/main/pstack/skills/principle-encode-lessons-in-structure · source_repo: cursor/plugins · source_plugin: pstack · original_author: Lauren Tan
- Instructions
- 27 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: "principle-encode-lessons-in-structure" does not match folder "encode-lessons-in-structure"
Files (2)
- README.md
- SKILL.md
SKILL.md (first lines)
# 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)From dhanji4U/skills, MIT.
More from dhanji4U/skills
- 0.603score
advisor
dhanji4U
Advisor mode.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
dyl-mode
dhanji4U
Dylan's agent style on top of pstack: concise verified delivery, root causes over symptom patches, The Algorithm before design, plain /bro replies, live UI…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
which-skill
dhanji4U
Find and recommend the right agent skill for any task, problem, or question across the curated skills library.
SkillAFreshness: A★ 2Claude Code +9 - 0.575score
architect
dhanji4U
Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in.
SkillAFreshness: A★ 2Claude Code +9 - 0.570score
blast-radius
dhanji4U
Find what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by running real code instead of…
SkillAFreshness: A★ 2Claude Code +9 - 0.566score
principle-boundary-discipline
dhanji4U
Apply when wiring validation, error handling, or framework adapters.
SkillAFreshness: A★ 2Claude Code +9 - 0.560score
principle-exhaust-the-design-space
dhanji4U
Apply when facing a novel UI interaction or architectural decision with no precedent in the codebase.
SkillAFreshness: A★ 2Claude Code +9 - 0.560score
principle-experience-first
dhanji4U
Apply when product, UX, or feature-scope tradeoffs come up.
SkillAFreshness: A★ 2Claude Code +9 - 0.560score
principle-build-the-lever
dhanji4U
Apply to any non-trivial work, not just bulk work: edits, migrations, analyses, checks.
SkillAFreshness: A★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 2, 2026 (27 days ago)
- Last release
- Oct 3, 2026 (26 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/dhanji4U/skills
- Website
- emiote.com/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from dhanji4U
- 0.603score
advisor
dhanji4U
Advisor mode.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
dyl-mode
dhanji4U
Dylan's agent style on top of pstack: concise verified delivery, root causes over symptom patches, The Algorithm before design, plain /bro replies, live UI…
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
which-skill
dhanji4U
Find and recommend the right agent skill for any task, problem, or question across the curated skills library.
SkillAFreshness: A★ 2Claude Code +9 - 0.575score
architect
dhanji4U
Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in.
SkillAFreshness: A★ 2Claude Code +9 - 0.570score
blast-radius
dhanji4U
Find what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by running real code instead of…
SkillAFreshness: A★ 2Claude Code +9 - 0.566score
principle-boundary-discipline
dhanji4U
Apply when wiring validation, error handling, or framework adapters.
SkillAFreshness: A★ 2Claude Code +9
Cite this page
principle-encode-lessons-in-structure skill. Agent Mart. https://agentmart.dev/skills/dhanji4u-principle-encode-lessons-in-structure (last updated 2026-10-24)