首页龙虾技能列表 › Python Cheat Sheets — 技能工具

Python Cheat Sheets — 技能工具

v1.0.0

[自动翻译] Provides functional Python code and detailed answers by fetching and applying proven patterns and examples from pythonsheets.com across core, system, ...

1· 222·0 当前·0 累计
by @crazyguitar (CHANG-NING TSAI)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/16
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The skill's requirements and instructions are internally consistent: it's an instruction-only cheat-sheet aggregator that fetches examples from pythonsheets.com and uses them to produce Python code and explanations.
评估建议
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 executi...
详细分析 ▾
用途与能力
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.
指令范围
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.
安装机制
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.
凭证需求
The skill requests no environment variables, credentials, or config paths. The declared needs are proportional to an aggregator/reference skill.
持久化与权限
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.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/3/16

- 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.

● 无害

安装命令 点击复制

官方npx clawhub@latest install pyc
镜像加速npx clawhub@latest install pyc --registry https://cn.clawhub-mirror.com

技能文档

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

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

  • "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
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务