codexspec:constitution

A project-principles tool that interactively creates or updates a project constitution and keeps related templates in sync. It supports separate languages for conversation and generated project documents.

In plain words
What is it for?
Use it to explore or provide project principles, then create or update the project constitution and its dependent templates.
Why use it?
It gives a project a maintained set of working principles instead of leaving those rules scattered or inconsistent across templates.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/zts0hg/codexspec/codexspec-constitution
Any agent
npx skills add Zts0hg/codexspec --skill codexspec-constitution
Clone the repo
git clone --depth 1 https://github.com/Zts0hg/codexspec

Made for: Claude Code, Codex.

Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,453 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00031 $0.03453
Opus 5 $0.00015 $0.01726
Sonnet 5 $0.00006 $0.00691
Haiku 4.5 $0.00003 $0.00345

Measured 2d ago against content hash b4a7db3c35aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codexspec: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 2d 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.

.agents/skills/codexspec-constitution/SKILL.md · 390 lines

How it starts

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

Language Preference

Read .codexspec/config.yml. Two independent language controls apply (each falls back to language.output, then English):

  • Interaction language (language.interaction): language for all conversation with the user — questions, explanations, status messages, and codexspec CLI terminal output.
  • Document language (language.document): language for generated artifact files (requirements/spec/plan/tasks).

Converse in the interaction language and author artifacts in the document language. Apply the project's translation standard to both: translate by meaning (not word-for-word), keep English for terms with no good native equivalent, and write as if originally in that language.

User Input

the text after the $codexspec:constitution skill mention

Input Mode Detection

Parse the text after the $codexspec:constitution skill mention to determine execution mode:

Mode A: No Arguments → Present exploration options and let user choose

Mode B: Exploration Keyword (quick or deep) → Execute the corresponding exploration mode

Mode C: Project Principles Description → Use provided principles directly, skip exploration


Mode A: No Arguments - Present Options

IMPORTANT: Use the host agent's structured-question tool (e.g., AskUserQuestion or request_user_input) to present structured choices.

{
  "questions": [{
    "question": "I will explore the project to generate the constitution. Please select exploration depth:",
    "header": "Exploration",
    "options": [
      {
        "label": "quick",
        "description": "Config files + README + core entry points (~5-10 files), best for newly initialized projects"
      },
      {
        "label": "deep",
        "description": "Above + full source code analysis + architecture patterns, best for mature projects"
      },
      {
        "label": "Describe principles",
        "description": "Skip exploration, I will tell you the project principles directly"
      }
    ]
  }]
}

Read the full file on GitHub · 390 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. 2d ago First seen · 390 lines · 31 tokens per session scan A b4a7db3c35aa

Subscribe to this mod's changes

codexspec:constitution is a skill published in the GitHub repository Zts0hg/codexspec (5 stars, last pushed 4d ago), licensed MIT. It adds 31 tokens to every session and 3,453 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-08-31.

Related

Other skills, from other repositories

spec-manager

Spec-driven project iteration workflow — L1 PRD → L2 Design → L3 Impl → Agent Task → Deploy, with human review gates at each layer. Pure local markdown storage, no MCP, no network. Use when the user invokes /spec-manager or asks for: new feature/PRD, technical design, implementation spec, agent task, iteration plan…

loki-ai-ch/spec-manager · 92 tokens

spec-manager

Spec-driven project iteration workflow — L1 PRD → L2 Design → L3 Impl → Agent Task → Deploy, with human review gates at each layer. Pure local markdown storage, no MCP, no network. Use when the user invokes /spec-manager or asks for: new feature/PRD, technical design, implementation spec, agent task, iteration plan…

loki-ai-ch/spec-manager · 92 tokens

spec-manager

Spec-driven project iteration workflow: L1 PRD -> L2 Design -> L3 Impl -> Agent Task, with human review gates at each layer.

loki-ai-ch/spec-manager · 33 tokens

comet-native

Comet Native 工作流。当用户明确调用 /comet-native、要求启动或恢复 Native change,或入口路由到 Native 时使用。.

rpamis/comet · 34 tokens

comet-design

Comet Classic 阶段 2 —— 为 change 产出深度技术 Design Doc。.

rpamis/comet · 24 tokens

bug-triage

Read all open bugs in production/qa/bugs/, re-evaluate priority vs. severity, assign to sprints, surface systemic trends, and produce a triage report. Run at sprint start or when the bug count grows enough to need re-prioritization.

Donchitos/Claude-Code-Game-Studios · 59 tokens