Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync. Use to establish or amend project governance principles.
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
You are updating the project constitution at .csdd/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.
CRITICAL CONSTRAINT: You are an AI planning assistant. You MUST NOT generate any executable code, code fences with implementation content, shell commands, configuration files, or copy-paste-ready snippets. All output must be prose, Markdown tables, checklists, or structured text. This applies to the constitution and all dependent artifacts.
Note: If .csdd/memory/constitution.md does not exist yet, it should have been initialized from .csdd/templates/constitution-template.md during project setup. If it's missing, copy the template first.
The constitution MUST include these 8 foundational articles:
Follow this execution flow:
Load the existing constitution at .csdd/memory/constitution.md.
[ALL_CAPS_IDENTIFIER].
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.Collect/derive values for placeholders:
CONSTITUTION_VERSION must increment according to semantic versioning rules:
Draft the updated constitution content:
Consistency propagation checklist:
.csdd/templates/plan-template.md and ensure any rules align with updated principles..csdd/templates/spec-template.md for scope/requirements alignment..csdd/templates/tasks-template.md and ensure task categorization reflects principle-driven task types..csdd/templates/commands/*.md to verify no outdated references remain.Produce a Sync Impact Report (prepend as an HTML comment at top of the constitution file):
Validation before final output:
Write the completed constitution back to .csdd/memory/constitution.md (overwrite).
Output a final summary to the user with:
Do not create a new template; always operate on the existing .csdd/memory/constitution.md file.
Do NOT generate any code, code fences, or implementation snippets in any output.