unit

Official

Write hermetic unit tests with fast mocks.

Authorreliant-labs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill solves the problem of unreliable, slow, and hard-to-debug tests by guiding you to write truly hermetic unit tests that isolate a single handler or function.

Core Features & Use Cases

  • Hermetic unit testing: ensures tests use no network, no database, and no filesystem while validating handler behavior in isolation.
  • Generated mock injection: uses generated mocks for every contract dependency so you never construct real clients in unit tests.
  • Correct error-code verification: validates Connect error codes for failure paths so behavior is asserted precisely.
  • Use case: when you’re building a service handler (for example, CreateUser or GetOrder), you can confidently cover edge cases like duplicate inputs or not-found scenarios without flakiness.

Quick Start

Use the unit skill to add or run handler-level unit tests that verify both success and specific Connect error codes while staying fully hermetic.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: unit
Download link: https://github.com/reliant-labs/forge/archive/main.zip#unit

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.