/claude-leverage:repo-doctor [--score] [--json] [--fail-on missing|todo|stale|semantic] [--scope foundation|why|what|incode|hygiene|sync|all] [--semantic] [--fix N] [--quiet] [--no-history] [--no-recommend]from claude-leverage
Audits a repo for AI-readiness across ~24 dimensions: foundation docs, ADRs, glossary, architecture, code anchors, hygiene, and code-to-docs drift. Reports L0-L4 readiness level with fix actions per gap.
Ships in claude-leverage. 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.
None: SKILL.md is the whole skill.
Reads the current repo and answers the question prose AGENTS.md
doesn't cheaply answer per session: what's missing for AI-first
work here? Output is a Markdown report scored across ~24 dimensions,
with a concrete fix action per gap (often "invoke /X").
Read-only on the repo; writes only local state (see Hard rules). The skill is an audit, not a bootstrap.
This skill complements three existing ones with clean differentiation:
| Skill | Question it answers |
|---|---|
/init-repo | "Set this fresh repo up." (writes files) |
/stack-check | "What I have — is it stale?" (freshness audit) |
/repo-doctor | "What I don't have — what's missing?" (presence + drift + opt-in truthfulness; guided handoff via --fix) |
/security-review | "Is this diff safe to commit?" (orthogonal — code-level scan) |
/dynamic-check | "Do the declared commands actually run?" (executes code — opt-in, separate skill per ADR 0013) |
/init-repo ran, to see what else the bootstrap didn't
cover.skill-cheatsheet SessionStart hook suggests a checkup.Do NOT invoke for:
/stack-check./security-review./init-repo.# Repo Doctor — <repo-name> — <YYYY-MM-DD>
## Summary
✅ 11 pass · ⚠️ 8 attention · ❌ 5 missing · **Score: 63/100** ·
**Level: L1 Instructed (L2 blocked by Hygiene: deficit 2.5 > 2.0)**
## Foundation (loaded every session)
| Check | Status | Fix |
|---|---|---|
| AGENTS.md (root) | ✅ 4.2 KiB | — |
| CLAUDE.md (one-line `@AGENTS.md` import) | ✅ present | — |
| Per-dir AGENTS.md | ⚠️ 3 source dirs >500 LOC missing | drop `templates/AGENTS.md.example` into `src/billing/`, `src/auth/`, `src/api/` |
## Why (load-bearing decisions)
| Check | Status | Fix |
|---|---|---|
| ADRs (docs/adr/) | ❌ directory absent | next load-bearing decision → invoke `/adr-new` |
| Session logs (docs/sessions/) | ⚠️ last entry 47 days old | end of next substantial session → `/session-log` |
## What (domain + structure)
| Check | Status | Fix |
|---|---|---|
| GLOSSARY.md | ❌ missing | invoke `/glossary-init` (auto-surfaces candidates) |
| architecture.yml | ❌ missing | invoke `/arch-map` |
## In-code discoverability
| Check | Status | Fix |
|---|---|---|
| AIDEV anchors | 12 anchors / 4823 LOC = 2.5/KLOC | typical (target 1–5/KLOC) |
| Overdue anchors | ⚠️ 2 past deadline | see `/stack-check` for detail |
## Engineering hygiene
| Check | Status | Fix |
|---|---|---|
| Tests present | ✅ 28 test files | — |
| Test/source LOC ratio | ⚠️ 0.18 (target 0.5–1.0) | `src/billing` largest, fewest tests — add coverage there first |
| Structured logging | ❌ `print(` 14×, no structured logger detected | invoke `/log-structured` |
| .gitignore (claude-leverage state) | ✅ present | — |
| README quickstart | ✅ present | — |
| Language manifest | ✅ pyproject.toml | — |
| CI config | ✅ .github/workflows/ci.yml | — |
| .env.example | ⚠️ env usage in 3 files, no example | add `.env.example` with the required keys |
| Reproducible env | ✅ poetry.lock (lockfile-level) | — |
| Secret guardrails | ⚠️ only `.env` gitignored | add gitleaks to pre-commit or CI |
## Sync (code ↔ docs drift)
| Check | Status | Fix |
|---|---|---|
| `architecture.yml` ↔ disk | ⚠️ 2 drifts: `public_surface: [LegacyClient]` not in code; `src/old/` orphan (on disk, not in YAML) | invoke `/arch-map` to refresh |
| `GLOSSARY.md` ↔ code | ⚠️ term `Lead` no longer ref'd in code (last seen 4 months ago) | edit `GLOSSARY.md` or `/glossary-init --add` |
| Per-dir `AGENTS.md` staleness | ✅ all in sync | — |
| `CHANGELOG` ↔ version | ❌ `plugin.json` says 1.6.0, `CHANGELOG` top is 1.5.0 | add a `## [1.6.0]` entry to `CHANGELOG.md` |
| `README` slash-refs ↔ skills | ✅ all 13 slash commands resolve | — |
## Recommended next 3 actions
1. **`/arch-map`** — biggest unblock for refactor proposals; also fixes
sync drift on `public_surface: [LegacyClient]`; <5 min
2. **`/glossary-init`** — `Account` appears in 12 files; agent likely
hallucinating meaning
3. Add a `## [1.6.0]` entry to `CHANGELOG.md` to close the
version-drift gap
_Declared-command validation (executes code, opt-in): `/dynamic-check`._
How each dimension can be gamed — and what counters it:
docs/repo-doctor-gaming.md. Read it
before trusting a suspiciously green report.
Predicate P (no-code repo): the repo has zero tracked files matching
the Dim 3 code-extension list (which includes .sh — shell is code).
Dimensions that reference P return N/A when it holds — a docs-only repo
gets no verdict (and no free ✅) on code-shaped checks.
Prefer the dedicated Grep/Glob tools for pattern scans. The Bash
allowlist covers simple single-binary helper calls only — compound
commands and VAR=$(...) assignments (the history slug/append in step
5b) do not prefix-match any allowlist entry and ride the session's
normal permission prompt by design (ADR 0012, Decision 6).
AGENTS.md (root) — test -f AGENTS.md. Evaluate the size bands
largest-first (a 40 KiB file is a fail, not a warn):
project_doc.max_bytes (32768), so part of the file is invisible to
Codex agents. This is data loss, not a style nit.docs/ behind a when-to-read link. See ADR 0009.CLAUDE.md (root) — test -f CLAUDE.md.
@AGENTS.md (i.e., diverges
from canonical guidance — split surface to maintain).@AGENTS.md import.Per-directory AGENTS.md — for each top-level source dir
(heuristic: has files matching *.py|*.ts|*.tsx|*.js|*.jsx|*.go|*.rs|*.java|*.rb|*.php|*.cs|*.kt|*.swift|*.sh|*.bash)
compute LOC (wc -l aggregated). For each with > 500 LOC and no
AGENTS.md at that dir root, count it.
ADRs — ls docs/adr/ 2>/dev/null | grep -E '^[0-9]{4}-.*\.md$'.
docs/adr/ absent OR 0 numbered ADR files.Session logs — ls docs/sessions/*.md 2>/dev/null and parse
the date from filename (YYYY-MM-DD-topic.md) or mtime fallback.
docs/sessions/ absent OR 0 logs.GLOSSARY.md — test -f GLOSSARY.md.
<TODO> placeholders
(parse H2 sections, count those whose body contains the literal
<TODO>).architecture.yml — test -f architecture.yml.
<TODO> placeholders
for role or stability.AIDEV anchor density — grep -rE 'AIDEV-(NOTE|TODO|QUESTION)'
across tracked files (skip bench archive, vendor, node_modules,
pycache, .git, dist, build; exclude matches inside test files —
there they are overwhelmingly fixture string literals, not anchors).
Count matches. Divide by total tracked code LOC (git ls-files
filtered to code extensions incl. .sh → wc -l). Express as
anchors-per-KLOC. Bands use half-open
intervals ([a, b)) so every value falls in exactly one band:
< 0.3/KLOC AND total LOC > 1000 (the repo is
big enough that the absence is signal).[0.3, 1.0)/KLOC (sparse for an AI-first repo).[1.0, 10.0]/KLOC (typical).> 10/KLOC (anchor noise — clutter dilutes
load-bearing ones).Overdue / due-soon anchors — borrowed from /stack-check's
anchor walk (intentional overlap; /stack-check provides the
full actionable detail, this dimension just surfaces the count
in the completeness report). Parse AIDEV-(TODO|QUESTION)(by: YYYY-MM-DD) and compare to today. File scope mirrors the
overdue-todo-nudge hook: source code only — skip markdown/json
and the docs/templates/tests/bench/workflows trees (that's where
the convention's own example anchors and fixture literals live),
and apply the first-token rule (an AIDEV-NOTE quoting a TODO
example doesn't count).
file:line and days
overdue; remind to run /stack-check for the rest.Tests present — exists tests/ dir OR ≥1 file matching
**/test_*.{py}, **/*_test.{go,py}, **/*.test.{ts,tsx,js,jsx},
**/*.spec.{ts,tsx,js,jsx}, **/*Test.{java,kt}, etc.
Test-to-source LOC ratio — sum LOC of test files (above
patterns) divided by sum LOC of source files (excluding tests,
excluding the same noise paths as anchor walk). Bands use
half-open intervals so every value falls in exactly one band.
Note: the ❌ floor at 0.15 is claude-leverage's own
judgment (below that the test suite is decorative); the ✅
band of [0.5, 1.5] is anchored on the
Count.co healthy range
of 0.5–1.0.
ratio < 0.15.[0.15, 0.5) (below the healthy range).[0.5, 1.5] (healthy).ratio > 1.5 (possible over-testing of trivial code
— judgment call).Structured logging — grep for unstructured logging patterns
(print(, console\.(log|info|warn|error)\(, fmt\.Print,
println!) vs structured logger imports (structlog, pino,
slog, tracing::, log/slog).
print(-style hits are CLI stdout of
scripts/generators rather than application logging (shell-heavy
meta-repos, build tooling — stdout IS their interface). N/A
shrinks the divisor; don't award a ✅ for logging that doesn't
exist..gitignore claude-leverage state — grep -E '\.last-stack-check|claude-leverage' .gitignore.
.gitignore missing entirely.README quickstart — grep README.md for one of: ## Install,
## Quickstart, ## Getting started, ## Setup, ## Run,
## Usage (case-insensitive, first 200 lines).
Language manifest present — pyproject.toml, package.json,
go.mod, Cargo.toml, Gemfile, composer.json, pom.xml,
mix.exs (same list as bare-repo-nudge.sh), plus
.claude-plugin/plugin.json for plugin repos — keeping this list
consistent with Dim 19's manifest precedence.
These dimensions check that the descriptive layer (architecture.yml, GLOSSARY.md, per-dir AGENTS.md, CHANGELOG, README) is still synchronized with the code. Differentiated from earlier dimensions (which check presence): a repo can have all artifacts present and still be in deep drift if those artifacts last described a previous version of the code.
Every Sync dimension returns N/A (excluded from divisor) when its
target artifact does not exist — drift is meaningless when there's
nothing to drift from. The presence gap is already reported by the
relevant earlier dimension (e.g. Dim 7 for architecture.yml).
architecture.yml ↔ disk + symbol drift — parse
architecture.yml. For each modules[].path, test -d it. For
each modules[].public_surface entry (a string), grep its name
in the declared path subtree. Walk top-level dirs on disk (same
noise-path filter as Dim 8) and identify any plausible source dir
(≥100 LOC, has code files) that is NOT covered by any
modules[].path — those are orphan modules, candidates for
/arch-map to add.
≤ 2.≥ 3.architecture.yml does not exist.GLOSSARY.md ↔ code drift — parse GLOSSARY.md. For each
## <Term> heading, grep the term across tracked code files
(skip noise paths, skip the glossary itself). For each Code:
bullet path in the entry body, test -e it. Separately:
identify the top-5 most-referenced PascalCase / domain-shaped
identifiers in the repo (using the same heuristic as
/glossary-init step 4) that are NOT in the glossary AND
appear ≥10 times — those are missing terms.
Code: paths AND no
obvious missing terms.≤ 2 total issues (stale + broken + missing combined).≥ 3.GLOSSARY.md does not exist.Per-dir AGENTS.md staleness vs dir activity — for each
<dir>/AGENTS.md (depth ≤ 3, skip noise paths), compute:
agents_md_ts = git log -1 --format=%ct -- <dir>/AGENTS.mddir_ts = git log -1 --format=%ct -- <dir> (any change in
the dir; for the comparison, ignore changes that touched
ONLY the AGENTS.md itself — see --invert-grep workaround
below).gap_days = (dir_ts - agents_md_ts) / 86400.If gap_days > N (default 30; override via
CLAUDE_LEVERAGE_AGENTS_MD_DRIFT_DAYS), the AGENTS.md is
likely describing a stale state of the dir.
1–2 stale.≥ 3 stale.gap_days.Implementation note: filtering "changes that only touched
AGENTS.md" requires git log -- <dir> plus a follow-up
git show --name-only per commit, or an approximation: subtract
1 day from agents_md_ts before comparing. The approximation
is fine — we're looking for month-scale drift, not hour-scale.
CHANGELOG.md ↔ version manifest — read the top-of-file
## [X.Y.Z] heading in CHANGELOG.md (first match). Compare
to the version in the primary manifest for this repo, in
order of precedence:
package.json#versionpyproject.toml [project] version or [tool.poetry] versionCargo.toml [package] version.claude-plugin/plugin.json#version (this stack)composer.json#versionUse the first manifest found.
CHANGELOG_top == manifest_version.manifest_version > CHANGELOG_top by exactly one minor /
patch level (probably an unreleased version about to ship — a
legit transient state).CHANGELOG_top > manifest_version which is "promised but not
shipped").CHANGELOG.md nor any recognized manifest
exists (a docs/scratch repo).README.md slash-refs ↔ skill availability — grep
README.md for /[a-z][a-z0-9-]+ tokens (slash-prefixed
identifiers). Filter to plausible skill / command references
(drop e.g. file paths, regex examples, dates). For each /foo:
skills/foo/SKILL.md exists at repo root → resolved.commands/foo.md exists → resolved.<plugin>" / "upstream" → resolved (external skill).1–2 unresolved.≥ 3 unresolved./foo slash-refs.Distinct from /stack-check's markdown link audit (which
checks file paths in markdown); this one checks slash-command
references against installed skills.
Numbered after Sync because they shipped later (numbering is
append-only, same convention as Dims 16–20); they belong to the
Hygiene group and --scope hygiene.
CI config present — glob .github/workflows/*.{yml,yaml},
.gitlab-ci.yml, .circleci/config.yml, azure-pipelines.yml,
Jenkinsfile, .drone.yml, .gitea/workflows/*.
on:, trigger:, pipelines: per system)..env.example present — first detect env-config usage: grep
os\.environ|getenv\(|process\.env|dotenv|ENV\[ across source (same
noise-path filter as Dim 8, excluding test files — tests set env
for fixtures, they don't consume config) and count distinct files
with hits.
CLAUDE_LEVERAGE_*) — those are opt-in feature flags, not
required configuration an agent must discover..env.example / .env.sample / .env.template exists with
≥1 KEY=-shaped line..env-not-gitignored is Dim 24's job — do not double-penalize here.Reproducible dev environment — check for
.devcontainer/devcontainer.json, flake.nix/shell.nix,
docker-compose.y*ml (or Dockerfile paired with compose/devcontainer),
.tool-versions, mise.toml; else for a lockfile
(package-lock.json, poetry.lock, uv.lock, Cargo.lock,
go.sum, Gemfile.lock).
Secret-hygiene guardrails — only repo-visible, machine-independent
mechanisms count fully: .pre-commit-config.yaml mentioning
gitleaks|detect-secrets|trufflehog, .gitleaks.toml, a CI config
invoking one of those scanners, or an in-tree .githooks/ pre-commit
running one.
AGENTS.md carries the claude-leverage:
marker (stack adopted; hook enforcement is machine-local and not
verifiable from the repo — see ADR 0012 on why this caps at ⚠️) OR
.gitignore covers .env (minimal hygiene)..env is not gitignored.A communication layer on top of the score (ADR 0012). Levels gate — they
never average. Per group compute points (✅=1.0, ⚠️=0.5, ❌=0) and
evaluated (dims minus N/A). A group passes iff
evaluated − points ≤ max(0.5, 0.2 × evaluated) — the 80 % rule for
groups of ≥3 dims, with a floor so 2-dim groups tolerate one ⚠️ but no
❌. A required group with zero evaluated dims blocks its gate
(not assessable), never satisfies it.
| Level | Name | Requires (cumulative) |
|---|---|---|
| L0 | Ad-hoc | — |
| L1 | Instructed | Foundation passes |
| L2 | Maintained | Hygiene passes |
| L3 | Explained | Why passes AND What passes |
| L4 | Self-consistent | In-code passes AND Sync passes |
Report the achieved level plus the blocking gate for the next one, e.g.
Level: L2 Maintained (L3 blocked by Why: deficit 1.0 > 0.5). With
--scope narrowed, skip the levels line entirely — levels are only
meaningful on a full run.
Resolve repo root. git rev-parse --show-toplevel. If not in
a git repo, STOP and report: "repo-doctor needs a git checkout to
walk tracked files".
Optionally narrow by --scope. Run only the dimensions in the
requested scope group. Default: all 24.
Run each dimension's check. Use the allowed-tools listed —
Read for AGENTS.md / CLAUDE.md / README / GLOSSARY.md /
architecture.yml; Grep for AIDEV anchors + structured-logging
patterns; Bash for git ls-files, wc -l, find. Cap walks
at 5000 tracked files; skip the same noise paths everywhere
(bench/archive-*, node_modules, pycache, .git, dist, build,
vendor, target, .next, .pytest_cache).
3b. Semantic review (only when --semantic). Dispatch the
readiness-reviewer subagent (read-only; see its file for the S1–S5
dimension definitions). Render its JSON as:
```markdown
## Semantic review (advisory — not in the score, ADR 0012)
| Dim | Verdict | Confidence | Evidence | Fix |
|---|---|---|---|---|
| S1 AGENTS.md actionability | ⚠️ attention | high | AGENTS.md:42 — declares `make test`; no Makefile | replace with real command |
```
With `--json`, attach the subagent object unmodified under a
top-level `"semantic"` key — never merged into `score`, `groups`,
or `level`. If the subagent fails, returns malformed JSON, or
subagent dispatch is unavailable in this runtime (Codex), report
`Semantic review: unavailable (<reason>)` and continue — never fail
the deterministic report over the advisory layer.
4. Compute the score as simple sum: ✅ = 1.0, ⚠️ = 0.5, ❌ = 0.
Divide by the number of dimensions actually evaluated — that is,
24 minus the count of N/A verdicts (some Sync and Hygiene
dimensions return N/A when their target artifact doesn't exist
or the language has no convention to check). The divisor is
further narrowed by --scope. Multiply by 100. Round.
Document the N/A count in the report's Summary line so the
Score: X/100 number is interpretable (e.g.
Score: 67/100 (3 N/A: arch-yml-drift, glossary-drift, structured-logging)).
Emit the report. Markdown by default. With --json, emit a
structured object:
{
"repo": "name",
"date": "2026-05-26",
"score": 67,
"summary": {"pass": 8, "attention": 4, "missing": 3},
"groups": {
"foundation": {"points": 2.5, "evaluated": 3},
"why": {"points": 1.0, "evaluated": 2},
"what": {"points": 1.5, "evaluated": 2},
"incode": {"points": 1.5, "evaluated": 2},
"hygiene": {"points": 2.0, "evaluated": 4},
"sync": {"points": 1.5, "evaluated": 2}
},
"level": {"n": 1, "name": "Instructed", "blocked_by": "hygiene"},
"dimensions": [
{"name": "agents-md-root", "status": "pass", "value": "4.2 KiB", "fix": null},
{"name": "glossary-md", "status": "missing", "value": null, "fix": "/glossary-init"},
...
],
"recommended": ["/arch-map", "/glossary-init", "per-dir AGENTS.md"]
}
5b. History + trend (default on; skip with --no-history, skip when
--scope is narrowed). Resolve
STATE_DIR="${CLAUDE_LEVERAGE_STATE_DIR:-${XDG_STATE_HOME:-$HOME/.local/state}/claude-leverage}",
falling back to $HOME/.claude/claude-leverage if that dir cannot
be created (same chain as scripts/hooks/stack-freshness.sh).
Canonicalize the repo root before hashing
(ROOT_CANON=$(cd "$ROOT" && pwd -P)) so worktree/symlink spellings
don't fork the history, then:
SLUG="$(basename "$ROOT_CANON")-$(printf '%s' "$ROOT_CANON" | cksum | cut -d' ' -f1)".
Read the last line of $STATE_DIR/repo-doctor/$SLUG.jsonl (via
tail -n 1, if the file exists) and emit a Trend line in the
Summary: Trend: 61 → 67 (+6) since 2026-07-12 · level L1 → L2.
If the previous record's v or evaluated differs from this run,
annotate instead of celebrating:
Trend: 61 → 67 since 2026-07-12 (dimension set changed 20 → 22 — delta not comparable).
Then mkdir -p "$STATE_DIR/repo-doctor" and append exactly this
shape of command — do NOT retype or rewrite existing file contents;
append only. None of the 5b commands (slug assignment, mkdir,
printf append, trim mv) are in allowed-tools — write-capable
commands with wildcard args would be a prose-gated write primitive,
the exact failure mode ADR 0012 (Decision 6) forbids, and compound/
assignment commands wouldn't prefix-match anyway. Expect 1–2
permission prompts per run; a user who accepts the state-dir write
can allowlist the exact commands in their own settings, and
--no-history avoids the prompts entirely. In a restricted run
where the prompt is denied, skip history silently — never fail the
report over it:
```bash
printf '%s\n' '{"date":"<YYYY-MM-DD>","v":"<plugin version>","evaluated":<divisor>,"score":<score>,"groups":{...},"level":<n>}' >> "$STATE_DIR/repo-doctor/$SLUG.jsonl"
```
The record is the compact one-line JSON (`date`, `v` = plugin
version, `evaluated` = score divisor, `score`, `groups` from step 5,
`level`), NOT the full report. If the file exceeds ~200 lines, trim
it to the last 100 (`tail -n 100` into a temp file in the same dir,
then move it back) and say so. Finally refresh the freshness
timestamp the Hard rules mention:
`date +%s > "$STATE_DIR/.last-repo-doctor"`.
6. --quiet: suppress ✅ rows; show only ⚠️ + ❌ + the summary +
recommendations. Default is full report.
6b. --fix [N] (default 3). After emitting the report, walk the
recommended actions top-down. Per item: show the gap + the mapped
skill, ask the user (one item at a time), on yes invoke that skill
(it carries its own confirmation flow) — or, where skill invocation
is unavailable in this runtime, print the exact slash command to
run; on no move on. The doctor itself writes nothing in the repo.
--fix implies the recommendations walk even when --no-recommend
is passed (--fix wins, with a note). After the walk, suggest
/repo-doctor --quiet to re-score. In non-interactive runs
(--score, --json, CI), ignore --fix and print a one-line
warning.
Exit code. 0 always, UNLESS --fail-on was passed:
--fail-on missing → exit 2 if any ❌--fail-on todo → exit 1 if any ⚠️ (TODO/draft state)--fail-on stale → exit 1 if any "stale" status (overdue
anchors, old session log)--fail-on semantic (requires --semantic) → exit 3 if any
semantic fail verdict with confidence ≥ medium. This gate is
non-deterministic by nature — it belongs in scheduled audits,
not per-commit CI.This is what makes the skill useful in CI as a gate.
.last-repo-doctor timestamp and repo-doctor/<slug>.jsonl
history — both under ~/.local/state/claude-leverage/ or its
fallback, never the repo). The report is text on stdout (or
stdout-bound markdown).bench/archive-token-savings-thesis/)
and standard noise paths. Don't penalize a repo for old
archived experiments not following current conventions.--score — print only the integer 0–100 score on stdout, no
Markdown (suppresses the Trend line too; the history append itself
still happens unless --no-history). Useful for CI scripts:
score=$(claude /skill repo-doctor --score).--json — structured output (see step 5).--fail-on missing|todo|stale|semantic — exit non-zero per step 7
(semantic requires --semantic).--scope foundation|why|what|incode|hygiene|sync|all — narrow the
check set. sync runs only Dimensions 16–20 (drift detection);
useful for "did my last commit invalidate any docs?" runs.
hygiene includes the v1.14.0 delivery additions (Dims 21–24).--quiet — suppress passing rows.--no-recommend — skip the "Recommended next 3 actions" section.--no-history — skip workflow step 5b (no state write, no Trend
line).--fix [N] — after the report, offer the top-N recommended actions
one at a time and invoke the mapped skill on yes (workflow step 6b).
Interactive only.--semantic — additionally dispatch the readiness-reviewer
subagent (workflow step 3b; token cost: one Sonnet subagent run;
non-deterministic by nature). Deliberately NOT a --scope value:
--scope all stays "all deterministic dimensions" (ADR 0012)./init-repo (for AGENTS.md
/glossary-init, /arch-map, /adr-new, /session-log).
(--fix only invokes those skills interactively; it never writes
files itself.)/stack-check./security-review.pytest, eslint, cargo clippy, …). The skill checks that
tests exist, not that they pass.skill-cheatsheet SessionStart hook can
suggest /repo-doctor, but doesn't run it.Same SKILL.md ships in Codex via scripts/install-codex.sh. All
deterministic checks use plain Bash + Read + Grep — no
Claude-Code-specific tools. History (step 5b) uses plain shell
redirection and works identically in both tools. Exception:
--semantic requires Claude Code subagent dispatch; in Codex it
degrades to Semantic review: unavailable (no subagent dispatch) and
the deterministic scopes are unaffected.
--diff-base <ref> to score a PR's incremental contribution
to AI-readiness (e.g., "did this PR add the AGENTS.md it should
have?"). Future enhancement.--json outputs.What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/adr-newUSE WHEN a load-bearing architectural decision is being made in conversation (database / framework / auth model / integration choice, or explicit rejection of an alternative) — one likely to be re-litigated in 6 months without the rationale. Bootstraps a numbered MADR ADR in `docs/adr/`, asks for context + decision + alternatives, updates the index. Immutable status once accepted. See `docs/adr/README.md` for the convention; full Do/Don't list in this SKILL body.
/arch-mapUSE WHEN setting up a repo for AI-first work, after a major directory restructure, or when an agent needs structured answers like "which modules are stable?" / "what's the public surface of X?" that the prose AGENTS.md doesn't give cheaply. Bootstraps or refreshes `architecture.yml` at repo root — machine-readable module metadata (path / role / stability / public_surface / depends_on / paired_with / owners). Hand-curated; the skill drafts, the user confirms. See ADR 0005 for why this file lives at root and why YAML over JSON.
/codex-sandboxUSE WHEN setting up Codex CLI in a project, tightening sandbox for prod/CI, or when user asks about Codex permissions. Interactive helper for per-project `.codex/config.toml`: `dev` / `prod` / `custom` profiles, idempotent via markers, preserves unmanaged config below the block. Codex-only artifact.
npx claudepluginhub filip-podstavec/claude-leverage --plugin claude-leverageOther plugins' skills for the same job