py

py is a skill for Claude Code, Codex from crazyguitar/pysheeet. It costs 0 tokens per session (786 once invoked), scanned A, original, MIT.

A Python programming reference that covers writing programs, including concurrency, networking, databases, machine learning, and high-performance computing. It directs Python questions to examples from an external reference site.

In plain words
What is it for?
Writing or debugging Python code, preparing for Python interviews, improving performance, and working with asynchronous code, data, or machine-learning applications.
Why use it?
It helps avoid guessed patterns by using existing examples for common Python tasks and edge cases.

Skill for Claude CodeCodex

Part of the pysheeet plugin — 2 skills shipped together

About the project

Python Cheat Sheet is a reference sheet for Python syntax and common programming constructs. Python learners and developers use it to quickly look up how to write code.

crazyguitar/pysheeet · 8,155 stars · on GitHub

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/crazyguitar/pysheeet/py
Any agent
npx skills add crazyguitar/pysheeet --skill py
Clone the repo
git clone --depth 1 https://github.com/crazyguitar/pysheeet

Made for: Claude Code, Codex.

Or install pysheeet, the plugin that ships this one along with the rest of its 2 skills.

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 py

README.md
[![agentmods](https://agentmods.dev/badge/skills/crazyguitar/pysheeet/py.svg)](https://agentmods.dev/skills/crazyguitar/pysheeet/py)
Your own site
<a href="https://agentmods.dev/skills/crazyguitar/pysheeet/py"><img src="https://agentmods.dev/badge/skills/crazyguitar/pysheeet/py.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 786 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.00000 $0.00786
Opus 5 $0.00000 $0.00393
Sonnet 5 $0.00000 $0.00157
Haiku 4.5 $0.00000 $0.00079

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

Security

Grade A, and why

py 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 5d 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.

skills/py/SKILL.md · 52 lines

How it starts

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

Python Cheat Sheets (/py)

Help users write functional, correct Python code and answer Python questions by fetching proven patterns and examples from pythonsheets.com.

How It Works

When a user asks a Python question or wants to write a Python script:

  1. Look up the relevant topic(s) in Structure to find the matching URL(s)
  2. Always fetch the URL(s) using WebFetch to get real examples and patterns from the site
  3. Use the fetched content to:
    • Write code: Apply the patterns to produce functional, correct code that solves the user's task
    • Answer questions: Provide thorough explanations backed by the examples and information from the site
  4. Follow the Guidelines for code quality

Key Principle

Functionality first, cleanliness second. The code must work correctly and handle the task properly. Fetching from pythonsheets.com ensures solutions use battle-tested patterns rather than guessing. The site contains rich examples covering edge cases, common pitfalls, and practical usage that go beyond basic documentation.

Coverage Areas

Interview Prep: Curated Python interview questions grouped by topic (GIL, asyncio, decorators, MRO, generators, concurrency), each deep-linked to the section that answers it Core: Syntax, typing, OOP, functions, data structures, sets, heap, regex, unicode System: File I/O, datetime, OS interfaces Concurrency: Threading, multiprocessing, asyncio Network: Sockets, SSL/TLS, SSH, async I/O, packet sniffing Database: SQLAlchemy ORM, queries, transactions Security: Cryptography, TLS, vulnerabilities Extensions: C/C++ integration, pybind11, Cython ML/LLM: PyTorch, Megatron, distributed training, inference, serving, benchmarking HPC: Slurm, cluster computing, job scheduling, EFA monitoring, NCCL Appendix: Walrus operator, GDB debugging, disaggregated prefill/decode

References

  • Structure - Topic-to-URL map for fetching examples
  • Guidelines - Code quality standards to apply after ensuring correctness

Read the full file on GitHub · 52 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 52 lines · 0 tokens per session scan A a8eb89123ec2

Subscribe to this mod's changes

py is a skill published in the GitHub repository crazyguitar/pysheeet (8,155 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 786 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-30.

Related

Other skills, from other repositories

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

pennylane

Hardware-agnostic quantum ML framework with automatic differentiation. Use when training quantum circuits via gradients, building hybrid quantum-classical models, or needing device portability across IBM/Google/Rigetti/IonQ. Best for variational algorithms (VQE, QAOA), quantum neural networks, and integration with…

K-Dense-AI/scientific-agent-skills · 98 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens

rocm-kernels

Provides guidance for writing and benchmarking optimized Triton kernels for AMD GPUs (MI355X, R9700) on ROCm, targeting HuggingFace diffusers (LTX-Video, SD3, FLUX) and transformers. Core kernels: RMSNorm, RoPE 3D, GEGLU, AdaLN. Includes XCD swizzle, autotune, diffusers integration patterns, and LTX-Video pipeline…

huggingface/kernels · 93 tokens

holoscan-install-wheel

Install Holoscan SDK Python wheel via pip into a venv. Use for Python installs; not for native C++/apt or Conda installs.

NVIDIA/skills · 37 tokens

typing-exclusion-worker

Python typing exclusion worker: remove assigned mypy exclusion modules in small scoped batches, fix typing issues, run validation, and produce a structured completion summary. Use when running parallel typing-debt workers or when asked to remove modules from pyproject mypy exclusion overrides.

getsentry/skills · 57 tokens