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 kouroshez/coding-os --skill python-fastapigit clone --depth 1 https://github.com/kouroshez/coding-osWrote 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/kouroshez/coding-os/python-fastapi)<a href="https://agentmods.dev/skills/kouroshez/coding-os/python-fastapi"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/python-fastapi/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/kouroshez/coding-os/python-fastapi"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/python-fastapi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00071 | $0.00751 |
| Opus 5.5 | $0.00028 | $0.00300 |
| Sonnet 5.5 | $0.00014 | $0.00150 |
| Haiku 4.5 | $0.00007 | $0.00075 |
Grade A, and why
python-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 2mo 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 — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
REQUIRED BACKGROUND: You MUST also follow the clean-code skill (.claude/skills/clean-code/SKILL.md). That skill covers universal principles (fail-closed errors, typed exceptions, self-documenting code, edge cases, error path tests). This skill adds FastAPI-specific patterns on top of those foundations.
Pre-Code Checklist
Before writing any backend Python code, verify:
- Read
docs/engineering/fastapi-rules.md— the canonical backend policy - If touching API routes: read
docs/playbooks/fastapi-service.md - Search the repo with Grep/Glob for existing code before creating any new file
- Confirm which Python version the project targets (≥ 3.11 recommended)
1. Project layout
src/backend/
├── app/
│ ├── main.py # FastAPI() entry point
│ ├── api/ # route modules, one file per resource
│ │ └── v1/
│ ├── models/ # SQLAlchemy declarative models
│ ├── schemas/ # Pydantic request/response schemas
│ ├── services/ # business logic — pure, no Request/Response types
│ ├── deps.py # dependency providers (DB session, current user)
│ └── core/
│ ├── config.py # Pydantic Settings
│ └── exceptions.py # typed domain errors
└── tests/
2. Route pattern
@router.post("/items", response_model=ItemOut, status_code=201)
async def create_item(
payload: ItemIn,
session: AsyncSession = Depends(get_session),
current_user: User = Depends(get_current_user),
) -> ItemOut:
item = await items_service.create(session, payload, owner=current_user)
return ItemOut.model_validate(item)
- Route layer: validation, auth, serialization. No DB queries.
- Service layer: business logic, pure functions on top of repositories.
- Models ≠ schemas. Never return SQLAlchemy objects directly.
3. Error handling
- Define domain exceptions in
app/core/exceptions.py(e.g.,NotFoundError,PermissionDenied). - Register a single exception handler in
main.pythat maps them to HTTP responses with a consistent envelope. - Never return
{"error": str(e)}— always a structured shape.
What ships with it
2 files 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.
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.
- 2mo ago First seen · 76 lines · 71 tokens per session scan A 36e02f079ebd
python-fastapi is a skill published in the GitHub repository kouroshez/coding-os (7 stars, last pushed yesterday), licensed Apache-2.0. It adds 71 tokens to every session and 751 once invoked, about $0.0003 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-09-03.
python-fastapi compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| python-fastapikouroshez/coding-os | Skill | 7 | yesterday | Apache-2.0 | A | 71 | Claude Code, Codex |
| stripe-projectse2b-dev/E2B | Skill | 15k | today | Apache-2.0 | A | 51 | Claude Code, Codex |
| azure-messaging-webpubsubservice-pymicrosoft/skills | Skill | 3.3k | today | MIT | A | 64 | Claude Code |
| azure-mgmt-botservice-pymicrosoft/skills | Skill | 3.3k | today | MIT | A | 59 | Claude Code |
| azure-appconfiguration-pybenjaminasterA/antigravity-awesome-skills | Skill | 522 | today | MIT | A | 0 | Claude Code, Codex |
| azure-messaging-webpubsubservice-pybenjaminasterA/antigravity-awesome-skills | Skill | 522 | today | MIT | A | 0 | Claude Code, Codex |
| x-thread-readertokenbender/agent-guides | Skill | 369 | 10d ago | Apache-2.0 | A | 54 | Claude Code, Codex |