Slash Command System Deep Dive: Build Your Own Agent Dispatcher
Build a custom slash command dispatcher in TypeScript using ClaudeClaw as a live working example — bridging simple prompts and real agentic workflows.
- ▸guide.md — 8-chapter technical guide (~8,000 words): SDK init payload, COMMAND_REGISTRY, resolveCommand(), the dispatcher loop, ClaudeClaw live walkthrough, production hardening, and a hands-on build exercise
- ▸appendix-a-command-registry-reference.md — Quick-reference card: TypeScript types, resolveCommand() signature, validateRegistry(), design rules, and common routing patterns
- ▸appendix-b-sdk-init-payload.md — Annotated SDK system / init message with field-by-field explanation and deployment validation pattern
- ▸checklist-dispatcher-audit.md — 12-item self-audit covering registry integrity, resolution correctness, security, observability, and reliability
- ▸dispatcher-scaffold.ts — Drop-in TypeScript dispatcher: fully typed, wired to the Claude Agent SDK, reads real agent.yaml via js-yaml with allowedTools enforcement
- ▸command-registry-example.ts — Minimal working registry with 3 example commands demonstrating routing, aliases, disallowedTools, permissionMode override, and maxTurns override
## goes-well-with
From the same shelf
Active Directory Security Audit Kit for Solo IT Teams
A fillable AD audit checklist covering privileged access, stale accounts, GPO hygiene, MFA gaps, and event log review — everything an auditor expects, packaged for the sysadmin who has no security team.
Agent Memory Architecture Part 2: Episodic vs Semantic vs Procedural Memory
The three agent memory types — episodic, semantic, and procedural — explained through the real production code of ClaudeClaw, a 24/7 multi-agent system, so your agents stop starting from scratch every session.
AI Chatbot Account Recovery: Security Audit Checklist for Developers
A developer's guide to designing safe AI chatbot account recovery flows, using the Meta/Instagram breach as a live case study.
## not-ready-to-buy
Take the field notes instead
One practical write-up a week from the same workbench these kits come from — plus reader pricing when new kits ship.