constitution

constitution is a skill for Claude Code from YuDefine/nuxt-supabase-starter. It costs 94 tokens per session (1,112 once invoked), scanned A, original, MIT.

A project-governance skill for creating or changing a repository's written rules. It keeps those rules modular by placing them in the smallest appropriate constitution file.

In plain words
What is it for?
Use it to create, split, refine, or extend rules for project artifacts and agent workflows. It helps decide whether a rule belongs in a root policy, shared policy, or one skill's guidance.
Why use it?
It prevents new rules from being added in the wrong place or expanded beyond the request. It also stops work when an important policy choice still needs the user's decision.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to create, split, refine, or extend rules for project artifacts and agent workflows. It helps decide whether a rule belongs in a root policy, shared policy, or one skill's guidance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yudefine/nuxt-supabase-starter/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 YuDefine/nuxt-supabase-starter --skill constitution
Clone the repo
git clone --depth 1 https://github.com/YuDefine/nuxt-supabase-starter

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 constitution

README.md
[![agentmods](https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/constitution/github.svg)](https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/constitution)
Your own site
<a href="https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/constitution"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/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/skills/yudefine/nuxt-supabase-starter/constitution"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/constitution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,112 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.00094 $0.01112
Opus 5 $0.00047 $0.00556
Sonnet 5 $0.00019 $0.00222
Haiku 4.5 $0.00009 $0.00111

Measured today against content hash cb2cd84606f0, 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 today.

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.

template/.claude/skills/constitution/SKILL.md · 52 lines

What it actually says

Constitution

將使用者對 artifact 規範的需求轉成 .agents/constitution/ 下的最小憲法變更。優先重用 既有 CONSTITUTION.mdshared.mdskills/<skill>/<artifact>.md;只有在需求真的 新增治理邊界或新增 artifact 時才建立新檔。若缺口會改變規則落點、適用範圍或規則強度, 先訪談使用者,不自行補完。

SOP

Phase 1 -- 定位本次要改的憲法檔

  1. READ 讀取使用者需求與 .agents/constitution/ 現況,確認本次是新增、修改或拆分規則,並收斂候選目標檔為 CONSTITUTION.mdshared.mdskills/<skill>/<artifact>.md
  2. READ 若需要判斷規則應落在 shared、根憲法或某個 skill artifact,讀取 rules/目標檔定位與規則落點判準.md,再依已載入規則收斂本次最小修改面。
  3. THINK 列出本次真正需要新增或修改的檔案;若某條需求不影響現有憲法結構,避免擴張到其他檔案。

Phase 2 -- 收斂高影響缺口並訪談使用者

  1. THINK 先從需求中判斷是否存在會改變規則落點、適用 skill、適用 artifact、規則強度或是否需要新檔的高影響缺口。
  2. READ 若需要判斷哪些缺口必須先問,讀取 rules/高影響缺口與最小訪談判準.md,再依其要求收斂本輪 1 至 3 題。
  3. DELEGATE 若仍有高影響缺口,呼叫 /clarify,指定提問面向為規則落點、適用 artifact、硬性程度與是否增量修改;未收斂前停止,不自行假設答案。

Phase 3 -- 撰寫最小憲法增量

  1. THINK 依已確認需求決定本次應修改 CONSTITUTION.mdshared.md 或單一 skills/<skill>/<artifact>.md;若新增 skill artifact 規則檔,沿用既有檔名慣例與 RuleFile 結構。
  2. READ 若需要控制改動範圍與避免過度撰寫,讀取 rules/最小增量與必要覆寫判準.md,再依其要求只保留支撐本次需求的最小規則集合。
  3. WRITE 更新目標憲法檔;若新增或修改 artifact 規則,沿用 Applies To## Rule N - ...- Level:### Good Example### Bad Example 的既有格式。
  4. READ 回頭檢查是否只動到必要檔案、是否沒有把流程責任寫進 artifact 憲法,以及 shared / skill 落點是否一致;若不符合,立即修正。

Phase 4 -- 交付與後續 handoff

  1. WRITE 向使用者回報本次新增或修改的憲法檔、每個檔新增或調整的規則、是否進行 /clarify,以及哪些需求被刻意 defer 到未來 skill 或 artifact。
  2. WRITE 若後續還需要把某個 skill 接上憲法讀取流程,明示應由 /skill-engineering 或對應 skill 編修接續,不在本 skill 內自動擴張實作。

Additional Resources

  • 規則落點判準:rules/目標檔定位與規則落點判準.md
  • 最小訪談判準:rules/高影響缺口與最小訪談判準.md
  • 最小增量判準:rules/最小增量與必要覆寫判準.md
Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today Changed · -1 lines cb2cd84606f0
  2. yesterday First seen · 53 lines · 94 tokens per session scan A 038a52d69ce9

Subscribe to this mod's changes

constitution is a skill published in the GitHub repository YuDefine/nuxt-supabase-starter (45 stars, last pushed today), licensed MIT. It adds 94 tokens to every session and 1,112 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-09-10.

Related

Other skills, from other repositories

prd-v07-implementation-loop

Execute implementation within EPICs following test-first development, continuous SoT updates, and code traceability during PRD v0.7 Build Execution. Triggers on requests to start building, implement an epic, begin coding, or when user asks "start building", "implement epic", "coding", "development", "build execution"…

mattgierhart/PRD-driven-context-engineering · 113 tokens

prd-v07-test-planning

Define test cases BEFORE implementation, ensuring every API, business rule, and user journey has verifiable acceptance criteria during PRD v0.7 Build Execution. Triggers on requests to define tests, plan test coverage, create test cases, or when user asks "define tests", "test planning", "what to test?", "test cases"…

mattgierhart/PRD-driven-context-engineering · 125 tokens

strict-tdd

Strict RED->GREEN->REFACTOR test-driven development with enforcement. Never write production code before a failing test. Atomic commits per TDD cycle.

a5c-ai/babysitter · 34 tokens

prd-v04-user-journey-mapping

Map user missions from trigger to value moment, organizing features into coherent paths during PRD v0.4 User Journeys. Triggers on requests to map user journeys, define user flows, describe how users accomplish goals, or when user asks "map user journeys", "define user flows", "user missions", "how do users accomplish…

mattgierhart/PRD-driven-context-engineering · 145 tokens

atomic-tdd

Test-first discipline. Auto-triggers on "let's implement X", "add feature Y", "fix bug Z", "write a test for", "implement", "build out", and similar pre-code-change phrases. Iron rule: failing test exists before production code. Skip only for pure docs/config changes with an explicit "skipped because:" note. Explicit…

damusix/atomic-claude · 142 tokens

use-tdd

Implement a requested increment with red-green-refactor. Use when the user types /use-tdd.

blockmatic/basilic · 24 tokens