← 返回
未分类 中文

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...
用于代理管理终端Python脚本的技能,旨在提升效率。每个.py文件必须在文件末尾包含摘要块。自动...
kaibazax-dev kaibazax-dev 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 1
Stars
📥 53
下载
💾 0
安装
1
版本
#latest

概述

pyscripts-org – Organizing & maintaining Python scripts for agents

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

Place it after all the code, as the very last lines of the file.

Required structure:

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

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.

2. Automatic and manual documentation files

2.1 pyscripts_docs.md – generated automatically by summary.py

This is the index of all scripts, containing a table:

| Script | Summary | Syntax |

|--------|---------|--------|

| … | … | … |

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.

2.2 pyscripts_pitfall.md – manually recorded errors

Whenever an agent runs a script and encounters an error, it will:

  1. Read the script’s code to understand the cause.
  2. Fix the error (if needed).
  3. Record the error description and resolution into pyscripts_pitfall.md using this template:
### Error: [script name] – [short description]
- Cause: ...
- Fix: ...
- Date encountered: ...

This file helps avoid repeating mistakes and speeds up future handling.

3. Workflow with scripts

  1. Want to do something → open pyscripts_docs.md.
  2. Look for a suitable script:
    • If it exists → run the script with python (or via terminal tool).
    • 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.
  3. Run the script:
    • If successful → done.
    • If an error occurs → read the script's code to understand the error.
  4. After fixing the error → update the code and summary (if behavior changed).
  5. Record in pyscripts_pitfall.md if the error is worth remembering, to prevent it in the future.
  6. Run summary.py every time a script is added/modified/deleted to update pyscripts_docs.md.

4. No forced execute_code – script files remain primary

Even small scripts are saved as standalone .py files for easy reuse.

execute_code is only used for one-liners or quick checks.

5. Core scripts

| Script | Function |

|--------|-----------|

| summary.py | Scans all .py files, extracts end-of-file summaries, generates pyscripts_docs.md |

Other utility scripts (query, update, fix…) will be listed in pyscripts_docs.md.


Summary of key changes:

  • Skill name: pyscripts-org.
  • Index: pyscripts_docs.md (auto-generated).
  • Added pyscripts_pitfall.md (manual error log).
  • Clear workflow: look up → run → error → read code → record pitfall → update docs.
  • Summary block stays at end of file; no periodic cleanup.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-06-09 19:43

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

content-creation

World Building

kaibazax-dev
为越南文本故事生成并更新详细的结构化世界观手册,维护交叉引用与开放谜题的设定。
★ 0 📥 210
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 198 📥 68,231
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,118