Mandu slot

From konamgil/mandu · View interactive version

Mandu slot is an AI agent skill from the GitHub repository konamgil/mandu. Mandu Slot API for writing business logic. Use when creating API handlers, implementing authentication guards, adding lifecycle hooks, or working with request/response context. Triggers on tasks involving Mandu.filling(), ctx.ok(), ctx.error(), .guard(), .get(), .post(), or slot files.

How to use this skill

Skill file

Mandu Slot

Slot은 비즈니스 로직을 작성하는 파일입니다. Mandu.filling() API를 사용하여

API 핸들러, 인증 가드, 라이프사이클 훅을 구현합니다.

Agent Workflow Contract

This skill is a Domain addendum. It must not replace mandu-agent-workflow.

Use it only after mandu.agent.plan selects the slot, API, or security domain.

Canonical workflow step: plan -> apply -> verify -> repair.

Preferred MCP tools:

| Step | Tools |

|------|-------|

| plan | mandu.agent.plan, mandu.slot.read, mandu.slot.constraints |

| apply | mandu.agent.apply, mandu.generate |

| verify | mandu.agent.verify, mandu.slot.validate, mandu.contract.validate |

| repair | mandu.agent.repair |

Allowed file edits:

Verification command:

mandu agent verify --changed --json --write

Common failures:

Repair path:

mandu agent repair --from .mandu/agent-verify.json --json

When to Apply

Reference these guidelines when:

Rule Categories by Priority

| Priority | Category | Impact | Prefix |

|----------|----------|--------|--------|

| 1 | Basic Structure | CRITICAL | slot-basic- |

| 2 | HTTP Methods | HIGH | slot-http- |

| 3 | Context API | HIGH | slot-ctx- |

| 4 | Guard Pattern | MEDIUM | slot-guard- |

| 5 | Lifecycle Hooks | MEDIUM | slot-lifecycle- |

Quick Reference

1. Basic Structure (CRITICAL)

2. HTTP Methods (HIGH)

3. Context API (HIGH)

4. Guard Pattern (MEDIUM)

5. Lifecycle Hooks (MEDIUM)

How to Use

Read individual rule files for detailed explanations:

rules/slot-basic-structure.md
rules/slot-ctx-response.md
rules/slot-guard-auth.md

File Location

spec/slots/{name}.slot.ts    # Server logic
spec/slots/{name}.client.ts  # Client logic (Island)
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.