abi-superpower-constitution

abi-superpower-constitution is a skill for Claude Code, Codex from donaldfilimon/abi. It costs 29 tokens per session (883 once invoked), scanned A, original, Apache-2.0.

A response-checking skill that scores generated answers against six principles: truthfulness, safety, helpfulness, fairness, privacy, and completeness. It records scores and warnings without blocking the answer.

In plain words
What is it for?
Use it to inspect AI completions, review their principle-by-principle scores, and track audit results in logs or metadata.
Why use it?
It makes problems such as unsafe content, privacy leaks, bias, or unsupported claims visible in completion metadata. A low safety or privacy score is marked as a veto, but the response still returns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to inspect AI completions, review their principle-by-principle scores, and track audit results in logs or metadata.

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

Made for: Claude Code, Codex.

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 abi-superpower-constitution

README.md
[![agentmods](https://agentmods.dev/badge/skills/donaldfilimon/abi/abi-superpower-constitution/github.svg)](https://agentmods.dev/skills/donaldfilimon/abi/abi-superpower-constitution)
Your own site
<a href="https://agentmods.dev/skills/donaldfilimon/abi/abi-superpower-constitution"><img src="https://agentmods.dev/badge/skills/donaldfilimon/abi/abi-superpower-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 abi-superpower-constitution

Your own site · 80×15
<a href="https://agentmods.dev/skills/donaldfilimon/abi/abi-superpower-constitution"><img src="https://agentmods.dev/badge/skills/donaldfilimon/abi/abi-superpower-constitution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 883 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.00029 $0.00883
Opus 5.5 $0.00012 $0.00353
Sonnet 5.5 $0.00006 $0.00177
Haiku 4.5 $0.00003 $0.00088

Measured 15d ago against content hash da5d9881e2e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

abi-superpower-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 15d 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/abi-superpower-constitution/SKILL.md · 85 lines

How it starts

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

ABI Superpower: Constitution

Exposes the 6-principle constitutional audit as a superpower. Observability-only, not a gate — sets audit_passed/audit_vetoed/escore in metadata and logs warnings, but complete/run still return the response.

Real access path

ABI does not expose /abi-superpower-constitution or a standalone constitution CLI command. The audit runs inside completion flows; exercise it with abi complete <input> or the MCP ai_complete / ai_run / ai_learn tools and inspect the returned/stored metadata:

  • audit_passed (bool)
  • audit_vetoed (bool) — hard veto if safety OR privacy < 0.5
  • escore (f32) — weighted constitutional score
  • Per-principle scores (0.0-1.0)

Direct per-principle evaluation is a Rust library/test surface, not a public slash command.

The 6 Principles

Principle Description Veto Class
truthfulness Factual accuracy, no hallucination —
safety No harm, violence, illegal acts Safety (hard veto if < 0.5)
helpfulness Useful, actionable, complete —
fairness No bias, discrimination —
privacy No PII, secrets, confidential data Safety (hard veto if < 0.5)
transparency Clear about limitations, sources —

Scoring Mechanics

  • Substring matching (infix, case-insensitive) — "harm" fires on "harmless"
  • 7 hardcoded negative substrings per principle — cannot detect novel patterns
  • Weighted E-score — aggregates principle scores with configurable weights
  • Hard veto — if safety < 0.5 OR privacy < 0.5, audit_vetoed = true

Surfaced Telemetry

When store_result=true in completion:

  • audit_passed (bool)
  • audit_vetoed (bool)
  • escore (f32)

MCP tools ai_complete/ai_run/ai_learn include audit fields in response.

Implementation

Component Source
Constitution Core crates/abi-ai/src/constitution.rs — validate(), evaluateResponse(), AuditResult
Completion Integration crates/abi-ai/src/completion.rs — audit called post-generation, metadata stored
MCP Tools crates/abi-mcp/src/ai_tools.rs — audit fields in tool responses

Read the full file on GitHub · 85 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. 15d ago First seen · 85 lines · 29 tokens per session scan A da5d9881e2e9

Subscribe to this mod's changes

abi-superpower-constitution is a skill published in the GitHub repository donaldfilimon/abi (18 stars, last pushed 5d ago), licensed Apache-2.0. It adds 29 tokens to every session and 883 once invoked, about $0.0001 per session on Opus 5.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-11-15.

Related

abi-superpower-constitution compared with skills from other repositories

abi-superpower-constitution next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
abi-superpower-constitutiondonaldfilimon/abiSkill185d agoApache-2.0A29Claude Code, Codex
clinical-reportssynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A71Claude Code
imaging-data-commonssynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A62Claude Code, Codex
cancer-genomics-analysissynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A68Claude Code, Codex
clinical-decision-supportsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A97Claude Code
clinical-imagingsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A69Claude Code, Codex
curated-bio-datasetssynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A79Claude Code, Codex