/skill-madness:maintain-contextfrom skill-madness
Maintains a project's CONTEXT.md glossary and docs/adr/ decision records, adding glossary entries when terms resolve and ADRs only when a three-condition gate (hard to reverse, surprising, real trade-off) fires. Use after architectural discussions or when terms drift.
Ships in skill-madness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Incrementally maintain two artifacts as conversations happen: CONTEXT.md (the project's domain glossary) and docs/adr/ (decision records). Both compound in value only if you keep them honest, narrow, and rare.
Ownership. This skill owns
docs/adr/exclusively (as a directory, so it takes precedence over pattern ownership) plus theCONTEXT.mdglossary file.docs/adr/is an explicit carve-out fromdocs-agent's broaderdocs/ownership — without it,docs/would silently swallow the ADR subtree.docs-agentreadsdocs/adr/for context but never writes there. See the canonical map in the orchestrator'sreferences/file-ownership.md.
Before writing an ADR, all three must be true. Miss any one and skip — the next ADR will not be a worse decision because this one wasn't recorded.
Why this gate matters: an ADR folder full of routine choices reads like noise, and people stop opening it. Rarity is the whole point. When all three conditions hit, the ADR is worth writing because it captures information that will be lost otherwise.
Not a spec. Not a scratchpad. Not implementation notes. Each entry is:
_Avoid_: line listing forbidden synonyms — words that mean the same thing in everyday speech but collide with something else hereIf the entry isn't disambiguating a term, it doesn't belong in CONTEXT.md. Put it in a README or design doc instead.
Capture entries the moment a term resolves. Do not batch glossary updates for end-of-session.
Forbidden: Batching glossary updates for end-of-session. Capture them inline as terms are resolved. Batched updates miss context — the reason a term was forbidden gets lost between the conversation and the writeup.
When the user says "let's call them subscribers, not users" — open CONTEXT.md right then, write the entry, confirm the _Avoid_: list with the user. The five-second update is worth more than a thirty-minute end-of-session pass that has lost half the nuance.
_Avoid_: alias-list patternEvery term lists forbidden synonyms with a one-clause reason. The reason is what makes the rule stick.
## Subscriber
A customer record with `subscription_status = active`. Has access to paid features.
_Avoid_: user (too generic), member (legacy term from v1), client (means something else in marketing).
See references/context-format.md for full structure and three worked examples.
When the user states behavior — "Subscribers get a 30-day trial" — verify against the code before recording it. Use Grep for the relevant constant or model field. If the code disagrees, stop and ask which is wrong. Do not record a glossary entry or ADR that contradicts the codebase: one of them is going to be wrong, and the artifact that's supposed to disambiguate will become the thing that confuses people.
docs/agents/domain-docs.md firstBefore writing or reading any glossary entry or ADR, check whether the repo has docs/agents/domain-docs.md. That file (written by /setup-project-skills) declares whether this repo uses a single-context or multi-context layout, which controls where CONTEXT.md and docs/adr/ live.
docs/agents/domain-docs.md exists: read it. A single-context layout puts CONTEXT.md at the repo root and ADRs at docs/adr/. A multi-context monorepo puts them per-app at apps/<app>/CONTEXT.md and apps/<app>/docs/adr/. Use the declared paths — do not invent your own.docs/agents/domain-docs.md is missing: pause before writing and ask whether to run /setup-project-skills or approve root CONTEXT.md and docs/adr/ for this session only. Proceed only after the human selects a layout; record that decision in the handoff. Missing answer means BLOCKED, not implicit consent. Never invent contract/tracker defaults from a domain-layout approval.Do not create CONTEXT.md or docs/adr/ until there is a real entry to put in them. If they don't exist when this skill triggers, ask once: "Should I create CONTEXT.md / docs/adr/ now?" Get explicit consent. Empty scaffolding signals "this project documents things" when it doesn't yet.
When all three gate conditions hit:
references/adr-format.md and save to docs/adr/NNNN-title.md with the next sequential number.Accepted if the decision is live; Proposed if still under debate.For uncertain cases, see references/three-condition-gate.md — five scenarios walked through with the right call named.
grill-me — surfaces decisions and terminology that should be captured here.architecture-rescue — when joining an unfamiliar codebase, this skill is where the recovered understanding lands.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
87 skills in this plugin
/accessibility-auditAudit and fix web accessibility against WCAG 2.2 AA, Section 508 and the ADA: axe scan, keyboard, screen-reader and zoom checks, plain-language content and PDFs, source fixes, and an honest conformance report (ACR/VPAT draft). Use for any a11y review, fix or compliance question. Trigger on "accessibility audit", "is this ADA compliant", "Section 508", "WCAG", "VPAT", "a11y"./andonRun work through a live Andon board (the kanban that dispatches cards to Claude Code, Codex and Gemini on your machines): push a plan's cards with the skills each run must load, read the board, answer what needs you, administer a machine, and refresh this skill when Andon changes. Trigger on "/andon", "put this plan on andon", "what needs me on andon", "why isn't my card running".
/architecture-rescueFind deepening opportunities in a codebase (shallow modules, missing seams, leaky abstractions) and present them as numbered candidates for a grilling session before any interface is proposed. Use when the code feels tangled or hard to test. Trigger on "improve architecture", "rescue this codebase", "find refactoring opportunities", "ball of mud", "shallow modules"./artifact-publishPublish a visual or interactive result as a Claude Code Artifact: a self-contained HTML or Markdown page on a private, shareable claude.ai link instead of a local file. Use when a dashboard, report, chart, diagram or prototype reads better as a page. Not the claude.ai design canvas (claude-design-brief). Trigger on "publish this as an artifact", "make a shareable link", "give me a link to this"./babysitKeep an open PR healthy on a schedule: poll for review activity, auto-address bot and Copilot nits and routine rebases, re-run the gate, until the PR is mergeable. HITL on anything irreversible; never auto-merges. The scheduled loop around git-pr-feedback, run as "/loop 5m /babysit". Trigger on "babysit my PR", "watch this PR", "keep my PR green", "keep the PR rebased"./backend-agentBuild API servers, business logic and data layers against authored contracts. Use in native orchestrator dispatch or explicitly requested solo backend implementation; load it when the orchestrator assigns this role or the user asks for it.npx claudepluginhub ivy00johns/skill-madness --plugin skill-madnessOther plugins' skills for the same job