From code-tidying
Verify and configure the code-tidying plugin for this repository. check inspects the tracked .claude/tidy-lanes/<lane>.md project lanes read-only (presence, required sections, unreplaced placeholders, tracked-not-ignored); apply interviews the repo, infers which lane patterns fit, and scaffolds project lane files from the bundled templates. Use when: 'set up code-tidying', 'is code-tidying configured', 'configure tidy lanes', 'code-tidying setup', 'scaffold a tidy lane', or the tidy skill reports no project lanes. Re-runnable — safe to invoke again to add or retune lanes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-tidying:setup check | apply [<lane>]check | apply [<lane>]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Verify and scaffold the consuming repo's tracked lane definitions at `.claude/tidy-lanes/<lane>.md`
Verify and scaffold the consuming repo's tracked lane definitions at .claude/tidy-lanes/<lane>.md
so /code-tidying:tidy resolves project-specific scope globs and watch-for patterns deterministically
instead of falling back to the generic bundled lanes every run. A project lane at
${CLAUDE_PROJECT_DIR}/.claude/tidy-lanes/<lane>.md takes precedence over the bundled lane of the
same name — this is the plugin's seam-2 extension surface.
Project lanes are optional: with none, /code-tidying:tidy uses the bundled lanes, so their absence is
a reported INFO, never a FAIL. check inspects read-only; apply scaffolds or retunes lanes, then
re-runs check. No argument or check runs the check; apply runs the check first, then the scaffold
flow. apply <lane> targets a single lane. Idempotent: re-running reads the existing lane files and
proposes additions or edits against that baseline rather than overwriting a consumer lane blind.
${CLAUDE_PLUGIN_ROOT}/skills/tidy/lanes/*.md — shell-tooling, docs-prose)
cover surfaces that look the same in most repos. They resolve automatically with no config;
a project override is worth writing only when this repo's tooling or doc directories differ from
the bundled defaults.${CLAUDE_PLUGIN_ROOT}/skills/tidy/templates/*.template.md) are <placeholder>
scaffolds for the lanes that are project-specific by design — code the repo has but no generic
lane can name. This skill's primary job is turning the fitting templates into real lane files.Never tell the user to "copy the bundled lanes." Scaffold from templates; override a bundled lane only when its defaults miss this repo's actual layout.
check (read-only)Inspect the consumer's tracked lanes and report a PASS/FAIL/INFO table with one remediation line per
FAIL. Modify nothing, and do NOT run a tidy sweep — that is /code-tidying:tidy.
.claude/tidy-lanes/*.md. None → INFO: tidy resolves the bundled
lanes; apply scaffolds project lanes when this repo's layout diverges from the bundled defaults.## Scope,
## Watch-for patterns, ## Lane-specific extra exclusions, ## Verification commands,
## Conventional Commits type, ## Preferred research sources). A lane missing a section is FAIL.<placeholder> resolves to a
broken scope glob or watch-for pattern; FAIL, naming the file and the leftover token.git check-ignore -v <file> per lane file. A non-empty result means a
.gitignore pattern excludes that lane; these lanes are team-shared and take effect only when
committed, so an ignored lane is FAIL with the matching pattern in the remediation line (a directory
can be tracked while a pattern excludes an individual .md inside it).apply can generate.apply (idempotent)Run check, then apply the convention-resolution ladder — config present → use it; absent → infer from
the repo and persist; cannot infer → ask and offer to persist; else a safe default (skip that lane, no
empty file). Proceed non-interactively for whatever the invocation and the repo make unambiguous; ask
only where a lane's scope genuinely needs the user's call.
.claude/tidy-lanes/*.md. If any exist, read each and present a
short summary (lane name, scope globs, watch-for count). Propose changes against that baseline;
never overwrite an existing consumer lane without explicit confirmation in this conversation.${CLAUDE_PLUGIN_ROOT}/skills/tidy/templates/apps-lane.template.md) — user-facing
applications + their tests: web/API/CLI app roots and their sibling test projects.${CLAUDE_PLUGIN_ROOT}/skills/tidy/templates/dependency-root-lane.template.md) —
framework/library core that downstream code depends on: shared/domain/core library roots.${CLAUDE_PLUGIN_ROOT}/skills/tidy/templates/host-wiring-lane.template.md) — hosting
infrastructure, logging, registration, service defaults: composition roots, DI wiring, service-default projects.${CLAUDE_PLUGIN_ROOT}/skills/tidy/templates/polyglot-services-lane.template.md) —
non-primary-language services, MCP servers, sidecars.shell-tooling or docs-prose is warranted only when they diverge from the bundled scope globs.
Read the actual directory names and file extensions from the repo — do not assume a stack. Skip any
template pattern the repo has no surface for. When invoked as apply <lane>, scope this to that lane.<placeholder> (templates) or bundled default (overrides) with values drawn from
this repo. The source depends on the lane's origin:
${CLAUDE_PLUGIN_ROOT}/skills/tidy/templates/<pattern>-lane.template.md
(e.g. apps-lane.template.md) — and every <placeholder> is replaced.shell-tooling, docs-prose) have no template; start from the bundled
lane file ${CLAUDE_PLUGIN_ROOT}/skills/tidy/lanes/<lane>.md and adjust its scope globs / exclusions
to this repo's actual layout.## Scope,
## Watch-for patterns, ## Lane-specific extra exclusions, ## Verification commands,
## Conventional Commits type, ## Preferred research sources). Never emit an ad-hoc lane missing a section.
Values to fill: scope globs from real directory paths, watch-for patterns tuned to the stack,
lane-specific exclusions for this repo's unverifiable surfaces, verification commands from the project's
own CLAUDE.md / rules / CI config (never invented), the Conventional Commits type, and preferred research
sources. Leave no <placeholder> behind..claude/tidy-lanes/<lane>.md. Write only
lanes the user confirmed; produce no empty scaffolds.check probes on each written file — required sections
present, no leftover placeholder, and (per file) git check-ignore -v <file> confirms it is tracked,
not ignored. A non-empty check-ignore result means a .gitignore pattern excludes that lane; surface
the matching pattern and offer to fix .gitignore before reporting success, since these lanes are
team-shared and must be committed to take effect. /code-tidying:tidy resolves a lane only from
.claude/tidy-lanes/<lane>.md (then the bundled lane of that name), and its catalog lists
.claude/tidy-lanes/*.md — there is no personal/local-overlay resolution. Every scaffolded lane is a
tracked, team-shared file; do not point developers at a *.local.* variant the tidy skill would never
load. A developer who wants a private lane keeps a normal .claude/tidy-lanes/<lane>.md and gitignores
that one path, accepting it stays local-only.Re-running apply after everything passes changes nothing and reports "already configured".
Tracked .claude/tidy-lanes/<lane>.md file(s) in the consuming repo, plus a one-paragraph summary of which
lanes were written, which source each came from (template or bundled lane), and how to re-run this setup
to add or retune lanes.
/code-tidying:tidy. check only inspects config.${CLAUDE_PLUGIN_ROOT}/skills/tidy/templates/;
duplicating those into this skill would drift from the source..claude/tidy-lanes/,
never in the plugin directory or a plugin data directory.npx claudepluginhub melodic-software/claude-code-plugins --plugin code-tidyingGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
Dispatches multiple subagents concurrently for independent tasks without shared state. Use when facing 2+ unrelated failures or subsystems that can be investigated in parallel.