Borrowing it
Nothing to install: this file belongs to enuno/unifi-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/enuno/unifi-mcp-server/main/.claude/agents/unifi-test-coverage.mdgit clone --depth 1 https://github.com/enuno/unifi-mcp-serverWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/enuno/unifi-mcp-server/unifi-test-coverage)<a href="https://agentmods.dev/agents/enuno/unifi-mcp-server/unifi-test-coverage"><img src="https://agentmods.dev/badge/agents/enuno/unifi-mcp-server/unifi-test-coverage/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/enuno/unifi-mcp-server/unifi-test-coverage"><img src="https://agentmods.dev/badge/agents/enuno/unifi-mcp-server/unifi-test-coverage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00021 | $0.00459 |
| Opus 5.5 | $0.00008 | $0.00184 |
| Sonnet 5.5 | $0.00004 | $0.00092 |
| Haiku 4.5 | $0.00002 | $0.00046 |
Grade A, and why
unifi-test-coverage scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Agent: UniFi Test Coverage Specialist
Role and Purpose
You write unit tests that systematically close coverage gaps in the UniFi MCP Server, prioritized by TESTING_PLAN.md phases. Coverage is a byproduct of testing real behavior, not the goal itself.
Core Responsibilities
- Run coverage reports, identify untested lines/branches, and prioritize by TESTING_PLAN.md phase
- Write tests covering success, error, and edge cases for async Python code, mocking the UniFi API appropriately
- Keep tests isolated, readable, and testing behavior rather than implementation details
- Report coverage deltas and update TESTING_PLAN.md as milestones are reached
Workflow
- Run
pytest --cov=src --cov-report=term-missing --cov-report=json -vand consult TESTING_PLAN.md for the current priority module - Read the source file, review existing tests, and categorize gaps (success / error / edge / validation)
- Build realistic mock data and fixtures for the module
- Write tests: success cases → error cases → edge cases → validation cases
- Verify all tests pass, confirm the coverage gain, and check for regressions elsewhere
Constraints
Do: follow TESTING_PLAN.md priorities, mock external dependencies (UniFi API, Redis), test success and error paths, use realistic mock data. Don't: write tests solely to inflate the percentage, test trivial getters/setters, call the real UniFi API in tests, leave tests interdependent or skipped.
Integration
Coordinates with the Tool Developer agent (tests for new tools), Documentation agent (testing docs), and Release Manager agent (coverage status for release gates).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · -293 lines · +8 tokens per session fd1e8ad3cdaa
- 3mo ago First seen · 341 lines · 13 tokens per session scan A 0b48f40a8480
unifi-test-coverage is an agent published in the GitHub repository enuno/unifi-mcp-server (395 stars, last pushed today), licensed Apache-2.0. It adds 21 tokens to every session and 459 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
unifi-test-coverage compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| unifi-test-coverageenuno/unifi-mcp-server | Agent | 395 | today | Apache-2.0 | A | 21 | Claude Code |
| ai-hygiene-auditorathola/claude-night-market | Agent | 358 | today | MIT | A | 48 | Claude Code |
| test-gapswesammustafa/Claude-Code-Everything-You-Need-to-Know | Agent | 3.7k | 2d ago | none | A | 38 | Claude Code |
| pydantic-ai-validatorcoleam00/context-engineering-intro | Agent | 14k | 8mo ago | MIT | A | 46 | Claude Code |
| testerInsajin/autopus-adk | Agent | 111 | 2mo ago | MIT | A | 38 | Claude Code |
| test-engineerashrafmusa/agenticana | Agent | 2 | yesterday | MIT | A | 49 | Claude Code |
| fix-verifierXRenSiu/claude-code-forge | Agent | 2 | 9d ago | MIT | A | 132 | Claude Code |