spec-constitution

Create or update the project constitution with core principles and governance rules. Use when user says "/spec-constitution", "create constitution", "update principles", or needs project-wide development standards. Constitution is referenced by all other spec commands.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "spec-constitution" with this command: npx skills add xfstudio/skills/xfstudio-skills-spec-constitution

Spec-Constitution

Create or update project constitution at .specify/memory/constitution.md.

Prerequisites: .specify/ directory structure must exist.

Workflow

  1. Load template - Read .specify/memory/constitution.md
  2. Find placeholders - Identify [ALL_CAPS_IDENTIFIER] tokens
  3. Collect values - From user input or repo context
  4. Draft constitution - Replace placeholders
  5. Propagate changes - Update dependent templates
  6. Validate - No unexplained placeholders
  7. Write file - Save constitution
  8. Report - Summary with commit suggestion

Placeholders

TokenDescription
[PROJECT_NAME]Project identifier
[PRINCIPLE_N_NAME]Principle titles
[PRINCIPLE_N_DESCRIPTION]Principle details
[CONSTITUTION_VERSION]MAJOR.MINOR.PATCH
[RATIFICATION_DATE]YYYY-MM-DD
[LAST_AMENDED_DATE]YYYY-MM-DD

Version Bumping

  • MAJOR: Breaking governance changes
  • MINOR: New principles/sections
  • PATCH: Clarifications, typos

Propagation Checklist

After updating constitution, check:

  • .specify/templates/plan-template.md
  • .specify/templates/spec-template.md
  • .specify/templates/tasks-template.md
  • README.md, quickstart.md

Sync Report Format

<!--
Version: 1.0.0 → 1.1.0
Modified: Old Title → New Title
Added: New Section
Templates: ✅ plan-template.md, ⚠ tasks-template.md
TODOs: TODO(RATIFICATION_DATE): Ask team
-->

Next Steps

After /spec-constitution:

  • /spec-specify - Create spec using new principles

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

clean-code

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

programmatic-seo

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

voice-ai-development

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

frontend-dev-guidelines

No summary provided by upstream source.

Repository SourceNeeds Review