/improvement:find [target] [--small|--medium|--large] [--dimension <name>] [--deep] [--unattended] [--repo <r> ...]from improvement
Scans a repository for evidence-cited improvement candidates across code, performance, product, config, and Claude Code setup dimensions. Ranks findings by size (S/M/L) and surfaces unmeasured areas requiring instrumentation. Never edits files; outputs work items for the pipeline.
Ships in improvement. 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.
Run each command below as its own Bash call, all sent together in one message (worktree isolation).
Keep any bound in the command's own pipe (output limits).
Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).
git branch --show-currentgit log --oneline -15git status --porcelain | head -10git rev-parse --is-shallow-repositoryArguments: $ARGUMENTS
Answers "what should we improve here, and how do we know?" Review evaluates a diff; planning designs chosen work; specialized finders hunt one lens. This skill ranks cross-dimension candidates grounded in cited evidence (measurement, not taste). It discovers and deliberates only; execution always flows through the normal pipeline (interview → discovery → planning → implementation → verification).
Parse $ARGUMENTS and the invoking prompt for six independent narrowings; each defaults open:
<feature>", "improve <path>", "improve <concept>", narrows the scan: map the
named feature/path/concept to its concrete surfaces (files, workflows, config, ops touchpoints)
before gathering evidence, and gather evidence for those surfaces only. A concept with no
resolvable surface is itself a finding (likely instrument-first, below).--small / --medium / --large (or equivalent prose: "quick wins only", "big
swings") restricts candidates to that size band. Default: all sizes, ranked together.--dimension <name> (or prose naming one dimension, such as code/architecture,
performance, product, config/automation, operational-setup, docs/hygiene, testing, or delivery)
restricts Stage 1 and Stage 2 delegation to that dimension's owning probes and skills, bypassing
the cross-dimension Stage 2 dispatch cap for that dimension.--deep lifts the Stage 2 skill-dispatch cap (find_stage2_lane_cap, default 3,
range 1 to 10, both interactive and unattended) and dispatches every enabled Stage 2 skill
eligible for the current mode and target scope. Default: at most K total Stage 2 subagents.--repo, --repos-from, --owner, --fleet, --skip, or words)
resolve, fan out, and merge per
${CLAUDE_PLUGIN_ROOT}/reference/target-scope.md; each repo
runs anchored (delegated skills such as /architecture:improve (if enabled) receive
--repo <owner/name>) and joins one ranked list (${CLAUDE_PLUGIN_ROOT}/skills/find/context/ranking.md).
For an explicit repo path, resolve <root> once (git -C <repo-path> rev-parse --show-toplevel),
anchor every git -C <root> call and file read to it, and re-run the Gather-first git calls
with -C <root>. Across multiple repositories, unattended state stays per repository
(<state-key>, report, dismissed memory, memory-root candidate/findings files, and per-repo open
cap), while the run cap counts per run and a cross-repo row is filed once in the owning repo.The scan walks this inventory explicitly, so it cannot silently collapse to code-only. For each dimension, gather whatever evidence its tier sources and delegated Stage 1/2 probes yield, then propose candidates:
| Dimension | Examples of what to look at |
|---|---|
| Code / architecture | Churn×complexity hotspots, coupling and seam friction, dead or duplicated surface, capabilities built but never wired up |
| Performance | Slow CI, slow tests, slow builds, known-slow runtime paths named by telemetry |
| Product-level behavior | Error rates, failure-prone user flows, gaps between documented and measured behavior |
| Config / automation outside the codebase | GitHub labels, Actions workflows, synchronizations, branch protections, bot config |
| Claude Code operational setup | Cloud environments, MCP servers, hooks, permission rules, plugin/skill configuration |
| Docs / hygiene (delegated only) | Noise, progressive disclosure, AI slop, attribution, docs drift; ranked only when returned by an enabled owning skill |
The consumer's standards set the bar. Before ranking, resolve the consumer's standards through
the "Resolution ladder" section of the plugin's contract binding
${CLAUDE_PLUGIN_ROOT}/reference/standards-contract.md
and read the files whose Applies when matches a scanned dimension; a candidate that brings the
target in line with one cites that file, and none proposes what one rules out. Read guidance
through the binding's "Guidance layer (every rung)" paragraph (and /engineering-guidance:load (if enabled)): advice below every standard.
Docs/markdown boundary (delegated only). This skill never runs inline docs or markdown
scanning. Docs, attribution, AI-slop, and progressive-disclosure candidates enter the ranked list
only when returned by an enabled owning skill (/docs-hygiene:audit-noise (if enabled),
/docs-hygiene:audit-progressive-disclosure (if enabled), /attribution:audit (if enabled),
/ai-slop:audit (if enabled), /codebase-health:audit (if enabled)), keeping its lane
attribution. When no owning skill is enabled (or none returned the candidate), emit a gap: /
routing pointer naming the owning plugin (docs-hygiene, codebase-health, ai-slop, or
attribution) outside the ranked list; never rank an inline docs finding.
The skill's core mechanic. Every candidate cites its evidence, and its rung on this ladder sets the confidence attached to the ranking (strongest first):
Two hard rules follow:
hotspots.mjs per ${CLAUDE_PLUGIN_ROOT}/skills/find/context/hotspots.md, plus ci-health.mjs,
disconnected.mjs, and dependency-staleness.mjs under ${CLAUDE_PLUGIN_ROOT}/skills/find/scripts/
when shipped; otherwise ${CLAUDE_PLUGIN_ROOT}/skills/find/context/ci-health.md,
${CLAUDE_PLUGIN_ROOT}/skills/find/context/disconnected.md, and manifest staleness inspection),
test-coverage presence, TODO density, and built-but-unwired capabilities (unused exports/imports,
write-only stores, off flags hiding built routes; run every time before proposing a net-new
build). Read each recipe with one Read of the exact path named here; never Glob or Grep the
plugin directory for it.harness-ops:observability is enabled, consult
it for session/cost/hook telemetry relevant to the operational-setup dimension.${CLAUDE_PLUGIN_ROOT}/scripts/fetch-docs.sh and
${CLAUDE_PLUGIN_ROOT}/scripts/docs-cache.sh (read --index then verbatim slice, never citing
a cached summary or note without reading its slice) when present, and/or /discovery:research (if enabled).
Unattended runs stay strictly C1 with zero live external web fetches, grounded only in repo
evidence, resolved standards, and /engineering-guidance:load (if enabled). Details:
${CLAUDE_PLUGIN_ROOT}/skills/find/context/delegation-funnel.md.The churn keys, the Stage 2 dispatch cap, the unattended controls and the Tier 2 sources resolve
through the layers in ${CLAUDE_PLUGIN_ROOT}/reference/config.md (one Read of that file): plugin
default, userConfig, team <home>/improvement.yaml, then personal <home>/improvement.local.yaml.
The userConfig layer, read from this text, where Claude Code substitutes it
(reference a saved value);
empty, or a literal ${user_config.…} placeholder, means unset:
| Option | Value |
|---|---|
churn_window | ${user_config.churn_window} |
churn_exclude | ${user_config.churn_exclude} |
churn_exclude_defaults | ${user_config.churn_exclude_defaults} |
find_open_item_cap | ${user_config.find_open_item_cap} |
find_run_item_cap | ${user_config.find_run_item_cap} |
find_run_item_cap_floor | ${user_config.find_run_item_cap_floor} |
find_run_item_cap_ceiling | ${user_config.find_run_item_cap_ceiling} |
find_size_band | ${user_config.find_size_band} |
find_scope | ${user_config.find_scope} |
find_suppress_dismissed | ${user_config.find_suppress_dismissed} |
find_dismissal_breaker_percent | ${user_config.find_dismissal_breaker_percent} |
find_stage2_lane_cap | ${user_config.find_stage2_lane_cap} |
evidence_sources_file | ${user_config.evidence_sources_file} |
GitHub access-path probe ladder. For CI and repo-platform data, probe in order: GitHub MCP
tools (actions_* and repo tools) → gh CLI → none. On "none", record the evidence gap and rank
without CI evidence, never reconstruct CI health from guesswork.
This skill is a thin, zero-duplication facade over candidate-handoff/v1 audit lanes. Delegate to
enabled owning skills; never re-implement a sibling plugin's detector logic. Read the full
presence-gated Stage 1/2 roster, candidate-handoff/v1 ingestion and lossless fallback rules,
docs delegation boundary, and external-research rules in
${CLAUDE_PLUGIN_ROOT}/skills/find/context/delegation-funnel.md (one Read of that path):
hotspots.mjs and, when present, ci-health.mjs, disconnected.mjs,
dependency-staleness.mjs; else their context/ recipes) plus presence-gated deterministic
probes from enabled owning plugins (including /code-metrics:audit-duplication (if enabled) with
--json --keep --all and /code-tidying:audit-dead-code (if enabled)). Ingest
candidate-handoff/v1 envelopes directly or via lossless fallback, and record gap: lines for
absent or non-unattended plugins. Done when every eligible Stage 1 probe has returned candidates
or a gap: line.K total owning-skill subagent dispatches, where K =
find_stage2_lane_cap from the config cascade (default 3, range 1 to 10, both interactive
and unattended; narrowed by --dimension <name> or lifted across all eligible enabled skills by
--deep). Dispatch each selected owning LLM-judgment skill in an isolated fresh-context subagent
returning compact candidates with lane attribution and rung 4 labels for model judgment. In
unattended mode, dispatch only skills with a declared unattended contract (such as
/architecture:improve deepening --unattended (if enabled), reading its candidate file per
${CLAUDE_PLUGIN_ROOT}/skills/find/context/unattended.md "Architecture candidates") and skip
interactive-only skills with a gap: line; never simulate a user. Done when every selected
Stage 2 subagent has returned candidates or a gap: line.${CLAUDE_PLUGIN_ROOT}/skills/find/context/ranking.md, preserving lane attribution, evidence
rungs, human_gated boundaries, and the strict read-only verb contract. Where no specialized
lane is enabled, Tier 0 evidence stands alone.One ranked list, highest value-to-effort first. Every row carries:
| Field | Content |
|---|---|
| Rank | Position; the highest-impact candidate leads |
| Candidate | One-line improvement statement, concrete enough to hand to an interview |
| Dimension | Which scan dimension it belongs to |
| Size | S / M / L |
| Evidence | Citation: source + specifics (e.g. "hotspot: 14 commits/90d × high indentation"), and its ladder rung |
| Confidence | Derived from the evidence rung, stated plainly |
| Value-to-effort | WSJF-style rationale: cost of delay (value, urgency, risk reduction) against job size |
Scoring and dedupe mechanics: ${CLAUDE_PLUGIN_ROOT}/skills/find/context/ranking.md. Evidence-gap lines appear after the list so the
reader knows what the ranking could not see.
/planning:interview (if enabled) via the Skill tool when available, to reach a shared shape:
what improvement, why now, what evidence, what done looks like./discovery:explore (if enabled) (internal
unknowns) or /discovery:research (if enabled) (external unknowns) as needed, then /planning:plan (if enabled). The handoff artifact is the interview's
output, with the candidate's evidence citation attached. A pick that fits one small PR may
instead go to /improvement:improve, invoked via the Skill tool with the candidate as its
target, plus --repo <owner/name> when the candidate came from another repository./work-items:track (if enabled); the user decides which, if any. Each one filed carries the source: improvement-find label (${CLAUDE_PLUGIN_ROOT}/skills/find/context/unattended.md "Source label", including what to do when the label is missing).Where a named pipeline skill is not enabled in the consuming project, summarize the equivalent handoff shape inline instead of blocking, but absence of a pipeline skill is never license to implement the improvement in this session.
Entered only when the caller declares it in the invocation prompt, never sniffed from the environment. In unattended mode:
gap: lines under ${CLAUDE_PLUGIN_DATA}
keyed per project (shape and keying: ${CLAUDE_PLUGIN_ROOT}/skills/find/context/unattended.md,
one Read).work-items:track when enabled (absent tracker = report only,
noted in the report); consultation order in ${CLAUDE_PLUGIN_ROOT}/skills/find/context/ranking.md:
find_suppress_dismissed): suppress previously dismissed candidates during
assembly before ranking or tracker queries.source: architecture-improve from the architecture
candidate file; source: improvement-find otherwise); missing label means file nothing under
it and never create it.recommendation: Strong and signal-verified: true; others stay report-only.find_open_item_cap, default 5): hard stop per label; the prompt cannot raise it
and personal config can only lower it.find_run_item_cap): soft default bounding items filed per run across both
labels.tech-debt-sweep C1 contract)."Go implement this", interactively or as a follow-up, routes through the pipeline, never through
this skill's own hands: interview the pick → /discovery:explore (if enabled) / /discovery:research (if enabled) →
/planning:plan (if enabled) → /implementation:implement (if enabled) → /verification:confirm (if enabled), each delegated to its
skill by invoking it via the Skill tool. An execution request changes where the handoff goes,
not what this skill is allowed to touch.
Show the ranked list first, even when the prompt asks to go straight to implementation. Write the full list, with its evidence-gap lines, in your reply before the Skill tool call that hands off a pick, and name which row you are handing off. The user then sees what the pick beat and can redirect it. When the prompt hands you the pick ("pick the top one"), hand off rank 1 in the same turn; otherwise stop after the list and wait for the pick, per Interactive flow step 2.
Reuse-or-replace posture: each boundary below names an owned lane this skill delegates to or steps aside for. It re-implements none of them.
| Skip when the ask is | Owned by | Why not here |
|---|---|---|
| Single-lens architecture depth (shallow modules, Design-It-Twice) | architecture:improve | That lens is consulted as a scan input; going deep on architecture alone is its job |
| Doing one improvement now ("improve this", "fix one thing") | improvement:improve | This skill ranks and never edits; improve picks one gap and ships it as one PR |
| Applying small safe code edits | code-tidying:tidy | This skill never edits; tidying mutates by contract |
| Verifying docs/config/code drift claims | codebase-health:audit | Claim verification, not improvement discovery |
| Reviewing a diff before merge | review:fanout | Diff-scoped and reactive; this skill scans existing state proactively |
| Sweeping TODO/FIXME markers into items | work-items:scan-todos | Marker sweep is one narrow signal; here TODO density is evidence, not the deliverable |
Verb contract. find never edits the target's tracked files. What it writes depends on the
mode:
audit verb's autofix override, and it authorizes exactly three more things: the report
persisted under ${CLAUDE_PLUGIN_DATA}/find/<state-key>/ (with the dismissed-candidate memory
beside it), presence-gated work-item filing, and the git-ignored candidate file
architecture:improve writes under <memory_dir>/architecture/improve/<branch-slug>/, with the
<memory_dir>/.gitignore it creates when that file is absent./code-metrics:audit-duplication --json --keep (if enabled), which this skill runs, keeps its report in
code-metrics' own data directory, reports/<state-key>/audit-duplication-<UTC stamp>.json
(code-metrics keeps the newest 20 per project), the baseline of the next run's trend;<memory_dir>/improvement/<branch-slug>/<UTC stamp>-clone-growth.md, and, on its first
memory-tier write, a .gitignore containing * in <memory_dir> when that file is absent
(${CLAUDE_PLUGIN_ROOT}/skills/find/context/unattended.md "Growing clone classes").No other mutation exists in any mode; there is no flag, prompt, or mode that makes this skill edit the target's tracked files.
Open every ${CLAUDE_PLUGIN_ROOT}/skills/find/context/<file>.md named above with one Read of that
exact path; never Glob or Grep the plugin directory (sandboxes may deny it, and an abandoned search
can leave an orphaned grep on Windows). The context/ files write ${CLAUDE_PLUGIN_ROOT} as
<plugin-root>: substitute it before running a command or writing a brief, and never pass a
${…} token from those files to Bash.
${CLAUDE_PLUGIN_ROOT}/skills/find/context/hotspots.md first; partial history becomes a gap:./timing endpoint. Derive durations, failure ratios, and run_attempt
retries from date-windowed /actions/runs per ${CLAUDE_PLUGIN_ROOT}/skills/find/context/ci-health.md.gap: line, never guessed health.context/ci-health.md (opens in a new tab)context/delegation-funnel.md (opens in a new tab)context/disconnected.md (opens in a new tab)context/hotspots.md (opens in a new tab)context/ranking.md (opens in a new tab)context/unattended.md (opens in a new tab)scripts/ci-health.mjs (opens in a new tab)scripts/ci-health.test.mjs (opens in a new tab)scripts/ci-health.test.sh (opens in a new tab)scripts/dependency-staleness-parsers.mjs (opens in a new tab)scripts/dependency-staleness.mjs (opens in a new tab)scripts/dependency-staleness.test.mjs (opens in a new tab)scripts/dependency-staleness.test.sh (opens in a new tab)scripts/disconnected-config.mjs (opens in a new tab)scripts/disconnected.mjs (opens in a new tab)scripts/disconnected.test.mjs (opens in a new tab)scripts/disconnected.test.sh (opens in a new tab)scripts/fixtures/github-actions-workflow-runs.json (opens in a new tab)scripts/hotspots.mjs (opens in a new tab)scripts/hotspots.test.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/improveImprove one thing in any target (method, doc, feature) to match written repo standards or current upstream guidance; ships the smallest complete improvement as one small PR (bare call confirms target/focus). Use when: 'improve this', 'fix one thing', 'make this faster', or a scheduled improve-one-thing run. Not for ranked lists: /improvement:find./setupInspect improvement config cascade and evidence sources read-only (check, default) or interview and write team improvement.yaml (apply).npx claudepluginhub melodic-software/claude-code-plugins --plugin improvementOther plugins' skills for the same job