← 返回 Skills 市场
crazyguitar

Python Cheat Sheets

作者 CHANG-NING TSAI · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
313
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install pyc
功能描述
Provides functional Python code and detailed answers by fetching and applying proven patterns and examples from pythonsheets.com across core, system, concurr...
使用说明 (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

安全使用建议
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).
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install pyc
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /pyc 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug pyc
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 313 次。

如何安装 Python Cheat Sheets?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install pyc」即可一键安装,无需额外配置。

Python Cheat Sheets 是免费的吗?

是的,Python Cheat Sheets 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Python Cheat Sheets 支持哪些平台?

Python Cheat Sheets 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Python Cheat Sheets?

由 CHANG-NING TSAI(@crazyguitar)开发并维护,当前版本 v1.0.0。

💬 留言讨论