OpenLum.Core/Skills/python/SKILL.md
在缺少专用工具时,优先使用本地 Python 脚本完成复杂任务。临时脚本统一放在工作区 script 目录下的独立子文件夹中。
npx skillsauth add ldotjdot/openlum pythonInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
当没有更合适的专用工具(如特定 API、数据库工具等)时,可以用 Python 脚本 在本地完成复杂的数据处理、格式转换、批量生成等任务。
与 coding 一致:识别分析问题 → 规划路径 → 编写执行 → 检查验证。
script/任务名/、需要哪些文件/参数、是否要虚拟环境或依赖。main.py;保持结构清晰、可读。scriptscript 下新建一个 独立子文件夹,用有意义的名称(如时间戳或任务名),例如:
script/20260305-data-clean/script/json-to-csv-converter/python .\script\子文件夹\main.pypython .\script\子文件夹\main.py --input data.json --output result.csvpython -m venv .venv.\.venv\Scripts\Activate.ps1pip install requests pandas注意:命令在 PowerShell 中执行,含空格路径时要用引号,例如:
python ".\script\my-task\main.py"。
script 下为当前任务新建目录,例如 script/20260305-clean-logs/。main.py 及必要的辅助模块。python .\script\20260305-clean-logs\main.py --input ".\logs\raw.log" --output ".\logs\clean.log"development
浏览网页。与 read skill 风格一致:直接 exec 调用 exe,传参执行,stdout 为结果。
tools
用于在 C# / .NET 项目中进行规划、实现、重构和调试。优先使用 dotnet CLI 完成项目管理与编译,结合 Grep / Glob / 子代理 / 网络搜索进行代码定位与 Debug。禁止执行 dotnet run / dotnet test,编译通过即视为任务完成。
development
Local coding workflow: read/write/list_dir/exec,加上 Grep + Glob 的纯文本搜索。Use when: editing code, building, refactoring, or exploring a codebase. Success = compile passes; user runs the program.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.