handler-scaffold-gen

Installation
SKILL.md

HandlerScaffoldGen

Scaffold a TypeScript handler for concept $ARGUMENTS with typed actions, storage patterns, and a conformance test.

When to use: Use when implementing a concept handler in TypeScript. Generates a .handler.ts handler with register(), typed action methods, input extraction, storage patterns, and a conformance test file.

Design Principles

  • One Handler per Action: Each action in the concept spec maps to exactly one async method in the handler.
  • Variant Completeness: Every return variant declared in the spec must have a corresponding code path — no missing branches.
  • Storage Sovereignty: Each concept owns its storage exclusively — no shared databases, no cross-concept state access.
  • Input Extraction: Extract inputs with as casts at the top of each method. Validate required fields before processing.
Related skills
Installs
9
First Seen
Mar 11, 2026