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/juan294/cc-rpinpx agentmods add skills/juan294/cc-rpi/python-rulesWrote 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/juan294/cc-rpi/python-rules)<a href="https://agentmods.dev/skills/juan294/cc-rpi/python-rules"><img src="https://agentmods.dev/badge/skills/juan294/cc-rpi/python-rules/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/juan294/cc-rpi/python-rules"><img src="https://agentmods.dev/badge/skills/juan294/cc-rpi/python-rules.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.00030 | $0.00434 |
| Opus 5.5 | $0.00012 | $0.00174 |
| Sonnet 5.5 | $0.00006 | $0.00087 |
| Haiku 4.5 | $0.00003 | $0.00043 |
Grade A, and why
python-rules 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 3mo 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.
What it actually says
Python Development
Virtual Environment Runner
Wrong -- bare python3 has no project dependencies:
python3 scripts/run_analysis.py
# ModuleNotFoundError: No module named 'pandas'
Right -- use the project's venv runner:
uv run python scripts/run_analysis.py
# Or: poetry run python scripts/run_analysis.py
# Or: pipenv run python scripts/run_analysis.py
Package-Relative Imports
Wrong -- direct execution breaks relative imports:
python scripts/etl/transform.py
# ModuleNotFoundError: No module named 'scripts.etl.utils'
Right -- use -m for scripts with package imports:
python -m scripts.etl.transform
Python Version for uv
Select the interpreter from the project's .python-version, requires-python,
lockfile, and supported CI matrix. uv honors version requests and project
constraints; it does not simply choose the newest installed Python.
cat .python-version
rg 'requires-python' pyproject.toml
uv python find
uv sync --locked
If no project pin exists, establish a compatible version from dependency
support and the project's CI before using uv python pin <version> or
uv sync --python <version>. Do not overwrite an existing pin with a generic
"stable" version or delete .venv to hide a mismatch. See uv's interpreter
selection rules.
pip on macOS
Wrong -- system pip blocked by PEP 668 on macOS:
pip3 install httpie
# error: externally-managed-environment
Right -- use brew for CLI tools, pipx for Python apps:
brew install httpie
# Or for Python-specific apps:
pipx install httpie
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.
- 3mo ago Changed · +1 lines d3fa772339a9
- 3mo ago First seen · 74 lines · 30 tokens per session scan A 562d92b13b52
python-rules is a skill published in the GitHub repository juan294/cc-rpi (5 stars, last pushed 6d ago), licensed MIT. It adds 30 tokens to every session and 434 once invoked, about $0.0001 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-08-31.
python-rules compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| python-rulesjuan294/cc-rpi | Skill | 5 | 6d ago | MIT | A | 30 | Claude Code |
| python-patternsnusabyte-my/jebat-core | Skill | 5 | today | none | A | 15 | Claude Code, Codex |
| pytorch-patternsaffaan-m/ECC | Skill | 317k | 4d ago | MIT | A | 32 | Claude Code, Kiro |
| accelerateNousResearch/hermes-agent | Skill | 269k | today | MIT | A | 13 | Claude Code, Codex |
| django-patternsaffaan-m/ECC | Skill | 317k | 4d ago | MIT | A | 32 | Claude Code, Kiro |
| jupyter-notebookNousResearch/hermes-agent | Skill | 269k | today | MIT | A | 18 | Claude Code, Codex |
| fastapi-patternsaffaan-m/ECC | Skill | 317k | 4d ago | MIT | A | 35 | Claude Code, Kiro |