api-development
Use when creating new API endpoints, working with async operations, implementing long-running tasks with progress tracking, adding Pydantic models, or designing request/response schemas.
npx skills add majiayu000/claude-skill-registry --skill api-development --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.
# API Development Load this skill when: - Creating new API endpoints - Working with async operations - Implementing long-running tasks with progress tracking - Adding Pydantic models or request/response schemas --- ## API Structure ``` ktrdr/api/ ├── endpoints/ # Route handlers ├── models/ # Pydantic request/response models ├── services/ # Business logic └── main.py # Router registration ``` ## Adding New Endpoints 1. **Create endpoint** in `ktrdr/api/endpoints/` 2. **Define Pydantic models** in `ktrdr/api/models/` 3. **Implement business logic** in `ktrdr/api/services/` 4. **Register router** in `ktrdr/api/main.py` 5. **Add tests** in `tests/api/` --- ## Async Operation Pattern For long-running tasks (training, backtesting, data downloads), KTRDR uses **ServiceOrchestrator** pattern (not FastAPI's BackgroundTasks): ```python from ktrdr.api.services.operations_service import OperationsService from ktrdr.api.models.operations import OperationMetadata, OperationType @router.post("/long-operation") async def start_operation( request: OperationRequest, operations_service: OperationsService = Depends(get_operations_service) ): # Create operation metadata metadata = OperationMetadata( sy
- API Structure
- Adding New Endpoints
- Async Operation Pattern
- Key Components
- Progress Tracking
- Operation Status Endpoints
- Pydantic Models
- Request Models (Pydantic v2)
- Response Models
- Error Handling
- Documentation
- Testing API Endpoints
- Key Files
What does the api-development skill do?
Use when creating new API endpoints, working with async operations, implementing long-running tasks with progress tracking, adding Pydantic models, or designing request/response schemas.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill api-development --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.
