backend-endpoint

Solid

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".

API & Backend 232 stars 12 forks Updated today

Install

View on GitHub

Quality Score: 82/100

Stars 20%
79
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
0
Description 5%
100

Skill Content

# 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...

Details

Author
alekspetrov
Repository
alekspetrov/navigator
Created
11 months ago
Last Updated
today
Language
Python
License
None

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category