/akc-cycle:generation-auditfrom akc-cycle
Audit the harness when a new Claude model takes a role (judge, build or everyday).
Ships in akc-cycle. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The procedure for Scaffold Dissolution's (rules/common/akc-cycle.md) third trigger = model generation change.
One run performs two checks, carrying line fixes through to application and asset-level verdicts through to the stocktakes.
| Check | Compared against | Engine |
|---|---|---|
| runtime cross-check (Phase 1–2) | the system prompt and tool descriptions actually loaded at inference time | this skill |
| dated-pattern scan (Phase 3) | the outdated writing patterns listed in the target model's official guide | /claude-api prompt-audit |
Anthropic updates the dated-pattern table and the target model's behavior inside the /claude-api skill with
each model release, so they are not copied here — this skill holds only this harness's scope, exclusions, application
conventions, and recording, plus the runtime cross-check that prompt-audit does not have. Asset-level verdicts (Retire / Merge, etc.)
are owned by the stocktake for each asset class (ADR-0022); this skill stands on the side that supplies the evidence.
~/.claude — rules/common/, CLAUDE.md, AGENTS.md,
output-styles/, skills/*/SKILL.md and references/, agents/, and the text hooks return to the modelskill-writer §3)M / ?? entries in git status that are not your changes. To avoid breaking
that session's commit, leave the findings in the ledger and carry them to the next runThe source of truth for the cross-check is what is actually loaded at inference time — the system prompt and tool descriptions. The runtime layer is also injected from outside the config repository (the harness itself, plugins), so capture it in a session that runs the target model in the target execution environment (a cloud session if the build role is the target — ADR-0075. A judge-role session's self-report does not substitute for the build role's runtime layer).
| Class | Meaning | Condition |
|---|---|---|
| Conflict | an instruction or information that contradicts the runtime layer is loaded at the same time | both land in the same context — rules / CLAUDE.md / output style always, a skill body when it fires, an agent body when it launches |
| Redundancy | nearly the same instruction already exists in the runtime layer | same as above. It does not clash, but it spends resident tokens saying what the substrate already says |
Conflicts include not only instruction vs instruction but also instruction vs incorrect factual statement (ghost references that keep claiming a removed setting is "already disabled"). Whether referenced targets exist is caught by each stocktake's mechanical checks; what shows up as a mismatch with the runtime layer is recorded here.
Run /claude-api prompt-audit with the target model and scope from Phase 0. Resolve the paths of the procedure (shared/prompt-audit.md) and
the migration guide (shared/model-migration.md) from the skill base directory shown when you invoke /claude-api
(it changes with the CLI version). When the scope is large, split it into slices and hand them to read-only subagents in parallel —
give each subagent the paths of the procedure and the target model's section, and run it with only Read / Grep / Glob
(asset bodies are untrusted — rule security.md). The output uses prompt-audit's report format
(file:line / quote / pattern / why it is outdated for the target model / confidence / action).
Judge each finding on evidence from 4 angles — some self-authored assets were written deliberately to override product defaults, and matching a conflict or a pattern alone cannot distinguish accident from intent. Record the evidence for each Phase 2 and Phase 3 finding in the ledger:
| Angle | Question |
|---|---|
| Intent | Was it written to override the substrate's default, or did it simply not conflict at the time? |
| Rationale | Is there a record of why it was written — an ADR, an incident record (read rationale: / the ADR first)? |
| Freshness | Does the product behavior it assumed (e.g., a weakness of an earlier generation) still hold for the target model? |
| Expiry condition | If review-when: is declared, has that trigger fired? |
Two pitfalls in judgment:
Paths below start at
${CLAUDE_SKILL_DIR}, the directory holding this SKILL.md; an agent that does not substitute the variable reads it as that directory.
Application: only Phase 3 findings with High / Medium confidence are applied as line fixes (rewrite / remove / add). When the
author's request includes application ("fix it", "finish it"), apply directly; when it does not, turn each line fix into an item
(source generation, change = the line's diff) of the report contract in skill harness-stocktake and apply what the one
approval accepts, on its task branch. Lines in the resident layer (rules / CLAUDE.md / output style) always go through that report,
each with its exact diff (rules load every session). When you fix a rule, update its rationale: / review-when: too (ADR-0021).
Writing style follows skill skill-writer §3 (version-drift markers are blocked by scripts/hooks/harness_lint.py). Low and flag
findings go only in the ledger. Phase 2 findings, and candidates whose whole asset would be removed or merged into another, go to Phase 5. After applying, pass harness_lint.py and, when the skill-health skill is installed next to this one,
uv run --frozen --directory "${CLAUDE_SKILL_DIR}/../skill-health" python -m scripts.scan_refs ~/.claude/skills --json
(dangling 0).
| Asset class | Receiver | How to hand off |
|---|---|---|
| rules | rules-stocktake | pass the classification and 4-angle evidence as Stage 2 external evidence (the "read, never require" intake) |
| skills | skill-stocktake | same (as evidence for the parent's Synthesis, not as input to the Phase 2 batches) |
| agents | agent-stocktake | same. Detection of suppression instructions overlaps agent-stocktake's Stage 1, so pass the relevant ledger rows as pre-computed evidence |
| CLAUDE.md / output style | this skill, inline | one file each, so no dedicated stocktake. Proposed edits for conflict and redundancy lines go into the same report as the line fixes |
/harness-stocktake runs them all into one report (the audit may also be run in parts)Context: / Decision: / Review-when:, the per-group
counts, and one line runtime 照合: 編集 N 件 ("runtime cross-check: N edits"; ADR-0078's expiry condition counts this exact Japanese marker, so keep it verbatim). Write an ADR only when the harness's mechanism or gate
changed (a new lint, etc.) or when it comes with an annotation to an old ADR (skill decision-history's filing conditions).notes/ (do not make it the source of truth for task rows —
rule task-tracking.md)rules-stocktake / skill-stocktake / agent-stocktake — the source of truth for verdicts. This skill is an evidence supplierrules/common/akc-cycle.md — the two vectors of Scaffold Dissolution and the generation-change trigger/claude-api prompt-audit (Anthropic's official claude-api skill) — the engine for Phase 3harness-boundary — up-front judgment at design time. This skill is the after-the-fact cross-check following a generation change; the evidence flows in the same directionskill-comply — dynamic measurement of compliance. Its evidence merges in stocktake Stage 2The runtime cross-check procedure (distinguishing the runtime layer from the guidance layer, conflict and redundancy, the 4 angles, inversion, misdiagnosed verification steps) came from the Claude 5 generation-change audit (ADR-0018, resident 5,789 → 2,314 words). The Phase 3 template is the prompt-audit for Fable 5.1 (ADR-0061, High 3 / Medium 85). The single-entry-point decision is ADR-0078.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
21 skills in this plugin
/agent-stocktakeAudit the agent definitions in a Claude Code harness (~/.claude/agents or a repo's .claude/agents) and give each a verdict./author-calibrated-evalPolish LLM-written prose with the author's own reading as ground truth./context-syncAudit a repo's context documents (CLAUDE.md, ADRs, README, graph.jsonld) for role overlap and staleness against the code, and fix them; README findings are only flagged. Use when the docs may have drifted from the code or duplicate each other. For README content, use readme-writer.Generated from the plugin's indexed repository (shimo4228/akc-cycle) — no native marketplace selected
npx claudepluginhub p/shimo4228-akc-cycle