python-backend-fastapi

python-backend-fastapi is a skill for Claude Code, Codex from Dannykkh/skill-olympus. It costs 39 tokens per session (1,646 once invoked), scanned A, original, MIT.

A reference guide for building web backends with FastAPI, a Python framework for creating APIs and server applications.

In plain words
What is it for?
Use it when creating or reviewing Python files, FastAPI endpoints, Pydantic schemas, database models, or asynchronous functions.
Why use it?
It gives developers consistent guidance for organizing backend code, separating responsibilities, and defining data models. This makes large or mixed-purpose files easier to maintain.

Skill for Claude CodeCodex

Part of the skill-olympus plugin — 95 skills, 6 commands, 42 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/dannykkh/skill-olympus/python-backend-fastapi
Any agent
npx skills add Dannykkh/skill-olympus --skill python-backend-fastapi
Clone the repo
git clone --depth 1 https://github.com/Dannykkh/skill-olympus

Made for: Claude Code, Codex.

Or install skill-olympus, the plugin that ships this one along with the rest of its 95 skills, 6 commands, 42 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for python-backend-fastapi

README.md
[![agentmods](https://agentmods.dev/badge/skills/dannykkh/skill-olympus/python-backend-fastapi.svg)](https://agentmods.dev/skills/dannykkh/skill-olympus/python-backend-fastapi)
Your own site
<a href="https://agentmods.dev/skills/dannykkh/skill-olympus/python-backend-fastapi"><img src="https://agentmods.dev/badge/skills/dannykkh/skill-olympus/python-backend-fastapi.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,646 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01646
Opus 5 $0.00019 $0.00823
Sonnet 5 $0.00008 $0.00329
Haiku 4.5 $0.00004 $0.00165

Measured 2d ago against content hash 89dfa04b4bcd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

python-backend-fastapi scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/python-backend-fastapi/SKILL.md · 202 lines

How it starts

The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python Backend Development Guide (FastAPI)

Python FastAPI 백엔드 개발을 위한 종합 가이드.

적용 시점

다음 작업 시 이 가이드를 참조:

  • Python 파일 생성/수정
  • FastAPI 엔드포인트 작성
  • Pydantic 스키마 정의
  • 데이터베이스 모델 설계
  • 비동기 함수 작성

핵심 원칙

1. 파일/모듈 책임 분리 ⚠️ CRITICAL

  • 하드 제한 줄 수가 아니라 기능/책임 단위로 모듈을 나눈다
  • 한 파일이 여러 유스케이스, 계층, 엔티티 책임을 섞으면 분리한다
  • 대형 파일은 자동 실패가 아니라 분리 검토 신호로만 사용한다

2. 함수 크기 제한

  • 최대 50줄
  • 권장 20줄 이하
  • 하나의 함수는 하나의 작업만

3. 모듈화 & 재사용성

  • 공통 로직은 utils/ 또는 core/로 분리
  • 비즈니스 로직은 서비스 레이어에
  • 데이터 접근은 리포지토리 패턴

프로젝트 구조

backend/
├── app/
│   ├── __init__.py
│   ├── main.py                 # FastAPI 앱 초기화 (< 100줄)
│   ├── api/                    # API 엔드포인트
│   │   ├── __init__.py
│   │   ├── deps.py            # 의존성 주입
│   │   └── v1/
│   │       ├── __init__.py
│   │       ├── auth.py        # 인증 API (< 300줄)
│   │       ├── users.py       # 사용자 API (< 300줄)
│   │       └── forms.py       # 폼 빌더 API (< 400줄)
│   ├── core/                   # 핵심 설정 및 보안
│   │   ├── config.py          # 환경 설정 (< 200줄)
│   │   ├── security.py        # JWT, 암호화 (< 300줄)
│   │   └── database.py        # DB 연결 (< 100줄)
│   ├── models/                 # SQLAlchemy 모델
│   │   ├── user.py            # User 모델만 (< 150줄)
│   │   └── form.py            # Form 모델만 (< 200줄)
│   ├── schemas/                # Pydantic 스키마
│   │   ├── user.py            # User 스키마 (< 150줄)
│   │   └── form.py            # Form 스키마 (< 200줄)
│   ├── services/               # 비즈니스 로직
│   │   ├── auth_service.py    # 인증 로직 (< 300줄)
│   │   └── user_service.py    # 사용자 관리 (< 400줄)
│   ├── repositories/           # 데이터 접근 레이어
│   │   ├── base.py            # BaseRepository (< 200줄)
│   │   └── user_repository.py # User CRUD (< 250줄)
│   └── utils/                  # 유틸리티
│       ├── validators.py      # 검증 함수 (< 200줄)
│       └── file_handler.py    # 파일 처리 (< 300줄)
├── tests/
│   ├── conftest.py
│   └── test_users.py
├── alembic/                    # DB 마이그레이션
├── requirements.txt
└── .env.example

코딩 규칙

Read the full file on GitHub · 202 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 202 lines · 39 tokens per session scan A 89dfa04b4bcd

Subscribe to this mod's changes

python-backend-fastapi is a skill published in the GitHub repository Dannykkh/skill-olympus (5 stars, last pushed 4d ago), licensed MIT. It adds 39 tokens to every session and 1,646 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

ai-ml-development

AI and machine learning development with PyTorch, TensorFlow, and LLM integration. Use when building ML models, training pipelines, fine-tuning LLMs, or implementing AI features.

travisjneuman/.claude · 43 tokens

python-sast

Python static analysis using bandit. Identifies injection, deserialization, unsafe exec/eval, weak crypto, and hardcoded credentials in Python code.

vladkesler/initrunner · 34 tokens

pytest-patterns

Pytest best practices including fixtures, parametrize, markers, and assertion patterns for Python test suites.

vladkesler/initrunner · 24 tokens

upgrade-claude-agent-sdk

Upgrade the claude-agent-sdk dependency, review SDK changes for integration impact, expose new features to users via Settings or New Task dialog, update documentation, and ship on a feature branch. This skill should be used when the user mentions upgrading, updating, or bumping the claude-agent-sdk, or when reviewing…

carrotly-ai/gluon-agent · 77 tokens

docker-py

Provides patterns for programmatic Docker container management using the Docker SDK for Python and aiodocker. USE WHEN the user asks to "manage Docker containers from Python", "create containers programmatically", "stream container logs", "execute commands in a running container", "build images with docker-py"…

AnExiledDev/CodeForge · 109 tokens

pydantic-ai

Teaches PydanticAI agent development with tool decorators, RunContext dependency injection, streaming, and VercelAIAdapter. USE WHEN the user asks to "build a PydanticAI agent", "add tools to an agent", "stream responses with PydanticAI", "test a PydanticAI agent", "connect PydanticAI to Svelte", "configure model…

AnExiledDev/CodeForge · 130 tokens