test-quality-with-ai

Detect weak test quality patterns in Vitest and bun:test suites.

Updated Jun 10, 2026
One-click install
npx skills add https://github.com/brewpirate/acme-frontier-ai --skill test-quality-with-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-quality-with-ai
Source: https://github.com/brewpirate/acme-frontier-ai/tree/main/catalog/skills/test-quality
Command: npx skills add https://github.com/brewpirate/acme-frontier-ai --skill test-quality-with-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ripgrep, git, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps AI-assisted teams verify that tests actually prove behavior instead of merely boosting coverage or hiding regressions. It reduces fig-leaf tests, weakened assertions, and test evasion when writing new tests or responding to failures.

Core Features & Use Cases

  • Test writing guidance: Helps you create new tests that would fail against broken implementations.
  • Test review and audit: Flags weak assertions, disabled tests, mock anti-patterns, and contract-shape drift in existing suites.
  • Framework-aware support: Adapts review guidance for Vitest and bun:test projects, including framework-specific mocking, timers, and snapshot pitfalls.
  • Workflow routing: Directs you to the right workflow for generating, reviewing, auditing, or maintaining tests at the right scale.
  • Tooling support: Includes a bash pre-screen script for deterministic checks before deeper review.

Quick Start

Use the test-quality-with-ai skill to review the provided test files for fig-leaf signals, weak assertions, mock issues, and contract drift, then report the findings with file and line citations.

Frequently Asked Questions about test-quality-with-ai

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

FAQPage Schema
How do I detect fig-leaf assertions and weak test quality in Vitest or bun:test suites?

To detect fig-leaf assertions and weak test quality, review test files for disabled tests, mock anti-patterns, and snapshot regeneration risks using framework-aware guidance for Vitest and bun:test. A bash pre-screen script runs deterministic checks before deeper analysis.

What are common mock anti-patterns and snapshot risks when writing tests with AI?

Common mock anti-patterns and snapshot risks in AI-assisted testing include weakened assertions that hide regressions and contract-shape drift. Reviewing test suites helps flag these fig-leaf tests and snapshot regeneration pitfalls to ensure tests actually prove behavior.

Can I audit a large test suite for disabled tests and contract drift without reading every file?

Yes, you can audit large test suites for disabled tests and contract drift by running the included bash pre-screen script. This script uses ripgrep to perform deterministic checks across the codebase, routing you to the right workflow for deeper review.

Does this test review workflow require ripgrep and git to analyze test files?

Yes, this test review workflow requires ripgrep and git as dependencies. Ripgrep powers the deterministic pre-screen script for scanning test files, while git provides repository context for auditing test suites and tracking contract-shape drift.

Why do my tests pass but still allow broken implementations in my codebase?

Tests pass but allow broken implementations because of fig-leaf assertions and test evasion. Reviewing your test suite for weak assertions, mock anti-patterns, and disabled tests helps identify tests that boost coverage without actually proving behavior.

What is the best way to review AI-assisted tests for contract-shape drift?

The best way to review AI-assisted tests for contract-shape drift is to run a deterministic pre-screen script followed by a deeper test audit. This workflow flags weak assertions and mock anti-patterns, reporting findings with file and line citations.