/active-skills:managing-agent-instructionsfrom active-skills
Use when the user asks to "write a doc", "create agent instructions", "update AGENTS.md", "sync context files", "refine project rules", "update the TODO", "add a task to the backlog", "update DESIGN.md", or "record a lesson learned". Use this skill to manage persistent, high-signal project-specific context in AGENTS.md, GEMINI.md, CLAUDE.md, the project task backlog in .agents/TODO.md, the design system specification in DESIGN.md, and the runtime-evidence knowledge bundle in .agents/wiki/.
Ships in active-skills. 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; scripts run unread.
This skill manages the lifecycle of agent-facing documentation:
AGENTS.md, GEMINI.md, CLAUDE.md at project root: what the agent needs to act correctly on day one (commands, conventions, constraints).DESIGN.md at project root: machine-readable design tokens (colors, typography, spacing, components) plus human-readable rationale, in the google/design.md format. Only relevant for projects with a visual UI.ARCH.md (or docs/designs/ARCH.md) at project root: the current, load-bearing system design (component maps, data flows, invariants) an agent should reason from.<project_root>/.agents/TODO.md: pending work a future session should pick up.<project_root>/.agents/wiki/: the runtime-evidence store. An OKF v0.1 bundle, one concept per fact, wired into the briefing files as harness-loaded content (import or inlined catalog, per file). Holds the non-obvious findings behind the rules — how each was established and against which version. Supersedes the flat .agents/INSIGHTS.md. See references/knowledge-bundle.md.AGENTS.md, GEMINI.md, CLAUDE.md) under 100 lines. DESIGN.md may be longer but MUST stay under ~300 lines — split detail into docs/designs/ if it grows past that. Strip introductory filler, paragraphs, and pleasantries. See references/content-guidelines.md.README.md and ARCH.md should be structured for human understanding (using narrative flow and conceptual descriptions). Briefing files (AGENTS.md, GEMINI.md, CLAUDE.md) and backlogs (.agents/TODO.md) MUST be structured for optimal machine understanding and token efficiency (highly-dense checklist formats, raw command lines, zero prose or filler)..eslintrc.json, tsconfig.json, Makefile). Never duplicate rules defined in code or tool configurations.DESIGN.md, which points to docs/ for detail. Use bare @docs/api-style.md-style pointers — never backticked, which is inert. Note an import only fires where the runtime both reads that file and expands imports: CLAUDE.md under Claude Code does, AGENTS.md under agy does not. In a file agy reads, an import is a pointer the agent may ignore, not loaded content.pnpm test:unit --filter "@shared/*") rather than general descriptions.AGENTS.md, GEMINI.md, and CLAUDE.md MUST be standalone, individual regular files — never symlinks (and never symlinked to each other). They are not mirrors of each other: each file contains instructions specific to that agent/environment (e.g., GEMINI.md for Gemini CLI/Jetski, CLAUDE.md for Claude Code, AGENTS.md for general or other coding agents). If any briefing file is already a symlink, de-symlink it before editing: run scripts/analyze-agent-docs.sh --fix, which dereferences each link into a standalone file with the same content and removes the link (the link's former target is left untouched). Do this even for whole-repo setups where all three currently point at one file — split them into three independent files.DESIGN.md MUST reflect the design system currently implemented in the UI. When token values, component specs, or section content diverge from shipped code, update DESIGN.md in the same PR or add a .agents/TODO.md item to sync. Run npx @google/design.md lint DESIGN.md after every edit — broken token references ({category.name}) are silent bugs.ARCH.md MUST reflect current shipped architecture. When implementation diverges, update ARCH.md in the same PR or add a .agents/TODO.md item to sync.ARCH.md or a briefing file MUST carry one of: (a) a named test that pins it, (b) the command that reads it live, or (c) a verified YYYY-MM-DD marker. These are the claims that rot; prose describing a mechanism rots far slower, so prefer stating the mechanism over the value wherever the value is not load-bearing. An unmarked figure is indistinguishable from a stale one the moment anything moves, and it will be re-read as current by every future session. The .agents/wiki/ bundle already mandates version-pinning and is the most trustworthy doc in a mature repo for exactly this reason — extend the discipline outward.[P2] naming both locations — never leave an unlinked duplicate undocumented.references/memory-discipline.md), AGENTS.md MUST contain a Memory Discipline section sourced from that template. The section's mandate that MEMORY.md is loaded into every session is non-negotiable and MUST appear verbatim. Note: the user-level agent-memory plugin (~/.claude/memory/) is a separate concern — it is auto-managed by hooks and requires no per-project documentation..agents/wiki/ exists, every briefing file MUST carry harness-loaded discovery for its root index. This is non-negotiable and is not satisfied by a prose pointer — loaded content is not a decision the agent must make, and prose pointers were observed not firing. The mechanism differs per file: a standalone CLAUDE.md gets a bare @.agents/wiki/index.md import; AGENTS.md/GEMINI.md get the catalog inlined, because Claude Code never reads AGENTS.md and agy does not expand imports. A backticked `@path` is inert on both runtimes. Install and check it with okf_discover.py (see references/knowledge-bundle.md); a bundle whose discovery is missing or stale is drift and MUST be fixed on sight..agents/wiki/ as its own concept, version-pinned. Rules go in AGENTS.md, open work in .agents/TODO.md, shipped design in ARCH.md. Never restate a bundle concept's body in a briefing file — link to it. See Phase 6..agents/TODO.md current — prune items made obsolete by recent changes before adding new ones. Every item MUST carry a [P0], [P1], or [P2] tag (see Phase 5 for the scheme). An un-prioritized item is treated as invalid and MUST be fixed on sight.[ ] Identify Existing Docs: Locate AGENTS.md, GEMINI.md, CLAUDE.md, DESIGN.md, and any .claude.local.md or .gemini.local.md.
[ ] Detect & De-Symlink Briefing Files: Run scripts/analyze-agent-docs.sh <project_root> to inspect the three briefing files. If any of AGENTS.md, GEMINI.md, or CLAUDE.md is reported as a symlink, run scripts/analyze-agent-docs.sh --fix <project_root> to reestablish them as standalone individual files (it dereferences each link's current content into a regular file and removes the link; a dangling link becomes an empty standalone file you must repopulate). Confirm with ls -l <project_root> that none of the three remains a symlink before editing any of them. Do this once, up front — never edit a briefing file while it is still a symlink.
[ ] Check TODO Backlog: Read .agents/TODO.md if it exists. Note any items that may have been completed or made obsolete by recent code changes.
[ ] Check Knowledge Bundle: Look for .agents/wiki/index.md. If it exists, check discovery with okf_discover.py .agents/wiki --check (exit non-zero = missing or stale). Without llm-wiki, check by hand instead: every briefing file carries a <!-- llm-wiki:discovery --> block, a standalone CLAUDE.md's is a bare import, and AGENTS.md/GEMINI.md carry an inlined catalog matching the current index.md. Do not substitute a grep for @.agents/wiki/index.md: it reports a correctly-wired AGENTS.md-only repo as broken, and passes a repo whose only import sits where it never fires. Missing or stale discovery is drift, and is the exact failure this phase exists to catch; report it and fix it in Phase 3. Read the root index (titles and descriptions only) to know what evidence already exists before re-deriving it. Note any .agents/INSIGHTS.md for migration (Phase 6).
[ ] Check Design Drift: Read DESIGN.md (and any docs/designs/ files it points to). Cross-reference against the current codebase — note divergence (renamed modules, new/removed components, state machine changes).
[ ] Analyze Tooling: Check package.json, Makefile, or README.md for the "Golden Path" commands (build, lint, test).
[ ] Spot Redundancy: Identify any rules in current docs that are already strictly enforced by linters or clearly visible in tool configs.
[ ] Prove the drift guards can fail: For every test whose job is to catch staleness (registry sync, "no model we stopped serving", vendored-file equality, declared-vs-imported dependencies), read its predicate and check that nothing exempts the thing most likely to go stale. A blanket carve-out — a prefix filter, a family match, a skipped directory — makes the guard decorative: it runs, it passes, and it cannot fail for any member of the excluded set. Where cheap, seed a known offender and watch it go red; a guard never observed failing is an assumption. When you find one carve-out, grep for the pattern rather than fixing only that test — an exemption copy-pasted into a sibling guard hides the same rot twice, and fixing the first does not reveal the second.
[ ] Look for silently-weakened tests: A test that references a specific id, model, path or fixture can keep passing after its subject is removed, because a fallback or floor still satisfies the assertion — it now measures something other than what it was written for, with no failure to announce it. When pruning any named entity, grep the test suite for it and check what each remaining reference is actually asserting.
[ ] Perform Assessment: Evaluate each file against the rubric in references/quality-assessment.md.
[ ] Output Quality Report: Generate the Quality Report using the template below.
[ ] Plan Fixes: For every issue or recommended change identified in the report, plan the exact updates needed to resolve it. You MUST NOT stop at reporting the gaps; immediately proceed to Phase 3 to execute the fixes.
Quality Report Template (ALWAYS output before executing updates):
## Agent Instruction Quality Report
### Summary
- Files found: X
- Average score: X/100
- Sync status: [Synced / Drift detected]
### File Assessment: [Filename] (e.g., ./AGENTS.md, ./CLAUDE.md, ./GEMINI.md)
**Score: XX/100 (Grade: X)**
| Criterion | Score | Notes |
| ------------------------- | ----- | ----- |
| Project Goal Alignment | X/10 | ... |
| Operational Commands | X/15 | ... |
| Architecture & Tech Stack | X/15 | ... |
| Style & Conventions | X/15 | ... |
| Minimalism & Conciseness | X/15 | ... |
| Currency & Sync | X/15 | ... |
| Actionability | X/15 | ... |
**Issues:**
- [List specific problems]
**Recommended Additions/Deletions:**
- [List specific improvements]
The document MUST follow this 5-section hierarchy, plus the conditional Memory Discipline section:
AGENTS.md. It MUST be reviewed and revisited when designing the project and when evaluating whether the project is complete. All designs, plans, and implementations MUST be in line with this stated goal. If there is a discrepancy between the ongoing work and this goal, the agent MUST prompt the user to clarify whether the goal needs to be updated/clarified, or if the discrepancy needs to be revisited.references/memory-discipline.md. The mandate that MEMORY.md loads into every session MUST NOT be softened or omitted. Do NOT add this section for the user-level agent-memory plugin — that system manages itself via hooks and requires no project-level documentation.[ ] Execute Fixes: Apply all recommended edits, additions, or deletions to the briefing files (AGENTS.md, GEMINI.md, CLAUDE.md) to resolve all identified quality issues.
[ ] Draft/Update: Use third-person imperative language ("The agent MUST...", "Never use...").
[ ] Propagate Shared Changes: The briefing files are independent standalone files — never symlinks, and not required to be byte-identical. When a change genuinely applies to more than one agent (e.g., a build command that changed), apply it to each relevant file individually so they never drift into contradiction. Keep agent-specific instructions confined to that agent's own file. Never re-link the files together to "keep them in sync" — propagate by editing each file.
[ ] Verify: Ensure every command added actually works by running it with --help or in a dry-run mode.
Format spec: google/design.md · package
@google/design.mdv0.4.0 (verified 2026-08-06) · alpha — token categories and section list may change. Unpinnednpx @google/design.mdalways resolves to latest, so this documentation and the tool can drift; runnpx @google/design.md specto get the format spec the installed version actually enforces, andspec --rulesOnlyfor its live lint rules.
DESIGN.md lives at the project root and defines the project's design system: machine-readable tokens agents can consume, plus human-readable rationale for every design decision. It is distinct from AGENTS.md (operational briefing), ARCH.md (system architecture), and docs/designs/ (proposals and history).
Only create DESIGN.md for projects with a visual UI surface — CLI tools, libraries, and infra-only repos do not need it.
Two-layer format
The file MUST open with a YAML front matter block (delimited by ---) containing design tokens, followed by a markdown body with prose sections.
YAML front matter — valid token categories:
| Category | Value format | Example |
|---|---|---|
name | String — the design system's name | "Daylight" |
description | String, optional | — |
colors | Any CSS color: hex, named, rgb(), hsl(), oklch(), lab(), color-mix(). Hex is recommended | "#1A1C1E" |
typography | Object: fontFamily, fontSize, fontWeight, lineHeight, letterSpacing, fontFeature, fontVariation | — |
spacing | Dimension with unit (px, em, rem) or number | "8px", "1.5rem" |
rounded | Dimension with unit | "4px" |
components | Named groups. Valid sub-tokens ONLY: backgroundColor, textColor, typography, rounded, padding, size, height, width | — |
omitted | String list, or {section, reason} objects — suppresses missing-sections diagnostics | — |
Tokens may reference other tokens using {category.name} syntax (e.g., {colors.primary}). Broken references are a silent bug — always lint.
Two schema traps the linter catches but agents keep hitting: color is not a component sub-token (use textColor), and a top-level key that looks like a token map but is not in the schema is silently dropped from exports (the token-like-ignored rule warns about it).
Markdown body — canonical section order (sections may be omitted; ordering is enforced when present):
Skeleton:
---
name: "My Design System"
version: "alpha"
colors:
primary: "#1A1C1E"
surface: "#FFFFFF"
typography:
body:
fontFamily: "Google Sans"
fontSize: "16px"
fontWeight: 400
spacing:
base: "8px"
lg: "24px"
components:
button:
backgroundColor: "{colors.primary}"
padding: "{spacing.lg}"
---
## Overview
One paragraph on the design system's purpose and audience.
## Colors
Prose rationale — why these colors, what they signal.
## Components
Usage examples and constraints per component.
## Do's and Don'ts
Concrete examples of correct vs. incorrect token application.
CLI tooling (@google/design.md — binary: design.md)
npx @google/design.md lint DESIGN.md # validate; FILE is REQUIRED
npx @google/design.md export DESIGN.md --format css-tailwind # Tailwind v4 @theme
npx @google/design.md spec # inject format spec into agent context
npx @google/design.md spec --rulesOnly # the installed version's lint rules
# diff takes two FILE PATHS, not git revisions, and does not read stdin:
git show HEAD~1:DESIGN.md > /tmp/prev-design.md
npx @google/design.md diff /tmp/prev-design.md DESIGN.md # detect token regressions
FILE is a required positional on lint, diff, and export — a bare npx @google/design.md lint prints usage and exits 1. Pass - to read from stdin (lint and export only).
Exit codes: 0 clean · 1 lint errors or bad arguments · 2 file not found.
Output is always JSON from lint and diff. Their --help advertises --format json|text, but in v0.4.0 the flag is parsed and then ignored — --format text and even --format=banana both return JSON with no error. Parse the JSON; do not ask for text and do not treat a bogus --format as validated. On export the flag is real and required: css-tailwind (v4 @theme), json-tailwind (v3 theme.extend, aliased as tailwind), dtcg, css-vars.
Lint rules (12 in v0.4.0; spec --rulesOnly prints the live set). Errors: broken-ref. Warnings: missing-primary, missing-typography, contrast-ratio (WCAG AA 4.5:1 on component backgroundColor/textColor pairs), orphaned-tokens, section-order, unknown-key, token-like-ignored. Info: token-summary, missing-sections, omitted-rules.
Known false positive — do not "fix" your tokens to satisfy it. The color validator accepts
color-mix(in srgb, …)and rejects all 14 other CSS Color Level 5 interpolation spaces (oklab,oklch,lab,lch,hsl,hwb,display-p3,rec2020,xyz*), despite the tool's own spec listing them as valid. Reproduced on 0.3.0 and 0.4.0. If a rejected value matches what the stylesheet actually ships, the linter is wrong — flattening acolor-mix()to a hex literal discards the token reference it was derived from and lets the tokens drift silently thereafter. Swapping the interpolation space tosrgbis not a fix either: it lints clean but is a different color.Consequence:
lintcannot gate CI unpinned. To gate, pin a version and allowlist the known-bad rule/paths.
orphaned-tokensis also noisy by construction — it assumes tokens are referenced from thecomponents:block, so a token set consumed through CSS custom properties trips it for every token. That is a normal architecture, not a defect.
What belongs in DESIGN.md:
What does NOT belong:
ARCH.md or docs/designs/ARCH.md.AGENTS.md.docs/designs/YYYY-MM-DD-*.md.Lifecycle rules:
DESIGN.md in the same PR that changes design tokens or design system decisions.npx @google/design.md lint DESIGN.md after every edit — do not skip. Read the findings rather than trusting the exit code: a non-zero exit is not proof the file is wrong (see the known false positive above), and a clean exit does not mean the tokens match shipped CSS.DESIGN.md exceeds ~300 lines, extract the deepest section prose to docs/designs/ and leave a pointer.[ ] Create DESIGN.md only if the project has a visual UI and no design system file exists yet.
[ ] Lint DESIGN.md (npx @google/design.md lint DESIGN.md) after every edit.
[ ] Triage each finding — fix real errors, and record a linter false positive in .agents/TODO.md rather than editing correct tokens to silence it.
[ ] Cross-check token references when updating — stale {category.name} refs silently break agent reasoning.
The .agents/TODO.md file is the canonical backlog for project tasks visible to agents. It lives in <project_root>/.agents/TODO.md (create the directory if absent).
What belongs here: new features, bug fixes, refactors, recommended improvements, open questions, and any task a future agent session should pick up. Anything project-related that hasn't been addressed yet.
What does NOT belong here: tasks that are already done, notes duplicated from AGENTS.md, or items so vague they can't be acted on.
Every item MUST be tagged with one of exactly three priorities. The priority is the first thing inside the checkbox text, in square brackets, so it's visible at a glance and survives grep / copy-paste / reordering:
[P0] — highest priority; must be addressed immediately. Reserved for bugs and broken contracts (e.g., a failing production flow, a corrupted data path, a missing file referenced by active instructions). P0s block everything else. If you're about to add a P0, ask whether it should be worked on now instead of queued.[P1] — important fixes and tasks that unblock other work. This is where the bulk of items go: feature implementations, refactors that unblock downstream changes, follow-ups agreed during design, test coverage for shipped code, documentation gaps for active surfaces.[P2] — low-priority fixes and nice-to-haves. Code maintenance, tidy-ups, speculative improvements, small DX wins, optional polish. It is acceptable for P2 items to sit indefinitely; if a P2 has been there for months and nobody cares, prune it.An item without a [P0] / [P1] / [P2] tag is malformed. When encountering one, repair it in place — either assign a priority or delete the item if it's stale. Never leave an untagged item in the file.
Lifecycle rules:
TODO.md and prune items that are now stale or made obsolete by recent changes — a feature that was just implemented, a bug that was fixed, an improvement that landed in another PR.[P0] is the fastest way to destroy the signal — if everything is urgent, nothing is.Format:
# TODO
## P0 — Address Immediately
- [ ] **[P0]** <task> — <one-line context or motivation>
## P1 — Important / Unblocking
- [ ] **[P1]** <task> — <one-line context or motivation>
## P2 — Nice-to-Have
- [ ] **[P2]** <task> — <one-line context or motivation>
Grouping headings are recommended when there are 5+ items so the backlog is scannable. For small backlogs a flat list is fine, but every item still carries its [P0] / [P1] / [P2] tag — the heading is secondary, the tag is load-bearing.
Thematic sub-groupings (e.g., ## Setup follow-ups) may live inside a priority section or as sibling headings when items naturally cluster; the tag on the item disambiguates regardless.
[ ] Review TODO.md at the start of every doc update session — prune obsolete items first, then add new ones.
[ ] Create .agents/TODO.md if it doesn't exist and there are tasks worth capturing.
[ ] Audit priorities when reviewing: anything tagged [P0] that isn't actually a bug or broken contract should be re-tagged [P1]; anything untagged MUST be tagged or removed.
.agents/wiki/)Full model, concept-doc shape, and anti-patterns: references/knowledge-bundle.md — read it before minting or editing a concept.
.agents/wiki/ is the project's runtime-evidence store: an OKF v0.1 bundle, one concept per fact. AGENTS.md carries the rules; the bundle carries the evidence behind them — how each was established, against which version, and the symptom that exposed it. It replaces the flat .agents/INSIGHTS.md, which loaded whole every session and rotted silently.
Discovery is per-file, not one line everywhere. Claude Code loads CLAUDE.md and expands @ imports but never reads AGENTS.md; agy reads AGENTS.md/GEMINI.md but never expands imports; a backticked `@path` is inert on both (measured 2026-07-22, Claude Code 2.1.218 / agy 1.1.5). Standalone CLAUDE.md → bare import. AGENTS.md/GEMINI.md → inlined catalog, refreshed by /llm-wiki:index. Never inline into both. A repo with no CLAUDE.md cannot reach Claude Code at all, however well AGENTS.md is wired — scaffolding a bundle there means creating one (standalone, never a symlink). references/knowledge-bundle.md has the block shape and the failure table.
Scope test (MANDATORY) — a fact belongs in the bundle only if it cost investigation to establish and is not derivable from the code. Rules → AGENTS.md. Open work → .agents/TODO.md. Shipped design → ARCH.md. Without this test the bundle becomes a second, worse README.
Dependency on llm-wiki — decided; do not re-litigate. Always scaffold the bundle. The format is markdown with YAML frontmatter, and the harness-loaded discovery plus one-concept-per-fact discipline are the entire value — neither needs the plugin. With llm-wiki installed, use /llm-wiki:init and the lifecycle commands below; without it, hand-write index.md, CLAUDE.md, the concepts, and the discovery blocks to the same shape, and note in the bundle's CLAUDE.md that the index and any inlined catalog are hand-maintained. Absence of the plugin is NOT a reason to fall back to a flat file — but note it does mean the inlined copies have nothing refreshing them, so keep the bundle small or prefer a standalone CLAUDE.md import.
Minting a concept — one fact per doc. Frontmatter requires a non-empty type; always also write title and a one-sentence description stating a claim, not a topic (the description is all a future session sees in the index before deciding to open the doc). State the evidence — the command, the measurement, the symptom — and pin the claim to the version it was verified against. Cross-link file-relative only.
Lifecycle commands (when llm-wiki is available):
/llm-wiki:index # regenerate index.md AND re-sync inlined catalogs — after every add, rename, or delete
/llm-wiki:validate # §9 conformance — after every edit
/llm-wiki:lint # contradictions and stale claims — periodically, and after dependency upgrades
/llm-wiki:lint --quick # mechanical only: orphans, broken links, citation coverage
[ ] Scaffold the bundle if the project has runtime findings worth keeping and none exists (/llm-wiki:init .agents/wiki, or by hand). init installs discovery too.
[ ] Wire discovery into every briefing file whenever a bundle exists — bare import in a standalone CLAUDE.md, inlined catalog in AGENTS.md/GEMINI.md. This is the mechanism, not a nicety.
[ ] Migrate .agents/INSIGHTS.md if present: split into concepts (applying the scope test — most flat-file entries fail it), then delete the file. Never maintain both.
[ ] Regenerate and validate after any concept is added, renamed, or deleted.
[ ] Lint for staleness when reviewing docs — stale claims are this file type's expected failure mode, not broken links.
| Excuse / Failure | Reality |
|---|---|
| "I'll copy the whole architecture section so the agent has full context." | Pointers save tokens. Reference the doc, don't embed it. |
| "I'll just add this one rule here; it's fine if the others drift." | Contradictions between briefing files cause hallucinations. When a rule applies to multiple agents, edit each file — they're independent standalone files, propagated by hand, never symlinked. |
"I'll symlink CLAUDE.md → AGENTS.md so they stay in sync automatically." | Symlinks are banned: they block per-agent tailoring and break silently as dangling links. Keep each file standalone; de-symlink existing links with scripts/analyze-agent-docs.sh --fix before editing. |
| "The agent can figure out the test command from package.json." | Providing the exact command saves turns and prevents guesswork. |
| "I'll add a section for basic Git usage." | Agents know Git. Only document project-specific Git hooks or branch naming rules. |
| "I'll use 'should' or 'consider' for flexibility." | Using "should" allows agents to rationalize skipping rules. Use "MUST." |
| "I'll skip reading TODO.md; I already know what's pending." | TODOs go stale silently. Always read before adding or pruning items. |
| "I finished the feature so I don't need to update TODO.md." | Completed items left in the backlog mislead future agents. Remove them. |
| "This task idea is obvious; I don't need to write it down." | Future agents start cold. If it's not in TODO.md, it won't be picked up. |
| "I'll skip the priority tag — it's obvious from context which is which." | Tags are the contract. Context rots. Every item carries [P0] / [P1] / [P2]; an untagged item is malformed and MUST be fixed on sight. |
"I'll mark it [P0] to make sure someone looks at it." | P0 is reserved for bugs and broken contracts. Inflating priorities destroys the signal — if everything is P0, nothing is. Most items are P1. |
"I'll leave this [P2] in here forever in case someone eventually cares." | P2 is for things the project actually wants, just later. If it's been there for months and nobody cares, prune it — don't hoard dead tasks. |
| "I'll add a pointer sentence to CLAUDE.md so the agent knows about the wiki." | Prose pointers were observed not firing — a pointer sat in context for a full session unread, because "I am about to re-derive history" is not a state an agent recognises about itself. Harness-loaded content is the mechanism; it is not a decision the agent must make. |
"I put `@.agents/wiki/index.md` in AGENTS.md, so the bundle is wired up." | Two failures in one line. A backticked @path is inert on both runtimes — write it bare. And an import in AGENTS.md fires for nobody: Claude Code never reads that file, agy reads it but does not expand imports. AGENTS.md needs the catalog inlined; only a standalone CLAUDE.md takes the import. |
"This project doesn't have llm-wiki, so I'll put the finding in INSIGHTS.md." | The bundle format is markdown with YAML frontmatter. Scaffold it anyway and hand-maintain the index; the plugin makes it maintainable at scale, it is not a prerequisite. Never maintain a flat lessons file alongside a bundle. |
| "I'll note the version this was verified against later." | An unpinned claim is indistinguishable from a stale one the moment the runtime updates. Runtime facts rotting is the expected failure mode, not a hypothetical. Pin on write. |
| "This finding is small — I'll append it to an existing concept." | One concept per fact. Merged facts cannot be individually version-pinned, invalidated, or linked to from a rule. |
| "The bundle explains the rule, so I'll paste the explanation into AGENTS.md too." | Duplication drifts into contradiction and costs the context the bundle exists to save. Keep the rule terse in AGENTS.md and link to the concept. |
| "The staleness guard passes, so the list is current." | A guard with a blanket carve-out — a prefix filter, a family match — cannot fail for anything it exempts. It runs, it passes, it proves nothing. Read the predicate, and grep for the carve-out in sibling guards; the same exemption is usually copy-pasted. |
| "I'll add the source URL to every entry so they're all traceable." | Citing an entry ENTRENCHES it. An uncited stale row looks suspicious; the same row carrying an authoritative vendor URL looks verified, and the next reader will not question it. Ask whether the entry belongs before sourcing it — otherwise a provenance pass quietly makes the table harder to prune. |
| "The table defines what I need to verify." | Then you will verify the table's mistakes. Scope verification to what the system actually serves or runs, then reconcile the table against that — never the reverse. |
| "I looked it up when I wrote this, so it's fine." | Nothing records that, so no future reader can tell your figure from one nobody has checked in a year. Write the marker: a pinning test, the live command, or verified YYYY-MM-DD. |
| "This value is also in the manifest, but they're obviously kept in sync." | Nothing keeps them in sync but attention, and attention is what fails. Link them with a test, or delete one copy. An unlinked duplicate is a staleness generator with a delay fuse. |
| "DESIGN.md is close enough — I'll update it next sprint." | Stale token values or broken {category.name} refs silently corrupt agent reasoning. Update in the same PR or file a TODO, and always run npx @google/design.md lint DESIGN.md. |
| "I'll skip lint — it's just a style file." | Broken token cross-references and WCAG contrast failures are silent bugs. Lint is mandatory after every edit. |
"Lint rejects this color-mix() value, so I'll flatten it to hex to get a clean run." | The linter is wrong here (it only accepts in srgb), and the flattened value discards the token reference the color was derived from — the two tokens then drift apart silently forever. Never edit a correct token to satisfy a linter. Verify against the shipped stylesheet, then record the false positive in .agents/TODO.md. |
| "Lint exits non-zero, so DESIGN.md must be broken." | Exit 1 is also returned for bad arguments, and for known false positives. Read the findings and check each against shipped CSS before changing anything. |
| "I'll put architecture diagrams and component maps in DESIGN.md." | DESIGN.md is a design system (tokens + rationale), not an architecture snapshot. Architecture belongs in ARCH.md or docs/designs/ARCH.md. |
| "This project has no UI, but I'll create DESIGN.md anyway." | DESIGN.md is only for projects with a visual UI surface. CLI tools, libraries, and infra repos MUST NOT have one. |
| "T4 isn't live yet; I'll add Memory Discipline later." | The mandate is forward-compatible for agentic-minions projects. Apply mandates #1–#3 now against the seed index; #10–#11 activate on rollout. Late addition means agents ship bad habits. |
| "Dropping mandate #1 just this once — the task is tiny." | Mandate #1 (MEMORY.md loads every session) is load-bearing for the agentic-minions T0-T4 tier system. Skipping it once normalizes skipping it. Do not soften. |
| "The user has the agent-memory plugin, so I should add a Memory Discipline section." | The user-level agent-memory plugin (~/.claude/memory/) is auto-managed by hooks — it requires no per-project Memory Discipline section in AGENTS.md. Only add the section for agentic-minions T0-T4 projects. |
The agent MUST propose an update to these instructions the second time a specific project mistake is made across sessions. Proactive maintenance is mandatory to prevent recurring friction.
evals/evals.json (opens in a new tab)references/best-practices.md (opens in a new tab)references/content-guidelines.md (opens in a new tab)references/knowledge-bundle.md (opens in a new tab)references/memory-discipline.md (opens in a new tab)references/quality-assessment.md (opens in a new tab)scripts/analyze-agent-docs.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mlarkin00/plugins --plugin active-skills17 skills in this plugin
/agent-eval-designDesign an evaluation strategy for a GCP AI agent before writing any eval code — choose metrics across outcome, trajectory, operational, and safety dimensions; pick scorer types (code-based rules, LLM-as-judge, human review); and plan a golden dataset with adversarial coverage. Use when the user asks how to evaluate an ADK, Vertex AI, Agent Engine, or Gemini Enterprise agent, what metrics to use, how to build a golden or test dataset for an agent, or wants an eval plan or eval strategy for an AI agent. Not for evaluating Claude Code skills (use skill-creator-enhanced), writing agent eval code (use agent-eval-implement), or executing agent evals (use agent-eval-run)./agent-eval-implementBuild the runnable eval assets for an AI agent on GCP — ADK evalset files, pytest eval wiring, Gen AI evaluation service code for trajectory and final-response metrics, custom LLM-as-judge rubrics and scorers, and ground-truth eval datasets in Cloud Storage or BigQuery. Use when the user wants to write, build, create, or add agent evals, an evalset or eval test file, a custom judge or scorer for agent output, or an eval/ground-truth dataset — for an ADK, Vertex AI, Agent Engine, Gemini Enterprise, LangGraph, or LangChain agent. Works from an eval plan produced by agent-eval-design, or standalone when the user names just one asset. Not for choosing which metrics to measure (use agent-eval-design), executing eval runs or CI/CD gating (use agent-eval-run), or creating Claude Code skills (use skill-creator-enhanced).Other plugins' skills for the same job