asc-principle-encode-lessons-in-structure
Apply when you catch yourself writing the same instruction a second time, or notice a recurring correction.
Skill by cavaunpeu
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/cavaunpeu-asc-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, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/asc-principle-encode-lessons-in-structure
What's inside
- Skill name
asc-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
- Instructions
- 27 lines in SKILL.md · view on GitHub
Files (2)
- ATTRIBUTION.md
- SKILL.md
SKILL.md (first lines)
# ASC principle 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 (genuinely requires judgment), make the instruction more prominent and add an example of the failure mode
**Pick the strongest rung.** 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:** Don't paper over symptoms. 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 cavaunpeu/agent-skills-closet, MIT.
More from cavaunpeu/agent-skills-closet
- 0.476score
asc-entrypoint
cavaunpeu
ASC entrypoint's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work.
SkillCFreshness: CClaude Code +9 - 0.474score
asc-explain-changes
cavaunpeu
Use after a Codex thread when the user wants a teach-me-something style debrief.
SkillCFreshness: CClaude Code +9 - 0.474score
asc-ml-adaptation
cavaunpeu
Choose how to change model behavior with CPT, SFT, or RL-based preference tuning.
SkillCFreshness: CClaude Code +9 - 0.474score
asc-ml-system-design
cavaunpeu
Design an ML system from an ambiguous business problem.
SkillCFreshness: CClaude Code +9 - 0.474score
asc-ml-eval
cavaunpeu
Design and run ML evaluations, slices, and release gates.
SkillCFreshness: CClaude Code +9 - 0.474score
asc-ml-entrypoint
cavaunpeu
Top-level ML routing skill for customer-facing model work.
SkillCFreshness: CClaude Code +9 - 0.471score
asc-model-setup
cavaunpeu
Configure which models the asc skills use per role.
SkillCFreshness: CClaude Code +9 - 0.469score
asc-entrypoint-explicit
cavaunpeu
Routing target for asc-entrypoint behavior with explicit, less insider-heavy communication.
SkillCFreshness: CClaude Code +9 - 0.455score
asc-how
cavaunpeu
Use for "how does X work", code walkthroughs before changing something, and placement / ownership / layering questions ("where should this live", "which…
SkillCFreshness: CClaude Code +9 - 0.452score
asc-architect
cavaunpeu
Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in.
SkillCFreshness: CClaude Code +9 - 0.452score
asc-interrogate
cavaunpeu
Use for "interrogate", "adversarial review", "multi-model review", "challenge this", "stress test this code", "find blind spots", or "tear this apart".
SkillCFreshness: CClaude Code +9 - 0.450score
asc-figure-it-out
cavaunpeu
Design an auditable playbook when no narrower one fits: a large migration, an ambitious multi-part change, or work a human reviews after stepping away.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 19, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/cavaunpeu/agent-skills-closet
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from cavaunpeu
- 0.476score
asc-entrypoint
cavaunpeu
ASC entrypoint's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work.
SkillCFreshness: CClaude Code +9 - 0.474score
asc-ml-eval
cavaunpeu
Design and run ML evaluations, slices, and release gates.
SkillCFreshness: CClaude Code +9 - 0.474score
asc-explain-changes
cavaunpeu
Use after a Codex thread when the user wants a teach-me-something style debrief.
SkillCFreshness: CClaude Code +9 - 0.474score
asc-ml-adaptation
cavaunpeu
Choose how to change model behavior with CPT, SFT, or RL-based preference tuning.
SkillCFreshness: CClaude Code +9 - 0.474score
asc-ml-entrypoint
cavaunpeu
Top-level ML routing skill for customer-facing model work.
SkillCFreshness: CClaude Code +9 - 0.474score
asc-ml-system-design
cavaunpeu
Design an ML system from an ambiguous business problem.
SkillCFreshness: CClaude Code +9
Cite this page
asc-principle-encode-lessons-in-structure skill. Agent Mart. https://agentmart.dev/skills/cavaunpeu-asc-principle-encode-lessons-in-structure (last updated 2026-10-24)