fastapi-expert
Skill by monaccode
Guides an AI assistant to build async Python APIs with FastAPI and Pydantic V2. It covers REST endpoints, JWT authentication, async SQLAlchemy and WebSocket endpoints. Aimed at backend developers.
Install fastapi-expert
Built from the published package, never by AI.
git clone --depth 1 https://github.com/monaccode/astromesh /tmp/astromesh && mkdir -p ~/.claude/skills && cp -r /tmp/astromesh/.agents/skills/fastapi-expert ~/.claude/skills/fastapi-expertRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/monaccode/astromesh /tmp/astromesh && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/astromesh/.agents/skills/fastapi-expert ~/.gemini/antigravity-cli/skills/fastapi-expertAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
fastapi-expert is an agent skill that guides an AI assistant through building async Python APIs with FastAPI and Pydantic V2. It covers REST endpoints, Pydantic models, async SQLAlchemy database operations, JWT authentication, WebSocket endpoints and OpenAPI documentation. The skill follows a five-step workflow: analyze requirements, design schemas, implement, secure, and test.
The SKILL.md includes code examples for a user schema, a users router, CRUD functions and a JWT helper module. Its constraints require type hints, Pydantic V2 syntax, the Annotated pattern for dependency injection and async I/O. It is aimed at backend developers who want FastAPI code that follows these rules. It also points to reference files for Pydantic, SQLAlchemy, routing, authentication, testing and migration from Django.
Written from the project's SKILL.md and checked against it.
What it can do
- REST endpointsCreates FastAPI REST endpoints using APIRouter and dependency injection.
- Pydantic V2 modelsDefines Pydantic V2 schemas with validators and model_config.
- Async SQLAlchemySets up async database operations and CRUD functions with AsyncSession.
- JWT authenticationAdds JWT token creation and get_current_user dependency using OAuth2 bearer.
- WebSocket endpointsBuilds WebSocket endpoints in FastAPI.
- OpenAPI documentationGenerates OpenAPI docs and checks the API surface at /docs.
- Async testingWrites async tests with pytest and httpx.
What you need
- Python
- FastAPI
- Pydantic V2
Try asking
- Create a FastAPI users router with email signup and Pydantic V2 validation
- Add JWT authentication with a get_current_user dependency to my FastAPI app
- Set up async SQLAlchemy CRUD functions for a User model in FastAPI
Good to know
- The example SECRET_KEY is a placeholder that must be read from the environment.
- The reference files for each topic are linked but their contents are not included in the source.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/fastapi-expert/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
references/async-sqlalchemy.md4 KB -
references/authentication.md4 KB -
references/endpoints-routing.md4 KB -
references/migration-from-django.md27 KB
Show all 7 files
-
references/pydantic-v2.md3 KB -
references/testing-async.md4 KB
Alternatives to fastapi-expert
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
fastapi-expert: common questions
Does fastapi-expert support Pydantic V1 syntax?
No. The skill says to use Pydantic V2 syntax and not V1 patterns such as @validator or class Config.
Which JWT settings does the example use?
The example uses the HS256 algorithm, OAuth2PasswordBearer with the /auth/token URL, and a default token expiry of 30 minutes.
What reference topics does the skill cover?
The source lists references for Pydantic V2, async SQLAlchemy, endpoints and routing, authentication, async testing, and migrating from Django or DRF.
How do I install fastapi-expert?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is fastapi-expert free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is fastapi-expert safe to use?
It scores 83 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to fastapi-expert?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
