Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

fastapi-templates

Skill by ModelEngine-Group

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. Built for developers starting new FastAPI applications or backend API projects.

  • Score 87
  • 375 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install fastapi-templates

Built from the published package, never by AI.

git clone --depth 1 https://github.com/ModelEngine-Group/DataMate /tmp/DataMate && mkdir -p ~/.claude/skills && cp -r /tmp/DataMate/.claude/skills/backend-architect ~/.claude/skills/fastapi-templates

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install fastapi-templates in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

fastapi-templates is an agent skill that gives an AI assistant a production-oriented structure for new FastAPI projects. It recommends a layout with separate folders for API routes, core configuration, models, schemas, services and repositories, and it shows code for each part. The examples cover async database sessions, a lifespan handler, CORS middleware, settings loaded from environment variables, and a generic CRUD repository.

The skill is built around FastAPI's Depends system for database sessions, authentication and shared logic. It includes a user service, endpoints that return HTTP error responses, and JWT token creation with bcrypt password hashing. It is aimed at developers who are starting a new FastAPI application or a backend API project and want a standard structure.

Written from the project's SKILL.md and checked against it.

What it can do

  • Project layoutRecommends a folder structure for routes, core config, models, schemas, services and repositories.
  • Dependency injectionUses FastAPI Depends for database sessions, authentication and shared business logic.
  • Async database sessionsProvides an async SQLAlchemy engine and a session dependency with commit and rollback.
  • Application lifespanShows startup and shutdown hooks with an asynccontextmanager lifespan handler.
  • Settings managementLoads application settings from environment variables and a .env file using Pydantic settings.
  • CRUD repositoryOffers a generic base repository with get, list, create, update and delete methods.
  • Service layerIncludes a user service with duplicate email checks and password hashing.
  • API endpointsShows user routes that return 400, 403 and 404 errors where appropriate.
  • JWT authenticationShows access token creation and bcrypt password verification in a security module.

What you need

  • Python
  • FastAPI
  • A database URL for async SQLAlchemy (DATABASE_URL)
  • A secret key for JWT signing (SECRET_KEY)

Try asking

  • Set up a new FastAPI project with the recommended app/ folder layout.
  • Add a generic CRUD repository for my SQLAlchemy models in FastAPI.
  • Create JWT login with bcrypt password hashing in my FastAPI app.

Good to know

  • The example CORS setting allows all origins and credentials.
  • The code examples are partial and the source ends in the middle of a function.
  • The example database engine has echo enabled.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/backend-architect/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md16 KB

Alternatives to fastapi-templates

All alternatives →
openclaw-github-repo-commandersickn33
94

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.

AAA Skill 50k
gradiogradio-app
94

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.

AAA Skill 44k
hig-components-menussickn33
94

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.

AAA Skill 50k
fastapi-templateswshobson
94

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.

AAA Skill 43k
appfunctionsandroid
94

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.

AAA Skill 11k
agent-qa-authoringsickn33
94

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.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

fastapi-templates: common questions

Which databases does this skill cover?

The skill lists PostgreSQL and MongoDB as use cases. Its code examples use an async SQLAlchemy engine configured by DATABASE_URL.

Does it include authentication?

Yes. It includes a security module that creates JWT access tokens and verifies bcrypt password hashes, along with a dependency for the current user.

What project structure does it recommend?

It recommends separate folders for API routes, core configuration, models, schemas, services and repositories, with main.py as the entry point.

How do I install fastapi-templates?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is fastapi-templates free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is fastapi-templates safe to use?

It scores 87 of 100. Grades: maintenance A, licence A, quality B. 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-templates?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

fastapi-templates Install

Add to stack

Loading.