A comprehensive Python reference tool that fetches battle-tested patterns from pythonsheets.com to ensure functional, correct code.
Install
mkdir -p .claude/skills/py && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10892" && unzip -o skill.zip -d .claude/skills/py && rm skill.zipInstalls to .claude/skills/py
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Comprehensive Python programming reference covering syntax, concurrency, networking, databases, ML/LLM development, and HPC. Use for: Python questions, Python interview preparation, debugging, performance optimization, async patterns, library examples, code review, best practices, MLOps workflows, distributed computing, security implementations, and any Python development tasks.Key capabilities
- →Debug async patterns
- →Generate MLOps code
- →Practice technical interviews
- →Find distributed computing implementations
How it works
Fetches proven patterns and examples from pythonsheets.com to solve Python tasks.
Inputs & outputs
When to use py
- →Debugging complex async patterns
- →Generating Python code for MLOps workflows
- →Practicing for Python technical interviews
- →Finding proven implementations for distributed computing
About this skill
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:
- Look up the relevant topic(s) in Structure to find the matching URL(s)
- Always fetch the URL(s) using WebFetch to get real examples and patterns from the site
- 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
- 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
Examples
- "What should I review for a Python interview?" → Fetch https://www.pythonsheets.com/notes/interview/index.html and walk the reader through the topic groups
- "Common Python interview questions on the GIL" → Fetch https://www.pythonsheets.com/notes/interview/index.html and then drill into https://www.pythonsheets.com/notes/concurrency/python-threading.html for detailed answers
- "How does asyncio work?" → Fetch https://www.pythonsheets.com/notes/asyncio/python-asyncio-guide.html and explain with the site's examples
- "Write a socket server" → Fetch https://www.pythonsheets.com/notes/network/python-socket-server.html, use the patterns to write a working server
- "What's the walrus operator?" → Fetch https://www.pythonsheets.com/notes/appendix/python-walrus.html and explain with practical examples
- "Set up Megatron distributed training" → Fetch https://www.pythonsheets.com/notes/llm/megatron.html, use the patterns to write a correct training script
When not to use it
- →Non-Python development
Prerequisites
Limitations
- →Requires internet access to reach pythonsheets.com
How it compares
Uses battle-tested patterns from a curated source rather than generic documentation.
Compared to similar skills
py side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| py (this skill) | 0 | 3mo | No flags | Intermediate |
| jupyter-notebook | 30 | 6mo | Review | Intermediate |
| unsloth | 15 | 8mo | No flags | Intermediate |
| clojure-write | 16 | 3mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
jupyter-notebook
davila7
Use when the user asks to create, scaffold, or edit Jupyter notebooks (`.ipynb`) for experiments, explorations, or tutorials; prefer the bundled templates and run the helper script `new_notebook.py` to generate a clean starting notebook.
unsloth
zechenzhangAGI
Expert guidance for fast fine-tuning with Unsloth - 2-5x faster training, 50-80% less memory, LoRA/QLoRA optimization
clojure-write
metabase
Guide Clojure and ClojureScript development using REPL-driven workflow, coding conventions, and best practices. Use when writing, developing, or refactoring Clojure/ClojureScript code.
add-uint-support
pytorch
Add unsigned integer (uint) type support to PyTorch operators by updating AT_DISPATCH macros. Use when adding support for uint16, uint32, uint64 types to operators, kernels, or when user mentions enabling unsigned types, barebones unsigned types, or uint support.
python-pro
sickn33
Master Python 3.12+ with modern features, async programming, performance optimization, and production-ready practices. Expert in the latest Python ecosystem including uv, ruff, pydantic, and FastAPI. Use PROACTIVELY for Python development, optimization, or advanced Python patterns.
lecture-transcript-slide-matcher
az9713
Combines YouTube lecture transcripts with PDF slides to create an interactive HTML page. Matches each slide to corresponding transcript segments, organized by key concepts. Use when users want to create synchronized lecture notes from transcript text files and slide PDFs.