auto-improve-tests

Improve Vue 3 and React unit tests to reach a target quality score.

58|5|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/mukiwu/muki-ai-plugins --skill auto-improve-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auto-improve-tests
Source: https://github.com/mukiwu/muki-ai-plugins/tree/main/plugins/shipshape-skills/skills/auto-improve-tests
Command: npx skills add https://github.com/mukiwu/muki-ai-plugins --skill auto-improve-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Iteratively improves and refactors frontend unit tests to reach a high quality score, reducing flaky or superficial tests and increasing meaningful coverage and correctness.

Core Features & Use Cases

  • Framework-aware detection for Vue 3 (Vitest + @vue/test-utils) and React (Vitest/Jest + React Testing Library).
  • Automated evaluation using ai-review-tests rules, iterative rewriting guided by ai-write-tests conventions, with a target score threshold (>= 9.2) and up to five iterations including early-stop logic.
  • Safety guardrails that avoid modifying production code without explicit authorization and provide concrete, localized (Traditional Chinese) feedback and suggested test rewrites.

Quick Start

Invoke the auto-improve-tests skill with the target test or source file path, for example: auto-improve-tests src/components/MyComponent.spec.ts

Frequently Asked Questions about auto-improve-tests

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

FAQPage Schema
How do I automate refactoring frontend unit tests to improve quality and coverage?

Automate refactoring frontend unit tests by evaluating them against ai-review-tests rules and regenerating code per ai-write-tests guidelines. This iteratively raises test quality to a 9.2 threshold, reducing flaky tests and increasing meaningful coverage.

Does this test automation tool support both Vue 3 and React projects?

Yes, this test automation tool supports Vue 3 projects using Vitest with @vue/test-utils, and React projects using Vitest or Jest with React Testing Library. It automatically detects the framework to apply the correct evaluation rules.

What is the highest quality score target for iterative unit test rewriting?

The target quality score for iterative unit test rewriting is 9.2 or higher. The process evaluates tests and regenerates them up to five times, applying early-stop logic if the target threshold is met before reaching the maximum iterations.

How do I run automated test improvements on a specific component spec file?

Run automated test improvements by invoking the skill with the target test or source file path, such as passing 'src/components/MyComponent.spec.ts'. The tool evaluates the test file and rewrites it locally without modifying your production code.

Can automated test evaluation modify my production source code during refactoring?

No, automated test evaluation includes safety guardrails that strictly avoid modifying production code without explicit authorization. It only provides localized feedback and suggested rewrites for the test files themselves.

Why do my frontend unit tests get stopped early during automated rewriting?

Automated rewriting uses early-stop logic when your frontend unit tests reach the target quality score of 9.2 or higher before hitting the maximum iteration limit of five. This prevents unnecessary cycles once the desired quality is achieved.