Skip to content
Development
Command

/improve-ut

Use this command to improve test coverage after code changes.

From plugin
trellis
14k6 skills5 agents6 commands
Install
$ npx -y skills add mindfold-ai/trellis --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/improve-ut

Context preview

What this command does when you run it.

Use this command to improve test coverage after code changes.

Command definition

improve-ut.md

Improve Unit Tests (UT)

Use this command to improve test coverage after code changes.

Usage

/trellis:improve-ut

Source of Truth

Discover and read unit-test specs:

python3 ./.trellis/scripts/get_context.py --mode packages

Look for packages with `unit-test` spec layer in the output.

For each found module, read its `index.md` and follow the **"Pre-Development Checklist"** section. Read all guideline files listed in the index.

> If this command conflicts with the unit-test specs, the specs win.

---

Execution Flow

1. Inspect changes:

  • `git diff --name-only`

2. Decide test scope using unit-test specs:

  • What must be unit vs integration vs regression
  • What must be mocked vs real filesystem flow

3. Add/update tests accordingly (mirror existing test structure) 4. Run validation:

pnpm lint
pnpm typecheck
pnpm test

5. Report coverage decisions and remaining gaps.

---

Output Format

## UT Coverage Plan
- Changed areas: ...
- Test scope (unit/integration/regression): ...

## Test Updates
- Added: ...
- Updated: ...

## Validation
- pnpm lint: pass/fail
- pnpm typecheck: pass/fail
- pnpm test: pass/fail

## Gaps / Follow-ups
- <none or explicit rationale>
Ships withtrellis

The best agent harness.

Get the whole plugin