qa

Generate and run vitest unit tests for changed JavaScript files.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/henderni/minecraft-mega-knights --skill qa-henderni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: qa
Source: https://github.com/henderni/minecraft-mega-knights/tree/main/.claude/skills/qa
Command: npx skills add https://github.com/henderni/minecraft-mega-knights --skill qa-henderni

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the process of creating and executing focused tests for changed or specified code, reducing manual test creation effort and speeding up validation of recent changes.

Core Features & Use Cases

  • Change-driven testing: Identify recently modified files via git diff and target tests to those areas.
  • Pattern-aware test authoring: Read existing tests to follow repository conventions and avoid duplicate coverage.
  • Execution and reporting: Run the project's test runner, capture pass/fail results, and summarize what was tested and how many tests were added.
  • Use Case: When a developer opens a pull request, use this Skill to generate vitest cases for modified modules, run npm run test:run, and produce a concise report of results and any failing assertions.

Quick Start

Run the QA skill to generate and execute vitest tests for the changed files and report pass/fail results.

Frequently Asked Questions about qa

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

FAQPage Schema
How do I generate vitest tests automatically for changed files?

Yes, you can target specific files for vitest testing by specifying them directly. The skill reads existing tests to follow repository conventions and then writes focused test cases for those targeted modules before executing npm run test:run to collect results.

How do I run unit tests for recent git changes in a Node project?

You can run unit tests for recent git changes by inspecting the git diff to identify modified files, authoring vitest cases that match existing test patterns, and executing npm run test:run to validate the changes and summarize pass or fail outcomes.

Does this work with JavaScript repositories using vitest for pull request validation?

Yes, this works with JavaScript and Node repositories using vitest. It validates recent changes or targeted files during development and pull request review by generating focused tests and executing npm run test:run to capture pass or fail assertions.

Can I write tests for specified project files instead of just git diffs?

Yes, you can generate and run tests for specified project files rather than relying solely on git diffs. The skill targets those specific files, reads existing tests to avoid duplicate coverage, and runs npm run test:run to report results.

What is the best way to automate unit test creation for modified code?

The best way to automate unit test creation for modified code is using a skill that reads git diffs, analyzes existing test conventions, writes pattern-aware vitest cases, and executes npm run test:run to provide a concise report of tested areas and failing assertions.