← Back to Skills Marketplace
kaibazax-dev

pyscripts-org

by kaibazax-dev · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
39
Downloads
1
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install pyscripts-org
Description
Skill for agents managing terminal Python scripts, aiming to improve efficiency. Every .py file must have a summary block at the END of the file. Automatical...
README (SKILL.md)

\r \r

pyscripts-org – Organizing & maintaining Python scripts for agents\r

\r

1. Every script MUST have a summary block at the END of the file\r

\r Place it after all the code, as the very last lines of the file. \r Required structure:\r \r

# ===== SUMMARY =====\r
# Brief description of what the script does and when to use it.\r
# Syntax: python script.py \x3Cargs>\r
# ===== END SUMMARY =====\r
```\r
\r
**Reason:** LLMs/agents pay the most attention to the end of the text; placing the summary there ensures the most up-to-date information is captured when generating docs.\r
\r
## 2. Automatic and manual documentation files\r
\r
### 2.1 `pyscripts_docs.md` – generated automatically by `summary.py`\r
\r
This is the index of all scripts, containing a table:\r
\r
| Script | Summary | Syntax |\r
|--------|---------|--------|\r
| … | … | … |\r
\r
The script `summary.py` scans all `.py` files, reads the `# ===== SUMMARY =====` block at the end of each file, extracts the description and syntax, then writes `pyscripts_docs.md`.\r
\r
### 2.2 `pyscripts_pitfall.md` – manually recorded errors\r
\r
Whenever an agent runs a script and encounters an error, it will:\r
1. Read the script’s code to understand the cause.\r
2. Fix the error (if needed).\r
3. Record the error description and resolution into `pyscripts_pitfall.md` using this template:\r
\r
```markdown\r
### Error: [script name] – [short description]\r
- Cause: ...\r
- Fix: ...\r
- Date encountered: ...\r
```\r
\r
This file helps avoid repeating mistakes and speeds up future handling.\r
\r
## 3. Workflow with scripts\r
\r
1. **Want to do something** → open `pyscripts_docs.md`.\r
2. **Look for a suitable script:**\r
   - If it exists → run the script with `python \x3Cscript.py> \x3Cargs>` (or via terminal tool).\r
   - If not → check if a similar script exists, modify it to fit (update its summary), or create a new script with a summary block at the end.\r
3. **Run the script:**\r
   - If successful → done.\r
   - If an error occurs → **read the script's code** to understand the error.\r
4. **After fixing the error** → update the code and summary (if behavior changed).\r
5. **Record in `pyscripts_pitfall.md`** if the error is worth remembering, to prevent it in the future.\r
6. **Run `summary.py`** every time a script is added/modified/deleted to update `pyscripts_docs.md`.\r
\r
## 4. No forced `execute_code` – script files remain primary\r
\r
Even small scripts are saved as standalone `.py` files for easy reuse.  \r
`execute_code` is only used for one-liners or quick checks.\r
\r
## 5. Core scripts\r
\r
| Script | Function |\r
|--------|-----------|\r
| `summary.py` | Scans all `.py` files, extracts end-of-file summaries, generates `pyscripts_docs.md` |\r
\r
Other utility scripts (query, update, fix…) will be listed in `pyscripts_docs.md`.\r
\r
---\r
\r
**Summary of key changes:**\r
- Skill name: **`pyscripts-org`**.\r
- Index: **`pyscripts_docs.md`** (auto-generated).\r
- Added **`pyscripts_pitfall.md`** (manual error log).\r
- Clear workflow: **look up → run → error → read code → record pitfall → update docs**.\r
- Summary block stays at end of file; no periodic cleanup.
Usage Guidance
Install this only where you want the agent to manage local Python script documentation and possibly run or edit existing scripts. Review before allowing it to run unfamiliar scripts, and note that the included helper writes py_docs.md even though the skill text refers to pyscripts_docs.md.
Capability Assessment
Purpose & Capability
The stated purpose is to help agents manage reusable Python scripts, require end-of-file summaries, generate script documentation, and record script errors. The file access and script-running guidance are coherent with that purpose.
Instruction Scope
The trigger is broad for routine Python-script work and tells the agent to run existing scripts when found. That behavior is disclosed and purpose-aligned, but users should expect the skill to affect normal script-writing and script-running workflows.
Install Mechanism
The artifact contains only SKILL.md and one small Python helper script. No package installation, dependency fetch, install hook, or automatic startup mechanism is present.
Credentials
The helper script scans only .py files in the current working directory and writes a documentation file. The skill instructions also allow editing scripts and writing pitfall documentation, which is proportionate for a script-maintenance skill but should be used in repositories where that authority is acceptable.
Persistence & Privilege
No background worker, scheduled task, privilege escalation, credential access, or persistent system-level behavior is present. Persistence is limited to project documentation files and possible script edits initiated through the workflow.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install pyscripts-org
  3. After installation, invoke the skill by name or use /pyscripts-org
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Initial release. - Introduces a standardized workflow and guidelines for organizing Python scripts with required end-of-file summary blocks. - Adds the core script `summary.py` for automatically generating `pyscripts_docs.md` (an index of all scripts). - Establishes manual error logging in `pyscripts_pitfall.md` to record and resolve common script errors. - Recommends always checking documentation before adding new scripts to prevent duplication. - Emphasizes script file reuse and consistent documentation over using one-off code execution.
v1.0.0
Initial release of pyscripts-org skill: - Introduces a workflow for managing and documenting Python terminal scripts with mandatory summary blocks at the end of each file. - Automatically generates pyscripts_docs.md as an index of scripts and their usage. - Adds pyscripts_pitfall.md for manually recording script errors, causes, and fixes. - Provides clear guidelines for script discovery, execution, error handling, and documentation updates. - Emphasizes maintaining standalone .py files and summarizes the role of core scripts.
Metadata
Slug pyscripts-org
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is pyscripts-org?

Skill for agents managing terminal Python scripts, aiming to improve efficiency. Every .py file must have a summary block at the END of the file. Automatical... It is an AI Agent Skill for Claude Code / OpenClaw, with 39 downloads so far.

How do I install pyscripts-org?

Run "/install pyscripts-org" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is pyscripts-org free?

Yes, pyscripts-org is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does pyscripts-org support?

pyscripts-org is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created pyscripts-org?

It is built and maintained by kaibazax-dev (@kaibazax-dev); the current version is v1.0.1.

💬 Comments