Skip to content

Commit ac7f0d4

Browse files
github-gregory-romegpr
authored andcommitted
refactor: make the initial constitution a template
1 parent 321edbc commit ac7f0d4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/commands/constitution.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ User input:
88

99
$ARGUMENTS
1010

11-
You are updating the project constitution at `/memory/constitution.md`. This file is a TEMPLATE containing placeholder tokens in square brackets (e.g. `[PROJECT_NAME]`, `[PRINCIPLE_1_NAME]`). Your job is to (a) collect/derive concrete values, (b) fill the template precisely, and (c) propagate any amendments across dependent artifacts.
11+
You are generating the project constitution into `/memory/constitution.md` from the template at `/templates/constitution-template.md`. The template contains placeholder tokens in square brackets (e.g. `[PROJECT_NAME]`, `[PRINCIPLE_1_NAME]`). Your job is to (a) collect/derive concrete values, (b) fill the template precisely, and (c) propagate any amendments across dependent artifacts.
1212

1313
Follow this execution flow:
1414

15-
1. Load the existing constitution template at `/memory/constitution.md`.
15+
1. Load the existing constitution template at `/templates/constitution-template.md`.
1616
- Identify every placeholder token of the form `[ALL_CAPS_IDENTIFIER]`.
1717
**IMPORTANT**: The user might require less or more principles than the ones used in the template. If a number is specified, respect that - follow the general template. You will update the doc accordingly.
1818

@@ -53,7 +53,7 @@ Follow this execution flow:
5353
- Dates ISO format YYYY-MM-DD.
5454
- Principles are declarative, testable, and free of vague language ("should" → replace with MUST/SHOULD rationale where appropriate).
5555

56-
7. Write the completed constitution back to `/memory/constitution.md` (overwrite).
56+
7. Write the completed constitution to `/memory/constitution.md` (overwrite).
5757

5858
8. Output a final summary to the user with:
5959
- New version and bump rationale.

memory/constitution.md renamed to templates/constitution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@
4747
<!-- Example: All PRs/reviews must verify compliance; Complexity must be justified; Use [GUIDANCE_FILE] for runtime development guidance -->
4848

4949
**Version**: [CONSTITUTION_VERSION] | **Ratified**: [RATIFICATION_DATE] | **Last Amended**: [LAST_AMENDED_DATE]
50-
<!-- Example: Version: 2.1.1 | Ratified: 2025-06-13 | Last Amended: 2025-07-16 -->
50+
<!-- Example: Version: 2.1.1 | Ratified: 2025-06-13 | Last Amended: 2025-07-16 -->

0 commit comments

Comments
 (0)