test-pattern-analysis

Analyze test suites to extract fixtures, naming conventions, and patterns.

Updated Nov 7, 2025
One-click install
npx skills add https://github.com/mehdic/CDC --skill test-pattern-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-pattern-analysis
Source: https://github.com/mehdic/CDC/tree/main/.claude/skills/test-pattern-analysis
Command: npx skills add https://github.com/mehdic/CDC --skill test-pattern-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill analyzes tests to identify fixtures, naming conventions, and common testing patterns, helping teams align on standards.

Core Features & Use Cases

  • Detects test framework and patterns (AAA, Given-When-Then)
  • Extracts fixtures and utilities from test suites
  • Suggests test cases and improvements

Quick Start

Analyze tests in tests/ and save results to bazinga/artifacts/{SESSION_ID}/skills/test_patterns.json.

Frequently Asked Questions about test-pattern-analysis

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

FAQPage Schema
How do I identify and extract test patterns from my existing test suite?

Test pattern analysis examines your test files across frameworks like pytest, jest, go, junit, and rspec to surface reusable fixtures, naming conventions, and structural patterns (AAA, Given-When-Then). The Skill parses your tests and emits a standardized report identifying these patterns for consistent test development.

What testing frameworks does test pattern analysis support?

Pattern analysis works across pytest, jest, go, junit, and rspec frameworks. It detects the framework in use, extracts fixtures and utilities specific to each, and identifies common conventions and structure patterns regardless of which framework your codebase employs.

Can I use test pattern analysis to standardize naming conventions across my team?

Yes. The Skill extracts naming conventions and test structure patterns from your existing suite, then suggests improvements and consistent standards. This helps teams align on fixture names, test case naming, and utility conventions across their test codebase.

What output does test pattern analysis generate?

The analysis generates a standardized JSON report saved to bazinga/artifacts/{SESSION_ID}/skills/test_patterns.json containing extracted fixtures, naming conventions, detected patterns (AAA, Given-When-Then), utilities, and suggested improvements for your test suite.

How does test pattern analysis help reduce testing overhead?

By surfacing reusable fixtures, utilities, and conventions already present in your tests, pattern analysis eliminates duplicate setup code and inconsistent naming. Teams can apply identified patterns to new tests, reducing development time and improving test maintainability.