← Back to Skills Marketplace
loutai0307-prog

Python Cookbook

by loutai0307-prog · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
234
Downloads
0
Stars
2
Active Installs
2
Versions
Install in OpenClaw
/install python-cookbook
Description
Python code patterns and recipes for everyday tasks. Use when you need file I/O snippets, list comprehensions, decorators, async functions, regex patterns, d...
README (SKILL.md)

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

Usage Guidance
This skill appears to do what it says: show Python snippets and run/lint/format/debug code. Before using it: (1) Inspect any snippet or file before running it — the 'run' command will execute arbitrary Python, which can read/write files or make network requests. (2) Run untrusted code in a sandbox or container and avoid exposing sensitive files or credentials to it. (3) Only install/enable formatters (black/autopep8) you trust. (4) Note the source/publisher is unknown — exercise normal caution when running code from third parties.
Capability Assessment
Purpose & Capability
The name/description (Python code patterns, snippets, lint/format/run/debug) align with the included script.sh which implements snippet, run, lint, format, and debug commands. No unrelated binaries, credentials, or config paths are requested.
Instruction Scope
The SKILL.md and script clearly instruct the agent to display snippets and to execute Python code (inline or from a file). Executing arbitrary Python code is coherent with a 'cookbook' that offers a 'run' command, but it inherently allows any code the user (or agent) supplies to run, including network access or local file access. This is expected functionality but is a security surface the user should treat as untrusted — the skill does not itself exfiltrate data or contact external endpoints unless the executed snippet does so.
Install Mechanism
No install spec; the skill is instruction-only with a small shipped script.sh. Nothing is downloaded or written to disk during install, and no external package installs are requested by the skill itself.
Credentials
The skill requests no environment variables, credentials, or config paths. The SKILL.md notes optional tools (black or autopep8) and requires bash and python3, which are proportionate to its stated functionality.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system-wide configs, and uses the platform defaults for invocation. Autonomous invocation is allowed by default but is not combined with other high-risk indicators here.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install python-cookbook
  3. After installation, invoke the skill by name or use /python-cookbook
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Fix: align SKILL.md commands with script implementation
v1.0.0
Initial release
Metadata
Slug python-cookbook
Version 1.0.1
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 2
Frequently Asked Questions

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.

💬 Comments