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.
git clone --depth 1 https://github.com/vanessamarely/ai-playbook-repositoWrote 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/vanessamarely/ai-playbook-reposito/backend-policy)<a href="https://agentmods.dev/rules/vanessamarely/ai-playbook-reposito/backend-policy"><img src="https://agentmods.dev/badge/rules/vanessamarely/ai-playbook-reposito/backend-policy/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/rules/vanessamarely/ai-playbook-reposito/backend-policy"><img src="https://agentmods.dev/badge/rules/vanessamarely/ai-playbook-reposito/backend-policy.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.00000 | $0.00732 |
| Opus 5 | $0.00000 | $0.00366 |
| Sonnet 5 | $0.00000 | $0.00146 |
| Haiku 4.5 | $0.00000 | $0.00073 |
Grade A, and why
backend-policy 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 10d 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 — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Backend Policy
Multi-Language Support
Backend services may use different ecosystems. Follow the conventions of each project's chosen language and framework.
Language-Specific Guidelines
Node.js / TypeScript
Project detection: package.json present; TypeScript via tsconfig.json. Common frameworks: Express, Nest, Fastify.
Conventions:
- Use ES modules (
import/export) when"type": "module"inpackage.json; otherwise CommonJS. - Follow existing import ordering conventions.
- Use async/await for asynchronous operations.
- Validate incoming data with Zod, Joi, or class-validator.
- Use structured logging (avoid
console.login production code). - Handle errors with centralized middleware or interceptors.
Nest.js specifics: decorators for controllers/services/modules; constructor-based dependency injection; DTO classes with validation decorators; exception filters for HTTP error responses; guards for auth.
For scaffolding endpoints, run /node-microservice-builder.
Java
Project detection: pom.xml (Maven) or build.gradle/build.gradle.kts (Gradle). Common frameworks: Spring Boot, Quarkus, Micronaut.
Conventions:
- Package structure:
com.organization.service.module. - Use annotations for configuration (Spring:
@Service,@RestController, etc.). - Constructor-based dependency injection preferred; builder patterns for complex object construction.
- Validate inputs with Bean Validation (
@Valid,@NotNull, etc.). - Handle exceptions with
@ControllerAdviceor similar. - PascalCase for classes, camelCase for methods. Respect the project's Maven/Gradle module structure.
Python
Project detection: pyproject.toml, setup.py, or requirements.txt. Common frameworks: FastAPI, Django, Flask.
Conventions:
- Follow PEP 8; use type hints (PEP 484) for function signatures.
- Respect
.venv/orvenv/. - Use
async/awaitwith FastAPI or aiohttp where applicable. - Validate with Pydantic models (FastAPI) or framework-specific validators.
- Use structured logging (not
print). - Catch specific exception types, never bare
except. - Test with pytest; respect existing test structure.
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.
- 10d ago First seen · 70 lines · 0 tokens per session scan A 84536a17d8de
backend-policy is a cursor rule published in the GitHub repository vanessamarely/ai-playbook-reposito (2 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 732 tokens. 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-31.
Other cursor rules, from other repositories
python
Python best practices and patterns for modern software development with Flask and SQLite.
api-property-optionality-hygiene
Fix ApiProperty/ApiPropertyOptional optionality mismatches in DTO files; use for scheduled batch fixes or DTO edits.
django
Definitive guidelines for writing maintainable, performant, and secure Django applications, emphasizing modern best practices, clear code organization, and efficient patterns.
cursor
You are working on the checkout service. Preserve transaction integrity and auditability.
shared-libraries
Shared libraries - condition framework, inventory containers, file-backed DB, itinerary, references.
env-validation-gate
Env validation gate — every app with ≥1 required env var validates its contract at boot via Zod; raw process.env is banned outside the env module. Full pattern in .claude/skills/t2000-env-gate/.