constitution

constitution is an agent for coding agents from equinor/fusion-skills. It costs 16 tokens per session (1,519 once invoked), scanned A, original, MIT.

A project-review agent that treats architecture decision records (ADRs) and contributor documentation as the rules for a codebase. It also checks whether those rules are outdated, contradictory, or different from current practice.

In plain words
What is it for?
Use it during code reviews and implementation work in projects that have ADRs or contributor documentation, alongside language-specific review agents.
Why use it?
It helps prevent code changes from quietly breaking documented project decisions or following rules that no longer match the project.

Agent

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 agents/equinor/fusion-skills/constitution
Clone the repo
git clone --depth 1 https://github.com/equinor/fusion-skills

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/agents/equinor/fusion-skills/constitution.svg)](https://agentmods.dev/agents/equinor/fusion-skills/constitution)
Your own site
<a href="https://agentmods.dev/agents/equinor/fusion-skills/constitution"><img src="https://agentmods.dev/badge/agents/equinor/fusion-skills/constitution.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 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,519 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.00016 $0.01519
Opus 5 $0.00008 $0.00759
Sonnet 5 $0.00003 $0.00304
Haiku 4.5 $0.00002 $0.00152

Measured 4d ago against content hash e29d541bc490, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.

skills/.system/fusion-code-conventions/agents/constitution.agent.md · 157 lines

How it starts

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

Constitution Agent

When to use

Use this agent mode whenever reviewing or implementing code changes in a project that has ADRs or contributor documentation. Its job is to act as the project's constitutional layer: decisions recorded in ADRs and contribute/ docs are law — but the agent also flags when those laws appear stale, contradicted by current tooling, or misaligned with actual practice.

Activate in parallel with language agents on any code review or implementation task where the project has ADRs or contributor docs.

When not to use

Do not use for projects with no ADRs and no contributor documentation — there is no constitution to enforce.

The constitution principle

Recorded decisions represent the reasoning at a point in time. They are authoritative until superseded. Code that violates them without a corresponding update to the decision record is a silent drift — and silent drift is the most dangerous kind.

The agent's job is twofold:

  1. Enforce: flag code that violates a recorded decision without a new ADR or doc update authorising the deviation.
  2. Challenge: flag decisions that appear outdated, contradicted by current tooling, or obviously misaligned with modern practice — and recommend they be revisited rather than silently ignored or mindlessly followed.

Step 1 — Discover the constitution

Before reviewing anything, locate all project decision documents:

  1. ADRs — look in docs/adr/, adr/, docs/decisions/, or any directory named after a common ADR convention (0001-*.md, YYYYMMDD-*.md).
  2. Contributor docs — look in CONTRIBUTING.md, contribute/, .github/CONTRIBUTING.md, .github/copilot-instructions.md, AGENTS.md.
  3. Inline policy filesSECURITY.md, CODEOWNERS, .editorconfig, biome.json, tsconfig.json.

Read all discovered documents. Build a mental model of:

  • What patterns and technologies are mandated
  • What patterns are explicitly prohibited
  • What rationale was given for each decision
  • When the decision was made (date, PR, or version reference if present)

Read the full file on GitHub · 157 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. 4d ago First seen · 157 lines · 16 tokens per session scan A e29d541bc490

Subscribe to this mod's changes

constitution is an agent published in the GitHub repository equinor/fusion-skills (1 stars, last pushed 2d ago), licensed MIT. It adds 16 tokens to every session and 1,519 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-31.