new-handler

Scaffolds WebAgent's handler projects with routing, validation and tests.

163|43|Updated May 3, 2026
One-click install
npx skills add https://github.com/stella/stella --skill new-handler-stella
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-handler
Source: https://github.com/stella/stella/tree/main/.agents/skills/new-handler
Command: npx skills add https://github.com/stella/stella --skill new-handler-stella

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffold a consistent, maintainable pattern for new Elysia API handlers, accelerating development and ensuring Stella's conventions are followed.

Core Features & Use Cases

  • Standardized handler skeleton with index.ts and per-operation files for create, read, update, and delete
  • Authentication checks, input validation, and workspace ownership verification baked into templates
  • Easy registration and testing workflow, including typechecking, linting, and test execution

Quick Start

Provide a resource name and operations, and this skill will scaffold the handler directory and files following Stella's conventions.

Frequently Asked Questions about new-handler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold an Elysia API handler with input validation and authentication?

Scaffolding an Elysia API handler generates a complete directory structure under apps/api/src/handlers with per-operation files for create, read, update, and delete, including baked-in authentication checks and input validation templates.

What is the standard project structure for an Elysia API handler?

The standard Elysia API handler structure uses a dedicated resource directory containing an index.ts file alongside separate files for each operation, ensuring maintainable and consistent code organization.

How do I register a new Elysia handler in the main API index file?

Registering a new Elysia handler happens automatically during scaffolding, which modifies apps/api/src/index.ts to include the newly generated handler directory and its routes.

Does scaffolding an Elysia handler include running typechecking and linting checks?

Yes, scaffolding an Elysia handler runs end-to-end checks including typechecking and linting, and creates tests to ensure the generated code meets project conventions before completion.

Can I generate Elysia handlers for specific CRUD operations only?

Yes, you can generate Elysia handlers for specific CRUD operations by providing the desired operations when scaffolding, and it will create per-operation files for create, read, update, and delete accordingly.