Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/steph-dove/klaussy-agentsnpx agentmods add rules/steph-dove/klaussy-agents/conventionsWrote 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/rules/steph-dove/klaussy-agents/conventions)<a href="https://agentmods.dev/rules/steph-dove/klaussy-agents/conventions"><img src="https://agentmods.dev/badge/rules/steph-dove/klaussy-agents/conventions.svg" alt="Measured on agentmods" 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.03060 | $0.03060 |
| Opus 5 | $0.01530 | $0.01530 |
| Sonnet 5 | $0.00612 | $0.00612 |
| Haiku 4.5 | $0.00306 | $0.00306 |
Grade A, and why
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 8d 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 — 189 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md - fastapi
Auto-generated by klaussy-repo-conventions. Customize and extend with project-specific context.
Project Overview
python project using fastapi.
FastAPI framework, high performance, easy to learn, fast to code, ready for production
Directory Structure
For the repository directory map and file layout, see .claude/directory-map.md.
Architecture
Core Modules
The most-imported internal modules — the foundation other code builds on.
fastapi/exceptions.py— exceptions (12 dependents)fastapi/openapi/models.py— models (8 dependents)fastapi/types.py— types (8 dependents)fastapi/datastructures.py— datastructures (7 dependents)fastapi/utils.py— utils (5 dependents)fastapi/security/base.py— base (5 dependents)
Key Patterns
- API routes: 29 endpoints (2 DELETE, 16 GET, 2 PATCH, 7 POST, 2 PUT)
API Routes
fastapi/applications.py:GET /users/,GET /items/,GET /items/,GET /items/, +4 morefastapi/background.py:POST /send-notification/{email}fastapi/datastructures.py:POST /files/,POST /uploadfile/fastapi/exceptions.py:GET /items/{item_id}fastapi/param_functions.py:GET /items/{item_id},GET /items/,GET /users/me/items/fastapi/routing.py:GET /users/,GET /items/,PUT /items/{item_id},POST /items/, +2 moresecurity/api_key.py:GET /items/,GET /items/,GET /items/security/http.py:GET /users/me,GET /users/me,GET /users/mesecurity/oauth2.py:POST /login,POST /login
Narrative: how the pieces fit together
FastAPI is a thin, typed layer on top of Starlette (ASGI toolkit, routing, middleware, responses) and Pydantic v2 (validation/serialization). It does not implement HTTP itself — it builds request handling around Starlette's Router/Route and delegates ASGI serving to Uvicorn (or any ASGI server) at runtime.
fastapi/applications.py— theFastAPIclass (class FastAPI(Starlette), ~4.7k lines). This is the top-level app object users instantiate; it owns OpenAPI schema generation/caching, exception handler registration, middleware setup, and delegates actual routing to an internalAPIRouter.fastapi/routing.py— the biggest module (~6.4k lines). DefinesAPIRouteandAPIRouter. This is where a decorated path operation function becomes an ASGI-callable:get_request_handler()builds the per-route closure that runs on every request, callingsolve_dependencies()to resolve the dependency graph, thenrun_endpoint_function()to invoke the user's function (sync functions are offloaded to a threadpool viarun_in_threadpool, async functions are awaited directly).fastapi/dependencies/utils.py+fastapi/dependencies/models.py— the dependency-injection engine.get_dependant()introspects a callable's signature (viainspect+ type hints) to build aDependanttree at route-registration time;solve_dependencies()walks that tree at request time, resolving path/query/header/cookie/body params, sub-dependencies, and security schemes, with results cached per-request viause_cache=True(default) on repeated sub-dependencies.fastapi/params.py/fastapi/param_functions.py— thePath,Query,Header,Cookie,Body,Form,File,Depends,Securitymarker classes and their public factory functions. These are what a user writes as default values (Annotated[X, Query(...)]style) thatget_dependant()later parses back out.fastapi/_compat/— the Pydantic version-compatibility shim (shared.pyhas the common helpers,v2.pyhas Pydantic-v2-specific code). This is the seam between FastAPI's internals and Pydantic's; the package layer is kept separate from callers even though only Pydantic v2 is supported now.fastapi/encoders.py—jsonable_encoder(), used to convert arbitrary Python/Pydantic return values into JSON-safe primitives before Starlette serializes the response.fastapi/openapi/—models.py(Pydantic models mirroring the OpenAPI 3.1 spec),utils.py(walks all registered routes to build the schema dict),docs.py(serves Swagger UI / ReDoc HTML at/docsand/redoc).fastapi/security/— OAuth2/API-key/HTTP-auth helper classes (OAuth2PasswordBearer,HTTPBasic,APIKeyHeader, etc.). Each is itself a callableDepends-compatible class that also injects an OpenAPIsecuritySchemesentry.fastapi/middleware/— thin re-exports/wrappers around Starlette middleware (CORS, GZip, TrustedHost, WSGI bridge) plusasyncexitstack.py, which manages the request-scopedAsyncExitStackused to closeyield-style dependencies.
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.
- 8d ago First seen · 189 lines · 3,060 tokens per session scan A 98433ab7bfc4
conventions is a cursor rule published in the GitHub repository steph-dove/klaussy-agents (16 stars, last pushed 11d ago), licensed MIT. It adds 3,060 tokens to every session, about $0.0153 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
cursor
You are working on the checkout service. Preserve transaction integrity and auditability.
modus-angular-button-group-usage-short
Critical patterns for ModusButton usage inside ModusButtonGroup in Angular.
graphql
GraphQL: schema design, resolvers, performance.
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.