SP

speckit-constitution

Defines and enforces high-level project principles and standards.

Install

mkdir -p .claude/skills/speckit-constitution && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13012" && unzip -o skill.zip -d .claude/skills/speckit-constitution && rm skill.zip

Installs to .claude/skills/speckit-constitution

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync
134 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Create or update the project constitution
  • Gather principle inputs from the user interactively
  • Ensure all dependent templates stay in sync
  • Validate principle consistency
  • Report changes made to the constitution

How it works

The skill loads an existing constitution, gathers new principle inputs, updates the constitution document, and then synchronizes dependent templates to reflect the changes.

Inputs & outputs

You give it
User-provided principles, interactive questions, technical constraints, quality standards
You get back
Updated `.specify/memory/constitution.md` and synchronized templates like `spec-template.md`

When to use speckit-constitution

  • Updating project standards
  • Establishing quality gates
  • Defining technical constraints
  • Managing project principles

About this skill

Speckit-Constitution: Project Principles Management

Purpose

Create or update the project constitution - a set of non-negotiable principles and standards that govern all specifications, plans, and implementations in the project.

What is a Constitution?

The constitution (specify/memory/constitution.md) defines:

  • MUST principles: Non-negotiable requirements (always enforced)
  • SHOULD principles: Strong recommendations (justify if violated)
  • Project standards: Coding style, architecture patterns, quality gates
  • Technical constraints: Required/forbidden technologies
  • Quality gates: Review requirements, testing standards, documentation needs

Prerequisites

  • Project repository initialized
  • .specify/ directory structure (created by setup scripts)

What This Skill Does

  1. Loads existing constitution (if exists)
  2. Gathers principle inputs from user interactively
  3. Creates/updates constitution document
  4. Ensures all dependent templates stay in sync
  5. Validates principle consistency
  6. Reports changes made

Key Principles

Constitution Authority

  • Non-negotiable within scope: All specs and plans must comply
  • Explicit violations: Must be justified in writing
  • Cannot be silently ignored: Tools check compliance automatically
  • Change via update: Modify constitution, don't violate it

Template Synchronization

When constitution updates:

  • Spec template updates to reflect new quality gates
  • Plan template updates to enforce new technical constraints
  • Task template updates to include new validation steps
  • Checklist templates update to check new principles

Execution Flow

All execution logic is now contained within this skill. The skill handles:

  • Constitution loading/creation
  • Principle gathering
  • Template synchronization

Quick Summary

  1. Load existing constitution (if exists) from .specify/memory/constitution.md
  2. Gather inputs:
    • User-provided principles
    • Interactive questions if needed
    • Technical constraints
    • Quality standards
  3. Create/update constitution:
    • Organize principles by category
    • Mark MUST vs SHOULD
    • Document rationale
  4. Sync dependent templates:
    • Update spec template
    • Update plan template
    • Update task template
    • Update checklist templates
  5. Report changes: List new/modified principles

Constitution Structure

Recommended Sections

# Project Constitution

## Core Principles

### Architecture
- [MUST] Use microservices pattern for backend services
- [SHOULD] Prefer REST over GraphQL for public APIs

### Security
- [MUST] All data encrypted at rest and in transit
- [MUST] Authentication required for all protected resources
- [SHOULD] Use OAuth2 for third-party integrations

### Quality
- [MUST] All code must pass linting before commit
- [MUST] Test coverage ≥80% for all new code
- [SHOULD] Performance budgets defined for critical paths

### Technology Constraints
- [MUST] Use TypeScript (no JavaScript)
- [MUST] PostgreSQL for relational data
- [FORBIDDEN] MongoDB, MySQL (use PostgreSQL instead)

### Documentation
- [MUST] All public APIs have OpenAPI specs
- [SHOULD] All components have README files
- [SHOULD] Architecture decisions recorded in ADRs

## Quality Gates

### Specification Phase
- [ ] No implementation details in spec.md
- [ ] All success criteria measurable
- [ ] All user stories have acceptance criteria

### Planning Phase
- [ ] All design decisions documented in research.md
- [ ] Constitution compliance validated
- [ ] Data model complete

### Implementation Phase
- [ ] All tests pass
- [ ] Linting clean
- [ ] Code review approved

Common Constitution Topics

Architecture Patterns

  • Microservices vs monolith
  • Layered architecture requirements
  • Dependency injection patterns
  • Event-driven vs request/response

Security Standards

  • Authentication mechanisms
  • Authorization patterns
  • Data encryption requirements
  • Secret management

Quality Standards

  • Test coverage requirements
  • Code review policies
  • Documentation standards
  • Performance budgets

Technology Stack

  • Required languages/frameworks
  • Approved libraries
  • Forbidden technologies
  • Version constraints

Development Process

  • Branching strategy
  • Commit message format
  • PR requirements
  • Release process

Interactive Constitution Creation

If user doesn't provide full constitution, ask:

  1. Architecture: "What architectural patterns are required?" (microservices, monolith, serverless, etc.)
  2. Security: "What security requirements are non-negotiable?" (encryption, auth, compliance, etc.)
  3. Quality: "What quality gates must pass?" (tests, coverage, reviews, etc.)
  4. Technology: "Are there required or forbidden technologies?" (languages, frameworks, databases, etc.)
  5. Process: "What development processes are mandatory?" (reviews, docs, versioning, etc.)

Provide options with recommendations for each.

Success Indicators

Constitution is ready when:

  • ✅ Principles clearly marked as MUST or SHOULD
  • ✅ Rationale provided for critical constraints
  • ✅ Quality gates explicitly defined
  • ✅ Technology constraints documented
  • ✅ All dependent templates synced
  • ✅ No contradictory principles
  • ✅ Enforcement mechanism clear

Output

.specify/memory/
└── constitution.md            # Project constitution

Updated templates:
- .specify/templates/spec-template.md
- .specify/templates/plan-template.md
- .specify/templates/tasks-template.md
- .specify/templates/checklist-template.md

Constitution Enforcement

During Specification

  • Spec template includes constitution-mandated sections
  • Quality checklist validates constitution compliance
  • No forbidden technologies mentioned

During Planning

  • Plan template includes Constitution Check section
  • All MUST principles validated
  • Violations require written justification
  • Research.md references constitution decisions

During Implementation

  • Task template includes constitution validation steps
  • Pre-commit hooks enforce code standards
  • CI/CD validates quality gates
  • Reviews check compliance

Common Mistakes

❌ Too Many MUST Principles

Wrong: 50 MUST requirements (impossible to enforce) Right: 5-10 critical MUST requirements, rest are SHOULD

❌ Vague Principles

Wrong: "Code should be clean and maintainable" Right: "All functions <50 lines, test coverage ≥80%, ESLint clean"

❌ No Rationale

Wrong: "MUST use PostgreSQL" (why?) Right: "MUST use PostgreSQL (team expertise, ACID guarantees required, proven scale)"

❌ Contradictory Principles

Wrong: "MUST use microservices" + "MUST deploy as single binary" Right: Resolve contradiction before finalizing

❌ Unenforced Principles

Wrong: Constitution exists but never checked Right: All tools validate constitution compliance automatically

Example Constitution

# Project Constitution

## Architecture Principles

- [MUST] Use multi-agent system with OpenAI Agents SDK
- [MUST] Follow Composition Root dependency injection pattern
- [SHOULD] Prefer deterministic flows (low temperature) for sales agents

## Security Principles

- [MUST] Never expose internal identifiers to external systems
- [MUST] All secrets in environment variables, never committed
- [MUST] Authentication required for all customer-facing interactions

## Quality Principles

- [MUST] All code passes `npm test` before commit
- [MUST] All code passes `npm run lint` before commit
- [SHOULD] Test coverage ≥80% for critical paths

## Technology Constraints

- [MUST] TypeScript (no JavaScript)
- [MUST] MongoDB for persistence
- [MUST] OpenAI Agents SDK (no custom routing verbs)
- [FORBIDDEN] Custom SDK abstractions (YAGNI)

## Documentation Standards

- [MUST] All agents documented in README
- [SHOULD] Complex tools include usage examples
- [SHOULD] Architecture decisions in docs/architecture/

Related Skills

  • speckit - Main workflow (uses constitution throughout)
  • speckit-specify - Specification creation (validates against constitution)
  • speckit-plan - Technical planning (validates against constitution)

When not to use it

  • When a project repository is not initialized
  • When the `.specify/` directory structure is not present

Prerequisites

Project repository initialized`.specify/` directory structure

Limitations

  • Constitution principles are non-negotiable within scope
  • Explicit violations must be justified in writing
  • Cannot be silently ignored as tools check compliance automatically

How it compares

This skill centralizes and automates the management of project principles and their propagation to templates, unlike manual updates across various documents.

Compared to similar skills

speckit-constitution side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
speckit-constitution (this skill)05moNo flagsIntermediate
pmbok-project-management389moNo flagsIntermediate
project-planner329moReviewIntermediate
spec-kit-workflow118moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

pmbok-project-management

jgtolentino

Comprehensive PMP/PMBOK project management methodologies and best practices. Use this skill when users need guidance on project management processes, templates, knowledge areas, process groups, tools, techniques, or certification preparation. Covers all 10 PMBOK Knowledge Areas and 5 Process Groups with practical templates, frameworks, and industry-standard approaches. Includes risk management, stakeholder engagement, schedule management, cost control, quality assurance, and resource planning.

38183

project-planner

adrianpuiu

Comprehensive project planning and documentation generator for software projects. Creates structured requirements documents, system design documents, and task breakdown plans with implementation tracking. Use when starting a new project, defining specifications, creating technical designs, or breaking down complex systems into implementable tasks. Supports user story format, acceptance criteria, component design, API specifications, and hierarchical task decomposition with requirement traceability.

32115

spec-kit-workflow

jmanhype

Guides specification-driven development workflow. Automatically invoked when discussing new features, specifications, technical planning, or implementation tasks. Ensures proper workflow phases (specify → clarify → plan → checklist → tasks → analyze → implement).

11111

product-manager-toolkit

davila7

Comprehensive toolkit for product managers including RICE prioritization, customer interview analysis, PRD templates, discovery frameworks, and go-to-market strategies. Use for feature prioritization, user research synthesis, requirement documentation, and product strategy development.

3280

planning-agent

parcadei

Planning agent that creates implementation plans and handoffs from conversation context

531

pdd

mikeyobrien

Transforms a rough idea into a detailed design document with implementation plan. Follows Prompt-Driven Development — iterative requirements clarification, research, design, and planning.

66

Search skills

Search the agent skills registry