Rank evidence-cited improvements (S/M/L) across code, performance, product, config, Claude Code setup; unmeasured yield 'instrument this'. Never edits; unattended files work items. Use when: 'what should we improve', 'improvement sweep', 'tech debt sweep', or what could/would move the needle (run a scan). Not for one fix: /improvement:improve.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Find?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/melodic-software-find)
---
description: "Rank evidence-cited improvements (S/M/L) across code, performance, product, config, Claude Code setup; unmeasured yield 'instrument this'. Never edits; unattended files work items. Use when: 'what should we improve', 'improvement sweep', 'tech debt sweep', or what could/would move the needle (run a scan). Not for one fix: /improvement:improve."
argument-hint: "[target] [--small|--medium|--large] [--dimension <name>] [--deep] [--unattended] [--repo <r> ...]"
user-invocable: true
disable-model-invocation: false
metadata:
workflow-stage: anytime
summary: Rank evidence-cited improvement candidates across dimensions; execution goes to the pipeline
---
# Find
## Repository context. Gather first
<!-- BEGIN GENERATED: gather-block. Edit docs/conventions/gather-block/block.md, then run scripts/sync-gather-block.py -->
Run each command below as its own Bash call, all sent together in one message ([worktree isolation](https://code.claude.com/docs/en/worktrees#how-claude-code-enforces-isolation)).
Keep any bound in the command's own pipe ([output limits](https://code.claude.com/docs/en/tools-reference#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](https://github.com/melodic-software/claude-code-plugins/blob/main/docs/conventions/gather-block/README.md#the-pre-compute-block-runs-as-one-shell-invocation)).
<!-- END GENERATED: gather-block -->
- Current branch, `git branch --show-current`
- Recent commits, `git log --oneline -15`
- Working tree status (empty = clean), `git status --porcelain | head -10`
- Shallow repository, `git rev-parse --is-shallow-repository`
## Variables
Arguments: `$ARGUMENTS`
## Purpose
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).
## Prompt interpretation
Parse `$ARGUMENTS` and the invoking prompt for six independent narrowings; each defaults open:
- **Target scope.** Bare invocation scans the whole repo across every dimension below. A targeted
ask, "improve `<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).
- **Size band.** `--small` / `--medium` / `--large` (or equivalent prose: "quick wins only", "big
swings") restricts candidates to that size band. Default: all sizes, ranked together.
- **Dimension.** `--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.
- **Depth.** `--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.
- **Repositories.** One repository by default (an explicit repo path, else the current repo).
Multi-repo target forms (`--repo`, `--repos-from`, `--owner`, `--fleet`, `--skip`, or words)
resolve, fan out, and merge per
[`${CLAUDE_PLUGIN_ROOT}/reference/target-scope.md`](../../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.
- **Mode.** Interactive is the default. Unattended is entered only when the caller declares it (see
Unattended mode), never inferred from context.
## Scan dimensions
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`](../../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.
## Evidence ladder
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):
1. **Measured telemetry**. Production/application metrics, error rates, cost or latency data from
a Tier 1/2 source.
2. **Repo and CI history**. Churn×complexity hotspots, CI failure ratios and duration trends,
dependency staleness. Mechanical, reproducible, repo-native.
3. **Structural presence signals**. Test-coverage presence/absence, TODO density, missing
automation where a class of toil demonstrably recurs, capabilities built but never wired up.
4. **Model judgment**, the weakest rung: this session's read of the target. Always labeled as
such, never dressed up as measurement.
Two hard rules follow:
- **Instrument-first.** When the target has no measurement at all (no telemetry, no usable CI
history, nothing above rung 4), the top-ranked candidate becomes "instrument this so future runs
can rank on data": a concrete baseline/instrumentation proposal (what to measure, where the
signal lands), handed to the pipeline like any other improvement. This mirrors the SRE
error-budget posture: measurement precedes prioritization.
- **Gaps are recorded, never papered over.** An evidence source that is unavailable (no GitHub
access path, shallow clone, no telemetry configured) produces an explicit evidence-gap line in
the output. Absence of evidence is reported; it is never fabricated, estimated, or silently
skipped.
## Evidence sources (tiered, presence-gated)
- **Tier 0. Repo-native, always available.** Deterministic Stage 1 scripts when present
(`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.
- **Tier 1. Local Claude Code telemetry.** When `harness-ops:observability` is enabled, consult
it for session/cost/hook telemetry relevant to the operational-setup dimension.
- **Tier 2. Configured application telemetry.** Whatever MCP telemetry sources the consumer
declares through the config cascade ([Configuration](#configuration)). Never hardcode a vendor;
if no source is configured, Tier 2 is an evidence gap, and product-level candidates fall back
down the ladder.
- **External research (interactive vs. unattended).** Interactive runs cite official upstream
guidance through vendored `${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`.
## Configuration
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](https://code.claude.com/docs/en/plugins/manifest-reference#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.
## Two-stage delegation facade
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):
- **Stage 1 (deterministic triage, zero LLM judgment).** Run native Tier 0 Stage 1 probes
(`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.
- **Stage 2 (bounded fresh-context fan-out).** From Stage 1 signals, rank dimensions and hotspots
by evidence severity and allocate at most `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.
- **Unified WSJF ranking.** Compete all Stage 1 and Stage 2 candidates on one scale using
`${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.
## Candidate output shape
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.
## Interactive flow
1. Present the ranked candidate list (shape above), evidence gaps included.
2. The user picks a candidate.
3. Interview on the pick. Invoke `/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.
4. Hand off to the pipeline, invoking each via the Skill tool: `/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.
5. Offer the remainder: unpicked candidates can be filed via `/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.
## Unattended mode
Entered only when the **caller declares it** in the invocation prompt, never sniffed from the
environment. In unattended mode:
- **No questions.** No interview, picks, or prompts. Soft defaults resolve: invocation prompt →
config → bundled default.
- **Persisted report.** Write the full ranked list and `gap:` lines under `${CLAUDE_PLUGIN_DATA}`
keyed per project (shape and keying: `${CLAUDE_PLUGIN_ROOT}/skills/find/context/unattended.md`,
one Read).
- **Presence-gated filing** via `work-items:track` when enabled (absent tracker = report only,
noted in the report); consultation order in `${CLAUDE_PLUGIN_ROOT}/skills/find/context/ranking.md`:
- *Dismissed memory* (`find_suppress_dismissed`): suppress previously dismissed candidates during
assembly before ranking or tracker queries.
- *Source label*: exactly one per item (`source: architecture-improve` from the architecture
candidate file; `source: improvement-find` otherwise); missing label means file nothing under
it and never create it.
- *Verified Strong architecture only*: file architecture candidates only when
`recommendation: Strong` and `signal-verified: true`; others stay report-only.
- *Open cap* (`find_open_item_cap`, default `5`): hard stop per label; the prompt cannot raise it
and personal config can only lower it.
- *Dedupe at filing*: search open items before creating each item (pre-filter only; intake triage
owns duplicate verdicts).
- *Adaptive run cap* (`find_run_item_cap`): soft default bounding items filed per run across both
labels.
- **Strict C1 read-only boundary.** Apart from the report, filed items, and the git-ignored
architecture/code-metrics hand-off files listed under the verb contract below, nothing mutates,
nothing self-disposes, and prioritization stays human-gated (`tech-debt-sweep` C1 contract).
## Execution requests
"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.
## What this skill does not do / Skip when
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:
- **Interactive** (bare invocation): it reports and stops, apart from the code-metrics writes
below.
- **Unattended**: the caller's declaration is the explicit mutation override, the same shape as
the `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.
- **Either mode, only when code-metrics is enabled**:
- `/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;
- for a growing clone class, this skill writes one review-findings file,
`<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.
## Spoke paths
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.
- **Pointer**: [Where each variable resolves](https://code.claude.com/docs/en/plugins/manifest-reference#where-each-variable-resolves).
## Next
- Picked candidate fits one small PR: /improvement:improve TARGET.
- Picked candidate needs design or several PRs: /planning:interview.
## Related
- Single-lens architecture deepening: /architecture:improve.
- Structure-only code tidying: /code-tidying:tidy.
- Verifying docs and config drift: /codebase-health:audit.
- Filing unpicked candidates: /work-items:track.
## Gotchas
- **Shallow or truncated clones poison churn rankings.** Run the history-depth gate in
`${CLAUDE_PLUGIN_ROOT}/skills/find/context/hotspots.md` first; partial history becomes a `gap:`.
- **Never call the Actions `/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`.
- **Unattended is declared, never detected.** Never infer non-interactivity from the environment.
- **No access path ≠ healthy CI.** Missing GitHub access is a `gap:` line, never guessed health.