spec-kit-establish-constitution

spec-kit-establish-constitution is a skill for Claude Code from ErikaAX08/erikas-skills. It costs 108 tokens per session (3,296 once invoked), scanned A, original, MIT.

A project-convention skill that creates or updates a constitution.md file containing the project's documented and code-supported architecture, security, and quality principles.

In plain words
What is it for?
Use it to document project-wide rules from written guidance or recurring code patterns. It prepares conventions for later planning and implementation checks, but does not change the code itself.
Why use it?
It makes unwritten conventions explicit, so later planning and implementation can follow consistent rules instead of guessing. It records evidence and confidence for principles found in existing code.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions subagents; mentions Claude Code.

Good fit Use it to document project-wide rules from written guidance or recurring code patterns. It prepares conventions for later planning and implementation checks, but does not change the code itself.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/erikaax08/erikas-skills/spec-kit-establish-constitution
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ErikaAX08/erikas-skills --skill spec-kit-establish-constitution
Clone the repo
git clone --depth 1 https://github.com/ErikaAX08/erikas-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spec-kit-establish-constitution

README.md
[![agentmods](https://agentmods.dev/badge/skills/erikaax08/erikas-skills/spec-kit-establish-constitution/github.svg)](https://agentmods.dev/skills/erikaax08/erikas-skills/spec-kit-establish-constitution)
Your own site
<a href="https://agentmods.dev/skills/erikaax08/erikas-skills/spec-kit-establish-constitution"><img src="https://agentmods.dev/badge/skills/erikaax08/erikas-skills/spec-kit-establish-constitution/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spec-kit-establish-constitution

Your own site · 80×15
<a href="https://agentmods.dev/skills/erikaax08/erikas-skills/spec-kit-establish-constitution"><img src="https://agentmods.dev/badge/skills/erikaax08/erikas-skills/spec-kit-establish-constitution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,296 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00108 $0.03296
Opus 5 $0.00054 $0.01648
Sonnet 5 $0.00022 $0.00659
Haiku 4.5 $0.00011 $0.00330

Measured 12d ago against content hash bd4f59b7f732, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

spec-kit-establish-constitution scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

spec-kit-establish-constitution/SKILL.md · 264 lines

How it starts

The opening of the file, as written. The whole thing — 264 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Establish Constitution — Project Convention Skill

Purpose

Make a project's real conventions explicit — the ones already written down, and the ones that exist only as a consistent pattern across the code nobody documented — so every other spec-kit skill can follow them "al pie de la letra" instead of guessing or reinventing them per feature. This is the one skill in the kit that is genuinely optional: every other skill already handles a missing constitution.md as N/A, not an error. This skill is what a project runs when it wants that N/A to become real, cited principles instead.

This skill produces a governance document. It does not implement or refactor code to match the constitution — that enforcement happens downstream, in spec-kit-generate-plan's Convention Enforcement and spec-kit-execute-tasks's adherence to active architecture skills.

User Input

$ARGUMENTS

Always consider the complete user message and any files or attachments available in the current conversation, even when $ARGUMENTS appears literally or is empty. Common inputs: "establish a constitution for this project," a specific area to focus on ("just the data access layer"), or a request to re-check the existing constitution against current code.

Core Principle

Explicit conventions are cited, not authored. Inferred conventions are mined with evidence, and never binding until the user confirms them.

  • A principle sourced from a README/ADR/architecture skill is quoted and cited — this skill does not paraphrase it into something subtly different.
  • A principle mined from code is a claim about the code as it exists today, not a value judgment about whether that pattern is good. Low coverage or real inconsistency means "report a mixed pattern," not "declare a winner."
  • Nothing mined is written into constitution.md as binding without the user explicitly confirming it — the code being consistent today doesn't make a pattern intentional, and a project mid-migration can look "consistent" in exactly the wrong direction.

Read the full file on GitHub · 264 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 264 lines · 108 tokens per session scan A bd4f59b7f732

Subscribe to this mod's changes

spec-kit-establish-constitution is a skill published in the GitHub repository ErikaAX08/erikas-skills (5 stars, last pushed 12d ago), licensed MIT. It adds 108 tokens to every session and 3,296 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

sdd-tasks

Break an SDD change into implementation tasks. Trigger: orchestrator launches task planning for a change.

Gentleman-Programming/gentle-ai · 25 tokens

gsap-scrolltrigger

Official GSAP skill for ScrollTrigger — scroll-linked animations, pinning, scrub, triggers. Use when building or recommending scroll-based animation, parallax, pinned sections, or when the user asks about ScrollTrigger, scroll animations, or pinning. Recommend GSAP for scroll-driven animation when no library is…

calesthio/OpenMontage · 68 tokens

seedance-2-5

Generate 4-30 second cinematic video with ByteDance Seedance 2.5 through fal.ai, Volcengine Ark, Runway, or ComfyUI Partner Nodes. Use for long single generations, synchronized audio, and large multimodal reference sets (up to 30 images, 10 videos, and 10 audio clips). Also covers the 2.5 prompt contract: section…

calesthio/OpenMontage · 117 tokens

threejs-geometry

Three.js geometry creation - built-in shapes, BufferGeometry, custom geometry, instancing. Use when creating 3D shapes, working with vertices, building custom meshes, or optimizing with instanced rendering.

calesthio/OpenMontage · 46 tokens

threejs-textures

Three.js textures - texture types, UV mapping, environment maps, texture settings. Use when working with images, UV coordinates, cubemaps, HDR environments, or texture optimization.

calesthio/OpenMontage · 41 tokens

comfyui

Use when working with ComfyUI workflows in OpenMontage, including comfyuiimage/comfyuivideo/comfyuimusic, custom workflowjson/workflowpath inputs, outputnode selection, missing model setup, LoRAs, low-VRAM workflow choices, and community workflow imports.

calesthio/OpenMontage · 61 tokens