python-authoring

python-authoring is a skill for Claude Code, Codex from paulnsorensen/easy-cheese. It costs 88 tokens per session (2,015 once invoked), scanned A, original, MIT.

A set of rules for writing and maintaining Python code in the easy-cheese repository, using Python 3.12 and its existing packaging, testing, and validation practices.

In plain words
What is it for?
Use it when adding, editing, refactoring, or reviewing Python files in the project, including source code, scripts, GitHub automation, and tests.
Why use it?
It reduces guesswork about where changes belong and how they should be written and checked. It also helps keep new code small, readable, and consistent with the project.

Skill for Claude CodeCodex

Part of the easy-cheese plugin — 18 skills shipped together

Install

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.

agentmods
npx agentmods add skills/paulnsorensen/easy-cheese/python-authoring
Any agent
npx skills add paulnsorensen/easy-cheese --skill python-authoring
Clone the repo
git clone --depth 1 https://github.com/paulnsorensen/easy-cheese

Made for: Claude Code, Codex.

Or install easy-cheese, the plugin that ships this one along with the rest of its 18 skills.

Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,015 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00088 $0.02015
Opus 5 $0.00044 $0.01007
Sonnet 5 $0.00018 $0.00403
Haiku 4.5 $0.00009 $0.00201

Measured 3d ago against content hash 792f5eaa315c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

python-authoring 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 3d 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/python-authoring/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Authoring Python

Produce the smallest readable Python change that satisfies the request and matches easy-cheese.

This is a repository-local skill. Keep it under .agents/skills/python-authoring/; do not mirror it into the published skills/ tree or add agents/openai.yaml. Renaming this directory requires updating the matching !.agents/skills/<dir>/ line in .gitignore — that path list is an allowlist, so a renamed dir without its own line is silently untracked.

Work in this order

  1. Read the root configuration, owning skill, target exports, immediate callers, and nearby conventions.
  2. Keep every changed line traceable to the request. Do not invent orchestration, compatibility layers, abstractions, dependencies, or future flexibility.
  3. Put code in the owning package and preserve the bundle boundary.
  4. Validate untrusted input once at the boundary, then work with typed trusted data.
  5. Choose the clearest succinct Python construct; do not compress code until it becomes harder to read.
  6. Remove only slop introduced by the change and code that the change orphaned.
  7. Type-check changed files with basedpyright, run targeted tests, rebuild affected bundles, then run just check.

Keep runtime code stdlib-first

  • Target Python 3.12. Use its language and typing features directly; do not add compatibility code for older versions.
  • Treat the standard library as the default dependency budget for bundled helpers under src/. Any third-party runtime dependency must be pure Python and admitted to requirements/runtime.txt; bundle builds resolve internal and external hashes into an ephemeral requirements file.
  • Reuse the existing JSON-first, optional-YAML manifest boundary instead of importing PyYAML into new bundled modules.
  • Treat configured third-party imports as surface-specific exceptions: PyYAML for existing validators, docs tooling, and manifest/test paths; pytest for tests. A new dependency requires an explicit package and CI decision.
  • Prefer argparse, json, pathlib, tempfile, shutil, zipfile, collections, itertools, and contextlib over hand-written equivalents.

Read the full file on GitHub · 102 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. 3d ago First seen · 102 lines · 88 tokens per session scan A 792f5eaa315c

Subscribe to this mod's changes

python-authoring is a skill published in the GitHub repository paulnsorensen/easy-cheese (18 stars, last pushed 3d ago), licensed MIT. It adds 88 tokens to every session and 2,015 once invoked, about $0.0004 per session on Opus 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-30.

Related

Other skills, from other repositories

agentic-development

Build AI agents with Pydantic AI (Python) and Claude SDK (Node.js).

alinaqi/maggy · 22 tokens

django-idioms

Django ORM, class-based views, DRF serializers, migrations, pytest-django. For Python see python-idioms.

irahardianto/awesome-agv · 31 tokens

python-expert

Use for Python code changes, FastAPI/Django/Flask services, packaging, typing, async, pytest, data scripts, dependency hygiene, or Python performance fixes.

DominikTobureto/awesome-grok-build · 38 tokens

unreal-pcg-python

Guide for Unreal Engine 5.x PCG (Procedural Content Generation) Python integration. Covers the PCGPythonInterop plugin, the Execute Python Script node, PCG Python API (PCGComponent, PCGBlueprintElement, PCGSpatialData, PCGPointData), editor automation, custom PCG nodes via Python, and known limitations. Use when the…

maystudios/claude-skills · 121 tokens

upgrade-claude-agent-sdk

Upgrade the claude-agent-sdk dependency, review SDK changes for integration impact, expose new features to users via Settings or New Task dialog, update documentation, and ship on a feature branch. This skill should be used when the user mentions upgrading, updating, or bumping the claude-agent-sdk, or when reviewing…

carrotly-ai/gluon-agent · 77 tokens

first-plan-lens-python

Stack lens para Python. Use durante Discovery quando pyproject.toml, setup.py ou requirements.txt for detectado. Cobre FastAPI, Django, Flask, Litestar, Celery workers, data apps, packaging src/ vs flat.

vynazevedo/first-plan · 54 tokens