aj-geddes avatar

Fastapi Development

This covers the FastAPI fundamentals you need to ship production async Python APIs. You get guides for Pydantic validation, SQLAlchemy async queries, JWT auth, dependency injection, and the full application setup with CORS and middleware. The reference docs show actual implementations for service layers and route handlers, not just conceptual stuff. The best practices section is solid on what to avoid, like returning raw database models or trusting unvalidated input. If you're building a modern Python backend and want type safety with automatic OpenAPI docs, this gets you past the boilerplate quickly. Assumes you already know why you want FastAPI over Flask or Django.

skills.sh installs
624
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill fastapi-development --agent claude-code

Installs into .claude/skills of the current project.

Files

FastAPI Development

Table of Contents

Overview

Create fast, modern Python APIs using FastAPI with async/await support, automatic API documentation, type validation using Pydantic, dependency injection, JWT authentication, and SQLAlchemy ORM integration.

When to Use

  • Building high-performance Python REST APIs
  • Creating async API endpoints
  • Implementing automatic OpenAPI/Swagger documentation
  • Leveraging Python type hints for validation
  • Building microservices with async support
  • Integrating Pydantic for data validation

Quick Start

Minimal working example:

# main.py
from fastapi import FastAPI, HTTPException, status
from fastapi.middleware.cors import CORSMiddleware
from contextlib import asynccontextmanager
import logging

# Setup logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Backend & APIs, Security, DevOps & CI/CD, Documentation, AI & Agent Building, Debugging, Python
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1bytedance avatarbyted-web-searchbytedance/agentkit-samples火山引擎联网搜索 API,返回网页/图片结果。联网搜索场景优先使用本 skill。触发词包括:查/搜/找、真的吗/靠谱吗/确认/核实、最近/今天/最新/近期、出处/来源/链接、有什么/有哪些/推荐、价格/政策/汇率/行情、对比/区别/哪个好、听说/据说/不太确定、热搜/热门/火、帮我看/了解一下、求证/辟谣、值不值得/624skills.sh installs
2aliramw avatardingtalk-ai-tablealiramw/dingtalk-ai-table钉钉 AI 表格(多维表)操作技能。使用 mcporter CLI 连接钉钉官方新版 AI 表格 MCP server,基于 baseId / tableId / fieldId / recordId 体系执行 Base、Table、Field、Record 的查询与增删改。适用于创建 AI 表格、搜索表格、读取表结构617skills.sh installs
3aj-geddes avatardata-encryptionaj-geddes/useful-ai-promptsImplement strong encryption using AES, RSA, TLS, and proper key management. Use when securing data at rest, in transit, or implementing end-to-end encryption.616skills.sh installs
4adobe avataraem-replicationadobe/skillsSingle entry point for all AEM 6.5 LTS Replication skills. Covers configuring replication agents, activating/deactivating content, using the Replication API pro604skills.sh installs
5adobe avatardevelopmentadobe/skillsGenerate comprehensive technical documentation for developers taking over an AEM Edge Delivery Services project. Analyzes codebase structure, custom implementat604skills.sh installs
6adobe avatarauthoringadobe/skillsGenerate comprehensive documentation for content authors taking over an AEM Edge Delivery Services project. Analyzes the project structure and produces a comple599skills.sh installs