apply
CommandImplement an approved OpenSpec change and keep tasks in sync.
Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync.
> /plugin marketplace add sudocode-ai/sudocode> /plugin install sudocode@sudocode-marketplace
description: Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync.
handoffs:
- label: Build Specification
agent: speckit.specify
prompt: Implement the feature specification based on the updated constitution. I want to build...$ARGUMENTS
You **MUST** consider the user input before proceeding (if not empty).
You are updating the project constitution at `.specify/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.
Follow this execution flow:
1. Load the existing constitution template at `.specify/memory/constitution.md`.
**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.
2. Collect/derive values for placeholders:
3. Draft the updated constitution content:
4. Consistency propagation checklist (convert prior checklist into active validations):
5. Produce a Sync Impact Report (prepend as an HTML comment at top of the constitution file after update):
6. Validation before final output:
7. Write the completed constitution back to `.specify/memory/constitution.md` (overwrite).
8. Output a final summary to the user with:
Formatting & Style Requirements:
If the user supplies partial updates (e.g., only one principle revision), still perform validation and version decision steps.
If critical info missing (e.g., ratification date truly unknown), insert `TODO(<FIELD_NAME>): explanation` and include in the Sync Impact Report under deferred items.
Do not create a new template; always operate on the existing `.specify/memory/constitution.md` file.
Implement an approved OpenSpec change and keep tasks in sync.
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task…
Generate a custom checklist for the current feature based on user requirements.
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding…
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.