Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
giuseppe-trisciuoglio avatar

Constitution

  • 1k installs
  • 318 repo stars
  • Updated June 22, 2026
  • giuseppe-trisciuoglio/developer-kit

constitution is an agent governance skill that gives coding assistants a consistent set of principles, constraints, and decision-making rules that persist across every development session.

About

constitution is a skill from giuseppe-trisciuoglio/developer-kit with 466 installs on skills.sh that establishes persistent principles, constraints, and decision-making rules for AI coding agents. Instead of re-explaining project values each session, constitution encodes how agents should prioritize tradeoffs, handle ambiguity, and respect project boundaries. Developers reach for constitution when agent behavior drifts between sessions or lacks a shared decision framework across a codebase. The skill ranks #99 in its source repository and complements mode-specific context skills for teams standardizing agent governance.

  • Defines explicit principles, constraints, and success criteria for agents
  • Prevents hallucination and scope creep by enforcing boundaries
  • Works with Claude Code, Cursor, and other agent environments
  • One-time setup that influences all future agent interactions
  • Includes hard-gate review before any creative implementation work

Constitution by the numbers

  • 1,019 all-time installs (skills.sh)
  • +125 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #466 of 3,282 Productivity & Planning skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill constitution

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1k
repo stars318
Last updatedJune 22, 2026
Repositorygiuseppe-trisciuoglio/developer-kit

How do you keep coding agent rules consistent across sessions?

Give their coding agents a consistent set of principles, constraints, and decision-making rules that persist across every session.

Who is it for?

Development teams who need stable agent governance documents so coding assistants make consistent decisions across every session.

Skip if: Developers who only need one-off task context or mode switching without long-lived project-wide agent principles.

When should I use this skill?

A user wants agent principles, project constitution files, persistent decision rules, or consistent cross-session agent behavior.

What you get

Project constitution document, persistent agent principles, constraint definitions, and cross-session decision-making rules.

  • Project constitution document
  • Agent decision-making rules

By the numbers

  • 466 installs on skills.sh
  • Ranked #99 in the giuseppe-trisciuoglio/developer-kit repository

Files

SKILL.mdMarkdownGitHub ↗

Overview

The Constitution skill manages the architectural DNA of a project through two shared documents:

FilePurpose
docs/specs/architecture.mdTechnology stack, infrastructure, architectural rules, security constraints, AI guardrails
docs/specs/ontology.mdDomain glossary (Ubiquitous Language) — terms, definitions, bounded contexts

These files live at docs/specs/ and are shared across all specifications. Unlike a monolithic constitution.md, these are created/enriched by brainstorm (Phase 6.8.6) and spec-to-tasks (Phase 1.5).

Instructions

1. Identify the operation from $ARGUMENTS or user intent: create, update, check, or show. 2. For create: ask which files to create (architecture.md, ontology.md, or both), gather required information via AskUserQuestion, then write the files using the templates below. 3. For update: identify the target file and section, apply the change surgically, update the Last Updated date. 4. For check: read both constitution files, read the target file, validate against architectural rules and ontology terms, output a Constitution Check Report. 5. For show: read and display both files formatted for readability. 6. Always confirm with the user before writing or overwriting files.

Examples

# Create constitution before first brainstorm
/developer-kit-specs:constitution create

# Validate a spec against architecture and ontology
/developer-kit-specs:constitution check --target=docs/specs/001/2024-01-15--user-auth.md

# Update the security constraints section
/developer-kit-specs:constitution update --file=architecture --section=security

# Show current constitution
/developer-kit-specs:constitution show

When to Use

ScenarioOperation
New project — define stack and domain language before first brainstormcreate
Stack or security rules changedupdate
Validate a spec, task, or file against architecture and ontologycheck
Review current architecture and ontologyshow

Trigger phrases:

  • "Create constitution", "Setup project architecture", "Define ontology"
  • "Update constitution", "Update architecture", "Update ontology"
  • "Constitution check", "Validate against constitution"
  • "Show constitution", "Project principles", "Architectural guardrails"

Operations

create

1. Ask which files to create: "Both" (recommended), "architecture.md only", "ontology.md only" 2. Check if files exist → ask to overwrite or skip 3. For architecture.md: gather via AskUserQuestion (domains, infrastructure, stack, data, style, rules) 4. For ontology.md: ask for terms or create empty scaffold 5. Confirm before writing each file

Template lookup order:

  • Primary: ${CLAUDE_PLUGIN_ROOT}/templates/architecture.md
  • Fallback: skills/constitution/references/architecture.md

update

1. Parse --file=architecture|ontology and --section=<name> 2. Read target file, apply change surgically 3. Update Last Updated date 4. Write file

check

1. Read both constitution files 2. Read target file (--target=<path>) 3. Validate against architecture rules, security constraints, and ontology 4. Output Constitution Check Report

show

1. Read both docs/specs/architecture.md and docs/specs/ontology.md 2. Display formatted for readability

Context Rot Prevention

The Constitution survives context rot through file-based storage:

  • Read at session start: Both docs/specs/architecture.md and docs/specs/ontology.md
  • Never assume in context: MUST be read from file before implementation
  • Validate work: Compare against constitution, not memory

For detailed scenarios and recovery protocols, see references/context-rot-prevention.md.

Constraints and Warnings

  • Does NOT modify source code — only creates/updates constitution files
  • CRITICAL violations MUST be resolved — WARNINGs are advisory
  • One architecture.md and one ontology.md per project — shared across all specs
  • Update `Last Updated` date on every change
  • Use ADRs for significant architectural decisions
  • Context rot risk: Files > 30 days old may have drifted

Best Practices

  • Create before brainstorm: Constitution established early ensures consistency
  • Library Verification: Before using ANY external library, verify it's in the architecture's Library Verification section
  • Spec Death Principle: Archive completed specs to archived/ — never let specs become stale
  • Ontology enrichment: Updated by brainstorm (Phase 6.8.6) and spec-to-tasks (Phase 1.5)
  • Report format: Security section first, then CWE compliance, architecture, library verification, ontology

Constitution Check Report Format

## Constitution Check Report
Target: <file path>
Date: YYYY-MM-DD

### Security Check (CWE/OWASP Compliance)
| Rule | Level | Status | Location | CWE/OWASP |
|------|-------|--------|----------|-----------|
| No SQL injection | CRITICAL | ✅ OK | - | CWE-89 |

### CWE Compliance Report
| CWE | OWASP | Status | Location |
|-----|-------|--------|----------|
| CWE-89 | A03 | ✅ OK | - |

### Architecture Check
| Rule | Status | Detail |
|------|--------|--------|
| Constructor injection | ✅ OK | - |

### Library Verification Check
| Library | Status | Detail |
|---------|--------|--------|
| bcrypt | ✅ OK | Using hash(password, 12) |

### Ontology Check
| Term | Status | Detail |
|------|--------|--------|
| "User" used consistently | ✅ OK | - |

### Summary
- CRITICAL violations: 0
- WARNING violations: 0
- Compliant rules: N

For detailed security patterns (CWE/OWASP mappings), see references/security-patterns.md.

Integration with SDD Workflow

[Session Start] → Read Constitution files
        ↓
[Optional] constitution create        ← this skill (pre-brainstorm setup)
        ↓
brainstorm                            ← Constitution loaded before brainstorming
        ↓
spec-to-tasks                         ← Constitution validates spec
        ↓
task-implementation                   ← Constitution guardrails active
        ↓
task-review                           ← Constitution check validates
        ↓
[Session End] → Constitution files updated if needed

Required loading before:

  • specs.brainstorm — Validate requirements align with architecture
  • specs.spec-to-tasks — Check stack compatibility
  • specs.task-implementation — Apply AI guardrails
  • specs.task-review — Constitution check

Reference Files

FilePurpose
references/architecture.mdFull architecture template
references/ontology.mdFull ontology template
references/security-patterns.mdCWE/OWASP patterns, verification format
references/context-rot-prevention.mdDetailed scenarios and recovery protocols
references/constitution-check-report.mdComplete report examples

For complete templates and detailed reference material, consult the references/ directory.

Related skills

How it compares

Use for persistent project-wide agent principles; pair with context-mode-ops when mode-specific context loading is also needed.

FAQ

What does constitution provide for coding agents?

constitution provides a persistent set of principles, constraints, and decision-making rules that coding agents follow across every session, preventing behavior drift and re-explaining project values on each interaction.

How popular is constitution on skills.sh?

constitution reports 466 installs on skills.sh as part of giuseppe-trisciuoglio/developer-kit, ranking #99 in that repository for teams establishing long-lived agent governance documents.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.