sdd-constitution

sdd-constitution is a command for Claude Code from niels-emmer/myace. It costs 31 tokens per session (383 once invoked), scanned A, original, MIT.

A command that creates or updates a project's constitution: a short list of rules that specifications, designs, and code must follow.

In plain words
What is it for?
Use it to identify recurring project principles, write checkable MUST or SHOULD rules, and version the constitution document.
Why use it?
It makes important product and architecture constraints explicit and reviewable instead of leaving them scattered across the codebase.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions AGENTS.md; mentions Codex; built for aider.

Good fit Use it to identify recurring project principles, write checkable MUST or SHOULD rules, and version the constitution document.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/niels-emmer/myace/sdd-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/niels-emmer/myace

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 sdd-constitution

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/niels-emmer/myace/sdd-constitution"><img src="https://agentmods.dev/badge/commands/niels-emmer/myace/sdd-constitution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 383 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.00031 $0.00383
Opus 5 $0.00015 $0.00192
Sonnet 5 $0.00006 $0.00077
Haiku 4.5 $0.00003 $0.00038

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

Security

Grade A, and why

sdd-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 5d 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.

collections/additional/spec-driven-dev/commands/sdd-constitution.md · 14 lines

What it actually says

  1. Read docs/constitution.md if it exists; otherwise this is a first-time setup.
  2. Gather principles from the user's request and, on first setup, from the codebase itself — recurring invariants already enforced in code or docs (e.g., an existing "never hard-delete user data" rule) are candidates for promotion to a constitution principle, not just a comment.
  3. Write each principle as a short, checkable MUST/SHOULD statement with a one-line rationale — not a vague value statement. "All external API responses MUST be versioned" is checkable; "we care about API stability" is not.
  4. Keep the set small — five to ten principles. A constitution that tries to cover everything stops functioning as a filter; it should list the things that are expensive to get wrong and easy to accidentally violate.
  5. Version the document: bump the major segment on a principle removed or redefined, minor on a principle added, patch on a wording clarification with no behavioral change. Record the bump and what changed at the top of the file.
  6. Save to docs/constitution.md. This is a different document from AGENTS.md — it governs what the product is allowed to do, not how an agent behaves while working in the repo.
  7. Report which principles were added, changed, or removed, so the user can catch an unintended change before it becomes the standard every future spec is checked against.
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. 5d ago First seen · 14 lines · 31 tokens per session scan A 54e46f74a6cd

Subscribe to this mod's changes

sdd-constitution is a command published in the GitHub repository niels-emmer/myace (1 stars, last pushed 2d ago), licensed MIT. It adds 31 tokens to every session and 383 once invoked, about $0.0002 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-09-03.