← 返回 Skills 市场
michealxie001

OpenClaw TDD Assistant

作者 michealxie001 · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
84
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install oc-tdd
功能描述
Test-Driven Development assistant. Generates test cases from code or specifications, runs tests, tracks coverage, and guides the red-green-refactor cycle. Su...
安全使用建议
This skill is largely coherent with a local TDD assistant, but take these precautions before installing or running it: 1) Run the scripts in an isolated environment (temporary VM, container, or a sandboxed workspace) because executing tests will import and run your project code and could execute arbitrary code. 2) Be aware the tool writes coverage and pytest JSON to /tmp — in multi-user or CI runners this can cause conflicts or expose data; consider editing the scripts to use per-run temp files or a local directory. 3) The documentation claims JavaScript/Go support but the provided code implements Python (and only conditional C support) — don't expect Jest/go test functionality from this package as-is. 4) The generated tests import modules with 'from <module> import *' which can trigger module-level side effects; review generated tests before running. 5) Ensure required tools (pytest, coverage, optional C support libraries) are installed in your environment. If you need higher assurance, review the scripts locally or run them on a disposable container/CI runner first.
功能分析
Type: OpenClaw Skill Name: oc-tdd Version: 1.1.0 The bundle provides TDD utilities for test generation and execution, but contains several high-risk patterns and vulnerabilities. Specifically, scripts/coverage.py and scripts/runner.py use hardcoded, predictable temporary file paths in /tmp (e.g., /tmp/coverage.json and /tmp/pytest_report.json), which are vulnerable to symlink attacks on multi-user systems. Additionally, the tool executes subprocesses using user-provided targets and dynamically modifies the Python path to load external 'c-support' libraries, which increases the attack surface for local privilege escalation or code injection.
能力评估
Purpose & Capability
Overall the name/description (TDD assistant: generate tests, run tests, track coverage) matches the included scripts which implement generation, running, and coverage for Python and optional C support. However the SKILL.md repeatedly claims support for Jest and go test (JavaScript/Go) while the included code implements Python first-class and only conditional C/Unity support; JavaScript and Go frameworks are not implemented in these scripts. This is a capability mismatch (misleading documentation) but not evidence of malicious behavior.
Instruction Scope
Instructions tell the agent to run the included Python scripts to generate/run tests and produce coverage. That's expected for a TDD tool. Important behavioral notes: running tests will import and execute the project's code (normal for test runners) so arbitrary project code will run; the generator creates tests that import modules using 'from <module> import *' which can trigger module-level side effects. The scripts also read/write standard project files and write reports to /tmp (e.g., /tmp/coverage.json, /tmp/pytest_report.json) — this uses shared temporary locations and could cause race/contamination in multi-tenant environments.
Install Mechanism
There is no remote install or download step; the skill is instruction-only with included scripts. No external URLs, package installs, or archive extraction occur as part of the skill. This is low install risk. The scripts do rely on pytest (and optional C support libraries) being available on the system.
Credentials
The skill declares no required environment variables, credentials, or config paths and the code does not request secrets. It operates on workspace files and uses standard temp paths. This is proportionate to a TDD utility. Note: it writes to /tmp and will read project files — expected behavior but worth noting.
Persistence & Privilege
always is false and the skill doesn't request persistent system-wide privileges, nor does it modify other skills or system config. It only reads/writes files within the project and temp directories.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install oc-tdd
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /oc-tdd 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Added C/C++ Unity test framework support with CMake integration
元数据
Slug oc-tdd
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

OpenClaw TDD Assistant 是什么?

Test-Driven Development assistant. Generates test cases from code or specifications, runs tests, tracks coverage, and guides the red-green-refactor cycle. Su... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 84 次。

如何安装 OpenClaw TDD Assistant?

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

OpenClaw TDD Assistant 是免费的吗?

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

OpenClaw TDD Assistant 支持哪些平台?

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

谁开发了 OpenClaw TDD Assistant?

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

💬 留言讨论