speckit-constitution-zh
Original:🇨🇳 Chinese
Translated
10 scripts
Create or update project charters from interactive or provided principle inputs, ensuring all dependent templates remain synchronized. Applicable to project management, specification formulation, charter maintenance, and team collaboration scenarios. Trigger words include "speckit constitution", "create charter", "update charter", "project charter", "formulate specification", "team charter"
2installs
Sourceforztf/open-skilled-sdd
Added on
NPX Install
npx skill4agent add forztf/open-skilled-sdd speckit-constitution-zhTags
Translated version includes tags in frontmatterSKILL.md Content (Chinese)
View Translation Comparison →User Input
text
$ARGUMENTSYou MUST consider the user input (if not empty) before proceeding.
Outline
You are updating the project charter located at . This file is derived from a template assets/constitution-template.md and contains placeholder tokens in square brackets (e.g., , ). Your tasks are to: (a) collect/infer specific values, (b) accurately populate the template, and (c) propagate any revisions across dependent artifacts.
.specify/memory/constitution.md[Project Name][Principle_1_Name]Follow this execution workflow:
- Copy all files (including subdirectories) from to the
assets/specify/directory under the repository root, maintaining the original directory structure. Skip existing files, do NOT overwrite files with the same name. The.specifyoption of the cp command can prevent overwriting existing files. At this stage, your project folder content should resemble the following:-n (--no-clobber)
text
Repository Root
└── .specify
├── memory
│ └── constitution.md
├── scripts
│ ├──bash
│ │ ├── check-prerequisites.sh
│ │ ├── common.sh
│ │ ├── create-new-feature.sh
│ │ ├── setup-plan.sh
│ │ └── update-claude-md.sh
│ ├──powershell
│ │ ├── check-prerequisites.ps1
│ │ ├── common.ps1
│ │ ├── create-new-feature.ps1
│ │ ├── setup-plan.ps1
│ │ └── update-claude-md.ps1
├── specs
│ └── 001-create-taskify
│ └── spec.md
└── templates
├── plan-template.md
├── spec-template.md
└── tasks-template.md-
Load the existing charter template located atrelative to the repository root.
.specify/memory/constitution.md- Identify each placeholder token in the form of . Important: The user may require fewer or more principles than those used in the template. If a quantity is specified, adhere to it - follow the generic template. You will update the document accordingly.
[ALL_CAPS_IDENTIFIER]
- Identify each placeholder token in the form of
-
Collect/infer values for placeholders:
- Use values provided in the user input (conversation) if available.
- Otherwise, infer from existing repository context (README, documentation, embedded previous charter versions).
- For governance dates: is the original adoption date (ask or mark as TODO if unknown),
Approval Dateis today if there are changes, otherwise keep the previous date.Last Revised Date - must be incremented according to semantic versioning rules:
Charter Version- Major version: Backward-incompatible governance/principle removal or redefinition.
- Minor version: Addition of new principles/sections or substantial expansion of guidance.
- Patch: Clarifications, wording adjustments, typo fixes, non-semantic optimizations.
- If the version upgrade type is unclear, provide justifications before finalizing.
-
Draft updated charter content:
- Replace each placeholder with specific text (except template slots intentionally left undefined due to undecided project selections - clearly state any remaining placeholders).
- Preserve the heading hierarchy; remove comments once replaced unless they still provide clarifying guidance.
- Ensure each principle section includes: a concise name line, a paragraph (or bulleted list) capturing non-negotiable rules, and a clear rationale if not obvious.
- Ensure the governance section lists revision procedures, versioning strategies, and compliance review expectations.
-
Consistency Propagation Checklist (convert previous checklist to active verification):
- Read and ensure any "charter checks" or rules align with updated principles.
.specify/templates/plan-template.md - Read to align scope/requirements - update if the charter adds/removes mandatory sections or constraints.
.specify/templates/spec-template.md - Read and ensure task categories reflect newly added or removed principle-driven task types (e.g., observability, version control, testing discipline).
.specify/templates/tasks-template.md - Read any runtime guidance documents (e.g., ,
README.md, or existing agent-specific guidance files). Update references to changed principles.docs/quickstart.md
- Read
-
Generate a Synchronization Impact Report (prepend to the charter file as an HTML comment after updates):
- Version change: Old → New
- List of modified principles (old title → new title if renamed)
- Newly added sections
- Deleted sections
- Templates requiring updates (✅ Updated / ⚠ Pending) and file paths
- List follow-up todos if any placeholders are intentionally deferred.
-
Verification before final output:
- No unexplained bracket tokens remain.
- Version line matches the report.
- Dates are in ISO format YYYY-MM-DD.
- Principles are declarative, testable, and free of ambiguous language (replace "should" with MUST/SHOULD justifications where appropriate).
-
Write the completed charter back to(overwrite).
.specify/memory/constitution.md -
Output a final summary to the user:
- New version and upgrade rationale.
- Any files marked for manual follow-up.
- Suggested commit message (e.g., ).
docs: revise charter to vX.Y.Z (principle addition + governance update)
Formatting and Style Requirements:
- Use Markdown headings exactly as in the template (do not demote/promote levels).
- Wrap long rationale lines for readability (ideally <100 characters), but do not enforce rigid line breaks.
- Maintain a single blank line between sections.
- Avoid trailing whitespace.
If the user provides a partial update (e.g., revising only one principle), still perform the verification and version decision steps.
If critical information is missing (e.g., approval date is truly unknown), insert and include it under deferred items in the synchronization impact report.
TODO(<FIELD_NAME>): explanationDo not create new templates; always operate on the existing file.
.specify/memory/constitution.md