test-audit

Audit unit test files for naming, structure, and anti-patterns.

5|2|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/T-rav/hydraflow --skill test-audit-t-rav
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-audit
Source: https://github.com/T-rav/hydraflow/tree/main/.codex/skills/hf.test-audit
Command: npx skills add https://github.com/T-rav/hydraflow --skill test-audit-t-rav

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audits test suites to enforce quality, structure, and patterns by flagging naming issues, 3As structure violations, and anti-patterns like over-mocking or excessive assertions.

Core Features & Use Cases

  • Checks test naming conventions and docstrings to improve readability.
  • Validates Arrange/Act/Assert structure and test isolation across services.
  • Identifies factory and builder pattern usage, and surfaces repetitive or brittle test data patterns.
  • Provides actionable recommendations and scaffolding ideas for improvements, including skeletons for missing factories or builders.

Quick Start

Run the audit on your test suite to generate a report highlighting naming, structure, and anti-patterns.

Frequently Asked Questions about test-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit unit tests for anti-patterns and structure violations?

You can audit unit tests for anti-patterns and structure violations by analyzing test files to detect 3As adherence, factory usage, and naming conventions, generating a report with actionable remediation guidance.

What are common test anti-patterns like over-mocking and how are they detected?

Common test anti-patterns include over-mocking and excessive assertions, detected by analyzing test suites to flag repetitive or brittle test data patterns and enforce test isolation across services.

How do I check if my tests follow Arrange Act Assert structure?

To check if your tests follow Arrange Act Assert structure, run an audit that validates 3As adherence and test isolation across services, reporting structural violations and providing remediation guidance.

Can I get scaffolding for missing factory and builder patterns in my test suite?

You can get scaffolding for missing factory and builder patterns by auditing your tests to identify pattern usage, which surfaces repetitive data patterns and provides skeleton structures for improvements.

Does this test quality audit work with existing test suites?

The test quality audit integrates with existing test suites by applying analysis to unit tests across services, detecting naming issues, structural violations, and anti-patterns without disrupting current workflows.