handler

Community

Build robust Handler logic with safe, async flow.

Authoryaochangyu
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a structured approach to implementing a consistent Handler layer that encapsulates business logic, coordinates across repositories, and applies the Result Pattern for error handling without throwing exceptions.

Core Features & Use Cases

  • Business logic implementation: Encapsulates rules, validation, and orchestration across repositories.
  • Error handling with Result Pattern: Returns Result<T, Failure> and preserves original exceptions for observability.
  • Async execution and cancellation: All I/O operations use async/await with CancellationToken support.
  • Cross-repository transactions: Coordinates multiple repositories within a transactional boundary when needed.

Quick Start

Use this skill to implement a Handler that coordinates two repositories within a transaction and returns a Result as the outcome.

Dependency Matrix

Required Modules

None required

Components

assetsreferences

💻 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: handler
Download link: https://github.com/yaochangyu/ai-dev-toolkit/archive/main.zip#handler

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 223,000+ vetted skills library on demand.