Skip to content
Development
Command

/improve-ut

Use this command to improve test coverage after code changes.

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

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>
@mindfold-ai
Ships withtrellis

The best agent harness.

15k18 skills5 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
15.1k
Star history of mindfold-ai/trellis on GitHub, a chart by star-history.com

Other commands on trellis.

continue

continue

Command

Resume work on the current task — pick up at the right phase/step in `.trellis/workflow.md`.

@mindfold-ai@mindfold-aiInstall Command
create-manifest

create-manifest

Command

Create a migration manifest for a new patch, beta, rc, or minor release based on commits since the previous release.

@mindfold-ai@mindfold-aiInstall Command
finish-work

finish-work

Command

Wrap up the current session: archive the active task (and any other completed-but-unarchived tasks the user wants to clean up)…

@mindfold-ai@mindfold-aiInstall Command
publish-skill

publish-skill

Command

Sync a marketplace skill to the documentation site. Creates skill detail pages (EN/ZH), updates the marketplace index, and…

@mindfold-ai@mindfold-aiInstall Command
start

start

Command

Initialize a Trellis-managed development session. This platform has no session-start hook, so manually load the equivalent…

@mindfold-ai@mindfold-aiInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command