Upgrade Guide
Quick Reference
| What to Upgrade | Command |
|---|---|
| CLI tool only | uv tool install maistik-specify-cli --force --from git+ssh://git@gitlab.com/maistik-studio/tools/spec-kit.git |
| Project files | specify init --here --force --ai claude |
| Both | Run CLI upgrade first, then project update |
Upgrade the CLI
If installed with uv tool install
bash
uv tool install maistik-specify-cli --force --from git+ssh://git@gitlab.com/maistik-studio/tools/spec-kit.gitIf using uvx
No upgrade needed — uvx always fetches the latest version.
Verify
bash
specify checkUpdate Project Files
When new slash commands or templates are released, refresh your project:
bash
specify init --here --force --ai claudeWhat Gets Updated
- Slash command files (
.claude/commands/,.gemini/commands/, etc.) - Script files (
.specify/scripts/) - Template files (
.specify/templates/) - Memory files (
.specify/memory/)
What Stays Safe
Your work is never touched:
- Feature specifications (
specs/001-*/spec.md, etc.) - Implementation plans and tasks
- Source code
- Git history
Constitution Backup
The upgrade overwrites .specify/memory/constitution.md with the default template.
Before upgrading:
bash
cp .specify/memory/constitution.md .specify/memory/constitution-backup.mdAfter upgrading:
bash
mv .specify/memory/constitution-backup.md .specify/memory/constitution.md
# or restore from git:
git restore .specify/memory/constitution.mdCommon Scenarios
New slash commands only
bash
uv tool install maistik-specify-cli --force --from git+ssh://git@gitlab.com/maistik-studio/tools/spec-kit.git
specify init --here --force --ai claude
git restore .specify/memory/constitution.mdCustomized templates and constitution
bash
# Back up
cp .specify/memory/constitution.md /tmp/constitution-backup.md
cp -r .specify/templates /tmp/templates-backup
# Upgrade
uv tool install maistik-specify-cli --force --from git+ssh://git@gitlab.com/maistik-studio/tools/spec-kit.git
specify init --here --force --ai claude
# Restore
mv /tmp/constitution-backup.md .specify/memory/constitution.mdDuplicate slash commands in IDE
Some IDE-based agents (Kilo Code, Windsurf) may show duplicates after upgrading. Delete old command files and restart your IDE.
Project without Git
bash
specify init --here --force --ai claude --no-gitSet SPECIFY_FEATURE to tell Spec Kit which feature directory to use:
bash
export SPECIFY_FEATURE="001-my-feature"Troubleshooting
Commands not showing after upgrade
- Restart your IDE completely
- Verify files exist:
ls .claude/commands/ - Check you're in the correct directory
Lost constitution
bash
git restore .specify/memory/constitution.mdCLI not found after upgrade
bash
uv tool list # Should show maistik-specify-cli
which specify # Should show the uv tool pathIf missing, reinstall:
bash
uv tool uninstall maistik-specify-cli
uv tool install maistik-specify-cli --from git+ssh://git@gitlab.com/maistik-studio/tools/spec-kit.git