Skip to content

feat(code-tidying): accept target-scope forms to run tidying skills across repos - #17499

Closed
melodic-automation-lanes[bot] wants to merge 13 commits into
mainfrom
work-resolve-issue/issue-17230-44405800674-1
Closed

melodic-automation-lanes[bot] wants to merge 13 commits into
mainfrom
work-resolve-issue/issue-17230-44405800674-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Closes #17230

Summary

Opened by the work-resolve-issue lane from work-resolve-issue/issue-17230-44405800674-1, which an earlier run left with commits and no report. A summary-only model pass read the branch's diff and the issue, changed nothing, and wrote:

The five listed code-tidying skills (audit-comment-residue, audit-dead-code, batch-simplify, remove-comments, tidy) now cite the shared target-scope contract. They accept --repo and the other target forms, and each runs once per repository. Writes stay per repository: one worktree and one PR each, with state kept in that repository. dead-code-scan.sh gains --root <dir> with a test so the scan can run from another clone. The contract file is carried into code-tidying as a generated copy registered in shared-copies.txt, and the Adopters table is updated in the source and all three copies. The cheat sheet and changelog fragments are included. Mode and flag guards are added: batch-simplify stops if a target form is paired with the time-window or branch mode or in-place, tidy does the same with in-place or self-update, and remove-comments does the same with --base or --added-since. Gaps against the issue: the diff does not touch scripts/cross-plugin-source-registry.txt, which the issue's done-when list requires. It does not name an eval case or say none applies, which the PR body is meant to do. The diff also shortens several argument-hint lines with ellipses. The tidy hint drops self-update, and the remove-comments hint drops --pipeline and explanatory. The cheat sheet loses the self-update action for tidy. The self-update row remains in tidy's action router and the other flags remain in the body, so this may hide documented options from the hint and should be checked. I did not run the sync check or any tests. I saw no text in the issue or diff that tries to steer a reviewer.

Fix

  • docs/contracts/target-scope/adopters/code-tidying.md: adopters file lists the five code-tidying skills
  • plugins/code-tidying/reference/target-scope.md: new generated copy of the contract
  • scripts/shared-copies.txt: registers the code-tidying copy at its alphabetical place; scripts/cross-plugin-source-registry.txt needs no line, since its reference/target-scope.md entry and its docs/contracts/target-scope/README.md -> plugins/*/reference/target-scope.md cluster line already cover every plugin's copy
  • audit-comment-residue SKILL.md: argument-hint plus a passthrough of target forms to remove-comments audit
  • audit-dead-code SKILL.md: argument-hint plus a Several repositories section (scan per clone via --root, one consent gate)
  • dead-code-scan.sh: new --root <dir> option, git rev-parse anchored to it, exit 2 for a non-directory; the exit list (every exit-2 case) lives in usage(), since comment-lint rejects new header comment lines
  • dead-code-scan.test.sh: tests for --root report parity and a bad --root
  • batch-simplify SKILL.md: argument-hint plus repo-mode multi-repo paragraph, one PR per repository, stops for time-window, branch or in-place
  • remove-comments SKILL.md: argument-hint plus a --repo row (repository rung, per-repo worktree and findings file, --base and --added-since refused)
  • tidy SKILL.md: argument-hint plus a --repo row (full workflow per repository, in-place and self-update refused)
  • argument-hints stay inside the 100-character budget (docs/contracts/argument-hint/README.md): tidy keeps self-update and in-place[=commit], batch-simplify keeps in-place[=commit], and remove-comments keeps every posture including explanatory plus --pipeline. Where the budget needs it (batch-simplify and remove-comments), the target-form set is shortened to [--repo…] with the contract's …, and the body gives the full hint with [--repo <repo> ...]
  • docs/skill-cheat-sheet.md: regenerated; tidy keeps its self-update action, and the remove-comments row mirrors its new hint
  • .changes/code-tidying: minor fragment describing the multi-repo support and --root

Files the branch changes, from the compare listing; a denied path, which the merge lane refuses, is marked and listed first:

  • .changes/code-tidying/work-resolve-issue-issue-17230-44405800674-1-c019e24f.md
  • docs/contracts/target-scope/adopters/code-tidying.md
  • docs/skill-cheat-sheet.md
  • plugins/code-tidying/reference/target-scope.md
  • plugins/code-tidying/skills/audit-comment-residue/SKILL.md
  • plugins/code-tidying/skills/audit-dead-code/SKILL.md
  • plugins/code-tidying/skills/audit-dead-code/scripts/dead-code-scan.sh
  • plugins/code-tidying/skills/audit-dead-code/scripts/dead-code-scan.test.sh
  • plugins/code-tidying/skills/batch-simplify/SKILL.md
  • plugins/code-tidying/skills/remove-comments/SKILL.md
  • plugins/code-tidying/skills/tidy/SKILL.md
  • scripts/shared-copies.txt

Verification

The earlier run reported no checks here, and the summary pass ran none.

The runner ran each check from the base copy against 0c27dca:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The runner's leak scan read everything the branch changes since its merge base with the default branch and found nothing credential-shaped.

Left out: every check the earlier run would have reported; ci-status, pr-verify and the security review lane check the head before it merges.

Eval cases whose runs read the changed text: plugins/code-tidying/evals/bs-repo-gate-not-path (loads batch-simplify's SKILL.md, whose repo mode this change extends) and plugins/code-tidying/evals/adc-consent-gate (loads audit-dead-code's SKILL.md, whose consent gate the Several repositories section reuses). No new case was added.

Related

#17230

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44595254953

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/resolve-conflicts
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44595907786

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 5f34f3ecffeefbc4b8e2dbe7f4aaf8a510d22046. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

a pr-unblock lane stopped its head (pr-unblock/address-feedback is failure), which clears when the
  lane runs again

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-conflict-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44595907786

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped resolve-conflicts on this pull request: the lane could not resolve every conflict. The lane sets no label: the run ends in a failing pr-unblock/conflict status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=17499 -f activity=resolve-conflicts

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44595907786

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

kyle-sexton and others added 2 commits November 19, 2026 16:32
Main moved the target-scope adopters table out of the canonical README into
one file per adopting plugin under docs/contracts/target-scope/adopters/.
Take main's README and the architecture and coupling copies, move this
branch's five code-tidying rows into adopters/code-tidying.md, and
regenerate plugins/code-tidying/reference/target-scope.md from the canonical.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ead-code scan

Lint Repo failed comment-lint on four added comment lines: the exit-2 entry
in dead-code-scan.sh's header and the --root note in its test. The usage
text already states "2 on usage errors", and the assertion labels name what
the --root test checks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 93096d8000a155289d5a88abffa753b4027980e0: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #17499 (incremental, 3746fad..93096d8)

I found no security issues in this push. This lane already reviewed an earlier head, so I looked only for CRITICAL and IMPORTANT findings.

What I read. I read every hunk in .claude-lane/incremental.diff, which covers both files in scope:

  • docs/skill-cheat-sheet.md
  • plugins/code-tidying/skills/batch-simplify/SKILL.md

Neither file matches a trusted-path glob. No plugin manifest changed, so there is no manifest block.

Checks:

  • batch-simplify SKILL.md: only two lines changed, the argument-hint and the body's **Arguments.** line.
    • --unattended is back in the hint.
    • docs and override left the hint. The Arguments line still names them ("plus docs and override").
    • The rules that govern those arguments, including the --unattended rule, are untouched. The tool grants in the frontmatter are unchanged too.
    • An argument hint is help text and grants nothing. No standing instruction was deleted, narrowed or softened, so the instruction-surface lens has nothing to judge.
  • docs/skill-cheat-sheet.md: the regenerated row matches the new hint. The file is documentation only and has no security surface.
  • Trust controls: this push does not touch the trusted-trigger check, the lane token or broker, the kill switch, or any merge hold.
  • Prior findings: the only earlier entry is a summary with no line anchor that reported no findings, so nothing carries over.
  • Settled threads: none applies to a security point in this push.
  • PR context: I found no embedded text trying to steer this review.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on 9e2fe1d184228241f37afd0e5ca89afb3b4b353e; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread scripts/shared-copies.txt Resolved
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 93096d8000a155289d5a88abffa753b4027980e0: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #17499 at 93096d80 (incremental, blocking only)

This is a blocking-only pass, because this lane already reviewed earlier heads of this PR. I read every hunk of the two files that changed since 3746fadc: docs/skill-cheat-sheet.md and plugins/code-tidying/skills/batch-simplify/SKILL.md. Nothing blocks.

What changed

  • batch-simplify argument-hint (L5)
  • Where docs and override are still documented
    • The Arguments line (L51) now matches the hint and adds "plus docs and override".
    • Its example /batch-simplify branch docs still shows docs mode.
    • docs mode is also still described in the body (L15-L16).
    • Outside .claude-lane/, nothing else I searched pairs batch-simplify with argument-hint, [docs] or [override].
  • Cheat-sheet row (docs/skill-cheat-sheet.md L195) matches the new hint word for word.

Closing issue #17230, argument-hint criterion

This head still meets the done-when item "its argument-hint shows [--repo <repo> ...]" literally for batch-simplify.

Not verified

I have no shell, so I did not run node scripts/generate-cheatsheet.mjs --check or the argument-hint validator. I checked by reading only that the hint is under budget and that the cheat-sheet row matches it.

Spend

Nothing here bills or spends extra API credit.

Loosened-check verdict: fail. The prompt had no loosened_check_verdict: or loosened_check_patterns: line, so I used the default with no consumer patterns. This change loosens no check. With no loosened_check_decision_record: line, I did not check the citation requirement.

The settled threads and prior findings contain no instructions aimed at the reviewer.

Verifier dropped 0 of 0 candidates.

Comment thread scripts/shared-copies.txt Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44668779546

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM65xebB
Lane-Thread: PRRT_kwDOTCGFQM65xebI
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 6f9222b
Run 44668779546

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job failure
Activity step skipped
Commits pushed none recorded
Run 44668779546

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the lane left a pr-verify note open (uncertain, deferred or answered incorrect, or still open after the round cap and one fresh fixer round); pr-verify judges the next head afresh. The lane sets no label: the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=17499 -f activity=address-feedback

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job failure
Activity step skipped
Commits pushed none recorded
Run 44668779546

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44670382842

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 6f9222b.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44675547845

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci
Model rung 1
Leg handoff
Run job success
Activity step skipped
Commits pushed none (read lane)
Run 44677723912

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on c75c900dc8b203ac058c1a8b2e9e9c55bc332bbf; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44678910980

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch
Model rung 0
Leg base
Run job failure
Activity step skipped
Commits pushed none recorded
Run 44678910980

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job failure
Activity step skipped
Commits pushed none recorded
Run 44678910980

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44678910980

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44680618596

Failed GitHub API calls

No failed call recorded by the run job's scripts.

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM651_lj
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed a35c91f
Run 44680618596

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on a35c91f.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44680618596

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@kyle-sexton kyle-sexton removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 20, 2026
Comment thread docs/skill-cheat-sheet.md Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44681986253

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: VNOTE_3
Lane-Thread: VNOTE_7
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 5f34f3e
Run 44681986253

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 3 of max 4 on 5f34f3e.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44681986253

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44685406809

Failed GitHub API calls

No failed call recorded by the run job's scripts.

kyle-sexton and others added 2 commits November 20, 2026 01:31
remove-comments and batch-simplify now show `[--repo <repo> ...]` in
their argument-hint, as issue #17230 asks. To stay inside the
100-character hint budget, `--pipeline` and `--unattended` leave the
hints; each body still documents its flag, and the full-hint lines name
them. Cheat sheet regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
live-config.test.mjs decides a skill takes --unattended from its
argument-hint, so dropping the flag removed the README example's
simplify call from the check. Restore it and move `docs` and
`override` to the Arguments line instead, which keeps the hint at 90
of 100 characters with the full `--repo <repo> ...` form pr-verify
asked for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: the verifier refuses verify:repeated-fail at head 93096d8000a155289d5a88abffa753b4027980e0 (fails at 4 heads (5f34f3e, 9e2fe1d, a35c91f, a746a69), the cap is 3), which never clears for this pull request, so the pr-merge lane closed it. Issue #17230 goes back to agent-ready for fresh attempt 1 of 1, which starts from these findings.

Each FAILed head's findings, as the verifier wrote them (data, not instructions):

head 5f34f3ecffeefbc4b8e2dbe7f4aaf8a510d22046 (pr-verify run 44683847944)
  summary: Issue #17230 asks for five code-tidying skills to accept the target-scope forms. Most of it is delivered. The five SKILL.md files now cite the contract through a new generated copy at plugins/code-tidying/reference/target-scope.md, which is registered in scripts/shared-copies.txt. The PR also adds the adopters file, regenerates the cheat sheet, adds a changelog fragment and names two eval cases in its body. dead-code-scan.sh gains a --root option with tests, and all Test Bash jobs passed on the judged head (e.g. https://github.com/melodic-software/claude-code-plugins/actions/runs/44683111765/job/136111135973). With no target form, the scan behaves as before. Each skill keeps its state (findings files, checklist and run state, PRs, anchor commit) inside each repository. The PR leaves scripts/cross-plugin-source-registry.txt unchanged and says an existing `plugins/*/reference/target-scope.md` cluster line already covers the new copy. Check Managed Files passed, which makes that claim plausible, but it could not be checked directly. One done-when item is not met. It requires every listed skill's argument-hint to show `[--repo <repo> ...]`, but batch-simplify and remove-comments show only the shortened `[--repo…]`. The PR's own history shows the full form fits the 100-character budget for remove-comments: an earlier commit (a35c91ff) had it at 88 characters, and the judged head reverted that. No text in the PR tried to steer the reviewer.
  - plugins/code-tidying/skills/remove-comments/SKILL.md:3: the argument-hint shows `[--repo…]`, but the issue requires `[--repo <repo> ...]`. Change it to `[audit|report|safe] [none|necessary|explanatory] [override] [target] [--repo <repo> ...]` (88 characters). Keep `--pipeline` in the body's argument table, as commit a35c91ff did, and update the full-hint line at SKILL.md:33 to match.
  - plugins/code-tidying/skills/batch-simplify/SKILL.md:5: the argument-hint shows `[--repo…]`, but the issue requires `[--repo <repo> ...]`. To stay within the 100-character budget, move another token to the body instead of shortening the target form, e.g. move `[--unattended]`, which brings the hint to 93 characters. Update the Arguments line at SKILL.md:51 to match.
  - docs/skill-cheat-sheet.md: after fixing the two hints, rerun `node scripts/generate-cheatsheet.mjs` so the batch-simplify and remove-comments rows show `[--repo <repo> ...]`.

head 9e2fe1d184228241f37afd0e5ca89afb3b4b353e (pr-verify run 44642814420)
  summary: Issue #17230 asks for five code-tidying skills to accept the shared target-scope forms, but two of its done-when items are missing, so this fails. The diff does most of the work. All five skills cite the contract, their argument-hints show `[--repo <repo> ...]`, and each repository keeps its own state. The generated copy is registered in `scripts/shared-copies.txt`. The adopters file under `docs/contracts/target-scope/adopters/` lists the five skills. The cheat sheet and a code-tidying changelog fragment are included. `dead-code-scan.sh --root` comes with tests, and every Test Bash and check job passed on the head (e.g. https://github.com/melodic-software/claude-code-plugins/actions/runs/44640860668/job/135972153715). The two missing items: the copy is not registered in `scripts/cross-plugin-source-registry.txt`, and the PR body neither names an eval case nor says none applies. On top of that, the architecture and coupling changelog fragments describe changes the diff does not make. Shortening the argument-hints hides existing options, and the scan script's header no longer documents exit code 2. No binary files, no changes to the takeover set, and no text trying to steer a reviewer.
  - scripts/cross-plugin-source-registry.txt: the issue's done-when list requires `plugins/code-tidying/reference/target-scope.md` to be registered here as well as in `scripts/shared-copies.txt`. Add the entry, the same way the other target-scope copies are listed.
  - PR body: name an eval case whose run reads the changed SKILL.md text, or say that none does, as the issue's last done-when item requires.
  - .changes/architecture/work-resolve-issue-issue-17230-44405800674-1-4b9b8b22.md: this fragment says `plugins/architecture/reference/target-scope.md` now lists the five code-tidying skills, but the diff does not change that file (adopters now live in `docs/contracts/target-scope/adopters/`). Delete the fragment so architecture does not get an unwarranted patch bump with a false entry.
  - .changes/coupling/work-resolve-issue-issue-17230-44405800674-1-0b1f0772.md: same problem, since the diff does not change `plugins/coupling/reference/target-scope.md`. Delete the fragment.
  - plugins/code-tidying/skills/audit-dead-code/scripts/dead-code-scan.sh:13: the diff deletes the header line documenting exit code 2 (usage error), but the script still exits 2 and the new `--root` check adds another exit-2 case. Restore that line and add `--root` that is not a directory to it.
  - plugins/code-tidying/skills/tidy/SKILL.md:3: the new argument-hint drops `self-update` (and turns `in-place[=commit]` into `in-place…`), so `docs/skill-cheat-sheet.md` no longer lists the `self-update` action for tidy. The issue requires each skill's behavior to stay unchanged with no target form. Keep `self-update` and `in-place[=commit]` in the hint, then regenerate the cheat sheet.
  - plugins/code-tidying/skills/remove-comments/SKILL.md:3: the new argument-hint drops `--pipeline` and `explanatory` (`none|necessary…`), hiding options the skill still accepts. Keep the full hint and append `[--repo <repo> ...]`, then regenerate the cheat sheet.
  - plugins/code-tidying/skills/batch-simplify/SKILL.md:5: the argument-hint replaces `in-place[=commit]` with `in-place…`. Keep `in-place[=commit]` so the hint still shows the option's form.
  - scripts/shared-copies.txt:133: the contract says to register each copy at its alphabetical place, but the code-tidying line comes after the coupling line. Move it to just after `plugins/code-metrics/reference/target-scope.md`.

head a35c91ff2207386915079080174c197cef4bb052 (pr-verify run 44682508882)
  summary: Issue #17230 asks five code-tidying skills to take the target-scope forms. The PR delivers almost all of it, but one done-when item is not met. That item says each skill's `argument-hint` shows `[--repo <repo> ...]`. batch-simplify's hint shows `[--repo…]` instead, and the cheat-sheet row copies it.

What the PR does deliver:
- All five skills cite `reference/target-scope.md`, and each strips the target forms before reading its other arguments.
- Each repository keeps its own state. That covers remove-comments' findings file, batch-simplify's checklist and run state, and tidy's anchor commit, throttle, worktree and PR.
- With no target form, behavior is unchanged. The `dead-code-scan.sh` rewrite still `cd`s to the same place when no `--root` is given.
- `--root` has a test that can fail: it compares against the report from inside the repository, and it checks that a bad root exits 2. All `Test Bash` jobs passed (e.g. https://github.com/melodic-software/claude-code-plugins/actions/runs/44681580004/job/136106173899). Check Managed Files and Check Plugins also passed.
- The generated copy is added and registered in `scripts/shared-copies.txt` in alphabetical order. The adopters file, the regenerated cheat sheet, the changelog fragment and the eval-case line in the PR body are all present.

`scripts/cross-plugin-source-registry.txt` is not changed. The PR body says its existing `plugins/*/reference/target-scope.md` cluster line already covers this copy. I could not read that file to confirm, but the claim is plausible and the checks are green.

No binary files, nothing secret, no changes to the takeover set, and no text that tries to steer the reviewer.
  - plugins/code-tidying/skills/batch-simplify/SKILL.md:5: the issue's done-when says the argument-hint shows `[--repo <repo> ...]`, but it shows `[--repo…]`. Free room in the 100-character budget the way remove-comments did: move a flag the body already documents (such as `[--unattended]` or `[docs]`) out of the hint, then use the full `[--repo <repo> ...]`. Update the `**Arguments.**` line to match.
  - docs/skill-cheat-sheet.md:47: after fixing the batch-simplify hint, regenerate with `node scripts/generate-cheatsheet.mjs` so its row shows `[--repo <repo> ...]`.

head a746a698bc6fb5dde9ed460705086eb90c9fa08c (pr-verify run 44669110443)
  summary: Issue #17230 asks five code-tidying skills to accept the shared target-scope forms. Most of it is delivered: all five skills cite the plugin copy of the contract and show `[--repo <repo> ...]` in their argument-hint. Runs with no target form behave as before. Writes, worktrees, PRs and state stay per repository. `dead-code-scan.sh` gains `--root` with tests, and every Test Bash job passed (https://github.com/melodic-software/claude-code-plugins/actions/runs/44668288759/job/136063065890). The generated copy is registered in `scripts/shared-copies.txt`, and Check Managed Files passed. An adopters file lists each skill, the cheat sheet is updated and there is a code-tidying fragment. It fails because two done-when items are not met. The copy is not registered in `scripts/cross-plugin-source-registry.txt`. The PR body names no eval case and does not say that none applies. Two changelog fragments also describe changes this diff no longer makes, and the shortened argument-hints hide documented options. I found no text that tries to steer a reviewer, and no safety or takeover concern.
  - scripts/cross-plugin-source-registry.txt: the issue's done-when requires registering `plugins/code-tidying/reference/target-scope.md` here as well as in `scripts/shared-copies.txt`. Add the entry the way the other adopters' copies are registered. If the registry no longer applies at base, the PR must say so and show why.
  - PR body: name an eval case whose run reads the changed SKILL.md text, or state that none does. This is a done-when item of #17230.
  - .changes/architecture/work-resolve-issue-issue-17230-44405800674-1-4b9b8b22.md: this diff does not change `plugins/architecture/reference/target-scope.md`, because adopters now live in `docs/contracts/target-scope/adopters/`. The fragment claims a change that never happened and bumps the version for no reason. Delete it.
  - .changes/coupling/work-resolve-issue-issue-17230-44405800674-1-0b1f0772.md: same as the architecture fragment. The coupling copy is not changed, so delete this stale fragment.
  - PR body: the Fix and file lists say the diff changes `docs/contracts/target-scope/README.md` and the architecture and coupling reference copies, but it does not. It actually adds `docs/contracts/target-scope/adopters/code-tidying.md`. Update the lists to match the diff.
  - plugins/code-tidying/skills/audit-dead-code/scripts/dead-code-scan.sh:13: the diff deletes the documentation of exit code 2 from the header, but the script still exits 2 on usage errors and now also when `--root` is not a directory. Restore the line and add the non-directory `--root` case.
  - plugins/code-tidying/skills/tidy/SKILL.md:3: the shortened argument-hint drops the documented `self-update` action, so `docs/skill-cheat-sheet.md` loses it from tidy's Actions column. Keep `self-update` in the hint and abbreviate something else if there is a length cap.
  - plugins/code-tidying/skills/remove-comments/SKILL.md:3: the shortened argument-hint drops `explanatory` and `--pipeline`, which are still documented options. Keep them, or show the full form in the body the way batch-simplify does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(code-tidying): run the tidying skills across several repositories via the target-scope contract

1 participant