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/pueraeternis/agentic-project-template/10-python-standardsgit clone --depth 1 https://github.com/pueraeternis/agentic-project-templateWhat 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.00000 | $0.00590 |
| Opus 5 | $0.00000 | $0.00295 |
| Sonnet 5 | $0.00000 | $0.00118 |
| Haiku 4.5 | $0.00000 | $0.00059 |
Grade A, and why
10-python-standards 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 yesterday.
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 — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Engineering Standards
These rules apply to Python source code.
Project-specific conventions documented in ENGINEERING.md take precedence over these defaults.
Type Safety
Use type annotations for all public functions, methods, and module-level constants where appropriate.
Prefer explicit types over Any.
Prefer structured domain models over untyped dictionaries.
Prefer:
- explicit return types;
- typed collections;
- dataclasses or Pydantic models where appropriate;
Protocolfor behavioral interfaces.
Avoid unnecessary use of:
Any;dict[str, Any];- untyped containers.
Function Design
Functions should:
- have a single responsibility;
- have explicit inputs and outputs;
- minimize side effects;
- remain reasonably small.
Prefer pure functions whenever practical.
Use descriptive names that express business intent.
Avoid vague names such as:
def process(data):
...
Class Design
Classes should have a single responsibility.
Prefer composition over inheritance.
Prefer dependency injection over hidden global state.
Avoid deep inheritance hierarchies unless clearly justified.
Error Handling
Raise exceptions that accurately describe failures.
Catch only exceptions that can be handled meaningfully.
Never silently ignore exceptions.
Avoid:
except Exception:
pass
Exception messages should help diagnose the problem.
Logging
Use the project's logging framework.
Prefer parameterized logging.
Example:
logger.info("Created task %s", task_id)
Avoid:
logger.info(f"Created task {task_id}")
Never use print() outside CLI utilities or interactive scripts.
Imports
Keep imports at module level.
Avoid:
- circular dependencies;
- import-time side effects;
- unnecessary dynamic imports.
Use TYPE_CHECKING for type-only imports that would otherwise create dependency cycles.
Group imports according to PEP 8.
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.
- yesterday First seen · 197 lines · 0 tokens per session scan A 5967ec1bf101
10-python-standards is a cursor rule published in the GitHub repository pueraeternis/agentic-project-template (2 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 590 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
code-optimization
Guidelines for optimizing duplicate and poorly structured code.
implementation-workflow
Required plan-first workflow for any implementation request (steps 1–5).
creating-cursor-rules
Meta-rule for creating effective Cursor IDE rules with best practices, patterns, and examples.
nauro-context
Writes durable shared context into Nauro's project store so other agents (a later session or a parallel one) can discover and pull it, finds and reads context another agent left, or captures a resumable brief so your own next session in this environment picks up cleanly. Three modes. Author writes a shared brief for…
creating-skills
Meta-guide for creating effective Claude Code skills with proper structure, CSO optimization, and real examples.
language-agnostic-patterns
Language-agnostic programming patterns: SOLID, design patterns, clean code, and architecture. Load when refactoring, designing abstractions, or reviewing structure — not for everyday syntax.