backend-endpoint
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".
npx skills add majiayu000/claude-skill-registry --skill backend-endpoint-dkyazzentwatwa-supernavigator-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 1: Gather Endpoint Requirements **Ask user for endpoint details**: ``` Endpoint path: [e.g., /api/users/:id] HTTP method: [GET, POST, PUT, PATCH, DELETE] Resource name: [e.g., User, Post, Product] Framework: - express (default) - fastify - nestjs - graphql Authentication required: [yes/no] Request validation needed: [yes/no] ``` **Validate endpoint path**: - Use predefined function: `functions/route_validator.py` - Ensure RESTful conventions - Check path parameters syntax - No trailing slashes ### Step 1.5: Verify Understanding (ToM Checkpoint) [EXECUTE] **IMPORTANT**: This step MUS
- When to Invoke
- What This Does
- Execution Steps
- Step 1: Gather Endpoint Requirements
- Step 1.5: Verify Understanding (ToM Checkpoint) [EXECUTE]
- Step 1.8: Declare Belief State (Optional - ToM Anchor)
- Step 2: Generate Route Handler
- Step 3: Generate Validation Schema
- Step 4: Generate Error Handling Middleware
- Step 5: Generate Test File
- Step 6: Generate API Documentation Comment
- Step 7: Show Endpoint Summary
- Predefined Functions
- 1. routevalidator.py
python3 functions/endpoint_generator.py \ python3 functions/validation_generator.py \ python3 functions/error_handler_generator.py \ python3 functions/test_generator.py \ python3 functions/route_validator.py --path "/api/users/:id" --method "GET"
What does the backend-endpoint skill do?
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".
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill backend-endpoint-dkyazzentwatwa-supernavigator-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
