0
0
# Install this skill:
npx skills add collectiveai-team/agent-skills --skill "api"

Install specific skill from multi-skill repository

# Description

API Skill for FastAPI. Use when creating or editing FastAPI API code, routers, main app setup, lifecycle, or logging.

# SKILL.md


name: api
description: API Skill for FastAPI. Use when creating or editing FastAPI API code, routers, main app setup, lifecycle, or logging.


API Skill

Follow these steps when creating or editing API code.

Review Checklist

  1. Use Pydantic models for request and response payloads.
  2. Group related endpoints under router modules.
  3. Use main.py to include routers, add time middleware, add lifecycle events, and include a main block to run the API.
  4. If a logger is not created, create one following the logger skill.

Example Structure

api/
    __init__.py
    main.py
    router/
        __init__.py
        users/
            __init__.py
            router.py
            models.py
            services.py

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.