cmd-speckit-init-update
Original:🇺🇸 English
Translated
Update .specify/ scripts and templates from upstream github/spec-kit
10installs
Sourcegsmlg-dev/code-agent
Added on
NPX Install
npx skill4agent add gsmlg-dev/code-agent cmd-speckit-init-updateTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →/speckit.init.update
Agent skill wrapper for the Claude command .
/speckit.init.updateWhen the original command text references , , or named arguments, map them from the user's current request.
{{INPUT}}$1Command Instructions
Refresh the scripts and templates in the current project by downloading the latest versions from . Never overwrites user-governed files.
.specify/github/spec-kitProtected paths (never overwrite)
- — all files including
.specify/memory/constitution.md - — all feature artifacts
.specify/specs/
Steps
-
Verify setup: Check thatexists in the project root. If not, stop and tell the user to run
.specify/first./speckit.init -
Clone upstream:bash
UPSTREAM_DIR=$(mktemp -d) git clone --depth 1 https://github.com/github/spec-kit.git "$UPSTREAM_DIR"If the clone fails, report the error and stop. -
Update files by copying from upstream, skipping protected paths. For each file in the upstreamdirectory:
.specify/Upstream source Local destination Protected? .specify/memory/constitution.md.specify/memory/constitution.mdYES — skip .specify/scripts/bash/common.sh.specify/scripts/bash/common.shupdate .specify/scripts/bash/setup-plan.sh.specify/scripts/bash/setup-plan.shupdate .specify/scripts/bash/check-prerequisites.sh.specify/scripts/bash/check-prerequisites.shupdate .specify/scripts/bash/update-agent-context.sh.specify/scripts/bash/update-agent-context.shupdate .specify/scripts/bash/create-new-feature.sh.specify/scripts/bash/create-new-feature.shupdate .specify/templates/agent-file-template.md.specify/templates/agent-file-template.mdupdate .specify/templates/checklist-template.md.specify/templates/checklist-template.mdupdate .specify/templates/tasks-template.md.specify/templates/tasks-template.mdupdate .specify/templates/spec-template.md.specify/templates/spec-template.mdupdate .specify/templates/plan-template.md.specify/templates/plan-template.mdupdate Also copy any additionalor.specify/scripts/files found in upstream that are not listed above (new upstream additions). Preserve file permissions..specify/templates/ -
Clean up:bash
rm -rf "$UPSTREAM_DIR" -
Report a summary table:
Status | File | Reason UPDATED | .specify/templates/spec-template.md | Content changed ADDED | .specify/scripts/bash/new-script.sh | New upstream file SKIPPED | .specify/memory/constitution.md | User-governed SKIPPED | .specify/specs/ | User-governed -
Next step: Review any updated templates before runningor
/speckit.specifyin case template changes affect expected output format./speckit.plan