write-python

write-python is a skill for Claude Code, Codex from JimmyPaolini/codebase. It costs 100 tokens per session (1,766 once invoked), scanned A, original, MIT.

A set of rules for creating and maintaining Python projects in a shared codebase. It covers project setup, formatting, linting, type checking, testing, and security checks.

In plain words
What is it for?
Use it when starting Python projects, editing project configuration, choosing Python tooling, or setting up Python commands in Nx, a build and task-running system.
Why use it?
It keeps Python tools and settings consistent across projects, including projects in a monorepo—a repository containing multiple related projects.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is venvPath = "../..".

Good fit Use it when starting Python projects, editing project configuration, choosing Python tooling, or setting up Python commands in Nx, a build and task-running system.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/JimmyPaolini/codebase
agentmods
npx agentmods add skills/jimmypaolini/codebase/write-python

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for write-python

README.md
[![agentmods](https://agentmods.dev/badge/skills/jimmypaolini/codebase/write-python/github.svg)](https://agentmods.dev/skills/jimmypaolini/codebase/write-python)
Your own site
<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.

agentmods 80×15 button for write-python

Your own site · 80×15
<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>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,766 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash e4d3704607bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.agents/skills/write-python/SKILL.md · 179 lines

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": {}
  }
}

Read the full file on GitHub · 179 lines

Changes

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.

  1. 2mo ago Changed e4d3704607bd
  2. 2mo ago First seen · 179 lines · 100 tokens per session scan A c7421da63f58

Subscribe to this mod's changes

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.

Related

write-python compared with skills from other repositories

write-python next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
write-pythonJimmyPaolini/codebaseSkill02mo agoMITA100Claude Code, Codex
matlabK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA44Claude Code
pennylaneK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA74Claude Code
holoscan-install-wheelNVIDIA/skillsSkill4.2k2d agoApache-2.0A34Claude Code, Codex
python-engineering-guidelinesanywhere-labs/Agents-AnywhereSkill3.9kyesterdayApache-2.0A75Codex
future-self-liteTHU-MAIC/OpenMAICSkill45k2d agoMITA20Claude Code, Codex
rocm-kernelshuggingface/kernelsSkill796todayApache-2.0A93Claude Code