test-classification

Classify test files as unit, integration, or E2E and flag mock risks.

2|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/ashaykubal/essential-agents-skills --skill test-classification
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-classification
Source: https://github.com/ashaykubal/essential-agents-skills/tree/main/skills/test-classification
Command: npx skills add https://github.com/ashaykubal/essential-agents-skills --skill test-classification

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the initial triage of test files, categorizing them by type and identifying those that require deeper analysis for potential issues like improper mocking.

Core Features & Use Cases

  • Automated Test Categorization: Classifies tests as unit, integration, or E2E based on filenames and content.
  • Risk Identification: Flags tests with potential issues such as mixed types within a single file or suspicious mock usage.
  • Use Case: When running a large test suite, this skill quickly sorts tests, highlighting integration tests and unit tests with extensive mocking for the next stage of automated review.

Quick Start

Use the test-classification skill to classify all test files in the 'src/tests' directory.

Frequently Asked Questions about test-classification

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

FAQPage Schema
How do I classify test files as unit, integration, or E2E?

To classify test files, scan filename patterns and validate content to categorize tests as unit, integration, or E2E. This automated triage identifies mixed test types and flags files needing deeper analysis for mock appropriateness within a test audit pipeline.

What is test classification in a code quality audit pipeline?

Test classification in an audit pipeline is the automated initial triage of test files by type. It categorizes tests and identifies those requiring deeper analysis for potential issues like improper mocking or mixed test types within a single file.

How do I detect excessive mocking and mixed test types in a test suite?

Detect excessive mocking and mixed test types by scanning test files using filename patterns and content validation. This risk identification process flags tests with suspicious mock usage and categorizes them for the next stage of automated review.

Does test classification require AST verification for accurate line counting?

Test classification requires AST verification lines when available for accurate line counting. This ensures precise content validation when categorizing tests and identifying risks like mixed test types or excessive mocking.

What's the best way to automate test triage for a large test suite?

Automate test triage for a large test suite by using a classification skill to quickly sort tests by type. This highlights integration tests and unit tests with extensive mocking, directing flagged files to the next stage of automated review.