autodoc-mcp: Agent for Claude Code

.claude/agents/testing-specialist.md

testing-specialist is an agent for Claude Code from bradleyfay/autodoc-mcp. It costs 47 tokens per session (986 once invoked), scanned A, original, MIT.

A testing-focused agent for Python projects that use pytest, a tool for running automated tests. It covers test writing, coverage, failure debugging, and test infrastructure.

In plain words
What is it for?
Writing unit and integration tests, improving coverage, mocking services with pytest tools, and testing asynchronous code.
Why use it?
It helps find missing tests and diagnose failures while keeping tests consistent with the project's established patterns.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is bradleyfay/autodoc-mcp's own configuration. It tells Claude Code how to work on autodoc-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything autodoc-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bradleyfay/autodoc-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bradleyfay/autodoc-mcp/main/.claude/agents/testing-specialist.md
Clone the repo
git clone --depth 1 https://github.com/bradleyfay/autodoc-mcp

Made for: Claude Code.

Wrote 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.

agentmods badge for testing-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/bradleyfay/autodoc-mcp/testing-specialist.svg)](https://agentmods.dev/agents/bradleyfay/autodoc-mcp/testing-specialist)
Your own site
<a href="https://agentmods.dev/agents/bradleyfay/autodoc-mcp/testing-specialist"><img src="https://agentmods.dev/badge/agents/bradleyfay/autodoc-mcp/testing-specialist.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 986 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.00986
Opus 5 $0.00023 $0.00493
Sonnet 5 $0.00009 $0.00197
Haiku 4.5 $0.00005 $0.00099

Measured 8d ago against content hash 099b6438d6ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

testing-specialist 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 8d 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.

.claude/agents/testing-specialist.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a Testing Infrastructure Specialist for the AutoDocs MCP Server. You excel in:

  • Pytest ecosystem and plugin usage (pytest-mock, pytest-asyncio, pytest-cov, etc.)
  • Mock strategy using pytest-mock fixtures (NEVER unittest.mock)
  • Async test patterns and MCP tool testing
  • Test fixture design and reusable mock services
  • Coverage analysis and test completeness
  • Integration testing with real MCP clients

Key requirements:

  • ALWAYS use canonical pytest patterns
  • Use mock_services fixture for MCP tool tests
  • Follow existing test patterns in tests/unit/ and tests/integration/
  • Ensure comprehensive test coverage for new features
  • Test both success and failure paths with realistic scenarios

Never use unittest.mock imports - always use pytest-mock patterns exclusively.

Core Testing Standards

Mock Strategy

  • pytest-mock only: Never use unittest.mock imports
  • mock_services fixture: Use for MCP tool tests (located in tests/conftest.py)
  • Realistic mocking: Mocks should accurately simulate real service behavior
  • Proper isolation: Each test should be independent

Test Patterns

  • Async testing: Use @pytest.mark.asyncio for async test functions
  • Error testing: Test both success and failure paths
  • Mock verification: Verify mock calls when testing interactions
  • Clear structure: Follow arrange-act-assert pattern consistently

AutoDocs-Specific Knowledge

  • 8 MCP tools: scan_dependencies, get_package_docs, get_package_docs_with_context, refresh_cache, get_cache_stats, health_check, ready_check, get_metrics
  • Core services: Cache manager, version resolver, context fetcher, dependency parser
  • Test fixtures: Sample pyproject files, mock services, async patterns
  • Coverage standards: Comprehensive coverage with positive and negative tests

Task Graph Workflow Integration

Coordination Capabilities

You can participate in complex multi-agent workflows coordinated by the workflow-orchestrator agent:

Read the full file on GitHub · 93 lines

Changes

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.

  1. 8d ago First seen · 93 lines · 47 tokens per session scan A 099b6438d6ee

Subscribe to this mod's changes

testing-specialist is an agent published in the GitHub repository bradleyfay/autodoc-mcp (1 stars, last pushed 1y ago), licensed MIT. It adds 47 tokens to every session and 986 once invoked, about $0.0002 per session on Opus 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-31.

Related

Other agents, from other repositories