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
/docs-hygiene:audit-derivability, audit-encapsulation, audit-noise, audit-progressive-disclosure, compress, extract-ssot, rename-references 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/docs-hygiene/skills/audit-derivability/SKILL.md:88,96 |
sweep <dir> over one repository; no-scope shape in context/clean-tree-fallback.md |
Accept the target forms; context/clean-tree-fallback.md keeps the single-repository default and points at the contract. |
plugins/docs-hygiene/skills/audit-encapsulation/SKILL.md:39,53 |
sweep = whole repo |
Accept the target forms. |
plugins/docs-hygiene/skills/audit-noise/SKILL.md:3 |
[audit] [target] [--persist-findings], one repository's tracked markdown |
Accept the target forms. |
plugins/docs-hygiene/skills/audit-progressive-disclosure/SKILL.md:3 |
[audit] [target] |
Accept the target forms. |
plugins/docs-hygiene/skills/compress/SKILL.md:43-56 |
Settings read at the one repository root | Per repository, read that repository's settings. |
plugins/docs-hygiene/skills/extract-ssot/SKILL.md:37-39 |
"In-scope: repeated content across the consuming repository's tracked markdown" | Across repositories, a fact stated in several repositories is the strongest SSOT case: the owner repository keeps it and the others point at it, in their own PRs. |
plugins/docs-hygiene/skills/rename-references/SKILL.md:3 |
One repository's references | Accept the target forms, so a rename that crosses repositories is swept in 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/docs-hygiene/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/docs-hygiene/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/docs-hygiene/. - 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 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).
github-actions commentedon Nov 18, 2026
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: seven docs-hygiene skills (SKILL.md and one context file), a generated target-scope.md copy with its two registry entries, the contract's Adopters table, the cheat sheet and a changelog fragment; read by anyone running those skills.
Reversible: yes; revert the PR, and with no target form the skills behave as they do today.
Open questions: none
I understood this as adding the shared target-scope contract's multi-repository forms to seven docs-hygiene skills, each citing the contract. The outcome, done-when list and file table are exact. The contract file already exists on main and #17228 is no longer open, so the dependency looks met. I found no duplicate. #17247, #17246 and the other open issues of the same shape cover different plugins.
Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 18, 2026
{"v":1,"actor_id":337595936,"title_sha256":"af20f5f7aa6bbce975aa6f9e92af04a17e74e79fc4aee3ade5fa71e5579a5471","body_sha256":"724e7cb28d201ceab30c609977dbde215f0a083bf0027fbfa5d06166623f0e0c"}
melodic-automation-lanes commentedon Nov 18, 2026
{"v":1,"actor_id":337595936,"title_sha256":"af20f5f7aa6bbce975aa6f9e92af04a17e74e79fc4aee3ade5fa71e5579a5471","body_sha256":"724e7cb28d201ceab30c609977dbde215f0a083bf0027fbfa5d06166623f0e0c"}
github-actions commentedon Nov 18, 2026