← Back to Skills Marketplace
crazyguitar

Python Cheat Sheets

by CHANG-NING TSAI · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
313
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install pyc
Description
Provides functional Python code and detailed answers by fetching and applying proven patterns and examples from pythonsheets.com across core, system, concurr...
README (SKILL.md)

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

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

Usage Guidance
This skill is coherent with its description: it fetches public examples from pythonsheets.com and uses them to produce Python code. Before installing or using it, consider: (1) it performs outbound fetches to pythonsheets.com on every invocation (so network access must be allowed); (2) it can generate powerful code (network servers, packet sniffers, SSH automation, crypto, low-level extensions, distributed training) — always review and sandbox any generated code before running, and avoid executing as root; (3) the skill has no install and requests no secrets, which reduces risk, but the skill's source/homepage are not provided — if provenance matters, prefer skills with a known author or homepage. If you plan to run code produced by this skill, test in an isolated environment and audit for unsafe patterns (unsanitized inputs, elevated permissions, or calls that interact with production systems).
Capability Analysis
Type: OpenClaw Skill Name: pyc Version: 1.0.0 This skill bundle is a Python programming reference tool designed to fetch code patterns and documentation from pythonsheets.com. It includes comprehensive guidelines in references/guidelines.md that promote secure coding practices, such as using parameterized queries and the secrets module. No indicators of data exfiltration, malicious execution, or harmful prompt injection were found across SKILL.md or the reference files.
Capability Assessment
Purpose & Capability
The name/description (Python cheat sheets, examples, and patterns) match the declared artifacts: a topic→URL map and guidelines pointing at pythonsheets.com. No unrelated env vars, binaries, or installs are requested.
Instruction Scope
The SKILL.md explicitly directs the agent to always fetch the listed pythonsheets.com URLs via WebFetch and to use that content to write code and explanations. That behavior matches the skill's stated purpose. Be aware the skill covers topics (packet sniffing, sockets, SSH, cryptography, distributed training, etc.) that can produce powerful or dangerous code; the instructions do not ask to read local files or to transmit user files to third parties, but generated code must be reviewed before execution.
Install Mechanism
No install spec or code files are present — this is instruction-only and does not write code to disk or download third-party packages during install.
Credentials
The skill requests no environment variables, credentials, or config paths. The declared needs are proportional to an aggregator/reference skill.
Persistence & Privilege
The skill is not always-installed and does not request elevated persistence or modification of other skills or system-wide settings. Autonomous invocation is allowed (platform default) but is not combined with other concerning privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install pyc
  3. After installation, invoke the skill by name or use /pyc
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Major rewrite: transitioned from topic-summary + rule-based quick reference to a focused, example-driven cheat sheet format. - Removed individual topic files (e.g. classes.md, concurrency.md) in favor of a central fetch-based workflow. - Added references/guidelines.md and references/structure.md to standardize fetching real patterns/examples and code quality. - Strong emphasis on fetching from pythonsheets.com for every task to ensure solutions use battle-tested examples and patterns. - Expanded coverage to include databases, security, ML/LLM workflows, and high-performance computing.
Metadata
Slug pyc
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Python Cheat Sheets?

Provides functional Python code and detailed answers by fetching and applying proven patterns and examples from pythonsheets.com across core, system, concurr... It is an AI Agent Skill for Claude Code / OpenClaw, with 313 downloads so far.

How do I install Python Cheat Sheets?

Run "/install pyc" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Python Cheat Sheets free?

Yes, Python Cheat Sheets is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Python Cheat Sheets support?

Python Cheat Sheets is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Python Cheat Sheets?

It is built and maintained by CHANG-NING TSAI (@crazyguitar); the current version is v1.0.0.

💬 Comments