Spec ADR Rollup
Overview
Consolidate one spec folder into one ADR markdown file with a deterministic status table.
Workflow
- •Identify the spec directory, usually
docs/specs/<spec-name>. - •Run the merge script:
bash
python skills/spec-adr-rollup/scripts/merge_spec_to_adr.py --spec-dir docs/specs/<spec-name> --adr-root docs/adr
- •Confirm output exists at
docs/adr/<spec-name>.md. - •Verify the status table:
- •
Done (YYYY-MM-DD): file exists and is merged. - •
放弃 (YYYY-MM-DD): file missing, unreadable, or unsafe path.
Notes
- •Keep execution idempotent: reruns overwrite the same ADR file.
- •Preserve merge order:
spec.mdfirst, then referenced child docs, then remaining markdown files. - •Avoid logging secrets.
Script
- •
scripts/merge_spec_to_adr.py: merges spec docs and writes one ADR markdown.