Not loaded · from dev
Reviews, curates, and reorganises ADR collections by ranking clusters, confronting decisions with implementation evidence, and applying maintainer-approved dispositions. Use to pay down decision debt.
Claude Code won't load this skill
It ships in dev at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
The maintainer decides; the editor executes. The editor supplies ranked evidence and a recommendation, then asks the maintainer to dispose of one proposal at a time. It completes one cluster per PR so the review remains a coherent decision-history change.
The active collection is .red/adr/*.md. Retired records live under
.red/adr/archive/; preserve them as history, but exclude .red/adr/archive/ from future cluster analysis. .red/adr/INDEX.md maps both lanes.
Run the loop: inventory active records → rank clusters → recommend one → confront it with current evidence → reverse-grill P01, P02, … → accumulate accepted proposals → preview all resulting text and the exact diff → confirm one destructive batch → apply → verify → land one cluster per PR.
.red/adr/*.md; exclude
.red/adr/archive/ from future cluster analysis. Archived records may be read
only as historical evidence for the active cluster.accept, reject, or an
amendment, then present P02. Never stack proposals into one question.reviewed YYYY-MM-DD @ <short-base-sha>, whether its ADR
changes or stays as-is. Prioritize re-review only when new evidence exists
after that base SHA; age alone never triggers re-review..red/adr/INDEX.md coherent after every mutation. The governance
bijection Set(active ∪ archived numbers) === Set(INDEX numbers) must hold,
and every archived record must carry terminal status and a successor pointer
whenever a successor exists.start/ADR-FORMAT.md. Sequential four-digit numbering, matching
filename/H1, and only sections that earn their place.apps/plugin-dev/src/core/adr-triage.ts; mutations live in
apps/plugin-dev/src/core/adr-operations.ts. Do not reimplement their parsing in
prose or let their heuristics replace model judgment.Fetch the remote base used by the repository and record its short SHA. Build
AdrRecord[] from active files only, plus INDEX sections and numbers. Gather
candidate evidence for each active record from:
Call triageAdrs, groupAdrs, and detectAdrInconsistencies, then pass the
active records, review markers, and evidence to rankAdrClusters. Ranking is a
stable prioritization aid: changed-since-review evidence comes first; unreviewed
clusters come next; reviewed clusters with no new evidence defer. The helper's
output is candidate evidence, not a disposition.
Show the ranked active clusters with record counts, fresh-evidence summaries, and review-marker posture. Explicitly recommend where to start and why. If the maintainer already named a cluster, use it and do not reopen selection. Otherwise ask for the cluster choice once.
Deep-read every active ADR in the chosen cluster and the relevant current code, tests, documentation, and newer active ADRs. Archived ADRs can explain history but cannot join the active cluster.
Produce a private coverage ledger with one row per active ADR. Track evidence, proposed disposition, maintainer response, and final accepted disposition. The ledger is complete only when every row has an explicit maintainer answer.
The read-only operations remain first-class:
triageAdrs entries and evidence;groupAdrs membership;detectAdrInconsistencies findings.Number proposals monotonically as P01, P02, and so on. Present exactly one proposal per turn in this shape:
P01 — <short proposal title>
ADRs: <active numbers covered>
Evidence: <specific current code/tests/documentation/newer ADR findings>
Exact operation: <files, status/pointers, rewritten sections, INDEX movement>
Alternatives: <at least keep-as-is plus any credible absorb/merge/rewrite option>
Recommendation: <one choice and why>
Disposition? accept / reject / amend
Wait for the answer. Record accept, reject, or the maintainer's amended
operation before showing the next proposal. A rejected operation still produces
an explicit disposition such as keep-as-is; it cannot leave the ADR unresolved.
Use the operation vocabulary precisely:
planAbsorb rewrites one governing ADR and archives only the
auxiliaries; applyAbsorb applies it with rollback and INDEX coherence;planMerge mints a successor and archives all originals, then
applyComposite applies the replacement;planSplit mints focused successors and archives the original;planArchiveMove retires an auxiliary, deprecated,
superseded, or absorbed record via git mv; outright deletion requires an
explicit maintainer request;As proposals are accepted, accumulate accepted proposals without mutating the tree. After every active ADR has an explicit disposition, construct the complete batch through the shipped planners.
Before any destructive write, show the complete resulting text and exact diff
for every affected ADR and .red/adr/INDEX.md. Include terminal statuses,
successor pointers, archive moves, and the visible
reviewed YYYY-MM-DD @ <short-base-sha> annotations.
Then ask exactly once:
Apply this destructive batch now? (
apply/stop)
This is the one confirmation for the cluster. stop, silence, or requested edits
cancel the plan; revise it, show the full text and diff again, and obtain a new
single confirmation. Read-only work needs no confirmation.
Immediately before apply, verify target content still matches the planned input. Drift invalidates the preview and confirmation.
Use these public helpers:
planArchiveMove / applyArchiveMove;planStatusAndSuccessor / applyStatusAndSuccessor;planIndexArchive / applyIndexArchive;planIndexReviewAnnotation for the visible review marker;planStalePathFix / applyStalePathFix;planRenumber / applyRenumber;planIndexEntry for add and re-index;planSplit / applyComposite;planMerge / applyComposite;planAbsorb / applyAbsorb.Stop on the first failure. Preserve rollback behavior; never continue on a half-applied tree. Update each reviewed INDEX bullet with the review date and the short base SHA used for the evidence confrontation.
Rebuild the active-only inventory and re-run triageAdrs, groupAdrs,
detectAdrInconsistencies, and rankAdrClusters. Verify:
.red/adr/archive/ and absent from active ranking;Run ADR triage, operation, editor-doc, ask-red, and router tests. Inspect the
exact diff, then land through the repository's normal flow. When the session
ends, run the shared end-of-session doc-landing finalizer in
/start's DOC-LANDING-FINALIZER.md.
| Operation | Primitive |
|---|---|
| list | triageAdrs |
| group | groupAdrs |
| surface inconsistencies | detectAdrInconsistencies |
| cluster recommendation | rankAdrClusters |
| add / re-index | planIndexEntry |
| archive / remove | planArchiveMove + applyArchiveMove |
| rewrite metadata | planStatusAndSuccessor + applyStatusAndSuccessor |
| repair stale prose | planStalePathFix + applyStalePathFix |
| move INDEX bullet | planIndexArchive + applyIndexArchive |
| annotate INDEX review | planIndexReviewAnnotation |
| renumber | planRenumber + applyRenumber |
| split | planSplit + applyComposite |
| merge | planMerge + applyComposite |
| absorb | planAbsorb + applyAbsorb |
Do not substitute a heuristic for a decision. Title overlap suggests a cluster; it does not prove merge. A stale path proves stale prose; it does not prove the Decision is obsolete. Age and zero inbound links prove neither deprecation nor inertness. Current implementation evidence plus maintainer judgment supplies the disposition.
/red-doctor owns process and adoption drift; memory:doctor owns graph health;
this skill owns the decision collection.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub reddb-io/red-skills --plugin dev59 skills in this plugin
/afkAutonomous loop that drains the `ready-for-agent` queue on the issue tracker. Registers the project with the `redskilled` daemon at a runner and a target width, arms the drain, and observes; the daemon admits each Worker, which claims an issue, works it in its own workspace, validates, lands, and closes. Use when the user wants to run AFK execution, drain a Spec, hammer specific issues, or otherwise let agents grind through the backlog./ask-redAsk which RedSkills flow fits the current situation. Use when the operator asks what to do now, which command to run, or how to route a task through RedSkills./audit-skillsUse when the operator invokes /audit-skills to request the catalog quality scorecard. The current runtime does not serve this report.Other plugins' skills for the same job