pyscripts-org for Openclaw

An automation skill for AI agents to organize, execute, document, and troubleshoot terminal-based Python scripts using standardized end-of-file metadata.

kaibazax-dev
v1.0.1
Jun 9, 2026
1
546
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install pyscripts-org

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install pyscripts-org using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is pyscripts-org?

pyscripts-org is a robust framework designed for AI coding agents to manage, run, and document terminal Python scripts dynamically. By maintaining structured summary blocks directly at the end of each script, AI agents can rapidly index and discover existing tools. This prevents the redundant creation of code and establishes a highly organized local environment.

Integrating this skill with your agent via Openclaw Skills ensures seamless workflow automation. The agent continuously learns from runtime errors by maintaining a centralized pitfall log, significantly improving self-healing capabilities and script reliability over time.

pyscripts-org Use Cases

  • When an AI agent needs to write, run, or modify a Python utility script.
  • When preventing duplicate scripts is necessary by first checking a central index.
  • When documenting and indexing localized python automation tools automatically.
  • When debugging script execution failures and ensuring the agent records the solution to prevent future errors.

How pyscripts-org Works

  1. Check Index: The agent reads the local pyscripts_docs.md index file to find an existing script matching the requested functionality.
  2. Execute or Create: If a script exists, the agent runs it. If not, the agent creates a new script and places a mandatory summary block at the absolute end of the file.
  3. Handle Failures: If execution fails, the agent reads the code, fixes the bug, and logs the root cause in pyscripts_pitfall.md.
  4. Update Documentation: The agent runs summary.py to parse all scripts, extract their summaries, and automatically rebuild the pyscripts_docs.md documentation table.

pyscripts-org Setup

To install and configure the pyscripts-org skill from the repository of Openclaw Skills, follow these quick steps:

  1. Save the primary summary.py script to your workspace root directory.
  2. Ensure your AI agent has read/write permissions for the workspace.
  3. Verify your Python environment is set up by running the tool directly:
python summary.py
  1. Instruct your agent to strictly adhere to the workflow of checking pyscripts_docs.md before writing new Python code.

pyscripts-org Data Schema & Taxonomy

Script Summary Block Format

Every Python file must conclude with the following block at the very end of the file:

# ===== SUMMARY =====
# Brief description of what the script does and when to use it.
# Syntax: python script.py <args>
# ===== END SUMMARY =====

Document Index Schema (pyscripts_docs.md)

Column Description
Script The relative path to the Python script file.
Summary Extracted explanation of functionality.
Syntax The correct CLI invocation string.

Pitfall Log Schema (pyscripts_pitfall.md)

### Error: [script name] - [short description]
- Cause: [Reason for the failure]
- Fix: [Action taken to resolve the issue]
- Date encountered: [YYYY-MM-DD]

pyscripts-org Advanced Features

  • Automated Self-Documentation: Running summary.py dynamically parses all files and automatically maintains pyscripts_docs.md with zero manual overhead.
  • Error Pitfall Ledger: The manual error recording in pyscripts_pitfall.md empowers the agent with long-term memory to prevent repeating coding errors.
  • Stand-alone Executables: Unlike fleeting code executions, this skill keeps scripts clean, modular, and permanently reusable as CLI tools within the Openclaw Skills suite.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*