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/JimmyPaolini/codebasenpx agentmods add skills/jimmypaolini/codebase/write-pythonWrote 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/jimmypaolini/codebase/write-python)<a href="https://agentmods.dev/skills/jimmypaolini/codebase/write-python"><img src="https://agentmods.dev/badge/skills/jimmypaolini/codebase/write-python/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/jimmypaolini/codebase/write-python"><img src="https://agentmods.dev/badge/skills/jimmypaolini/codebase/write-python.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.00100 | $0.01766 |
| Opus 5.5 | $0.00040 | $0.00706 |
| Sonnet 5.5 | $0.00020 | $0.00353 |
| Haiku 4.5 | $0.00010 | $0.00177 |
Grade A, and why
write-python 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 2mo 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 — 179 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Write Python
All Python projects inherit configuration from the root pyproject.toml and Nx targetDefaults. Use uv run (never uvx) for reproducible tool invocations pinned in uv.lock.
Every Python project is a member of the uv workspace declared in the root pyproject.toml, sharing one uv.lock and one .venv, both at the repository root.
Tool Targets
Seven Python tool targets are defined as codebase-wide targetDefaults in nx.json:
| Target | Tool | Purpose |
|---|---|---|
ruff-format |
ruff | Format Python source |
ruff-lint |
ruff | Lint Python source |
pyright |
pyright | Primary type checker (strict mode) |
pytest |
pytest | Run tests (unit/integration/coverage) |
vulture |
vulture | Dead code detection |
ty |
ty | Supplementary type checker (Astral, pre-1.0) |
bandit |
bandit | Security linter (CI scan-security only) |
Project Tags
Every Python project must declare the language:python tag in project.json. This enables the correct composite target overrides (Python sub-targets instead of TypeScript ones).
{
"tags": ["language:python", "scope:<name>", "type:application"]
}
project.json Pattern
Declare every sub-target as {} so Nx applies the targetDefaults. Override composite targets to compose the Python sub-targets:
{
"tags": ["language:python", "scope:my-app", "type:application"],
"targets": {
"format": {
"configurations": {
"check": { "commands": ["nx run {projectName}:ruff-format:check"], "parallel": true },
"write": { "commands": ["nx run {projectName}:ruff-format:write"], "parallel": false }
}
},
"lint": {
"configurations": {
"check": { "commands": ["nx run {projectName}:ruff-lint:check"], "parallel": true },
"write": { "commands": ["nx run {projectName}:ruff-lint:write"], "parallel": false }
}
},
"typecheck": {
"executor": "nx:run-commands",
"options": {
"commands": ["nx run {projectName}:pyright", "nx run {projectName}:ty"],
"parallel": true
}
},
"test": {
"executor": "nx:run-commands",
"options": { "commands": ["nx run {projectName}:pytest"] },
"configurations": {
"unit": { "commands": ["nx run {projectName}:pytest:unit"] },
"integration": { "commands": ["nx run {projectName}:pytest:integration"] },
"coverage": { "commands": ["nx run {projectName}:pytest:coverage"] }
}
},
"bandit": {},
"pytest": {},
"pyright": {},
"ruff-format": {},
"ruff-lint": {},
"ty": {},
"vulture": {}
}
}
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.
- 2mo ago Changed e4d3704607bd
- 2mo ago First seen · 179 lines · 100 tokens per session scan A c7421da63f58
write-python is a skill published in the GitHub repository JimmyPaolini/codebase (0 stars, last pushed 2mo ago), licensed MIT. It adds 100 tokens to every session and 1,766 once invoked, about $0.0004 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-09-03.
write-python compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| write-pythonJimmyPaolini/codebase | Skill | 0 | 2mo ago | MIT | A | 100 | Claude Code, Codex |
| matlabK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 44 | Claude Code |
| pennylaneK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 74 | Claude Code |
| holoscan-install-wheelNVIDIA/skills | Skill | 4.2k | 2d ago | Apache-2.0 | A | 34 | Claude Code, Codex |
| python-engineering-guidelinesanywhere-labs/Agents-Anywhere | Skill | 3.9k | yesterday | Apache-2.0 | A | 75 | Codex |
| future-self-liteTHU-MAIC/OpenMAIC | Skill | 45k | 2d ago | MIT | A | 20 | Claude Code, Codex |
| rocm-kernelshuggingface/kernels | Skill | 796 | today | Apache-2.0 | A | 93 | Claude Code |