← 返回 Skills 市场
loutai0307-prog

Python Cookbook

作者 loutai0307-prog · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
234
总下载
0
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (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

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

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。

💬 留言讨论