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.
npx skills add AratKruglik/claude-sdlc --skill fastapi-conventionsgit clone --depth 1 https://github.com/AratKruglik/claude-sdlcWrote 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.
[](https://agentmods.dev/skills/aratkruglik/claude-sdlc/fastapi-conventions)<a href="https://agentmods.dev/skills/aratkruglik/claude-sdlc/fastapi-conventions"><img src="https://agentmods.dev/badge/skills/aratkruglik/claude-sdlc/fastapi-conventions/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/aratkruglik/claude-sdlc/fastapi-conventions"><img src="https://agentmods.dev/badge/skills/aratkruglik/claude-sdlc/fastapi-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Privilege Escalation · line 381 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00224 | $0.03057 |
| Opus 5.5 | $0.00090 | $0.01223 |
| Sonnet 5.5 | $0.00045 | $0.00611 |
| Haiku 4.5 | $0.00022 | $0.00306 |
Grade A, and why
fastapi-conventions 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 15d 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.
How it starts
The opening of the file, as written. The whole thing — 413 lines — stays where its author put it; the contents beside it link to each section on GitHub.
FastAPI Conventions
Detection
Read pyproject.toml before writing any code:
- Find the FastAPI version under
[project.dependencies]or[tool.poetry.dependencies]. FastAPI 0.100+ uses Pydantic v2 by default — this is the assumed baseline. - Find the SQLAlchemy version. 2.0+ uses
Mapped/mapped_columnsyntax. If the project uses SQLAlchemy 1.x, note it and useColumn()/relationship()style instead.
grep -E "fastapi|sqlalchemy" pyproject.toml
App factory and lifespan
Use a create_app() factory that returns a configured FastAPI instance. Use the @asynccontextmanager lifespan pattern (introduced in FastAPI 0.93+) for startup/shutdown logic.
from contextlib import asynccontextmanager
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.core.config import settings
from app.db.session import engine
from app.users.router import router as users_router
from app.auth.router import router as auth_router
@asynccontextmanager
async def lifespan(app: FastAPI):
# Startup: initialize DB connection pool, caches, etc.
async with engine.begin() as conn:
pass # pool warm-up; alembic manages schema
yield
# Shutdown: close DB pool, flush caches, etc.
await engine.dispose()
def create_app() -> FastAPI:
app = FastAPI(
title=settings.APP_NAME,
version=settings.APP_VERSION,
lifespan=lifespan,
)
app.add_middleware(
CORSMiddleware,
allow_origins=settings.CORS_ALLOWED_ORIGINS,
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
app.include_router(auth_router)
app.include_router(users_router)
return app
app = create_app()
APIRouter — per-feature modules
Create one APIRouter per feature module. Group related endpoints under a shared prefix and tags. Apply shared dependencies (e.g., auth) at the router level to avoid repeating them on every endpoint.
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.
- 15d ago Changed · +2 lines d3980ae68f60
- 2mo ago Changed · +2 lines e72147cf21b6
- 3mo ago First seen · 409 lines · 224 tokens per session scan A 197f17e4441a
fastapi-conventions is a skill published in the GitHub repository AratKruglik/claude-sdlc (57 stars, last pushed today), licensed MIT. It adds 224 tokens to every session and 3,057 once invoked, about $0.0009 per session on Opus 5.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-08-30.
fastapi-conventions compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fastapi-conventionsAratKruglik/claude-sdlc | Skill | 57 | today | MIT | A | 224 | Claude Code |
| stripe-projectse2b-dev/E2B | Skill | 15k | today | Apache-2.0 | A | 51 | Claude Code, Codex |
| azure-mgmt-botservice-pymicrosoft/skills | Skill | 3.3k | today | MIT | A | 59 | Claude Code |
| azure-messaging-webpubsubservice-pymicrosoft/skills | Skill | 3.3k | today | MIT | A | 64 | Claude Code |
| azure-appconfiguration-pybenjaminasterA/antigravity-awesome-skills | Skill | 524 | today | MIT | A | 0 | Claude Code, Codex |
| azure-messaging-webpubsubservice-pybenjaminasterA/antigravity-awesome-skills | Skill | 524 | today | MIT | A | 0 | Claude Code, Codex |
| x-thread-readertokenbender/agent-guides | Skill | 369 | 11d ago | Apache-2.0 | A | 54 | Claude Code, Codex |