What problem does it solve?
This Skill streamlines adding new Express API endpoints that integrate safely with the Bot Framework adapter, preventing common production issues like transient failure cascades and silent authorization errors.
Core Features & Use Cases
- Deterministic route scaffolding: Creates a controller under
server/api/ that follows the established bot patterns, including adapter setup where applicable.
- Production-grade resiliency: Enforces
TRANSIENT_RE/AUTH_ERROR_RE, adapter.onTurnError, and retry logic to reduce intermittent network and auth failures.
- Bot-safety guardrails: Ensures you do not override reserved bot message endpoints like
POST /api/messages or POST /api/message.
- Configuration hygiene: Requires
MicrosoftAppId and MicrosoftAppPassword to come from environment variables instead of being hardcoded.
Quick Start
In your project, create a new controller in server/api/, register the route in server/api/index.js, and then test it with your local dev server and curl to confirm it returns JSON successfully.