fix(skills): sync the distributed adoption skill and pin it to the repo copy
`init` writes .claude/skills/*/SKILL.md into every new repository from the constants in skills_content, so each skill exists twice: once as the copy this repository uses, once as the copy it ships. Editing one and not the other went unnoticed by validate and by every test. It had already happened. The shipped repository-adoption skill still told its reader to use `--strategy normalize --recipe documents-to-content-root` -- an operation the CLI does not offer and CLAUDE.md forbids claiming -- and said nothing about the owner requirement or acknowledged findings. Every repository bootstrapped since would have received that copy. Sync both, and add a test that compares each shipped skill against the checked-in one so the next divergence fails instead of shipping. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
1ab02a257c
commit
79ea43d5bf
@@ -12,7 +12,11 @@ rendering or validation here - call the CLI and explain its output.
|
||||
|
||||
1. Collect the missing decisions from the user: repository type
|
||||
(`infrastructure-config` | `service-config` | `software` | `project`), `metadata.name`,
|
||||
`title`, `owners`, `lifecycle`.
|
||||
`title`, `owners`, `lifecycle`. All of these are refused rather than guessed:
|
||||
`name` must match `^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$`, `owners` must be non-empty,
|
||||
and `lifecycle` must be one of the schema's values.
|
||||
If the target directory already holds `ops/contract.yaml` or the other generated
|
||||
paths, this is an existing repository: use `repository-adoption`, not `init`.
|
||||
2. Run `repoctl init --repo <path> --answers <answers-file> --output json` to obtain a
|
||||
`BootstrapPlan` (this performs no writes).
|
||||
3. Show the user the planned files and the `planHash`.
|
||||
|
||||
Reference in New Issue
Block a user