speckit-constitution
Skill0 starsChanged 55 days agoMITView on GitHub
Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync.
62 other projects use a version of this, 56 of them edited; 24 of 56 edited versions we compared changed its rules; 0 new projects in the last 4 weeks, against 5 the 4 before.
How people change it
24 of 56 edited versions changed its rules, and some changes recur.
Of the 56 edited versions we compared: 24 keep every rule, 8 are an older text, 24 made changes of their own.
Not in older versions
- When constructing slash commands from hook command names, replace dots (
.) with hyphens (-). For example,speckit.git.commit→/speckit-git-commit.missing from 4 of 8 - Read each command file in
.specify/templates/commands/*.md(including this one) to verify no outdated references (agent-specific names like CLAUDE only) remain when generic guidance is required.missing from 4 of 8 - Check if
.specify/extensions.ymlexists in the project root.missing from 1 of 8 - If it exists, read it and look for entries under the
hooks.before_constitutionkeymissing from 1 of 8 - If the YAML cannot be parsed or is invalid, skip hook checking silently and continue normallymissing from 1 of 8
- If the hook has no
conditionfield, or it is null/empty, treat the hook as executablemissing from 1 of 8 - If the hook defines a non-empty
condition, skip the hook and leave condition evaluation to the HookExecutor implementationmissing from 1 of 8 - If no hooks are registered or
.specify/extensions.ymldoes not exist, skip silentlymissing from 1 of 8
Rules people drop
- Read each command file in
.specify/templates/commands/*.md(including this one) to verify no outdated references (agent-specific names like CLAUDE only) remain when generic guidance is required.dropped by 23 of 24 - Read
.specify/templates/plan-template.mdand ensure any "Constitution Check" or rules align with updated principles.dropped by 19 of 24 - Read
.specify/templates/spec-template.mdfor scope/requirements alignment—update if constitution adds/removes mandatory sections or constraints.dropped by 19 of 24 - Read
.specify/templates/tasks-template.mdand ensure task categorization reflects new or removed principle-driven task types (e.g., observability, versioning, testing discipline).dropped by 19 of 24 - Read any runtime guidance docs (e.g.,
README.md,docs/quickstart.md, or agent-specific guidance files if present). Update references to principles changed.dropped by 19 of 24 - Note: If
.specify/memory/constitution.mddoes not exist yet, it should have been initialized from.specify/templates/constitution-template.mdduring project setup. If it's missing, copy the template first.dropped by 14 of 24 - Do not create a new template; always operate on the existing
.specify/memory/constitution.mdfile.dropped by 13 of 24 - If the YAML cannot be parsed or is invalid, skip hook checking silently and continue normallydropped by 6 of 24
Rules people add
- If the input includes feature implementation, code generation, refactoring, building, or deployment requests, you MUST NOT execute them. Extract them as deferred intents instead.added by 22 of 24
- If it is unclear whether an instruction is constitution content, ask for clarification before making changes.added by 22 of 24
- After completing the constitution update, include a
Next Actionssection for each deferred intent. List the original intent and suggest the appropriate follow-up Spec Kit command, such as/speckit-specify, without invoking it.added by 22 of 24 - If there are no non-governance intents, omit the
Next Actionssection.added by 22 of 24 - Run
.specify/scripts/powershell/resolve-template.ps1 constitution-template -Jsonfrom the repository root and parseTEMPLATE_CONTENTas the active template.added by 13 of 24 - If it fails, stop and report the resolution error; do not continue with only one contributing template layer.added by 13 of 24
- If
.specify/memory/constitution.mdexists, load it as the source of current project-specific values and amendments. Preserve information that is still applicable when applying the newly resolved scaffold.added by 13 of 24 - If it does not exist, use the resolved template as the initial document.added by 13 of 24
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Cooling: 0 new projects took it in the last 4 weeks, 0× the 4 weeks before.thin data
Most recently taken up by
- thinkmorestupidless/ankkaedited, first seen Oct 5, 2026
- Azure/agent-landing-zoneedited, first seen Oct 2, 2026
- Arkanji/iwork-studioedited, first seen Oct 2, 2026
- paulo2nd/specopsedited, first seen Sep 29, 2026
- raccioly/docguardedited, first seen Sep 29, 2026
- smartfoods1/tutor-vibe-codingedited, first seen Sep 28, 2026
Used with
Projects with it also use speckit-git-commit, speckit-git-feature and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Sorcha-PlatformSkillspeckit-git-commit
Auto-commit changes after a Spec Kit command completes
Also in 16 projects that use this
Sorcha-PlatformSkillspeckit-git-feature
Create a feature branch with sequential or timestamp numbering
Also in 16 projects that use this
- +4 more from Sorcha-Platform
Other versions62 projects use a version of this.
Word for word · 1
- acryldev/acryl★ 256100% same
Edited · 56
- Azure/agent-landing-zone★ 1.2k66% same
- PieroSierra/SecondBrain★ 15297% same
- dceoy/speckit-agent-skills★ 14560% same
- dtzp555-max/ocp★ 12297% same
- haru/redmine_ai_helper★ 10660% same
- alfredoperez/speckit-companion★ 9599% same
- Kong-lh-rgb/vesta★ 6265% same
- Anantys-oss/koan★ 4798% same
- raccioly/docguard★ 3261% same
- jkolo/debug-mcp★ 2897% same
46 more not listed
Wrote their own version · 5
- aetna000/atmem★ 12same name
- FavToSkill/douxiaojia★ 11same name
- me-cedric/agent-compass★ 3same name
- sarveshtalele/mcp-skills-registry★ 2same name
- TienDat-Vna/BackSpec★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/00-global.mdcCursor rule
- .cursor/rules/01-git-commits.mdcCursor rule
- .cursor/rules/10-php-symfony-bundle.mdcCursor rule
- .cursor/rules/40-tests-quality.mdcCursor rule
- .cursor/rules/50-docs-and-release.mdcCursor rule
- speckit-analyzeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-convergeSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. 11 are common, 0 are distinctive, and 15 are very specific to this project.
11
Common
Most of the 59 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Check if .specify/extensions.yml exists in the project root.
- Very specific: line 23
If it exists, read it and look for entries under the hooks.before_constitution key
- Common: line 24
If the YAML cannot be parsed or is invalid, skip hook checking silently and continue normally
- Very specific: line 27
If the hook has no condition field, or it is null/empty, treat the hook as executable
- Very specific: line 28
If the hook defines a non-empty condition, skip the hook and leave condition evaluation to the HookExecutor implementation
- Very specific: line 29
When constructing slash commands from hook command names, replace dots (.) with hyphens (-).
- Very specific: line 53
If no hooks are registered or .specify/extensions.yml does not exist, skip silently
- Very specific: line 59
Note: If .specify/memory/constitution.md does not exist yet, it should have been initialized from …
- Common: line 61
Follow this execution flow:
- Common: line 68
If user input (conversation) supplies a value, use it.
- Common: line 75
If version bump type ambiguous, propose reasoning before finalizing.
- Common: line 80
Ensure each Principle section: succinct name line, paragraph (or bullet list) capturing non‑negotiable rules, explicit rationale if not …
- Common: line 81
Ensure Governance section lists amendment procedure, versioning policy, and compliance review expectations.
- Very specific: line 84
Read .specify/templates/plan-template.md and ensure any "Constitution Check" or rules align with updated principles.
- Very specific: line 85
Read .specify/templates/spec-template.md for scope/requirements alignment—update if constitution adds/removes mandatory sections or …
- Very specific: line 86
Read .specify/templates/tasks-template.md and ensure task categorization reflects new or removed principle-driven task types (e.g., …
- Very specific: line 87
Read each command file in .specify/templates/commands/*.md (including this one) to verify no outdated references (agent-specific names like …
- Very specific: line 88
Read any runtime guidance docs (e.g., README.md, docs/quickstart.md, or agent-specific guidance files if present).
- Common: line 96
Follow-up TODOs if any placeholders intentionally deferred.
- Common: line 99
No remaining unexplained bracket tokens.
- Very specific: line 104
Write the completed constitution back to .specify/memory/constitution.md (overwrite).
- Common: line 113
Use Markdown headings exactly as in the template (do not demote/promote levels).
- Common: line 115
Keep a single blank line between sections.
- Common: line 118
If the user supplies partial updates (e.g., only one principle revision), still perform validation and version decision steps.
- Very specific: line 120
If critical info missing (e.g., ratification date truly unknown), insert TODO(<FIELD_NAME>): explanation and include in the Sync Impact …
- Very specific: line 122
Do not create a new template.
“Common” is measured: kept by at least 6 in 10 of the 59 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
User Input
$ARGUMENTSYou MUST consider the user input before proceeding (if not empty).
Pre-Execution Checks
Check for extension hooks (before constitution update):
- Check if
.specify/extensions.ymlexists in the project root. - If it exists, read it and look for entries under the
hooks.before_constitutionkey - If the YAML cannot be parsed or is invalid, skip hook checking silently and continue normally
- Filter out hooks where
enabledis explicitlyfalse. Treat hooks without anenabledfield as enabled by default. - For each remaining hook, do not attempt to interpret or evaluate hook
conditionexpressions:- If the hook has no
conditionfield, or it is null/empty, treat the hook as executable - If the hook defines a non-empty
condition, skip the hook and leave condition evaluation to the HookExecutor implementation
- If the hook has no
- When constructing slash commands from hook command names, replace dots (
.) with hyphens (-). For example,speckit.git.commit→/speckit-git-commit. - For each executable hook, output the following based on its
optionalflag:- Optional hook (
optional: true):## Extension Hooks **Optional Pre-Hook**: {extension} Command: `/{command}` Description: {description} Prompt: {prompt} To execute: `/{command}` - Mandatory hook (
optional: false):
After emitting the block above you MUST actually invoke the hook and wait for it to finish before continuing. Run it the same way you would run the command yourself in this agent/session (the invocation may differ from the literal## Extension Hooks **Automatic Pre-Hook**: {extension} Executing: `/{command}` EXECUTE_COMMAND: {command} Wait for the result of the hook command before proceeding to the Outline.{command}id shown above, e.g. a skills-mode agent runs it as/skill:speckit-...or$speckit-...). Emitting the block alone does not run the hook.
- Optional hook (
- If no hooks are registered or
.specify/extensions.ymldoes not exist, skip silently
Outline
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.
Note: If .specify/memory/constitution.md does not exist yet, it should have been initialized from .specify/templates/constitution-template.md during project setup. If it's missing, copy the template first.
Follow this execution flow:
- Load the existing constitution at
.specify/memory/constitution.md.- Identify every placeholder token of the form
[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.
- Identify every placeholder token of the form
- Collect/derive values for placeholders:
- If user input (conversation) supplies a value, use it.
- Otherwise infer from existing repo context (README, docs, prior constitution versions if embedded).
- For governance dates:
RATIFICATION_DATEis the original adoption date (if unknown ask or mark TODO),LAST_AMENDED_DATEis today if changes are made, otherwise keep previous. CONSTITUTION_VERSIONmust increment according to semantic versioning rules:- MAJOR: Backward incompatible governance/principle removals or redefinitions.
- MINOR: New principle/section added or materially expanded guidance.
- PATCH: Clarifications, wording, typo fixes, non-semantic refinements.
- If version bump type ambiguous, propose reasoning before finalizing.
- Draft the updated constitution content:
- Replace every placeholder with concrete text (no bracketed tokens left except intentionally retained template slots that the project has chosen not to define yet—explicitly justify any left).
- Preserve heading hierarchy and comments can be removed once replaced unless they still add clarifying guidance.
- Ensure each Principle section: succinct name line, paragraph (or bullet list) capturing non‑negotiable rules, explicit rationale if not obvious.
- Ensure Governance section lists amendment procedure, versioning policy, and compliance review expectations.
- Consistency propagation checklist (convert prior checklist into active validations):
- Read
.specify/templates/plan-template.mdand ensure any "Constitution Check" or rules align with updated principles. - Read
.specify/templates/spec-template.mdfor scope/requirements alignment—update if constitution adds/removes mandatory sections or constraints. - Read
.specify/templates/tasks-template.mdand ensure task categorization reflects new or removed principle-driven task types (e.g., observability, versioning, testing discipline). - Read each command file in
.specify/templates/commands/*.md(including this one) to verify no outdated references (agent-specific names like CLAUDE only) remain when generic guidance is required. - Read any runtime guidance docs (e.g.,
README.md,docs/quickstart.md, or agent-specific guidance files if present). Update references to principles changed.
- Read
- Produce a Sync Impact Report (prepend as an HTML comment at top of the constitution file after update):
- Version change: old → new
- List of modified principles (old title → new title if renamed)
- Added sections
- Removed sections
- Templates requiring updates (✅ updated / ⚠ pending) with file paths
- Follow-up TODOs if any placeholders intentionally deferred.
- Validation before final output:
- No remaining unexplained bracket tokens.
- Version line matches report.
- Dates ISO format YYYY-MM-DD.
- Principles are declarative, testable, and free of vague language ("should" → replace with MUST/SHOULD rationale where appropriate).
- Write the completed constitution back to
.specify/memory/constitution.md(overwrite). - Output a final summary to the user with:
- New version and bump rationale.
- Any files flagged for manual follow-up.
- Suggested commit message (e.g.,
docs: amend constitution to vX.Y.Z (principle additions + governance update)).
Formatting & Style Requirements:
- Use Markdown headings exactly as in the template (do not demote/promote levels).
- Wrap long rationale lines to keep readability (<100 chars ideally) but do not hard enforce with awkward breaks.
- Keep a single blank line between sections.
- Avoid trailing whitespace.
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.
Post-Execution Checks
Check for extension hooks (after constitution update):
Check if .specify/extensions.yml exists in the project root.
- If it exists, read it and look for entries under the
hooks.after_constitutionkey - If the YAML cannot be parsed or is invalid, skip hook checking silently and continue normally
- Filter out hooks where
enabledis explicitlyfalse. Treat hooks without anenabledfield as enabled by default. - For each remaining hook, do not attempt to interpret or evaluate hook
conditionexpressions:- If the hook has no
conditionfield, or it is null/empty, treat the hook as executable - If the hook defines a non-empty
condition, skip the hook and leave condition evaluation to the HookExecutor implementation
- If the hook has no
- When constructing slash commands from hook command names, replace dots (
.) with hyphens (-). For example,speckit.git.commit→/speckit-git-commit. - For each executable hook, output the following based on its
optionalflag:- Optional hook (
optional: true):## Extension Hooks **Optional Hook**: {extension} Command: `/{command}` Description: {description} Prompt: {prompt} To execute: `/{command}` - Mandatory hook (
optional: false):
After emitting the block above you MUST actually invoke the hook and wait for it to finish before continuing. Run it the same way you would run the command yourself in this agent/session (the invocation may differ from the literal## Extension Hooks **Automatic Hook**: {extension} Executing: `/{command}` EXECUTE_COMMAND: {command}{command}id shown above, e.g. a skills-mode agent runs it as/skill:speckit-...or$speckit-...). Emitting the block alone does not run the hook.
- Optional hook (
- If no hooks are registered or
.specify/extensions.ymldoes not exist, skip silently
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

