# Test Gap Audit — Which Functions the Suite Never Names

> Parses the AST of source and test trees to find functions the tests never reference, ranks them by branch complexity and critical-path names, and lists tests that contain no assertion — instant, no runner, no coverage tool, no third-party libraries.

Test Gap Audit — Which Functions the Suite Never Names is a free AI agent skill on Agensi by SHUN. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [SHUN](https://www.agensi.io/creators/66shun66)
- Version: 1.0
- 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/test-gap-audit-which-functions-the-suite-never-names
- Tags: testing-debugging, code-quality-review, devops-cloud

## About this skill

A suite can be 90% covered and still ship a refund bug, because coverage counts lines touched by any test, including the one that only imports the module.

This skill asks a sharper question with no instrumentation: which functions does the suite never even name, and which of those are expensive to get wrong?

It walks the AST of every source file, counting branch points per function, flagging public and critical-path names (auth, payment, billing, order, refund, token, sync, migrate). It then scans every test file for names, attributes and calls, and reports the unreferenced remainder ranked by score = branch points + public weight + critical-path weight.

Also reported: tests whose body contains no assertion, assertions per test, referenced share, and a four-step ordering that ends with re-running the audit. Verdict is PASS/WARN/BLOCK from whether a high-score public function is unreferenced. Reference-based, and the report says so: it proves the suite has a reason to touch a name, not that it asserts on an outcome.

## Requires

- Python 3.9+

## Known limitations

Python only. Reference-based: misses dynamic dispatch, registry tables and name collisions. Does not run tests or measure line/branch coverage. Never writes tests.

## 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 Test Gap Audit — Which Functions the Suite Never Names 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

### What does Test Gap Audit — Which Functions the Suite Never Names do?

Parses the AST of source and test trees to find functions the tests never reference, ranks them by branch complexity and critical-path names, and lists tests that contain no assertion — instant, no runner, no coverage tool, no third-party libraries.

### Which AI agents support Test Gap Audit — Which Functions the Suite Never Names?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Test Gap Audit — Which Functions the Suite Never Names?

Connect your AI agent to Agensi through MCP, then ask it to use Test Gap Audit — Which Functions the Suite Never Names on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

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.
