uf.constitution-check

uf.constitution-check is a command for Claude Code, OpenCode from unbound-force/gaze. It costs 13 tokens per session (691 once invoked), scanned A, original, Apache-2.0.

A command that compares a repository's constitution—a document describing its governing principles—with an organisation-wide constitution.

In plain words
What is it for?
Use it to check a hero repository's constitution against the Unbound Force organisation constitution and produce an alignment report.
Why use it?
It identifies supported principles, contradictions, missing principles, and whether the repository links to the parent constitution.

Command for Claude CodeOpenCode

Written for Claude Code and OpenCode: $ARGUMENTS substitution, but also installed under .opencode/. Also seen: agent in frontmatter.

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 commands/unbound-force/gaze/uf.constitution-check
Clone the repo
git clone --depth 1 https://github.com/unbound-force/gaze

Made for: Claude Code, OpenCode.

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 uf.constitution-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/unbound-force/gaze/uf.constitution-check.svg)](https://agentmods.dev/commands/unbound-force/gaze/uf.constitution-check)
Your own site
<a href="https://agentmods.dev/commands/unbound-force/gaze/uf.constitution-check"><img src="https://agentmods.dev/badge/commands/unbound-force/gaze/uf.constitution-check.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 691 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.1 $0.00013 $0.00691
Opus 5 $0.00006 $0.00345
Sonnet 5 $0.00003 $0.00138
Haiku 4.5 $0.00001 $0.00069

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

Security

Grade A, and why

uf.constitution-check 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.

.opencode/commands/uf.constitution-check.md · 86 lines

How it starts

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

Command: /uf.constitution-check

Description

Compares a hero repository's constitution against the Unbound Force org constitution and produces a structured alignment report. The report shows whether each org principle is supported by the hero's principles, identifies contradictions and gaps, and checks for a parent constitution reference.

Usage

/uf.constitution-check [hero-constitution-path] [org-constitution-path]

Arguments

  • hero-constitution-path (optional): Path to the hero constitution file. Defaults to .specify/memory/constitution.md in the current repository.
  • org-constitution-path (optional): Path to the org constitution file. Defaults to .specify/memory/constitution.md in the current repository if it is the unbound-force meta repo.

Examples

# Check the current repo's constitution against the org constitution
/uf.constitution-check

# Check a specific hero constitution
/uf.constitution-check /path/to/hero/.specify/memory/constitution.md

# Check with explicit org constitution path
/uf.constitution-check /path/to/hero/constitution.md /path/to/org/constitution.md

Instructions

  1. Parse $ARGUMENTS to extract optional file paths.

  2. Locate the org constitution:

    • If a second argument is provided, use it as the org constitution path.
    • Otherwise, check if the current repository is the unbound-force meta repo (look for docs/heroes.md at the repo root). If so, use .specify/memory/constitution.md as the org constitution.
    • If the current repo is NOT the meta repo, look for the org constitution at ../unbound-force/.specify/memory/constitution.md (sibling directory). If not found, ask the user for the path.
  3. Locate the hero constitution:

    • If a first argument is provided, use it as the hero constitution path.
    • Otherwise, use .specify/memory/constitution.md in the current repository.
    • If the current repo IS the meta repo and no hero path was specified, ask the user which hero to check.

Read the full file on GitHub · 86 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. 5d ago First seen · 86 lines · 13 tokens per session scan A a1e53faa91fc

Subscribe to this mod's changes

uf.constitution-check is a command published in the GitHub repository unbound-force/gaze (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 13 tokens to every session and 691 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.