← 返回 Skills 市场
cerbug45

Tdd Helper

作者 cerbug45 · GitHub ↗ · v0.1.0
cross-platform ⚠ suspicious
925
总下载
0
收藏
4
当前安装
1
版本数
在 OpenClaw 中安装
/install agents-skill-tdd-helper
功能描述
Lightweight helper to enforce TDD-style loops for non-deterministic agents.
使用说明 (SKILL.md)

tdd-helper

Lightweight helper to enforce TDD-style loops for non-deterministic agents.

Features

  • tdd.py wraps a task: fails if tests are absent or failing, refuses to run "prod" code first.
  • Watches for lint/warnings (optional) and blocks on warnings-as-errors.
  • Simple config via env or JSON.

Usage

# Define tests in tests/ or specify via --tests
python tdd.py --tests tests/ --run "python your_script.py"
安全使用建议
This skill is internally consistent with its purpose, but note that tdd.py will execute whatever shell commands it is given (tests, linter, and the --run command) using shell=True. Before installing or enabling autonomous invocation: (1) ensure pytest and any linters are trusted and present, (2) avoid passing untrusted inputs into --run/TEST_CMD/LINT_CMD to prevent command injection, (3) consider restricting which commands an agent may ask this skill to run or use sandboxing (containers, timeouts) when running untrusted code, and (4) be aware optional env vars (WARN_AS_ERROR, TEST_CMD, LINT_CMD) control behavior though they're not declared in the metadata.
功能分析
Type: OpenClaw Skill Name: agents-skill-tdd-helper Version: 0.1.0 The `tdd.py` script contains multiple critical shell injection vulnerabilities. It uses `subprocess.run(..., shell=True)` to execute user-controlled input from command-line arguments (`--run`, `--tests`) and environment variables (`TEST_CMD`, `LINT_CMD`). This allows for arbitrary command execution on the host system, posing a significant Remote Code Execution (RCE) risk. While this is a severe vulnerability, there is no evidence of intentional malicious behavior (e.g., data exfiltration, backdoor installation) within the script itself, aligning it with a 'suspicious' classification rather than 'malicious'.
能力评估
Purpose & Capability
Name/description (TDD helper) align with the included tdd.py, README, and SKILL.md. Required binaries (python3, pytest) are appropriate for running tests and the script; no unrelated credentials or system paths are requested.
Instruction Scope
SKILL.md and tdd.py stay within the stated purpose (run tests, optionally lint, then run a target command). However, the script executes TEST_CMD, LINT_CMD and the provided --run command with shell=True, which will run arbitrary shell commands — expected for a wrapper but important to note because it executes whatever command the agent or user supplies.
Install Mechanism
No install spec; this is instruction-only with a small included script. Nothing is downloaded or written to disk by an installer step.
Credentials
The skill requests no credentials and only optionally reads TEST_CMD, WARN_AS_ERROR, and LINT_CMD. Those env vars are reasonable for configurability, though they are not listed under requires.env in metadata (minor omission). No secrets are requested.
Persistence & Privilege
always is false and the skill does not request persistent/privileged presence or modify other skills. It can be invoked autonomously (platform default), which is expected for a developer helper but increases the risk if used by an agent without guardrails.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agents-skill-tdd-helper
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agents-skill-tdd-helper 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of tdd-helper. - Enforces TDD workflow for non-deterministic agents by requiring passing tests before running production code. - Blocks execution if tests are missing or fail. - Optional lint and warnings-as-errors checks. - Simple configuration via environment variables or JSON.
元数据
Slug agents-skill-tdd-helper
版本 0.1.0
许可证
累计安装 5
当前安装数 4
历史版本数 1
常见问题

Tdd Helper 是什么?

Lightweight helper to enforce TDD-style loops for non-deterministic agents. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 925 次。

如何安装 Tdd Helper?

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

Tdd Helper 是免费的吗?

是的,Tdd Helper 完全免费(开源免费),可自由下载、安装和使用。

Tdd Helper 支持哪些平台?

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

谁开发了 Tdd Helper?

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

💬 留言讨论