← 返回 Skills 市场
zhouhh2017

Python Code Tester

作者 zhouhh2017 · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ⚠ suspicious
1142
总下载
0
收藏
4
当前安装
4
版本数
在 OpenClaw 中安装
/install python-code-test
功能描述
代码功能测试skill,根据用户需求搜索代码、生成测试用例、执行测试并修复问题
安全使用建议
This skill appears internally consistent with its purpose, but it will: (1) install Python packages via pip, (2) write test data to references/, create logs under scripts/log/, and create release copies and overwrite project files with fixes. Before running, review scripts/main.py and run.sh, back up your repository, and consider executing the skill in an isolated environment (container or VM). Inspect generated tests and any proposed code changes before merging them into your main codebase. If you do not want automatic code modification, run the tool in a dry-run mode or remove/guard the sync/overwrite step.
功能分析
Type: OpenClaw Skill Name: python-code-test Version: 1.0.3 The skill is designed to search, generate, execute, and 'fix' project code, which involves high-risk operations like executing dynamically generated Python scripts via subprocess (main.py) and overwriting original source files (update_project_code). While these capabilities are aligned with the stated purpose of a code testing assistant, the combination of arbitrary code execution and file system modification poses a significant risk of accidental or exploited RCE, though no clear evidence of intentional malice or data exfiltration was found.
能力评估
Purpose & Capability
The skill name/description (Python code testing) matches the included files and behavior: scripts/main.py implements project search, test-case generation, test execution and repair workflows; run.sh and requirements.txt support running tests. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md and the code instruct the agent to search the project source, create test data under references/, write test scripts under scripts/, save logs to scripts/log/, and update project files with fixes (scripts/release/v{n}/ then sync into project). This is in-scope for a testing/fixing tool but it grants the skill broad filesystem write and code-modification authority. The instructions also allow fetching external datasets when needed.
Install Mechanism
There is no platform install spec (instruction-only), but run.sh will pip install packages from requirements.txt (pytest, numpy, pandas). Installing PyPI deps is expected for this task but is an action the user should review before running. No downloads from unknown URLs or archive extraction were observed.
Credentials
The skill does not declare or require environment variables, credentials, or config paths. Its filesystem and network needs (writing references/logs, optionally downloading datasets) are proportional to the stated purpose. No secrets or unrelated external service tokens are requested.
Persistence & Privilege
always:false and normal model invocation are set. The skill will create directories and modify project files (release copies and then sync fixes into the project), which is expected for an auto-fixing tester but is a privileged action — it can alter your codebase when run.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install python-code-test
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /python-code-test 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Removed 4 files: references/doc.md, references/test_data_cluster.csv, scripts/log/test_log_v4_20260308_114025.json, and scripts/release/v4/test_cluster_analysis.py - Cleaned up references and release directories by deleting unused data, documentation, logs, and test scripts.
v1.0.2
- Added new test data and log files to support enhanced cluster analysis testing. - Introduced a new test script for cluster analysis in the latest release directory. - Removed outdated test scripts and cluster analysis scripts from previous versions.
v1.0.1
- No changes detected in this version. - SKILL.md content remains identical to the previous release.
v1.0.0
Initial release of the python-code-test skill. - Enables code functionality testing based on user requirements. - Automates code search, test case generation with ground truth, and test execution. - Saves and reuses testing data under a references/ directory. - Handles test failures by analyzing, attempting code fixes, and versioning fixed code. - Records all test results and errors to scripts/log/. - Ensures test cases include correctness validation, not just execution.
元数据
Slug python-code-test
版本 1.0.3
许可证 MIT-0
累计安装 4
当前安装数 4
历史版本数 4
常见问题

Python Code Tester 是什么?

代码功能测试skill,根据用户需求搜索代码、生成测试用例、执行测试并修复问题. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1142 次。

如何安装 Python Code Tester?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install python-code-test」即可一键安装,无需额外配置。

Python Code Tester 是免费的吗?

是的,Python Code Tester 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Python Code Tester 支持哪些平台?

Python Code Tester 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Python Code Tester?

由 zhouhh2017(@zhouhh2017)开发并维护,当前版本 v1.0.3。

💬 留言讨论