tools-speckit-init
Initialize a new directory with spec-kit (specify) and install the spec-kit-sync extension
SKILL.md.claude/skills/tools-speckit-init/SKILL.md
GitHubThis skill creates a new directory, initializes it with specify init . --ai claude, and installs the spec-kit-sync extension.
Input
The user must provide a directory name as an argument (e.g. /tools-speckit-init my-new-component).
If no argument is provided, show the hint and stop.
Prerequisites
specifymust be installed and available on PATH (which specifyshould succeed)- If not installed, inform the user that
specifyis required and stop
Steps
Verify that
specifyis installed by runningwhich specify. If it fails, tell the user to install specify first and stop.Check that the target directory does not already exist. If it does, inform the user and stop.
Create the new directory:
mkdir -p <directory-name>Initialize spec-kit in the new directory:
cd <directory-name> && specify init . --ai claudeInstall the spec-kit-sync extension:
cd <directory-name> && specify extension add spec-kit-sync --from https://github.com/bgervin/spec-kit-sync/archive/refs/heads/master.zipReport success and tell the user:
- The directory has been created and initialized
- spec-kit-sync extension has been installed
- They can now use specify commands in the new directory (e.g.
/speckit-specify,/speckit-clarify) - The path to the new directory
Notes
- The directory is created relative to the current working directory
- If
specify initor the extension install fails, report the error to the user with the command output