-
fix: preserve constitution.md during reinitialization (#1541) (#1553)
发布于
2026-02-09 15:01:55 +00:00 | 1421 次提交 在此版本后已推送到 mainMoves constitution template from memory/ to templates/ to prevent
overwrites when spec-kit is reinitialized with a different AI agent.Changes:
- Move memory/constitution.md to templates/constitution-template.md
- Update CLI to copy template to memory/ only on first initialization
- Update constitution command to reference correct paths with .specify/ prefix
- Preserve existing constitution.md when reinitializing project
The CLI now checks if .specify/memory/constitution.md exists:
- If it exists: preserve it (no overwrite)
- If it doesn't exist: copy from .specify/templates/constitution-template.md
This allows users to customize their constitution without losing changes
when adding support for additional AI agents or reinitializing.Fixes #1541
Co-authored-by: jjoung1128 jinwoong.joung@gmail.com
Co-authored-by: Claude Sonnet 4.5 noreply@anthropic.com下载附件