# agent constitution audit

> Audit agent rule layers, memory hygiene, and skill triggers for contradictions and safety drifts.

agent constitution audit is a free AI agent skill on Agensi by Dontfeed, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Dontfeed](https://www.agensi.io/creators/dontfeed)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Uses: 3
- Version: 1.1
- Last updated: 2026-09-30
- Security: scan passed (2026-09-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/agent-constitution-audit
- Tags: ai-agents, code-review, security, prompt-engineering

## About this skill

AI agents fail when their governing rules contradict each other or drift from the core constitution. This skill performs a rigorous, read-only audit of stacked context layers, including identity files, global instructions, memory stores, and skill directories to find these fractures.

### What it does
- **Inventory layers** by locating identity files and instructions using real precedence orders.
- **Connection check** to verify if your written standards are actually being referenced or ignored.
- **Conflict scanning** to find pairwise contradictions across layers with specific quoted evidence.
- **Memory hygiene** to identify bloated stores, leaked secrets, or rules that weaken agent safety.
- **Behavioral dry-runs** to test agent judgment against safety prompts and injected instructions.

### How it works
1. Point the auditor at your agent's home directory or configuration files.
2. The agent inventories all active layers and checks for broken references or duplicate rules.
3. It performs a read-only scan of your persistent memory and skill triggers.
4. You receive a structured report with PASS/FAIL statuses and specific evidence for every claim.

### Frameworks & tools
Works with any agent using rule-layer systems like `CLAUDE.md`, `.cursorrules`, `SOUL.md`, or custom MCP skill directories.

### Why this beats prompting it yourself
Manual reviews often miss cross-file contradictions or "hidden" instructions in memory stores. This skill uses a systematic pairwise comparison and evidence-based reporting that forces the agent to prove every status with a file path or direct quote rather than hallucinating consistency.

### Use cases
- Auditing a new agent setup to ensure it follows company-wide coding standards.
- Debugging why an agent has stopped following specific instructions.
- Checking persistent memory for privacy leaks or "safety-weakening" entries.
- Validating that newly added skills don't have overlapping triggers.

### Known limitations
This is a read-only audit and will not apply fixes automatically. Some behavioral tests may return UNKNOWN if the agent's internal reasoning cannot be fully exposed.

## Known limitations

Read-only mode by default. Behavioral tests may return UNKNOWN if internal reasoning is opaque. Requires access to local configuration files and memory stores.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the agent constitution audit skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill identify contradictions that I might miss during a manual prompt review?

The audit scans your agent's identity files, global instructions, memory stores, and skill directories to identify pairwise contradictions and safety drifts that manual reviews often miss. It provides a structured report with specific quotes and file paths to prove where instructions are conflicting or being ignored.

### Which AI agent frameworks and configuration file types are supported?

This skill is designed to work with any agent framework that utilizes rule-layer systems, including standard configurations like CLAUDE.md, .cursorrules, SOUL.md, and custom MCP skill directories. As long as your agent relies on file-based instructions or structured memory stores, the auditor can analyze them.

### Does the auditor automatically fix the contradictions it finds in my configuration?

For security and integrity, the auditor performs a read-only scan and does not modify your files. You will receive a PASS/FAIL report with actionable evidence, allowing you to manually resolve the identified fractures and maintain full control over your agent's logic.

### Can this skill help me identify privacy leaks or security risks within an agent's long-term memory?

Yes, the 'Memory Hygiene' check specifically scans your persistent memory stores for sensitive data leaks, bloated entries, and 'jailbreak' patterns that could weaken the agent's safety guardrails over time.

### What is required to set up the auditor for a custom agent project?

Setup is straightforward: you simply point the auditor at your agent’s home directory or configuration files. It then automatically inventories active layers and precedence orders without requiring complex manual mapping of your file structure.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
