Repository navigation
Description
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
- feat: run improvement skills across several repositories #17228 merged (the contract and the copy mechanism).
Outcome
/instruction-placement:audit, delta, check, realign 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.
Where the text changes
Line numbers as read on main at dc93c878.
| File and lines | Today | Change |
|---|---|---|
plugins/instruction-placement/skills/audit/SKILL.md:25 |
"Default: core+expanded over the whole repository" | Accept the target forms. Across repositories, the same rule stated in several repositories' AGENTS.md is a candidate for the machine layer or the standards repository. |
plugins/instruction-placement/skills/delta/SKILL.md:3 |
[--since <ISO date>] [--noise-budget <n>], one repository's last run |
Keep one delta state per repository. |
plugins/instruction-placement/skills/check/SKILL.md:21 |
"Default: gate the whole repository" | Accept the target forms; report per repository. |
plugins/instruction-placement/skills/realign/SKILL.md:3 |
Finding ids from one audit | Apply per repository, one PR each. |
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 asplugins/instruction-placement/reference/target-scope.md, registered inscripts/shared-copies.txtand generated byscripts/sync-shared-copies.sh(asplugins/coupling/reference/target-scope.mdis), 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-hintshows[--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/instruction-placement/reference/target-scope.mdexists as a generated copy, registered inscripts/shared-copies.txtandscripts/cross-plugin-source-registry.txt;sync-shared-copies.sh --checkpasses. - The contract's Adopters table lists each skill.
-
docs/skill-cheat-sheet.mdregenerated (node scripts/generate-cheatsheet.mjs). - A changelog fragment under
.changes/instruction-placement/. - The PR body names an eval case whose run reads the changed text, or says none does.
Metadata
Metadata
Assignees
Labels
Type
Fields
Work status
Priority
Activity
github-actions commentedon Nov 18, 2026
The triage sweep dispatched intake triage for this issue (dispatch 2; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).
github-actions commentedon Nov 19, 2026
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: four instruction-placement skill files, one generated reference copy, two registry files, the cheat sheet and a changelog fragment; read by anyone running these skills.
Reversible: yes; revert the PR, and with no target form the skills behave as before.
Open questions: none
Understood: add the shared target-scope contract's target forms to the audit, delta, check and realign skills, with per-repository state and writes. The issue states the outcome, the files and the done-when list. It names #17228 as the dependency. That number isn't in the open-issues list, so I treated it as not blocking. I found no duplicate or merged fix. The same change for other plugins is tracked separately, for example #17239 and #17240.
Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 19, 2026
{"v":1,"actor_id":337595936,"title_sha256":"dd8b625dac17a288b5fcf7e5ff45ec9ba9c09a9a3d1d2d1748a19178b50f630e","body_sha256":"5906a83e1d61cd17d9cc82d0081bff0423a554e31831fa4a7a7c772a7011fff5"}
melodic-automation-lanes commentedon Nov 19, 2026
{"v":1,"actor_id":337595936,"title_sha256":"dd8b625dac17a288b5fcf7e5ff45ec9ba9c09a9a3d1d2d1748a19178b50f630e","body_sha256":"5906a83e1d61cd17d9cc82d0081bff0423a554e31831fa4a7a7c772a7011fff5"}
github-actions commentedon Nov 19, 2026
github-actions commentedon Nov 19, 2026