Python Cookbook
/install python-cookbook
python-cookbook
Triggers on
python snippet, python code pattern, file io python, list comprehension, decorator, async python, python regex, debug python, lint python, format python
What This Skill Does
Search and display common Python code recipes, run code snippets, check syntax, auto-format files, and look up solutions for common Python errors.
Commands
snippet
Search or browse built-in code snippets (file-read, file-write, json, list, dict, decorator, async, regex, date, and more).
bash scripts/script.sh snippet [keyword]
bash scripts/script.sh snippet decorator
run
Execute a Python code snippet inline or from a file.
bash scripts/script.sh run 'print("hello world")'
bash scripts/script.sh run @script.py
lint
Check Python file syntax using py_compile.
bash scripts/script.sh lint \x3Cfile.py>
format
Auto-format a Python file using black (falls back to autopep8).
bash scripts/script.sh format \x3Cfile.py>
debug
Show solutions for common Python errors (NameError, TypeError, IndexError, etc.).
bash scripts/script.sh debug [ErrorName]
bash scripts/script.sh debug TypeError
help
Show all available commands.
bash scripts/script.sh help
Requirements
- bash 4+
- python3 (standard library)
- black or autopep8 (optional, for format command)
Powered by BytesAgain | bytesagain.com
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install python-cookbook - 安装完成后,直接呼叫该 Skill 的名称或使用
/python-cookbook触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Python Cookbook 是什么?
Python code patterns and recipes for everyday tasks. Use when you need file I/O snippets, list comprehensions, decorators, async functions, regex patterns, d... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 234 次。
如何安装 Python Cookbook?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install python-cookbook」即可一键安装,无需额外配置。
Python Cookbook 是免费的吗?
是的,Python Cookbook 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Python Cookbook 支持哪些平台?
Python Cookbook 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Python Cookbook?
由 loutai0307-prog(@loutai0307-prog)开发并维护,当前版本 v1.0.1。