improve-ut

Improve Unit Tests (UT)

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "improve-ut" with this command: npx skills add mindfold-ai/trellis/mindfold-ai-trellis-improve-ut

Improve Unit Tests (UT)

Use this skill to improve test coverage after code changes.

Usage

$improve-ut

Source of Truth

Discover and read unit-test specs dynamically:

Discover available packages and their spec layers

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

Look for packages with unit-test spec layer in the output. For each discovered unit-test/ directory, read all spec files inside it (e.g., index.md , conventions.md , integration-patterns.md , mock-strategies.md ).

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

Execution Flow

  • Inspect changed files:

  • git diff --name-only

  • Decide test scope using unit-test specs:

  • unit vs integration vs regression

  • mock vs real filesystem flow

  • Add/update tests using existing project test patterns

  • Run validation:

pnpm lint pnpm typecheck pnpm test

  • Summarize decisions, updates, and remaining test 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>

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

trellis-meta

No summary provided by upstream source.

Repository SourceNeeds Review
General

brainstorm

No summary provided by upstream source.

Repository SourceNeeds Review
General

break-loop

No summary provided by upstream source.

Repository SourceNeeds Review
General

record-session

No summary provided by upstream source.

Repository SourceNeeds Review