improve-ut

Generate unit, integration, or regression tests for changed code files.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/SilentFlower/flower-cli --skill improve-ut-silentflower
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: improve-ut
Source: https://github.com/SilentFlower/flower-cli/tree/main/.agents/skills/improve-ut
Command: npx skills add https://github.com/SilentFlower/flower-cli --skill improve-ut-silentflower

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill identifies code modifications, determines appropriate test scopes, and augments or creates unit, integration, or regression tests following the project's .trellis/spec/unit-test conventions, ensuring comprehensive coverage without manual effort.

Core Features & Use Cases

  • Change Detection: Automatically gathers changed files via git diff.
  • Scope Determination: Uses project‑specific unit‑test specs to decide whether tests should be unit, integration, or regression.
  • Test Generation: Adds or updates tests adhering to existing patterns and mock strategies.
  • Validation: Runs lint, typecheck, and test suites, summarizing results and remaining gaps.

Use Cases: After implementing a new feature, fixing a bug, or when test gaps are identified, invoke this skill to automatically improve test coverage.

Quick Start

Ask the assistant to improve unit tests for the recent changes.

Frequently Asked Questions about improve-ut

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

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

To automatically generate unit tests for changed code files, this skill executes git diff to identify modifications and creates appropriate unit, integration, or regression tests following your project conventions.

How does test scope determination work for modified code?

Test scope determination works by reading project-specific .trellis/spec/unit-test conventions to decide whether modified files require unit, integration, or regression tests based on your established patterns.

Do I need specific test conventions to improve code coverage automatically?

Yes, you need specific test conventions to improve code coverage automatically. This skill requires projects using .trellis/spec/unit-test specifications to determine test scope and generate matching tests.

How are generated tests validated after improving unit test coverage?

Generated tests are validated after improving unit test coverage by running lint, typecheck, and test suites, which summarizes execution results and identifies any remaining coverage gaps.

What is the best way to add regression tests after a bug fix?

The best way to add regression tests after a bug fix is using automated test generation that detects changes via git diff and adheres to existing mock strategies and project test patterns.

Can I use this to generate tests that match my existing mock strategies?

Yes, you can use this to generate tests that match existing mock strategies. It augments or creates tests by adhering to your project's current test patterns and specifications.