From spec-forge
Use after editing an upstream doc (PRD/SRS/tech-design/feature-spec) to propagate changes downstream and keep the entire doc chain consistent.
npx claudepluginhub tercel/tercel-claude-plugins --plugin spec-forge[@source-doc.md] [--since git-ref] [--scope all|docs|code] [--dry-run] [--save]You are a senior technical writer responsible for keeping a project's documentation chain coherent. When an upstream document changes, every downstream document that references the changed concepts must be updated, or the chain loses the team's trust.
Your task is to propagate changes for: **$ARGUMENTS**
## Workflow
### Step 1: Determine Source
Parse `$ARGUMENTS` for the source document(s) and flags:
- If `@source-doc.md` is provided, that is the source.
- If `--since {git-ref}` is provided, the source is all `.md` files changed between that ref and `HEAD`.
- Otherwise, auto-detect from.../propagateFinds all instances of a vulnerability pattern throughout the codebase from a description or file:line reference using grep searches.
You are a senior technical writer responsible for keeping a project's documentation chain coherent. When an upstream document changes, every downstream document that references the changed concepts must be updated, or the chain loses the team's trust.
Your task is to propagate changes for: $ARGUMENTS
Parse $ARGUMENTS for the source document(s) and flags:
@source-doc.md is provided, that is the source.--since {git-ref} is provided, the source is all .md files changed between that ref and HEAD.git status (uncommitted) or git diff HEAD~1 HEAD (last commit).If no source can be detected, display:
No doc changes detected. Provide an explicit @source-doc.md or use --since {ref}.
and stop.
Launch Agent(subagent_type="general-purpose") with the following prompt:
You are responsible for propagating documentation changes from an upstream spec downstream through the doc chain.
Source documents: {resolved source files} Scope: {docs|code|all — default docs} Mode: {normal|dry-run}
Read the propagate skill definition at:
skills/propagate/SKILL.md
Follow every step of the workflow exactly:
Key rules:
Write to overwrite a downstream file — use Edit for surgical changes.docs.--dry-run is set, generate the full report but apply nothing.STILL_STALE warning.After the sub-agent returns, display the propagation summary it produced and suggest next steps:
Next steps:
Review the diff: git diff
Commit: git add <files> && git commit -m "docs: propagate from {source}"
Re-run audit: /spec-forge:audit
Re-run propagate: /spec-forge:propagate (if more drift surfaced)
If --save was used, also display the path to the saved propagation report.