Token导航 LogoToken导航

Agent Skill · 前端设计

tdd-workflow(TDD 工作流程)

tdd-workflow 用于辅助测试设计、自动化测试和回归验证,适合在 Local Agent 中需要补充测试、分析失败日志或验证功能改动时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

tdd-workflow 是前端设计类 Agent Skill,可用宿主为 Local Agent,通过unknown获取,权限为执行命令;许可证信息还不明确,暂无第三方扫描结果,按安装量在前端设计类的 10,216 个 Skill 里排第 3,594。

总安装 1,236周安装 52下载 433核验 2026-05-01
前端设计执行命令unknown未标认证来源可访问许可证需确认审计未展示Local Agent

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tdd-workflow(TDD 工作流程)
来源仓库:https://smithery.ai
仓库路径:tdd-workflow
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

tdd-workflow 用于辅助测试设计、自动化测试和回归验证,适合在 Local Agent 中补充测试流程时使用。支持测试计划制定、用例整理与失败场景复现分析。可与前端项目结合,提供组件级测试策略建议。使用前需明确测试框架类型与执行环境,防止因模拟测试导致逻辑失真。具体集成方式请参考原始仓库文档。

来源仓库内路径:tdd-workflow

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Local Agent;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    没有现成安装命令,按unknown的说明从来源页面获取,仓库路径是 tdd-workflow。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

tdd-workflow 怎么安装?

公开资料没有给出可以直接复制的命令,需要按来源页面说明手动安装,仓库内路径为 tdd-workflow。

tdd-workflow 支持哪些 AI 工具?

公开资料标注支持 Local Agent。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

tdd-workflow 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 第三方 CLI 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

tdd-workflow 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

tdd-workflow 用的人多吗?

公开数据是累计安装 1,236 次,近一周安装 52 次,下载 433 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

tdd-workflow 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 Local Agent 一种宿主,触发方式和使用习惯不用来回切换。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Local Agent,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 要求有安全扫描结论才肯安装的团队。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
tdd-workflow

TDD 工作流程 · 本页

1,236—执行命令未明确未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Test-Driven Development Workflow

Follow this mandatory workflow when writing tests and implementing features.

Scope — When to Apply This Skill

Apply this workflow to changes whose behavior is meaningfully testable. The core-philosophy rule already says "not every change requires tests"; this section makes that boundary concrete.

In scope (TDD applies):

  • Production code that implements decisions, transformations, or state changes (parsers, business rules, API handlers, reducers, algorithms)
  • Bug fixes for behavior that can be reproduced as a test case
  • Refactors of code already covered by tests — tests guard the refactor

Out of scope (TDD does not apply, though basic verification is still expected):

  • Shell aliases, environment exports, or other dotfile edits whose "behavior" is just being present in a config file
  • Pure documentation changes, comments, formatting
  • Trivial wiring such as adding a constant export, registering a pre-existing component, or renaming a symbol the type system already validates
  • Editor / tool / CI configuration where the round-trip cost of a test exceeds its value (verify by running the tool itself instead)

When in doubt, ask: *"Could a future regression here go unnoticed without a test?"* If yes, this skill applies.

The TDD Cycle

1. RED - Write a Failing Test First

  • Write a test that describes the expected behavior
  • Run the test - it MUST fail
  • If it passes, the test is not testing new functionality

2. GREEN - Write Minimal Implementation

  • Write the simplest code that makes the test pass
  • Do not add extra functionality
  • Run the test - it MUST pass now

3. IMPROVE - Refactor

  • Clean up the code while keeping tests green
  • Remove duplication
  • Improve naming and structure
  • Review tests for scaffolding remnants -- Remove or consolidate tests that were written solely to drive the RED phase and are now redundant. Examples of scaffolding tests to remove:

- Tests that only verify a function/class/module exists - Tests that only assert a dependency is or isn't called, when the same behavior is already covered by a higher-value test - Tests that became duplicates of other tests after refactoring The code-review skill flags leftover scaffolding as Warnings.

  • Run tests after each refactor to ensure they still pass

4. LINT - Run Linters

  • Identify the linters configured in the project (e.g., config files, CI workflows, package.json scripts, Makefile targets)
  • Run all applicable linters and fix any violations before committing
  • If a fix changes behavior, re-run the full test suite and return to the RED/GREEN cycle to update or add tests as needed

When to Use Mocks/Stubs

Mocks and stubs should be avoided when possible, but use them when:

  • The test target requires external access (REST API calls, database, third-party services)
  • The test target requires I/O that produces non-deterministic output (timestamps, random values)
  • The dependency is slow or expensive to set up

Best Practices

  1. One behavior per test — Each test should verify one specific behavior. Multiple assertions are fine when they all describe the same behavior (e.g., asserting both the returned status code and the response body of a single request); avoid bundling unrelated behaviors into one test.
  2. Descriptive test names - Test names should describe what is being tested and expected outcome
  3. Arrange-Act-Assert - Structure tests with clear setup, action, and verification phases
  4. Test edge cases - Include tests for boundary conditions, empty inputs, and error scenarios
  5. Keep tests fast - Unit tests should run in milliseconds

Example Workflow

1. Define the interface/contract first
2. Write test: "should return empty array when no items exist"
3. Run test -> FAIL (function doesn't exist)
4. Implement: return []
5. Run test -> PASS
6. Write test: "should return all items when items exist"
7. Run test -> FAIL
8. Implement: add logic to return items
9. Run test -> PASS
10. Refactor if needed; review and remove scaffolding tests that are now redundant
11. Run project linters -> fix violations
12. Run tests -> PASS (confirm lint fixes didn't break anything)

Coverage Target

Coverage targets are project policy first. If the project defines a target (in CONTRIBUTING.md, a coverage configuration file, CI gates, or an explicit team decision), follow that. If no project target exists, use 80% as a working default. Either way, prioritize meaningful tests over chasing the number — coverage of code that matters beats high coverage of trivial getters and wiring.

平台分布

Local Agent

71.87%
按下载量换算311

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 第三方 CLI 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills