cmd-speckit-init
Original:🇺🇸 English
Translated
Initialize the .specify/ directory structure for Spec-Driven Development in the current project
5installs
Sourcegsmlg-dev/code-agent
Added on
NPX Install
npx skill4agent add gsmlg-dev/code-agent cmd-speckit-initTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →/speckit.init
Agent skill wrapper for the Claude command .
/speckit.initWhen the original command text references , , or named arguments, map them from the user's current request.
{{INPUT}}$1Command Instructions
Set up the directory structure for Specification-Driven Development in the current project by downloading the latest files from the upstream repository.
.specify/github/spec-kitSteps
-
Check for existing setup: Look forin the project root. If it already exists, stop and tell the user to run
.specify/instead./speckit.init.update -
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. -
Copy files from upstream into the project root, preserving the paths exactly:
Upstream source Local destination .specify/memory/constitution.md.specify/memory/constitution.md.specify/scripts/bash/common.sh.specify/scripts/bash/common.sh.specify/scripts/bash/setup-plan.sh.specify/scripts/bash/setup-plan.sh.specify/scripts/bash/check-prerequisites.sh.specify/scripts/bash/check-prerequisites.sh.specify/scripts/bash/update-agent-context.sh.specify/scripts/bash/update-agent-context.sh.specify/scripts/bash/create-new-feature.sh.specify/scripts/bash/create-new-feature.sh.specify/templates/agent-file-template.md.specify/templates/agent-file-template.md.specify/templates/checklist-template.md.specify/templates/checklist-template.md.specify/templates/tasks-template.md.specify/templates/tasks-template.md.specify/templates/spec-template.md.specify/templates/spec-template.md.specify/templates/plan-template.md.specify/templates/plan-template.mdCreate any intermediate directories as needed. Preserve file permissions (especially executable bits on shell scripts). -
Clean up:bash
rm -rf "$UPSTREAM_DIR" -
Detect project name: Try in order —(extract repo name from URL),
git remote get-url originpackage.jsonfield,nameapp name, directory basename. Use this asmix.exs.PROJECT_NAME -
Personalize: Replace placeholder tokens in the downloaded file:
.specify/memory/constitution.md- → detected project name
[PROJECT_NAME] - → today's date in ISO format
[YYYY-MM-DD]
-
Create: Make this directory for feature specification artifacts (one subdirectory per feature). This directory is not present in upstream.
.specify/specs/ -
Update: Only if
.gitignoreexists and does not already contain.gitignore. Append.specify/as a new line. If no.specify/exists, skip and note it..gitignore -
Report all directories and files created with their paths.
-
Present the SDD workflow overview:
Spec-Driven Development workflow: /speckit.constitution → Define governing principles (run once per project) /speckit.specify → Write a feature spec /speckit.clarify → Resolve ambiguities in the spec /speckit.plan → Generate technical plan + data model + contracts /speckit.analyze → Validate consistency across artifacts (read-only) /speckit.tasks → Generate phase-based task breakdown /speckit.checklist → Create quality checklists for the spec /speckit.implement → Execute implementation phase by phase /speckit.taskstoissues → Convert tasks into GitHub issues -
Next step: "Runto complete your project constitution with project-specific principles, then
/speckit.constitutionto write your first feature spec."/speckit.specify