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: Python Cookbook Owner: loutai0307-prog Summary: Python code patterns and recipes for everyday tasks. Use when you need file I/O snippets, list comprehensions, decorators, async functions, regex patterns, d... Tags: latest:1.0.1 Version history: v1.0.1 | 2026-04-17T06:26:49.939Z | user Fix: align SKILL.md commands with script implementation v1.0.0 | 2026-04-17T06:13:00.533Z | user Initial release Archive index:
Rank
62
Safety
84
Downloads
1.3k
Updated
Oct 10, 2026
Version
1.0.1
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 10, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 10, 2026
- Adoption signal
- 1.3K downloadsadoption · observed Oct 10, 2026
- Latest release
- 1.0.1release · observed Apr 17, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s178me4n5rr0ch93xv584tjyv183s7r1:python-cookbook- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-loutai0307-prog-python-cookbook/snapshot"
Documentation
CLAWHUB
6,315 characters of source documentation, loaded on request.
Extracted files
3 files captured from the source.
SKILL.md
---
name: "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, datetime handling, or need to lint and format Python files."
---
# 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
bash scripts/script.sh snippet [keyword]
bash scripts/script.sh snippet decorator
```
### run
Execute a Python code snippet inline or from a file.
```bash
bash scripts/script.sh run 'print("hello world")'
bash scripts/script.sh run @script.py
```
### lint
Check Python file syntax using py_compile.
```bash
bash scripts/script.sh lint <file.py>
```
### format
Auto-format a Python file using black (falls back to autopep8).
```bash
bash scripts/script.sh format <file.py>
```
### debug
Show solutions for common Python errors (NameError, TypeError, IndexError, etc.).
```bash
bash scripts/script.sh debug [ErrorName]
bash scripts/script.sh debug TypeError
```
### help
Show all available commands.
```bash
bash scripts/script.sh help
```
## Requirements
- bash 4+
- python3 (standard library)
- black or autopep8 (optional, for format command)
Powered by BytesAgain | bytesagain.com_meta.json
{
"ownerId": "kn73mq8fmvt64rz26m55z10wb982krr4",
"slug": "python-cookbook",
"version": "1.0.1",
"publishedAt": 1776407209939
}skill-card.md
## Description: Python code patterns and recipes for everyday tasks. Use when you need file I/O snippets, list comprehensions, decorators, async functions, regex patterns, datetime handling, or need to lint and format Python files. This skill is ready for commercial/non-commercial use. ## Publisher: [loutai0307-prog](https://clawhub.ai/user/loutai0307-prog) ### License/Terms of Use: MIT-0 ## Use Case: Developers and engineers use this skill to retrieve common Python recipes, run trusted Python snippets, check syntax, format Python files, and get guidance for common Python errors. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: The run command can execute arbitrary local Python code. Mitigation: Use run only with trusted snippets or files, preferably in an isolated workspace. Risk: The format command can rewrite Python files. Mitigation: Use version control or backups before formatting files. Risk: The security review flags this release as suspicious because clear safety controls are not described. Mitigation: Review the skill behavior and security guidance before installation or deployment. ## Reference(s): - [Python Cookbook skill page](https://clawhub.ai/loutai0307-prog/skills/python-cookbook) - [Publisher profile](https://clawhub.ai/user/loutai0307-prog) ## Skill Output: **Output Type(s):** [text, markdown, code, shell commands, configuration, guidance] **Output Format:** [Markdown text with Python code snippets and shell command examples] **Output Parameters:** [1D] **Other Properties Related to Output:** [May execute trusted Python code and may modify Python files when formatting is requested.] ## Skill Version(s): 1.0.1 (source: server release metadata) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/loutai0307-prog/skills/python-cookbook",
"sourceUrl": "https://clawhub.ai/loutai0307-prog/skills/python-cookbook",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T20:44:07.798Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-loutai0307-prog-python-cookbook/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-loutai0307-prog-python-cookbook/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-10T20:44:07.798Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.3K downloads",
"href": "https://clawhub.ai/loutai0307-prog/python-cookbook",
"sourceUrl": "https://clawhub.ai/loutai0307-prog/python-cookbook",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T20:44:07.798Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.1",
"href": "https://clawhub.ai/loutai0307-prog/python-cookbook",
"sourceUrl": "https://clawhub.ai/loutai0307-prog/python-cookbook",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-17T06:26:49.939Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-loutai0307-prog-python-cookbook/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-loutai0307-prog-python-cookbook/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.1",
"description": "Fix: align SKILL.md commands with script implementation",
"href": "https://clawhub.ai/loutai0307-prog/python-cookbook",
"sourceUrl": "https://clawhub.ai/loutai0307-prog/python-cookbook",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-17T06:26:49.939Z",
"isPublic": true
}
]
}Record generated Oct 10, 2026.
