create-api-endpoint — FastAPI API endpoint creation create-api-endpoint, mycosoft-mas, community, FastAPI API endpoint creation, ide skills, create-api-endpoint install, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for FastAPI Agents needing structured API endpoint creation and management capabilities. create-api-endpoint is a skill that enables developers to generate new API endpoints using FastAPI's APIRouter with prefix and tags.

Features

Creates router files using FastAPI's APIRouter
Registers routers in myca_main.py
Updates the API catalog with new endpoints
Follows a step-by-step creation progress
Utilizes Python for endpoint implementation

# Core Topics

MycosoftLabs MycosoftLabs
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The create-api-endpoint skill by MycosoftLabs is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for FastAPI API endpoint creation, create-api-endpoint install.

Ideal Agent Persona

Perfect for FastAPI Agents needing structured API endpoint creation and management capabilities.

Core Value

Empowers agents to generate and register new API endpoints using FastAPI's APIRouter, facilitating seamless integration with existing applications and updating the API catalog, all while following a structured approach with prefix and tags.

Capabilities Granted for create-api-endpoint

Creating new API endpoints with automatic registration
Updating the API catalog with newly created endpoints
Testing and validating newly created API endpoints

! Prerequisites & Limits

  • Requires FastAPI installation and setup
  • Python environment needed
  • Manual updates to myca_main.py required for router registration
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

create-api-endpoint

Install create-api-endpoint, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Create a New FastAPI API Endpoint

Pattern

All API routers use FastAPI's APIRouter with prefix and tags, and are registered in myca_main.py.

Steps

API Endpoint Creation Progress:
- [ ] Step 1: Create router file
- [ ] Step 2: Register in myca_main.py
- [ ] Step 3: Update API catalog
- [ ] Step 4: Test endpoints

Step 1: Create the router file

Create mycosoft_mas/core/routers/your_api.py:

python
1"""Your API - Brief description of these endpoints.""" 2 3from fastapi import APIRouter, HTTPException, Depends 4from pydantic import BaseModel 5from typing import Any, Dict, List, Optional 6 7 8router = APIRouter(prefix="/api/your-domain", tags=["your-domain"]) 9 10 11class YourRequest(BaseModel): 12 """Request model.""" 13 field: str 14 optional_field: Optional[str] = None 15 16 17class YourResponse(BaseModel): 18 """Response model.""" 19 status: str 20 data: Dict[str, Any] 21 22 23@router.get("/health") 24async def health(): 25 """Health check for this API domain.""" 26 return {"status": "healthy", "service": "your-domain"} 27 28 29@router.post("/action", response_model=YourResponse) 30async def perform_action(request: YourRequest): 31 """Perform an action.""" 32 try: 33 # Implementation here 34 result = {"processed": request.field} 35 return YourResponse(status="success", data=result) 36 except Exception as e: 37 raise HTTPException(status_code=500, detail=str(e)) 38 39 40@router.get("/items") 41async def list_items(): 42 """List items.""" 43 return {"items": [], "count": 0}

Step 2: Register in myca_main.py

Edit mycosoft_mas/core/myca_main.py:

python
1# Add import 2from mycosoft_mas.core.routers.your_api import router as your_router 3 4# Add router inclusion (in the router registration section) 5app.include_router(your_router, tags=["your-domain"])

Step 3: Update API catalog

Update docs/API_CATALOG_FEB04_2026.md with new endpoints:

markdown
1### Your Domain API 2| Endpoint | Method | Description | 3|----------|--------|-------------| 4| /api/your-domain/health | GET | Health check | 5| /api/your-domain/action | POST | Perform action | 6| /api/your-domain/items | GET | List items |

Step 4: Test endpoints

bash
1# Health check 2curl http://192.168.0.188:8001/api/your-domain/health 3 4# Test action 5curl -X POST http://192.168.0.188:8001/api/your-domain/action \ 6 -H "Content-Type: application/json" \ 7 -d '{"field": "test"}'

Key Rules

  • Always include a /health endpoint per router
  • Use Pydantic models for request/response validation
  • Include proper error handling with HTTPException
  • Use async endpoints
  • Add tags for OpenAPI documentation grouping
  • Update API_CATALOG after adding endpoints

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is create-api-endpoint?

Perfect for FastAPI Agents needing structured API endpoint creation and management capabilities. create-api-endpoint is a skill that enables developers to generate new API endpoints using FastAPI's APIRouter with prefix and tags.

How do I install create-api-endpoint?

Run the command: npx killer-skills add MycosoftLabs/mycosoft-mas. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for create-api-endpoint?

Key use cases include: Creating new API endpoints with automatic registration, Updating the API catalog with newly created endpoints, Testing and validating newly created API endpoints.

Which IDEs are compatible with create-api-endpoint?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for create-api-endpoint?

Requires FastAPI installation and setup. Python environment needed. Manual updates to myca_main.py required for router registration.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add MycosoftLabs/mycosoft-mas. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use create-api-endpoint immediately in the current project.

Related Skills

Looking for an alternative to create-api-endpoint or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI