This skill should be used when the user asks about "writing conventions", "codebase context", "HARNESS.md context section", "convention documentation", "how to write enforceable rules", or needs guidance on the Context section of HARNESS.md.
From ai-literacy-superpowersnpx claudepluginhub russmiles/ai-literacy-superpowers --plugin ai-literacy-superpowersThis skill uses the workspace's default tool permissions.
references/convention-patterns.mdSearches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Context engineering is the practice of curating the knowledge an LLM needs to work effectively in a codebase. Good context makes the difference between an LLM that follows project conventions and one that generates plausible but inconsistent code.
Birgitta Boeckeler's key insight: the code design itself is a huge part of the context. Well-structured code communicates intent; the harness documentation makes that intent explicit and enforceable.
The Context section serves three audiences simultaneously:
Declare the factual baseline: languages, build system, test framework,
container strategy. Keep this section factual — no aspirations, just
what is true today. The harness-discoverer agent populates this
during /harness-init.
Conventions are the core of context engineering. Each convention must be concrete enough that a reviewer could objectively say whether code follows it. The test: could two independent reviewers agree without discussing it?
For detailed examples of well-written vs poorly-written conventions,
consult references/convention-patterns.md.
Before adding a convention, ask:
If the answer to any question is no, the convention needs rewriting.
Start with what the team values. Ask: "What would I see in code that follows this?" Write the observable properties as the convention.
| Aspiration | Observable convention |
|---|---|
| "Write clean code" | Not enforceable — decompose further |
| "Keep functions short" | "Functions must not exceed 40 lines" |
| "Use meaningful names" | "Variables must be 3+ characters except i, j, k, err" |
| "Handle errors properly" | "Every returned error must be wrapped with context" |
Organise conventions by what they govern:
Context rots. The harness-gc agent checks for documentation freshness
as a garbage collection rule. Symptoms of stale context:
The /harness-audit command detects some of these automatically by
cross-referencing HARNESS.md against the project's actual state.
references/convention-patterns.md — Detailed examples of
enforceable vs unenforceable conventions, the enforceability spectrum,
and techniques for converting aspirations to observable rules