speckit-constitution

Update Spec Kit constitution templates from principle inputs and synchronize dependent files.

60|12|Updated Aug 1, 2013
One-click install
npx skills add https://github.com/vtex/front.phone --skill speckit-constitution-vtex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-constitution
Source: https://github.com/vtex/front.phone/tree/main/.agents/skills/speckit-constitution
Command: npx skills add https://github.com/vtex/front.phone --skill speckit-constitution-vtex

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of keeping a Spec Kit project’s governance constitution consistent with the project’s configured principles and any extension hooks, without stale templates or mismatched rules.

Core Features & Use Cases

  • Interactive or provided principles: Updates the constitution template using user-provided principle inputs, ensuring placeholders are fully replaced with concrete text.
  • Extension hook synchronization: Detects and runs pre-constitution hooks defined in .specify/extensions.yml (before updating), and supports after-constitution hooks (after writing).
  • Propagation across dependent templates: Validates and updates related Spec Kit templates (plan, spec, tasks, and command docs) to ensure principle and governance changes remain aligned.

Quick Start

Run speckit-constitution and provide your constitution principles, so it updates .specify/memory/constitution.md and synchronizes dependent templates automatically.

Frequently Asked Questions about speckit-constitution

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

FAQPage Schema
How do I update a Spec Kit constitution document with new governance principles?

To update a Spec Kit constitution, provide your governance principles as input. The system replaces template placeholders with concrete text, applies semantic version bumping, and writes the finalized principles to the project's constitution memory file.

How does Spec Kit handle extension hooks during constitution synchronization?

Spec Kit constitution synchronization detects and executes pre-constitution hooks defined in .specify/extensions.yml before updating, and triggers after-constitution hooks once the file write is complete, ensuring custom extension logic integrates cleanly.

Can I propagate governance changes across dependent Spec Kit templates automatically?

Yes, governance changes propagate automatically. The system validates and updates dependent Spec Kit templates, including plan, spec, tasks, and command markdown files, to ensure principle modifications remain strictly aligned across the project.

What happens if the Spec Kit constitution memory file is missing during an update?

If the constitution memory file is missing, the update process handles the initialization automatically. It establishes the required constitution memory structure before applying deterministic template token replacement and writing the new principles.

What is the best way to keep Spec Kit templates from going stale after a principle update?

To prevent stale templates after a principle update, run a consistency propagation check. This process verifies and updates related Spec Kit templates and command markdown files, enforcing deterministic token replacement and correct principle count handling.

Does Spec Kit apply semantic versioning and date rules when updating the constitution?

Yes, Spec Kit applies semantic version bumping and enforces date rules during the constitution update. This ensures governance documents maintain accurate historical tracking and compliance alongside synchronized template updates.