← 返回 Skills 市场
pyscripts-org
作者
kaibazax-dev
· GitHub ↗
· v1.0.1
· MIT-0
39
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (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.
安全使用建议
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install pyscripts-org - 安装完成后,直接呼叫该 Skill 的名称或使用
/pyscripts-org触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 39 次。
如何安装 pyscripts-org?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install pyscripts-org」即可一键安装,无需额外配置。
pyscripts-org 是免费的吗?
是的,pyscripts-org 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
pyscripts-org 支持哪些平台?
pyscripts-org 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 pyscripts-org?
由 kaibazax-dev(@kaibazax-dev)开发并维护,当前版本 v1.0.1。
推荐 Skills