constitution

constitution is a command for Claude Code from felvieira/claude-skills-fv. It costs 27 tokens per session (1,224 once invoked), scanned A, original, Apache-2.0.

A project command that creates or updates `memory/constitution.md`, a file containing the project’s governing principles for code quality, testing, user experience, performance, and security.

In plain words
What is it for?
Use it when starting a project, introducing the kit to an existing project, or making an organisation-wide policy change.
Why use it?
It gives the project one shared reference for important engineering principles instead of leaving them scattered or implicit.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the dev-team-kit-fv plugin — 72 skills, 45 commands, 16 agents, 5 hooks shipped together

Good fit Use it when starting a project, introducing the kit to an existing project, or making an organisation-wide policy change.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/felvieira/claude-skills-fv/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.

Clone the repo
git clone --depth 1 https://github.com/felvieira/claude-skills-fv

Made for: Claude Code.

Or install dev-team-kit-fv, the plugin that ships this one along with the rest of its 72 skills, 45 commands, 16 agents, 5 hooks.

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 constitution

README.md
[![agentmods](https://agentmods.dev/badge/commands/felvieira/claude-skills-fv/constitution/github.svg)](https://agentmods.dev/commands/felvieira/claude-skills-fv/constitution)
Your own site
<a href="https://agentmods.dev/commands/felvieira/claude-skills-fv/constitution"><img src="https://agentmods.dev/badge/commands/felvieira/claude-skills-fv/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 constitution

Your own site · 80×15
<a href="https://agentmods.dev/commands/felvieira/claude-skills-fv/constitution"><img src="https://agentmods.dev/badge/commands/felvieira/claude-skills-fv/constitution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,224 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.00027 $0.01224
Opus 5 $0.00014 $0.00612
Sonnet 5 $0.00005 $0.00245
Haiku 4.5 $0.00003 $0.00122

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

Security

Grade A, and why

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 11d 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.

commands/constitution.md · 123 lines

How it starts

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

/constitution — Princípios Governantes do Projeto

Objetivo: criar/atualizar memory/constitution.md no repo consumidor. Os 5 eixos da constituição (Code Quality, Testing, UX, Performance, Security) viram fonte canônica que /spec, /plan, /build, /review e /ship consultam.

Quando usar:

  • bootstrap de projeto novo (depois de /setup / /repo-audit)
  • mudança organizacional (novo framework de compliance, novo budget de custo)
  • onboarding de skills do kit num projeto existente sem princípios formais

Quando NÃO usar:

  • ajuste micro de um princípio existente → editar memory/constitution.md direto + commit chore(constitution): ...
  • decisão arquitetural localizada → vai pra docs/adr/ não pra constituição

Skill ativada: PO (skill 01) em modo "governance authoring".

Pré-requisitos:

  • repo audit feito (docs/repo-audit/current.md) — pra detectar stack e propor defaults sensatos
  • glossário (docs/glossary.md ou CONTEXT.md) opcional, usado pra naming

Processo

Passo 1 — Detectar estado atual

# Existe constituição?
test -f memory/constitution.md && echo "EXISTE" || echo "AUSENTE"
  • Existe: modo updateAskUserQuestion oferece: Review / Add principle / Modify principle / Bump version / Cancel
  • Ausente: modo bootstrap — segue para passo 2

Passo 2 — Discovery por eixo (5 mini-entrevistas)

Para cada eixo, perguntar 2-4 perguntas com defaults baseados no repo audit (não pergunte stack se package.json mostra; não pergunte se TDD existe se há testes).

Eixo 1 — Code Quality:

  • Linter e formatter atuais? (deduzir de .eslintrc, pyproject.toml, etc.)
  • Limite de complexidade ciclomática aceitável?
  • Linguagens proibidas no projeto?

Eixo 2 — Testing Standards:

  • TDD obrigatório / opcional / por módulo crítico?
  • Coverage mínimo aceitável?
  • Como tratar flaky tests?

Eixo 3 — UX Consistency:

  • Design system existente? Qual?
  • WCAG nível mínimo?
  • Locales obrigatórios?
  • Performance percebida budgets (LCP/INP/CLS)?

Read the full file on GitHub · 123 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. 11d ago First seen · 123 lines · 27 tokens per session scan A 96ed4e167f45

Subscribe to this mod's changes

constitution is a command published in the GitHub repository felvieira/claude-skills-fv (23 stars, last pushed yesterday), licensed Apache-2.0. It adds 27 tokens to every session and 1,224 once invoked, about $0.0001 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-30.