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 agentmods add rules/sordi-ai/skill-everything/fastapigit clone --depth 1 https://github.com/sordi-ai/skill-everythingWhat 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 | $0.00032 | $0.00802 |
| Opus 5 | $0.00016 | $0.00401 |
| Sonnet 5 | $0.00006 | $0.00160 |
| Haiku 4.5 | $0.00003 | $0.00080 |
Grade A, and why
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.
How it starts
The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Sub-Skill: FastAPI
Purpose: Prevent common FastAPI and Pydantic mistakes. Apply these rules whenever writing or reviewing FastAPI route handlers, Pydantic schemas, or async API code.
Rules
-
Always declare request and response bodies as Pydantic models — never use raw
dictorAnyfor I/O. Reference: ERR-2026-025 -
Always use Pydantic v2 syntax (
model_config,model_dump,model_validate) unless the project explicitly pins Pydantic v1 (pydantic<2in requirements). Reference: ERR-2026-025 -
Always declare route handlers as
async defunless the handler calls blocking I/O that cannot be awaited; userun_in_executorfor blocking calls inside async handlers. -
Always specify an explicit
response_modelon every route decorator so FastAPI filters and validates the response shape. -
Always use
status_codeon the route decorator (@app.post("/items", status_code=201)) rather than constructing aResponseobject just to set the status. -
Never raise bare
Exceptionin route handlers; raiseHTTPExceptionwith a meaningfulstatus_codeanddetailstring, or define a custom exception with an exception handler. -
Always register exception handlers via
@app.exception_handler(MyError)for domain errors rather than catching them inside every route. -
Use
Depends()for shared logic (auth, DB sessions, pagination params) — never duplicate the same logic across multiple route functions. -
Prefer
APIRouterwith aprefixandtagslist to group related endpoints; register routers withapp.include_router()rather than defining all routes on the app object. -
Always configure CORS via
CORSMiddlewarewith an explicitallow_originslist; never useallow_origins=["*"]in production. -
Use the
lifespancontext manager (FastAPI ≥ 0.93) for startup/shutdown logic instead of the deprecated@app.on_event("startup")/@app.on_event("shutdown")decorators. -
Always use
BackgroundTasks(injected viaDependsor as a route parameter) for fire-and-forget work; neverasyncio.create_taskinside a route without a lifecycle guard.
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.
- 2d ago First seen · 56 lines · 32 tokens per session scan A 292a23f02c26
fastapi is a cursor rule published in the GitHub repository sordi-ai/skill-everything (19 stars, last pushed 3mo ago), licensed MIT. It adds 32 tokens to every session and 802 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-08-30.
Other cursor rules, from other repositories
python-tools
Conventions for the Python automation tools that ship inside skills.
cursorrules
Senior Python engineer (18+ years). Production-quality code following AurigaIT standards.
python-core
Core Python standards — always active for all Python files.
python-testing
Testing standards — auto-attached to test files.
00-stack
Stack, runtimes, and MCP servers for this repository.
20-testing
How to run tests and MCP smoke checks.