What problem does it solve? Adding a new endpoint under api/ in this repo has repeatedly caused production bugs: field-shape mismatches between callers and endpoints silently dropped lead data, and positional token reads broke endpoints during credential rotation. This Skill provides the exact template and mandatory checklist that prevent both bug classes. ## Core Features & Use Cases - Endpoint Template: A zero-dependency ES-module Vercel edge function with CORS preflight handling, JSON helpers, and authorize() gating built in. - Mandatory Checklist: Eight enforced rules covering auth-first ordering, caller field-name diffing, SAMMY_ENGINE_TOKEN resolution, input allowlist validation, CRM note routing, MCP tool registration, env var recording, and CLAUDE.md updates. - Use Case: When asked to add an endpoint like api/agent/send-followup.js, the Skill produces code that matches every caller's field names, resolves the engine token correctly, and registers the tool in both hosted and local MCP servers. ## Quick Start Ask the agent to create a new endpoint under api/agent/ for a specific task and have it follow the new-agent-endpoint checklist.