Autonomous Testing Agent

Automate test coverage discovery, generation, execution, and repair for Python and TypeScript projects.

705|56|Updated Dec 26, 2025
One-click install
npx skills add https://github.com/alinaqi/maggy --skill autonomous-testing-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Autonomous Testing Agent
Source: https://github.com/alinaqi/maggy/tree/main/skills/autonomous-testing
Command: npx skills add https://github.com/alinaqi/maggy --skill autonomous-testing-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Teams often ship regressions because test coverage lags behind code changes, and writing or updating tests is slow and error-prone; this skill closes those gaps by autonomously discovering missing coverage, creating tests, executing them, and iterating until failures are understood and resolved.

Core Features & Use Cases

  • Source-driven discovery of test gaps: Detects project type and identifies uncovered functions, API endpoints, web components, and low-coverage branches, then maps existing test coverage.
  • AI-written test generation with model routing: Generates test scaffolds for uncovered areas using different model tiers based on complexity and quality criticality (e.g., auth/security).
  • End-to-end execution, evaluation, and automated repair loop: Runs the appropriate test tooling (pytest/vitest/playwright), classifies failures (TEST_BUG, CODE_BUG, ENV_BUG), and applies fixes with bounded retries.
  • Structured reporting and dashboard integration: Produces a machine-readable report including pass/fail counts, coverage, auto-fixed vs manual-needed items, and prioritized next actions.

Quick Start

Ask Maggy to run the full autonomous test cycle by executing: maggy test autonomous.

Frequently Asked Questions about Autonomous Testing Agent

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

FAQPage Schema
How do I automatically generate missing tests for my Python and TypeScript projects?

You can automatically generate missing tests by scanning source code and existing test files to discover coverage gaps, then creating pytest or vitest scaffolds for uncovered functions and API routes to close testing holes.

Can I auto-fix failing tests and classify whether the error is a test bug or a code bug?

Yes, autonomous test execution runs the appropriate test tooling, classifies failures as TEST_BUG, CODE_BUG, or ENV_BUG, and applies automated fixes using bounded retries to resolve issues without manual intervention.

Does this work with Playwright for end-to-end web and E2E test generation?

Playwright is fully supported for web and E2E scenarios. The system detects project types and selects appropriate runners like Playwright alongside pytest and vitest to execute generated tests.

What is the best way to find low-coverage branches and uncovered API endpoints in my codebase?

Source-driven discovery scans your project to map existing test coverage and identifies uncovered API endpoints, web components, and low-coverage branches, then prioritizes them for AI-written test generation.

How do I integrate autonomous testing results into my CI quality gates and dashboards?

Structured JSON reporting outputs pass and fail counts, coverage metrics, auto-fixed items versus manual-needed actions, and prioritized next steps designed for dashboard integration and one-click CI actions.

Why does autonomous test generation produce model-routed scaffolds based on complexity?

Model routing assigns different model tiers based on complexity and quality criticality, such as auth and security areas, ensuring AI-written test scaffolds match the rigor required for each uncovered code section.