speckit-constitution

Create or update the project constitution and sync dependent spec-kit templates.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/msaid1976/TSP-SmartAIRoute --skill speckit-constitution-msaid1976
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: speckit-constitution
Source: https://github.com/msaid1976/TSP-SmartAIRoute/tree/main/SmartRouteAI/.agents/skills/speckit-constitution
Command: npx skills add https://github.com/msaid1976/TSP-SmartAIRoute --skill speckit-constitution-msaid1976

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Keeping a project's governing principles consistent across spec-kit templates is error-prone when done manually. This Skill fills the constitution template at .specify/memory/constitution.md with concrete values and propagates amendments to dependent plan, spec, and task templates. ## Core Features & Use Cases - Constitution Authoring: Replaces placeholder tokens in the constitution template with values derived from user input or repository context, applying semantic versioning rules for governance changes. - Template Synchronization: Validates and updates plan-template.md, spec-template.md, tasks-template.md, and command templates so they stay aligned with amended principles. - Extension Hooks: Executes optional or mandatory before/after hooks declared in .specify/extensions.yml around the constitution update. - Use Case: A team adopting spec-kit runs this Skill to ratify their first constitution, then re-runs it when adding a new testing principle, automatically receiving a Sync Impact Report and suggested commit message. ## Quick Start Ask the assistant to create or update the project constitution with your principles, for example: update the project constitution to add a principle requiring integration tests for all public APIs.

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. The Skill loads .specify/memory/constitution.md, replaces every bracketed placeholder with concrete values, and writes the completed file back with a version line and dates.

How does constitution versioning work in spec-kit?▼

Versioning follows semantic rules: MAJOR for backward-incompatible principle removals or redefinitions, MINOR for new principles or sections, and PATCH for clarifications or wording fixes. The Skill proposes a bump rationale when the type is ambiguous.

Does updating the constitution sync other spec-kit templates?▼

Yes. The Skill reads plan-template.md, spec-template.md, tasks-template.md, and command templates to verify alignment with amended principles, then reports each file as updated or pending in the Sync Impact Report.

What happens if the constitution file is missing?▼

If .specify/memory/constitution.md does not exist, the Skill copies it from .specify/templates/constitution-template.md before filling placeholders, so no manual template setup is required.

What are spec-kit extension hooks for constitution updates?▼

Hooks declared under hooks.before_constitution or hooks.after_constitution in .specify/extensions.yml run around the update. Optional hooks are suggested to the user, while mandatory hooks execute automatically before the workflow continues.