← 返回 Skills 市场
drumrobot

TDD Workflow

作者 es6kr · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
183
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install tdd
功能描述
Test-Driven Development for coding and bug fixing. cycle - Red→Green→Refactor cycle, defining expected behavior, bug-fix TDD, anti-patterns [cycle.md], run -...
使用说明 (SKILL.md)

TDD (Test-Driven Development)

Test-Driven Development: define expected behavior first, then make it pass with implementation.

Topics

Topic Description Guide
cycle Red→Green→Refactor cycle, bug-fix TDD, anti-patterns cycle.md
run Test execution workflow (environment detection→impact scope→execution→result reporting) run.md
test-strategies Boundary value·equivalence partitioning·decision table·error guessing·path coverage test-strategies.md

Quick Reference

TDD Cycle

Define expected behavior → natural failure → implement → pass → refactor. See cycle.md.

Test Execution

Environment detection → impact scope → execution (unit→integration→e2e) → result reporting. See run.md.

Test Design Techniques

Decide which test cases to write (boundary value, equivalence partitioning, etc.). See test-strategies.md.

安全使用建议
This skill is a documentation-only TDD workflow and appears internally consistent. Before installing: (1) review the 'skill-toolkit' dependency—it may grant additional capabilities; (2) be aware that following the run instructions will read your repo files and may run test commands that execute code in that repository—do this only on trusted code or in an isolated environment; (3) the skill does not request secrets, but if you let an agent run tests in a repo that uses CI credentials or local service credentials, ensure those secrets are not exposed; (4) if you want to prevent automatic execution, disable autonomous invocation for the agent or require manual approval before running tests.
功能分析
Type: OpenClaw Skill Name: tdd Version: 0.1.0 The 'tdd' skill bundle provides a comprehensive and standard set of instructions for an AI agent to perform Test-Driven Development. It includes workflows for environment detection, impact analysis using 'git diff', and test execution using common frameworks like Vitest and Pytest. The instructions emphasize best practices such as avoiding hardcoded paths, protecting personal data, and ensuring tests are platform-agnostic, with no evidence of malicious intent or unauthorized data access.
能力评估
Purpose & Capability
Name/description, included documents (cycle.md, run.md, test-strategies.md), and declared dependencies align with a TDD guidance skill. It requests no env vars, binaries, or config paths. The only external declaration is depends-on: [skill-toolkit], which is plausible (tooling helpers) but should be reviewed separately.
Instruction Scope
SKILL.md and the included docs instruct the agent to read project files (package.json, pyproject.toml, .github/workflows), run shell commands (ls, grep, git diff, pnpm/test commands), and execute tests. Those steps are expected for a test-run workflow, but running a project's test suite can execute arbitrary code in that repository—so the instructions are coherent but carry the usual operational risk of executing untrusted test code.
Install Mechanism
No install spec and no code files beyond markdown; instruction-only skills do not place binaries on disk. This minimizes install-time risk.
Credentials
No environment variables, credentials, or sensitive config paths are requested. The guidance does mention checking for external services (DB, SSO, Redis) as part of environment detection, which is appropriate for determining test prerequisites but does not itself request secrets.
Persistence & Privilege
always is false and there is no indication the skill modifies other skills or system-wide settings. The skill can be invoked autonomously by the agent (platform default); this is normal but worth noting if you want to restrict autonomous test runs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install tdd
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /tdd 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release: Red-Green-Refactor cycle, test runner, test design strategies
元数据
Slug tdd
版本 0.1.0
许可证 MIT-0
累计安装 3
当前安装数 3
历史版本数 1
常见问题

TDD Workflow 是什么?

Test-Driven Development for coding and bug fixing. cycle - Red→Green→Refactor cycle, defining expected behavior, bug-fix TDD, anti-patterns [cycle.md], run -... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 183 次。

如何安装 TDD Workflow?

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

TDD Workflow 是免费的吗?

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

TDD Workflow 支持哪些平台?

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

谁开发了 TDD Workflow?

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

💬 留言讨论