mandu-slot

Implement API handlers, guards, and lifecycle hooks with Mandu.filling().

46|4|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/konamgil/mandu --skill mandu-slot
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: mandu-slot
Source: https://github.com/konamgil/mandu/tree/main/packages/mcp/src/resources/skills/mandu-slot
Command: npx skills add https://github.com/konamgil/mandu --skill mandu-slot

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Slot enables writing business logic in a dedicated file using Mandu.filling() to implement API handlers, authentication guards, and lifecycle hooks.

Core Features & Use Cases

  • Centralizes server-side business logic in reusable slot files.
  • Supports API endpoint definitions, guard patterns, and lifecycle events to standardize behavior.
  • Real-world use: implement a guarded, typed API route with request/response handling and middleware hooks.

Quick Start

Create a new slot under spec/slots and export a Mandu.filling() chain that defines your HTTP handlers and guards.

Frequently Asked Questions about mandu-slot

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

FAQPage Schema
How do I structure server-side API handlers and lifecycle hooks consistently?▼

Server-side API handlers are structured by exporting a Mandu.filling() chain from dedicated slot files, centralizing request/response handling, authentication guards, and lifecycle hooks for consistent behavior.

What is a slot pattern for implementing API guards and request handling?▼

The slot pattern centralizes business logic in reusable files, using Mandu.filling() to define guard checks and standardized ctx methods for handling HTTP request and response lifecycles.

How do I add authentication guards to HTTP endpoints using Mandu.filling()?▼

Authentication guards are added by chaining guard patterns within your Mandu.filling() slot definition, enabling standardized guard checks for HTTP endpoints before the main request handler executes.

Can I standardize API response handling across server-side applications with Mandu slots?▼

Yes, Mandu slots standardize API response handling across server-side applications by enforcing a consistent slot structure and using ctx methods for standardized response output.

Do I need specific dependencies or components to use the Mandu slot approach?▼

No external dependencies or components are required. You create a new slot under spec/slots and export a Mandu.filling() chain to implement your HTTP handlers and guards directly.

When should I centralize business logic in slot files versus inline route definitions?▼

Centralize business logic in slot files when you need reusable API endpoint definitions, guard patterns, and lifecycle events to standardize behavior across multiple Mandu-based server-side applications.