# Agent Rule Inspector

> Inspect Codex and Claude Code instruction discovery for a repository and target file. Compare expected paths with a session path list or Claude InstructionsLoaded records. Get a local text, JSON, or HTML report.

Agent Rule Inspector is a free AI agent skill on Agensi by Byungwoong Yoo, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Byungwoong Yoo](https://www.agensi.io/creators/byungwoong-yoo)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0
- Last updated: 2026-11-19
- Security: scan passed (2026-11-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/agent-rule-inspector
- Tags: code-review, prompt-engineering, codex, claude-code, agents-md, developer-tools

## About this skill

Start with the file you're editing and the directory where the agent started. Agent Rule Inspector lists the repository instructions Codex and Claude Code are expected to find. Supply a session record to see which paths appear in it and which expected paths are absent.

The inspector accounts for Codex overrides and Claude Code's local imports. It distinguishes startup rules from files that may load when the target is read. Reports contain file paths and findings, and the inspection runs locally.

Requires Python 3.10 or later and a local shell with read access to the chosen repository. User-level instructions, managed policies, and whether the agent followed a rule need separate evidence.

[Original GitHub repository and MIT-licensed source](https://github.com/ByungwoongYoo/agent-rule-inspector)

## Requires

- Python

## Known limitations

The inspector models repository discovery. User-level and managed instructions, runtime-specific settings, and conditional reads require separate evidence. Assessing whether a model followed a rule also requires separate evidence.

## 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 Rule Inspector 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

### Can I inspect the report in a browser?

Request a local standalone HTML report. The inspector also prints plain text or JSON in the terminal.

### Which evidence formats can I supply?

For Codex evidence, the inspector accepts a JSON array of paths or one path per line. For Claude Code evidence, it also accepts InstructionsLoaded JSONL records with a file_path field.

### What comes with the skill?

The MIT-licensed Python inspector, a usage guide, and the example results from the public GitHub release.

### What do I need to run it?

Python 3.10 or later and a local shell with read access to the chosen repository.

### What does the report cover?

The inspector models repository discovery. User-level and managed instructions, runtime-specific settings, and conditional reads require separate evidence. Assessing whether a model followed a rule also requires separate evidence.

---

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.
