speckit-constitution

Updates Speckit .specify/memory/constitution.md templates with provided principles and repo context.

Updated May 22, 2026
One-click install
npx skills add https://github.com/brianpunzalan/webui-rubric --skill speckit-constitution-brianpunzalan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-constitution
Source: https://github.com/brianpunzalan/webui-rubric/tree/main/.claude/skills/speckit-constitution
Command: npx skills add https://github.com/brianpunzalan/webui-rubric --skill speckit-constitution-brianpunzalan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

speckit-constitution updates your project constitution in .specify/memory/constitution.md by filling template placeholders from provided principles and existing repo context, while ensuring dependent templates remain aligned.

Core Features & Use Cases

  • Constitution Template Completion: Replaces [ALL_CAPS_IDENTIFIER] tokens with concrete values, using user input first and repo context second.
  • Governance Versioning: Computes a semantic CONSTITUTION_VERSION bump (major/minor/patch) and updates LAST_AMENDED_DATE when changes are made.
  • Extension Hook Integration: Detects and runs before/after hooks from .specify/extensions.yml (without interpreting hook conditions), while formatting execution instructions for optional and mandatory hooks.
  • Sync Impact Reporting: Prepends an HTML comment describing version changes, modified principles, and which templates need follow-up.

Quick Start

Ask for an updated set of principles, then run this skill to regenerate .specify/memory/constitution.md with synced governance and principles.

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 project constitution and keep dependent templates in sync?

To update a project constitution, you provide principle inputs to resolve template placeholders, then rewrite the constitution file while propagating governance changes to keep plan, spec, and task templates consistent.

How does semantic versioning work when amending governance principles?

Semantic versioning for governance principles computes a major, minor, or patch bump for the constitution version and updates the last amended date whenever changes are applied to the project principles.

How do I resolve template placeholders in a constitution file using repo context?

Resolving template placeholders replaces all-caps identifier tokens with concrete values, prioritizing user-provided principle inputs first and falling back to existing repository context second.

How do extension hooks handle pre and post execution during constitution updates?

Extension hooks handle constitution updates by detecting before and after hooks in the extensions configuration file, running them without interpreting conditions, and formatting execution instructions for mandatory and optional hooks.

What validation checks are needed after synchronizing a project constitution?

Validation after synchronizing a project constitution prevents leftover unexplained template tokens and invalid dates, while a sync impact report describes version changes, modified principles, and templates needing follow-up.

Can I use declarative principles to generate a constitution from scratch?

Yes, declarative principles can generate a constitution from scratch by collecting principle inputs, resolving template placeholders, and applying governance changes to create a new constitution file with consistent command templates.