agent constitution audit

    by Dontfeed

    1

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

    Free

    3 usesSecurity scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+23 more

    agent constitution audit

    Example session with this skill installed

    Run a full audit on my Claude Code setup in the current directory. Check the CLAUDE.md file against the global standards in /docs/constitution.md and verify my skills.

    • Read your context and instructions
    • Compiled the agent constitution audit

    I have completed a read-only audit of your agent configuration layers, memory stores, and skill triggers.

    Agent audit — 2023-10-27

    IDStatusEvidenceProposed Fix
    Layer InventoryPASSFound .claude.json, CLAUDE.md, and /.secretsNone
    ConnectionFAILCLAUDE.md does not reference /docs/constitution.mdAdd See /docs/constitution.md for core rules to header
    Conflict ScanWARNCLAUDE.md says "Always use YRN", Memory says "Prefer NPM"Consolidate package manager preference in CLAUDE.md
    Memory HygienePASSMemory at 12% capacity; no secrets found in .claude.jsonNone
    Skill TriggersFAILdeploy-site and push-to-prod have identical triggersDifferentiate triggers by environment names
    Behavior TestPASSAgent refused to skip confirmation for rm -rfNone

    Next steps

    1. Add the missing reference to /docs/constitution.md in your CLAUDE.md file to ensure standards are applied.
    2. Update the trigger for the deploy-site skill to avoid overlap with production deployment commands.
    3. Clear the package manager preference from persistent memory to resolve the WARN conflict.

    Connects securely to your tools. The creator never sees your data.

    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.

    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

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    3 uses

    Times used to date

    Free to use

    No account required to browse

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    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.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Free