hf.audit-integration-tests

hf.audit-integration-tests is a command for Claude Code from T-rav/hydraflow. It costs 0 tokens per session (2,341 once invoked), scanned A, original, Apache-2.0.

A command that audits how a repository tests connections to outside systems, such as databases, APIs, or queues, and creates GitHub issues for gaps. Integration tests check that multiple parts work together with real or representative dependencies.

In plain words
What is it for?
Use it to discover external dependencies, review existing integration-test coverage, identify missing scenarios, and create labeled issues for the results.
Why use it?
It reveals important interactions that unit tests alone may miss, while also flagging tests that are outdated or poorly structured. Findings become trackable work items in GitHub.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/t-rav/hydraflow/hf.audit-integration-tests
Clone the repo
git clone --depth 1 https://github.com/T-rav/hydraflow

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 hf.audit-integration-tests

README.md
[![agentmods](https://agentmods.dev/badge/commands/t-rav/hydraflow/hf.audit-integration-tests.svg)](https://agentmods.dev/commands/t-rav/hydraflow/hf.audit-integration-tests)
Your own site
<a href="https://agentmods.dev/commands/t-rav/hydraflow/hf.audit-integration-tests"><img src="https://agentmods.dev/badge/commands/t-rav/hydraflow/hf.audit-integration-tests.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,341 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. Scan, not verified.
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.00000 $0.02341
Opus 5 $0.00000 $0.01171
Sonnet 5 $0.00000 $0.00468
Haiku 4.5 $0.00000 $0.00234

Measured 5d ago against content hash 3295e8034c7f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

hf.audit-integration-tests scanned grade A with 2 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 5d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **HTTP clients**: httpx, requests, aiohttp, urllib calls to external services

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- **Subprocess calls**: asyncio.create_subprocess_exec, subprocess.run, os.system
.claude/commands/hf.audit-integration-tests.md · 192 lines

How it starts

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

Integration Test Audit

Run a comprehensive integration test audit across the entire repo. Dynamically discovers external dependencies in source code, inventories existing integration tests, identifies coverage gaps, flags ugly/outdated tests, and creates GitHub issues for findings.

Instructions

  1. Resolve configuration before doing anything else:

    • Run echo "$HYDRAFLOW_GITHUB_REPO" — if set, use it as the target repo (e.g., owner/repo). If empty, run git remote get-url origin and extract the owner/repo slug (strip https://github.com/ prefix and .git suffix).
    • Run echo "$HYDRAFLOW_GITHUB_ASSIGNEE" — if set, use it as the issue assignee. If empty, extract the owner from the repo slug (the part before /).
    • Use hydraflow-find as the label for created issues.
    • Store resolved values as $REPO, $ASSIGNEE, $LABEL.
  2. Discover project structure:

    • Use Glob to find all *.py source files, excluding .venv/, venv/, __pycache__/, node_modules/, dist/, build/.
    • Separate into SOURCE files and TEST files (any file under a tests/ or test/ directory, or matching test_*.py).
    • Identify external dependencies by scanning source files for: subprocess calls, HTTP clients, database connections, message queues, file I/O, external CLI tools, API clients.
  3. Launch agents in parallel using Task with run_in_background: true and subagent_type: "general-purpose":

    • Agent 1: External dependency mapping & gap analysis — Maps all external dependencies in source code, cross-references with existing integration tests.
    • Agent 2: Test quality & anti-pattern detection — Reviews existing tests for ugly patterns, false integration tests, and outdated code.
    • Agent 3: Cross-module integration gaps — Identifies integration points between modules and missing end-to-end test coverage.
  4. Wait for all agents to complete.

  5. After all finish, run gh issue list --repo $REPO --label $LABEL --state open --search "integration test" --limit 200 to show the user a final summary of all issues created.

Read the full file on GitHub · 192 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. 5d ago First seen · 192 lines · 0 tokens per session scan A 3295e8034c7f

Subscribe to this mod's changes

hf.audit-integration-tests is a command published in the GitHub repository T-rav/hydraflow (5 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,341 tokens. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.