speckit-constitution

Create or update the project constitution from interactive or provided principle inputs.

Updated Aug 2, 2026
One-click install
npx skills add https://github.com/dperussina/function2agent --skill speckit-constitution-dperussina
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: speckit-constitution
Source: https://github.com/dperussina/function2agent/tree/main/.cursor/skills/speckit-constitution
Command: npx skills add https://github.com/dperussina/function2agent --skill speckit-constitution-dperussina

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams using spec-driven development need a single, versioned governance document that defines project principles, but drafting and maintaining a constitution manually is error-prone and inconsistent. This Skill fills the constitution template at .specify/memory/constitution.md with concrete values, enforces semantic versioning, and keeps governance changes auditable. ## Core Features & Use Cases - Template-Driven Constitution Updates: Loads the existing constitution template, identifies every placeholder token, and replaces it with values derived from user input or repository context. - Semantic Versioning of Governance: Automatically increments the constitution version using MAJOR/MINOR/PATCH rules and records ratification and amendment dates in ISO format. - Sync Impact Report: Prepends an HTML comment summarizing version changes, modified principles, added or removed sections, and deferred TODOs. - Scope Guard and Extension Hooks: Separates governance content from unrelated implementation requests and executes pre/post hooks declared in .specify/extensions.yml. - Use Case: A team adopting spec-kit wants to codify five engineering principles. Invoke the Skill with the principle list, and it produces a validated, versioned constitution with a suggested commit message. ## Quick Start Ask the agent to update the project constitution with your list of principles, for example by saying: create a constitution with principles for code quality, testing, and documentation.

Frequently Asked Questions about speckit-constitution

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a project constitution with spec-kit?▼

Run the constitution command with your principles as input, and the Skill fills the template at .specify/memory/constitution.md. If the file is missing, it is first copied from .specify/templates/constitution-template.md, then all placeholder tokens are replaced with concrete values.

How does constitution versioning work in spec-kit?▼

The constitution uses semantic versioning: MAJOR for backward-incompatible principle removals or redefinitions, MINOR for new principles or expanded guidance, and PATCH for clarifications and wording fixes. The Skill proposes a bump rationale when the type is ambiguous.

What is the Sync Impact Report in a constitution update?▼

The Sync Impact Report is an HTML comment prepended to the constitution file after each update. It records the version change, renamed or modified principles, added and removed sections, and any deferred TODO placeholders requiring manual follow-up.

Does the constitution command require a spec-kit project structure?▼

Yes, it requires a spec-kit project with a .specify directory containing the memory and templates subdirectories. Without this structure, the constitution file and its template cannot be located or initialized.

What happens if I include feature requests in a constitution update?▼

Non-governance intents such as feature implementation or code generation are not executed. They are extracted as deferred intents and listed in a Next Actions section with a suggested follow-up command like /speckit-specify.