analyze-test

Diagnose failing tests and propose targeted coverage plans.

2|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Mybigwang/project-agent --skill analyze-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analyze-test
Source: https://github.com/Mybigwang/project-agent/tree/main/src/project_agent/skills/builtin/analyze-test
Command: npx skills add https://github.com/Mybigwang/project-agent --skill analyze-test

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When a test fails or coverage feels uncertain, this Skill helps you quickly understand what went wrong and what to verify next, so you can get changes merged with confidence.

Core Features & Use Cases

  • Failure triage: Classifies failures into implementation, test, or environment issues and identifies the most likely causes.
  • Targeted debugging guidance: Recommends what files and assertions to inspect first to narrow the root cause efficiently.
  • Coverage planning: Proposes specific new test scenarios, including core paths vs edge cases and the right testing level (unit vs integration vs end-to-end), aligned with the repository’s existing style.

Quick Start

Ask it to analyze the test topic by providing the failing test or the change context you’re working on.

Frequently Asked Questions about analyze-test

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

FAQPage Schema
How do I diagnose failing unit tests and find the root cause?

To diagnose failing unit tests, classify the failure into implementation, test expectation, or execution environment issues, then inspect relevant files and assertions first to narrow the root cause and recommend the smallest fix path.

How do I plan test coverage for a new code change?

Plan test coverage by proposing specific new test scenarios that distinguish core paths from edge cases, selecting the right testing level like unit or integration, and aligning with the repository’s existing style to produce a structured coverage plan.

What is test triage and when do I need it?

Test triage is the process of classifying failing tests into code, test expectation, or CI environment issues to identify likely causes. You need it when debugging workflows where failures stem from multiple potential sources.

What is the best way to triage test failures in a CI environment?

The best way to triage test failures in a CI environment is to classify failures by source, check relevant files and assertions first, and follow the smallest fix path recommended by a structured triage plan.

How do I know what additional tests to write for edge cases?

To determine what additional tests to write for edge cases, generate a coverage plan that proposes specific test scenarios, differentiates core paths from edge cases, and recommends the appropriate test types for your change.