# Utg

> Generate unit tests for the changed code in this branch

- Skill: `recrsn/utg` (Agent Skill)
- Install (CLI): `npx skillmds@latest add recrsn/utg`
- Raw SKILL.md: https://api.skillmd.com/api/skills/recrsn/utg/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: recrsn (https://skillmd.com/u/recrsn)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/recrsn/utg

---


Check the diff against origin/main, and generate unit tests for the changed code
in this branch. Run `git fetch origin` to make sure git context is up-to-date.

Here is the list of files changed in this branch:
!`git diff --stat origin/main`

- Check existing test coverage for changed code; skip areas already well-covered
- Only generate tests for logic changes, not data structure or formatting changes
- Use the project's existing test framework and conventions
- Run the test suite with coverage after generating tests, and add more tests if coverage for changed code is low

**Testing guidelines:**

- Tests should be isolated — use mocks/stubs for external dependencies, but do not mock logging or telemetry
- Only test public API of modules/classes, not private/internal methods
- Follow existing test style and conventions in the codebase

