# agentic dead rules detector

> Test coding agent instructions through controlled experiments to identify useless or broken rules with statistical evidence.

agentic dead rules detector is a paid AI agent skill on Agensi by Gabe, in Prompt & Skill Engineering. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $13.37 (one-time purchase)
- Creator: [Gabe](https://www.agensi.io/creators/gabchess)
- Category: [Prompt & Skill Engineering](https://www.agensi.io/skills/prompt-skill-engineering)
- Version: 1.3
- Last updated: 2026-11-23
- Security: scan passed (2026-11-23); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/agentic-dead-rules-detector
- Tags: prompt-engineering, node-js, testing, ai-agents, llm-ops

## About this skill

Stop guessing whether your agent instructions actually work. Every developer has a "rules" file bloated with instructions that the agent ignores, or worse, rules that conflict and cause silent failures. This skill provides a rigorous, data-driven method to identify "dead rules" and prove which instructions actually improve model performance.

### What it does
- **Rule Isolation** tests specific instruction variants (arms) against a baseline to measure their actual impact on task success.
- **Automated Verification** runs a hidden "verifier" command that the agent never sees to judge output without bias.
- **Budget Enforcement** calculates estimated API costs and enforces a hard spend cap before any sessions execute.
- **Statistical Reporting** generates reports with 95% Wilson intervals to distinguish between actual improvements and random noise.
- **Regression Testing** uses "bad fixtures" to prove the verifier can actually catch the mistakes the rule is meant to prevent.

### How it works
1. **Identify the mistake** by analyzing git logs or bug reports where the current instructions failed to prevent a specific error.
2. **Setup the lab** by creating a `task.md`, defining instruction variants, and writing a verifier script in a dedicated folder.
3. **Rehearse the verifier** against known good and bad fixtures to ensure it correctly identifies the target mistake.
4. **Execute phases** starting with smoke and pilot runs to verify costs before committing to a full-scale experiment.
5. **Generate report** using the included script to analyze pass rates and produce a final recommendation for the instruction.

### Frameworks & tools
The core logic resides in a standalone Node.js script (`dead-rules.mjs`) using the standard library. It integrates with any headless agent harness such as `claude -p`, `codex exec`, or `gemini -p`.

### Why this beats prompting it yourself
Prompting an agent to "check if this rule is good" results in hallucinations and confirmation bias. This skill treats instructions like code, using controlled experiments and held-out test cases to provide objective evidence before you modify your system prompts.

### Use cases
- **Instruction Pruning** to remove rules that have no measurable effect on agent success rates.
- **Bug Fix Validation** to prove that adding a specific rule prevents a recurring logic error.
- **Refactoring** to determine if moving a rule into a type definition or linting rule is more effective than a text prompt.
- **Model Upgrades** to test if existing instructions are still necessary when moving to a newer, more capable model.

### Known limitations
Requires Node.js 18 or later. Does not provide a sandbox environment; isolation depends on the user's agent harness or external containers. Requires a manual spend approval step.

## Requires

- Node.js 18 or later
- Git

All you need to use this skill is a coding agent that can start fresh sessions on its own & planning and verifier rehearsal cost nothing. Each run is a real agent session billed to your own agent or model account.

## 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 agentic dead rules detector skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill provide 'statistical evidence' for rule effectiveness?

The skill uses a multi-arm bandit approach to test different versions of your instructions against a baseline. It generates statistical reports with 95% confidence intervals, proving whether a rule actually reduces errors or is just "dead weight" that wastes your context window.

### Which AI models or agent frameworks are compatible with this tool?

The skill is a standalone Node.js tool designed to work with any headless agent harness (like Claude, Gemini, or ChatGPT CLI). As long as your agent can be executed via a terminal command, the Dead Rules Detector can orchestrate the experiments.

### What exactly is included in the package upon purchase?

You receive the core `dead-rules.mjs` execution script, a set of template folders for experiments, and a reporting utility. It also includes documentation on how to write 'bad fixtures' to verify your test scripts before running live API calls.

### Does this tool automatically run expensive API sessions without my oversight?

No, this is a local development tool. It includes a built-in Budget Enforcement feature that calculates estimated API costs and requires your manual approval for a spend cap before any sessions are initiated, ensuring you never face unexpected billing.

### Does the detector provide a secure sandbox for the agent to run in?

While the skill includes the core logic for rule isolation and reporting, it does not provide a sandbox. For safety and isolation, we recommend running the detector within your own Docker containers or a restricted shell environment.

### What are the most common scenarios where I would use the Dead Rules Detector?

It is ideal for Instruction Pruning to clean up bloated prompts, Bug Fix Validation to ensure a new rule prevents specific recurring errors, and testing if existing rules are still necessary after upgrading to a more capable model.

---

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.
