Create or update the project constitution from interactive or provided principle inputs.
Ships in stack-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
{SCRIPT} refers to the setup script declared in this skill's frontmatter under scripts. Pick the entry that matches the shell you are running in, and run it from the repository root:
sh entry with bash.ps entry with pwsh or powershell.This command's own work is limited to updating the project constitution itself. Dependent templates and commands read the constitution at runtime and are not modified here.
Next Actions section for each deferred
intent. List the original intent and suggest the appropriate follow-up Spec Kit phase, such
as the specify phase, without invoking it.Next Actions section.Check for extension hooks (before constitution update):
.specify/extensions.yml exists in the project root.hooks.before_constitution keyenabled is explicitly false. Treat hooks without an enabled field as enabled by default.condition expressions:
condition field, or it is null/empty, treat the hook as executablecondition, skip the hook and leave condition evaluation to the HookExecutor implementationoptional flag:
optional: true):
## Extension Hooks
**Optional Pre-Hook**: {extension}
Command: `/{command}`
Description: {description}
Prompt: {prompt}
To execute: `/{command}`
optional: false):
## Extension Hooks
**Automatic Pre-Hook**: {extension}
Executing: `/{command}`
EXECUTE_COMMAND: {command}
Wait for the result of the hook command before proceeding to the Outline.
After emitting the block above you MUST actually invoke the hook and wait for it to finish before continuing. Run it the same way you would run the command yourself in this agent/session (the invocation may differ from the literal {command} id shown above, e.g. a skills-mode agent runs it as /skill:speckit-... or $speckit-...). Emitting the block alone does not run the hook..specify/extensions.yml does not exist, skip silentlyYou are updating the project constitution at .specify/memory/constitution.md. The active
constitution scaffold is resolved at command time from constitution-template through the Spec Kit
preset/template resolution stack.
Follow this execution flow:
Run {SCRIPT} from the repository root and parse TEMPLATE_CONTENT as the active template.
.specify/memory/constitution.md exists, load it as the source of current project-specific
values and amendments. Preserve information that is still applicable when applying the newly
resolved scaffold.[ALL_CAPS_IDENTIFIER].
IMPORTANT: The user might require less or more principles than the ones used in the template. If a number is specified, respect that - follow the general template. You will update the doc accordingly.Collect/derive values for placeholders:
RATIFICATION_DATE is the original adoption date (if unknown ask or mark TODO), LAST_AMENDED_DATE is today if changes are made, otherwise keep previous.CONSTITUTION_VERSION must increment according to semantic versioning rules:
Draft the updated constitution content using the resolved template as the required structure:
Produce a Sync Impact Report (prepend as an HTML comment at top of the constitution file after update):
Validation before final output:
Write the completed constitution back to .specify/memory/constitution.md (overwrite).
Output a final summary to the user with:
docs: amend constitution to vX.Y.Z (principle additions + governance update)).Next Actions section for any deferred non-governance intents.Formatting & Style Requirements:
If the user supplies partial updates (e.g., only one principle revision), still perform validation and version decision steps.
If critical info missing (e.g., ratification date truly unknown), insert TODO(<FIELD_NAME>): explanation and include in the Sync Impact Report under deferred items.
Write only .specify/memory/constitution.md; do not create or modify template source files.
Check for extension hooks (after constitution update):
Check if .specify/extensions.yml exists in the project root.
hooks.after_constitution keyenabled is explicitly false. Treat hooks without an enabled field as enabled by default.condition expressions:
condition field, or it is null/empty, treat the hook as executablecondition, skip the hook and leave condition evaluation to the HookExecutor implementationoptional flag:
optional: true):
## Extension Hooks
**Optional Hook**: {extension}
Command: `/{command}`
Description: {description}
Prompt: {prompt}
To execute: `/{command}`
optional: false):
## Extension Hooks
**Automatic Hook**: {extension}
Executing: `/{command}`
EXECUTE_COMMAND: {command}
After emitting the block above you MUST actually invoke the hook and wait for it to finish before continuing. Run it the same way you would run the command yourself in this agent/session (the invocation may differ from the literal {command} id shown above, e.g. a skills-mode agent runs it as /skill:speckit-... or $speckit-...). Emitting the block alone does not run the hook..specify/extensions.yml does not exist, skip silentlyWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/stack-ai:speckit-constitutionfrom stack-ai
npx claudepluginhub anatelgovbr/mod-sei-stack-ia-apoio-dev --plugin stack-ai40 skills in this plugin
/cavemanUltra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
/configuracao-de-testes-unitariosOrienta a configuração de testes unitários e de cobertura de um projeto. Faz um diagnóstico somente leitura (linguagem principal, gerenciador de pacotes, versão da linguagem, Docker, testes existentes e padrão de teste) e entrega um plano próprio para o projeto, com o comando, o lugar onde roda e a forma de conferir cada item, incluindo a cobertura sem meta e um teste de fumaça no padrão AAA.
Use quando o pedido for configurar, montar ou ajustar testes unitários ou cobertura, rodar testes dentro de contêiner ou descobrir como executar os testes de um projeto, inclusive legado sem nenhum teste.
Não usar para pipeline de integração contínua, meta de cobertura, implementação, correção de defeito ou revisão de código.
/dicionario-dados-db-scan-codebase-docsCria, atualiza e verifica dicionários de dados e changelogs estruturais de banco de dados a partir da codebase, dos scripts de banco, do dicionário já existente e de material complementar.
Use quando o pedido envolver dicionário de dados, descrição de tabelas e colunas ou changelog estrutural de banco, seja para criar, atualizar, revisar ou auditar.
/frontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults./gauntlet-loop-forgeGauntlet Loop prompt forge. Use to build a paste-ready Gauntlet Loop execution prompt from whatever material the user brings, or to diagnose and rewrite a Gauntlet Loop prompt that already exists./grillingGrill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.