mirror of
https://github.com/github/spec-kit.git
synced 2026-03-17 02:43:08 +00:00
Moves 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>
2.3 KiB
2.3 KiB
[PROJECT_NAME] Constitution
Core Principles
[PRINCIPLE_1_NAME]
[PRINCIPLE_1_DESCRIPTION]
[PRINCIPLE_2_NAME]
[PRINCIPLE_2_DESCRIPTION]
[PRINCIPLE_3_NAME]
[PRINCIPLE_3_DESCRIPTION]
[PRINCIPLE_4_NAME]
[PRINCIPLE_4_DESCRIPTION]
[PRINCIPLE_5_NAME]
[PRINCIPLE_5_DESCRIPTION]
[SECTION_2_NAME]
[SECTION_2_CONTENT]
[SECTION_3_NAME]
[SECTION_3_CONTENT]
Governance
[GOVERNANCE_RULES]
Version: [CONSTITUTION_VERSION] | Ratified: [RATIFICATION_DATE] | Last Amended: [LAST_AMENDED_DATE]