speckit-constitution

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

9|2|Updated Aug 27, 2025
One-click install
npx skills add https://github.com/opsmill/infrahub-solution-ai-dc --skill speckit-constitution-opsmill
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: speckit-constitution
Source: https://github.com/opsmill/infrahub-solution-ai-dc/tree/main/.agents/skills/speckit-constitution
Command: npx skills add https://github.com/opsmill/infrahub-solution-ai-dc --skill speckit-constitution-opsmill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Keeping a project's governing principles consistent across the constitution file and all dependent spec-kit templates is error-prone manual work. This Skill fills the constitution template with concrete values, versions changes semantically, and propagates amendments to plan, spec, and task templates. ## Core Features & Use Cases - Constitution Authoring: Fills placeholder tokens in .specify/memory/constitution.md from user input or repository context, with semantic version bumping (MAJOR/MINOR/PATCH) and ISO-format governance dates. - Consistency Propagation: Validates and updates plan-template, spec-template, tasks-template, and command files so they align with amended principles. - Sync Impact Report: Prepends an HTML comment summarizing version changes, modified principles, and templates requiring follow-up. - Extension Hooks: Executes optional or mandatory before/after hooks declared in .specify/extensions.yml. - Use Case: A team adopting spec-kit wants to codify five engineering principles; invoke this Skill with the principles and it produces a ratified constitution plus updated templates and a suggested commit message. ## Quick Start Ask the agent to create or update the project constitution with your principles, for example: update the constitution with principles for code review, testing discipline, and observability.

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?▼

Invoke the speckit-constitution skill with your principles as input. It loads .specify/memory/constitution.md, replaces every placeholder token with concrete values, assigns a semantic version, and writes the completed constitution back to the same file.

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 or typo fixes. The skill proposes a bump rationale when the type is ambiguous.

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

Yes. The skill reads plan-template.md, spec-template.md, tasks-template.md, and command files under .specify/templates to verify alignment with amended principles, then records 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. It never creates a new template and always operates on the existing constitution file.

What are spec-kit extension hooks for the constitution command?▼

Hooks are entries under hooks.before_constitution or hooks.after_constitution in .specify/extensions.yml. Enabled hooks run before or after the constitution update; mandatory hooks are executed automatically while optional hooks are only suggested.