principle-encode-lessons-in-structure
Apply when you catch yourself writing the same instruction a second time, or notice a recurring correction.
Skill by n3m6
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/n3m6-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: 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
- GPL-3.0
- Metadata
- opencode/autoinvoke: false
- Instructions
- 27 lines in SKILL.md · view on GitHub
Files (1)
- 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 n3m6/opencode-config, GPL-3.0.
More from n3m6/opencode-config
- 0.640score
unslop
n3m6
Edit prose to remove AI writing patterns while preserving meaning, intended tone, and the requested format.
SkillAFreshness: A★ 19Claude Code +9 - 0.635score
no-comments
n3m6
Review comments and workaround explanations in a scoped diff, preserve necessary contracts, and fix accepted findings.
SkillAFreshness: A★ 19Claude Code +9 - 0.635score
setup-pstack
n3m6
Configure which models pstack uses per role and at what reasoning budget.
SkillAFreshness: A★ 19Claude Code +9 - 0.620score
architect
n3m6
Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in.
SkillAFreshness: A★ 19Claude Code +9 - 0.620score
create-verification-skill
n3m6
Generate a project-local verification skill that drives your app the way a user does — any language, framework, or platform.
SkillAFreshness: A★ 19Claude Code +9 - 0.620score
how
n3m6
Use for "how does X work", code walkthroughs before changing something, and placement / ownership / layering questions ("where should this live", "which…
SkillAFreshness: A★ 19Claude Code +9 - 0.620score
interrogate
n3m6
Use for "interrogate", "adversarial review", "multi-model review", "challenge this", "stress test this code", "find blind spots", or "tear this apart".
SkillAFreshness: A★ 19Claude Code +9 - 0.620score
poteto-mode
n3m6
poteto's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work.
SkillAFreshness: A★ 19Claude Code +9 - 0.618score
figure-it-out
n3m6
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.
SkillAFreshness: A★ 19Claude Code +9 - 0.618score
correct
n3m6
Find the mistakes agents keep repeating in this repo and make each one impossible.
SkillAFreshness: A★ 19Claude Code +9 - 0.618score
benchmark-checklist
n3m6
Vet a perf measurement (limiter, tuning, limits, errors, repeatability, relevance, and whether the work happened) before you report or act on it.
SkillAFreshness: A★ 19Claude Code +9 - 0.615score
maintain-verification-skill
n3m6
Periodic pass that keeps a project's verification skill and feature map honest: parallel source readers per feature, one live session driving every feature…
SkillAFreshness: A★ 19Claude Code +9
Signals
- Stars
- 19
- Forks
- 2
- Open issues
- 1
- Last commit (this folder)
- Oct 6, 2026 (23 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- GPL-3.0
- Repository
- github.com/n3m6/opencode-config
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from n3m6
- 0.640score
unslop
n3m6
Edit prose to remove AI writing patterns while preserving meaning, intended tone, and the requested format.
SkillAFreshness: A★ 19Claude Code +9 - 0.635score
setup-pstack
n3m6
Configure which models pstack uses per role and at what reasoning budget.
SkillAFreshness: A★ 19Claude Code +9 - 0.635score
no-comments
n3m6
Review comments and workaround explanations in a scoped diff, preserve necessary contracts, and fix accepted findings.
SkillAFreshness: A★ 19Claude Code +9 - 0.620score
interrogate
n3m6
Use for "interrogate", "adversarial review", "multi-model review", "challenge this", "stress test this code", "find blind spots", or "tear this apart".
SkillAFreshness: A★ 19Claude Code +9 - 0.620score
create-verification-skill
n3m6
Generate a project-local verification skill that drives your app the way a user does — any language, framework, or platform.
SkillAFreshness: A★ 19Claude Code +9 - 0.620score
how
n3m6
Use for "how does X work", code walkthroughs before changing something, and placement / ownership / layering questions ("where should this live", "which…
SkillAFreshness: A★ 19Claude Code +9
Cite this page
principle-encode-lessons-in-structure skill. Agent Mart. https://agentmart.dev/skills/n3m6-principle-encode-lessons-in-structure (last updated 2026-10-24)