sdd-update
Skill18 starsChanged 2 months agoMITView on GitHub
Update this project's SDD harness from the sdd-onboarding-kit. Use when the developer asks to update SDD, sync the harness with the kit, or apply a new kit version.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- context-auditSkill
- decision-logSkill
- dependency-freshnessSkill
- documentation-updateSkill
- failure-learningSkill
- git-disciplineSkill
- project-mapSkill
- run-and-verifySkill
- spec-from-screenshotSkill
- ui-qaSkill
- sdd-workflowSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Every migration step and every adapted-file merge requires developer approval before it is applied.
- Distinctive: line 16
Never delete or overwrite a locally edited file without showing the developer what would be lost.
- Distinctive: line 31
Treat the installed version as unknown: apply every changelog entry's migration whose changes are not already present (verify, don't …
- Very specific: line 39
If the developer keeps a local checkout, use that path instead (read-only).
- Very specific: line 50
If the installed file's current SHA-256 still equals the manifest's installed_sha256: overwrite with the new kit version (mechanical.
- Distinctive: line 51
If not, the developer edited it locally: show the three-way situation (manifest version → local edits → new kit version) and ask.
- Very specific: line 68
Run scripts/validate-sdd-structure.sh (or .ps1) if present, with SDD_HARNESS_DIR=<harness-dir> when it is not .claude.
- Distinctive: line 69
Delete the temporary clone.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SDD harness update skill
Bring this project's installed SDD harness up to date with the latest published version of the sdd-onboarding-kit, preserving every project-specific adaptation.
Kit source: {{KIT_REPO_URL}}
Safety rules (read first)
- Touch only harness files:
AGENTS.md(SDD sections only) and theCLAUDE.mdstub, every harness directory listed in the manifest'sharnessblock (.claude/,.codex/,.cursor/,.opencode/,.agents/),scripts/harness scripts, spec templates, hooks installed by onboarding, andspecs/only for format migrations. Never touch product code. - Every migration step and every adapted-file merge requires developer approval before it is applied. Mechanical refreshes of unmodified verbatim assets may be batched under a single approval.
- Never delete or overwrite a locally edited file without showing the developer what would be lost.
- Work on a clean git state: if the repo has uncommitted changes to harness files, ask the developer to commit or stash first, so the update is a reviewable diff.
- Clean up the temporary kit clone when done.
Procedure
1. Read the local manifest
Read <harness-dir>/sdd-kit-manifest.json (look in .claude/, .codex/, .cursor/, .opencode/, .agents/). It records kit_version, the harness block (primary harness and directory, instruction files, additional harness directories), and, per installed file, its kit source path, hashes, and adapted flag. A manifest without a harness block is a pre-2.1.0 Claude Code install (.claude/, CLAUDE.md).
If the manifest is missing (install predates the manifest), enter bootstrap mode:
- Fetch the kit (step 2) first.
- Detect the harness directories present, then reconstruct the file list by matching installed harness files against the kit's reference layout (
<harness-dir>/agents/*,<harness-dir>/skills/sdd-workflow/*, templates, scripts, vendored<harness-dir>/reference/*). Files in a non-Claude agent format (Codex.toml, adapted frontmatter) areadapted: true. - A file byte-identical to some kit version's source is verbatim; anything else is
adapted: true. - Treat the installed version as unknown: apply every changelog entry's migration whose changes are not already present (verify, don't assume), and flag uncertainty to the developer instead of guessing.
2. Fetch the kit
git clone --depth 1 {{KIT_REPO_URL}} <tmp-dir>If the developer keeps a local checkout, use that path instead (read-only). Read the kit's VERSION and CHANGELOG.md.
3. Compare versions
- Installed
kit_version== kitVERSION: report "already up to date" and stop. - Otherwise, read every
CHANGELOG.mdentry newer than the installed version — these define both what changed and the migration steps.
4. Refresh verbatim assets
For each manifest record with adapted: false whose kit source changed:
- If the installed file's current SHA-256 still equals the manifest's
installed_sha256: overwrite with the new kit version (mechanical; batch these under one approval). - If not, the developer edited it locally: show the three-way situation (manifest version → local edits → new kit version) and ask.
5. Merge adapted files
For each adapted: true file whose kit source changed:
- Diff the kit source between the installed and new versions to isolate what the kit actually changed.
- Apply only those changes to the installed file, preserving the project adaptations (commands, paths, policies recorded in
decisions/answers.md) and the harness packaging (agent frontmatter or Codex TOML,<harness-dir>paths). Apply the same change to every copy listed for additional harnesses. - Show the resulting diff and get approval per file (related files may be grouped).
6. Run migrations
Execute the changelog Migration steps for each version being crossed, in order, each with approval. Never run a destructive step (deleting files, git rm) without showing exactly what it removes.
7. Rewrite the manifest and report
- Rewrite
<harness-dir>/sdd-kit-manifest.json: newkit_version,updated_at, theharnessblock, fresh hashes for every touched file; add records for newly installed files. - Run
scripts/validate-sdd-structure.sh(or.ps1) if present, withSDD_HARNESS_DIR=<harness-dir>when it is not.claude. - Delete the temporary clone.
- Report: previous → new version, files refreshed mechanically, files merged, files skipped (locally edited, developer declined), migration steps run, and anything left for the developer.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

