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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install python-cookbook - After installation, invoke the skill by name or use
/python-cookbook - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 234 downloads so far.
How do I install Python Cookbook?
Run "/install python-cookbook" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Python Cookbook free?
Yes, Python Cookbook is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Python Cookbook support?
Python Cookbook is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Python Cookbook?
It is built and maintained by loutai0307-prog (@loutai0307-prog); the current version is v1.0.1.