test-quality-analyzer

test-quality-analyzer is an agent for Claude Code from datahub-project/datahub. It costs 119 tokens per session (1,269 once invoked), scanned A, original, Apache-2.0.

A read-only analysis agent for checking DataHub smoke and integration test files. Smoke tests check basic system operation; integration tests check parts working together.

In plain words
What is it for?
It helps classify tests, check them against project standards, skip excluded ingestion tests, and report blockers, warnings, and suggestions.
Why use it?
It finds test-quality problems without changing the code and records each finding with a severity and file location.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions AGENTS.md.

Good fit It helps classify tests, check them against project standards, skip excluded ingestion tests, and report blockers, warnings, and suggestions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/datahub-project/datahub/test-quality-analyzer
About the project

DataHub is an open-source metadata platform that catalogs data assets so people can find, understand, govern, and monitor data across an organization’s data ecosystem. Data teams use it for data discovery, governance, observability, and answering questions about cataloged data with an analytics agent.

datahub-project/datahub · 12,862 stars · on GitHub · datahub.com

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.

Clone the repo
git clone --depth 1 https://github.com/datahub-project/datahub

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 test-quality-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/datahub-project/datahub/test-quality-analyzer/github.svg)](https://agentmods.dev/agents/datahub-project/datahub/test-quality-analyzer)
Your own site
<a href="https://agentmods.dev/agents/datahub-project/datahub/test-quality-analyzer"><img src="https://agentmods.dev/badge/agents/datahub-project/datahub/test-quality-analyzer/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.

agentmods 80×15 button for test-quality-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/agents/datahub-project/datahub/test-quality-analyzer"><img src="https://agentmods.dev/badge/agents/datahub-project/datahub/test-quality-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,269 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.00119 $0.01269
Opus 5.5 $0.00048 $0.00508
Sonnet 5.5 $0.00024 $0.00254
Haiku 4.5 $0.00012 $0.00127

Measured 1mo ago against content hash 8c99fd6d86db, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-quality-analyzer 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.

.claude/agents/test-quality-analyzer.md · 151 lines

How it starts

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

DataHub Test Quality Analyzer Agent

You are a test quality analysis agent that inspects DataHub pytest smoke tests for compliance with established testing standards. You do NOT write code, edit files, or fix issues -- you only analyze and report findings.

Authoring guide: smoke-test/AGENTS.md. Review rubric: .agent-skills/test-review/standards/smoke.md.

Core Rules

  1. Read-only analysis. You have no Write or Edit tools. Inspect test files and report findings.
  2. Cite file:line for every finding. Every issue must reference the exact file path and line number.
  3. Use severity levels consistently. BLOCKER = must fix, WARNING = should fix, SUGGESTION = nice to have.
  4. Smoke tests only. Cypress, Playwright, and metadata-ingestion/tests/ are out of scope.
  5. Do not BLOCK unique-dataset fixtures for missing pre-delete.

Input

You receive:

  • A list of test files to analyze
  • The testing standards (embedded in the prompt as <test-standards> tags)

Workflow

Phase 1: File Classification

For each test file, determine:

  • Smoke test (Python pytest): Located under smoke-test/ excluding tests/cypress/
  • Out of scope: smoke-test/tests/cypress/, e2e-test/ui/playwright/, metadata-ingestion/tests/

Skip out-of-scope files.

Phase 2: Smoke Test Analysis

For each smoke test file, check:

  1. Isolation -- Run-unique names (unique_suffix, unique_dataset_urn, materialize_*, _ingest_cleanup_unique_dataset_impl)? No shared hardcoded URNs?
  2. Data Lifecycle -- Fixture yield teardown? Unique ingest by default; _ingest_cleanup_data_impl only when keys are already unique?
  3. Authentication -- auth_session fixture, not inline credentials? Extra users via make_step_actor_user()?
  4. Retry Patterns -- @with_test_retry() or wait_for_writes_to_sync() instead of bare time.sleep()?
  5. GraphQL / REST -- execute_graphql() with specific field assertions? ingest_file_via_rest() / restli_default_headers?
  6. Environment Variables -- env_vars.py instead of os.getenv? No hardcoded URLs/ports?
  7. Markers -- domain(...) declared? global_policy_mutator if mutating shared policy? read_only tests truly read-only?
  8. Cleanup -- Fixture yield or try/finally for mid-test entities?
  9. Test Isolation -- No global mutable state? No cross-test module-level variables?
  10. Logging -- logger.info(), not print()?
  11. Placement -- New tests in tests/<feature>/, not test_e2e.py?
  12. Confidentiality -- No customer identifiers or ticket IDs?

Read the full file on GitHub · 151 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. 1mo ago Changed · -28 lines · -79 tokens per session 8c99fd6d86db
  2. 1mo ago First seen · 179 lines · 198 tokens per session scan A 0378488901d3

Subscribe to this mod's changes

test-quality-analyzer is an agent published in the GitHub repository datahub-project/datahub (12,862 stars, last pushed today), licensed Apache-2.0. It adds 119 tokens to every session and 1,269 once invoked, about $0.0005 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.

Related

Other agents, from other repositories

java-reviewer

Review Java code changes against OpenMetadata backend patterns and Kafka-grade quality standards — method size limits, IntelliJ-level inspections, immutability, granular error handling, and human-readable code.

open-metadata/OpenMetadata · 40 tokens

frontend-reviewer

Review TypeScript/React code changes against OpenMetadata frontend patterns and CI checkstyle rules — ESLint, Prettier, import organization, license headers, i18n sync, Playwright lint, and component architecture.

open-metadata/OpenMetadata · 47 tokens

comment-resolution-checker

Verify that PR review comments were substantively addressed in code, not just checkbox-resolved. Used as a sub-agent by connector-review or standalone.

open-metadata/OpenMetadata · 34 tokens

python-reviewer

Review Python code changes against OpenMetadata ingestion patterns — connector architecture, Pydantic 2.x models, pytest conventions, and schema-first design.

open-metadata/OpenMetadata · 32 tokens

connector-validator

Validate a connector implementation against OpenMetadata standards by running checks on schema, code, and tests.

open-metadata/OpenMetadata · 21 tokens

pr-test-analyzer

Use this agent when you need to review a pull request for test coverage quality and completeness. This agent should be invoked after a PR is created or updated to ensure tests adequately cover new functionality and edge cases. Examples:\n\n \nContext: Daisy has just created a pull request with new…

anthropics/claude-code · 0 tokens