improve-ut

Analyzes changed files and generates or updates unit tests per .trellis/spec/ conventions, then runs pnpm lint, typecheck, and test.

1|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/SDDKKK/Trellis_Hiskens_backup_20260413 --skill improve-ut-sddkkk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: improve-ut
Source: https://github.com/SDDKKK/Trellis_Hiskens_backup_20260413/tree/main/.agents/skills/improve-ut
Command: npx skills add https://github.com/SDDKKK/Trellis_Hiskens_backup_20260413 --skill improve-ut-sddkkk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill inspects changed files and improves unit test coverage by generating or updating tests that adhere to the project's unit-test specifications in .trellis/spec/, helping prevent regressions and reducing manual test-writing effort.

Core Features & Use Cases

  • Determines test scope (unit vs integration vs regression) based on git changes and package-specific unit-test spec layers.
  • Adds or updates tests following existing project patterns and mock strategies, then runs validation (lint, typecheck, test).
  • Use case: After implementing a feature or fixing a bug, automatically scaffold focused tests, validate them locally, and report remaining coverage gaps.

Quick Start

Run the improve-ut skill to analyze recent changes, create or update tests according to the project's unit-test specs, and run validation commands.

Frequently Asked Questions about improve-ut

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

FAQPage Schema
How do I increase unit test coverage after code changes?

To increase unit test coverage, analyze changed files via git diff and generate or update tests that adhere to project specs. This automatically scaffolds focused tests and validates them using pnpm lint, typecheck, and test commands.

Does this unit test generation tool require a specific project structure?

Yes, unit test generation requires a specific project structure. It applies to repositories that include .trellis/spec/ unit-test spec layers, respecting project conventions to select test scope and apply mock or real filesystem strategies.

How does unit test scope selection work for integration and regression tests?

Unit test scope selection works by analyzing git changes and package-specific unit-test spec layers. It determines whether to generate unit, integration, or regression tests based on the detected code modifications and project patterns.

What is the best way to scaffold tests after fixing a bug?

The best way to scaffold tests after a bugfix is to analyze recent git changes and create or update tests according to existing project specs. This ensures tests follow current patterns and automatically reports remaining coverage gaps.

How are mock strategies handled when updating tests?

Mock strategies are handled by respecting project unit-test conventions during test generation. The process selects appropriate mock or real filesystem strategies based on the existing patterns found in the repository's test specifications.

What validation commands run after generating unit tests?

The validation commands that run after generating unit tests are pnpm lint, pnpm typecheck, and pnpm test. These commands execute automatically to ensure newly scaffolded tests pass local validation and adhere to project standards.