Skip to content

feat(improvement): run find and improve across several repositories via the target-scope contract #17229

Description

@kyle-sexton

Parent

Refs: #17228, which adds the shared contract docs/contracts/target-scope/README.md and its first adopters (/architecture:improve deepening and conventions lenses, /coupling:reduce).

The owner decided on 2026-11-18, in their own words: "for anything that affects just improving: deduplication, single source of truth, clean up, tidying, general improvement-related skills, maintenance, all that stuff, I want to be able to run across multiple repos, even though the default is usually a single target repo or folder." They approved defining multi-repository scope once, as a shared contract each skill cites (reuse-or-replace: no second way).

Depends on

Outcome

/improvement:find, /improvement:improve accept the contract's target forms (--repo, --repos-from, --owner, --fleet, --skip, or the same request in words) and run once per repository with the root anchored, merging findings on one scale. With no target form, each skill behaves exactly as it does today. Writes stay per repository: one worktree and one PR each. find ranks candidates across repositories on one scale; improve ships one small PR per repository.

Where the text changes

Line numbers as read on main at dc93c878.

File and lines Today Change
plugins/improvement/skills/find/SKILL.md:55-61 "Repo as parameter. One repo per invocation. ... Fleet-wide sweeps are out of scope. Compose with repo-fleet-hygiene externally, one invocation per repo." Replace with the contract's target forms; the single-repo git -C <root> anchoring stays as the per-repository procedure. This reverses the recorded out-of-scope line: the owner decided it on 2026-11-18 (quote under Parent).
plugins/improvement/skills/improve/SKILL.md:3 [dry-run] [target ...] [--focus <lens>] [--unattended], one target repository Accept the target forms; one PR per repository.

Key interfaces

  • The contract owns the target forms, repository resolution, fan-out, merging, cross-repository signals and per-repository writes. A skill cites its sections by name and states only what differs for it; it never restates them.
  • An installed plugin cannot read docs/: carry the contract as plugins/improvement/reference/target-scope.md, registered in scripts/shared-copies.txt and generated by scripts/sync-shared-copies.sh (as plugins/coupling/reference/target-scope.md is), unless the plugin already carries it.
  • Cross-repository duplicate files are measured by /coupling:reduce (scripts/cross-repo-dups.py); a skill that wants that signal invokes the skill, never a copy of the script.

Done when

  • Each listed skill accepts the target forms by citing the contract, and its argument-hint shows [--repo <repo> ...].
  • With no target form, each skill's behavior is unchanged.
  • Any per-repository state (ledger, cursor, findings file, delta state) is kept per repository.
  • plugins/improvement/reference/target-scope.md exists as a generated copy, registered in scripts/shared-copies.txt and scripts/cross-plugin-source-registry.txt; sync-shared-copies.sh --check passes.
  • The contract's Adopters table lists each skill.
  • docs/skill-cheat-sheet.md regenerated (node scripts/generate-cheatsheet.mjs).
  • A changelog fragment under .changes/improvement/.
  • The PR body names an eval case whose run reads the changed text, or says none does.

Activity

  1. added
    agent-ready
    on Nov 18, 2026
  2. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  3. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: the /improvement:find and /improvement:improve skill text, a generated copy of the contract, the shared-copies and source registries, the cheat sheet, and a changelog fragment. Anyone who runs these skills reads it.
    Reversible: yes; revert the PR. With no target form the skills behave as they do today.
    Open questions: none

    I read this as a request to let /improvement:find and /improvement:improve take the target-scope contract's target forms. Each would run once per repository, with one ranked scale for find and one small PR per repository for improve. The issue names the files, the registry entries, the done-when list and the approach, so I see nothing missing.

    The issue lists #17228 (the contract and copy mechanism) as a dependency. It isn't among the open issues, so I recorded no blocker. Confirm it has merged before work starts. I found no duplicate among the open issues. The merged pull requests list was empty, so I have no merged fix to point to. Sibling issues such as #17230 and #17244 adopt the same contract for other plugins, but they cover different skills.

    Automated triage. A maintainer reviews it.

  4. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"ff62fae758152ca0e31fa5fb669316d1519140285e1c2dc2096ab9f66e795d54","body_sha256":"63781e1c06439b7869facfded958669e99f937e418ff0fa26f623372a1e56f16"}

  5. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"ff62fae758152ca0e31fa5fb669316d1519140285e1c2dc2096ab9f66e795d54","body_sha256":"63781e1c06439b7869facfded958669e99f937e418ff0fa26f623372a1e56f16"}

  6. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor
    No description provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-ready

    Fields

    Work status

    needs-triage

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions