unit-test-hd

Generate and run unit tests for git-changed components, hooks, and utilities.

1|1|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/kangmomin/harness-plugins --skill unit-test-hd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unit-test-hd
Source: https://github.com/kangmomin/harness-plugins/tree/main/plugins/hyeondongs-harness/skills/unit-test-hd
Command: npx skills add https://github.com/kangmomin/harness-plugins --skill unit-test-hd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the creation and execution of unit tests for components, hooks, and utilities that have changed in the codebase, ensuring regressions are caught early.

Core Features & Use Cases

  • Generates focused unit tests based on git diff for changed files and typical patterns for components (.tsx), hooks (use*.ts), and utilities (.ts); provides templates and guidance to streamline test authoring; supports running tests with Vitest or Jest.

Quick Start

Run the unit-test-hd skill to automatically generate and execute unit tests for recently changed files and update test coverage accordingly.

Frequently Asked Questions about unit-test-hd

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

FAQPage Schema
How do I automate unit tests for changed React components and hooks?

Automate unit tests for changed React components and hooks by generating test files based on git diff changes. This process targets modified UI components and utility functions, automatically creating and running focused tests to catch regressions early.

Can I use Vitest or Jest to run automatically generated unit tests?

Yes, you can use Vitest or Jest to run automatically generated unit tests. The testing framework is configured via the .hyeondong-config.json file, allowing you to execute tests for changed components and utilities with your preferred runner.

How does generating tests from git diff improve test coverage?

Generating tests from git diff improves test coverage by targeting only the modified files in your codebase. It analyzes changed UI components, hooks, and utilities, then creates focused tests that ensure new regressions are caught immediately.

What's the best way to write unit tests for React hooks and utilities?

The best way to write unit tests for React hooks and utilities is using provided test templates. The system offers specific templates for components, hooks, and utilities, streamlining test authoring based on your recent git changes.

Does React Testing Library work with automated unit test generation?

React Testing Library works with automated unit test generation by providing the testing utilities for UI components. The system generates tests for changed .tsx files, leveraging React Testing Library to validate component rendering and interactions.