← ClaudeAtlas

backend-endpointlisted

Create REST/GraphQL API endpoint with validation, error handling, and tests. Auto-invoke when user says "add endpoint", "create API", "new route", or "add route".
alekspetrov/navigator · ★ 189 · API & Backend · score 80
Install: claude install-skill alekspetrov/navigator
# Backend API Endpoint Generator Generate production-ready REST or GraphQL endpoints with request validation, error handling, and comprehensive tests. ## When to Invoke Auto-invoke when user mentions: - "Add endpoint" - "Create API" - "New route" - "Add route" - "Create API endpoint for [resource]" ## What This Does 1. Generates route handler with proper HTTP methods 2. Adds request validation (body, params, query) 3. Implements error handling 4. Creates test file with request/response tests 5. Follows REST/GraphQL conventions 6. Includes authentication middleware (if needed) ## Execution Steps ### Step 0: Check Existing Patterns (Phase 0) Before gathering requirements, query the knowledge graph for what we already know about API/endpoint work in this project. Mirrors `navigator-research`'s Phase 0. ```bash PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/cache/navigator-marketplace/navigator}" [ -d "$PLUGIN_DIR" ] || PLUGIN_DIR="$HOME/.claude/plugins/marketplaces/navigator-marketplace" python3 "$PLUGIN_DIR/skills/nav-graph/functions/graph_manager.py" \ --action query --concept api \ --graph-path .agent/knowledge/graph.json 2>/dev/null | head -40 ``` Also check `authentication`, `validation`, and `security` if the endpoint touches those areas. If memories surface (`PATTERN`, `PITFALL`, `DECISION` entries), read the full memory files for relevant ones: ```bash ls .agent/knowledge/memories/{patterns,pitfalls,decisions}/ 2>/dev/null ``` **What to do with w