agentleFS
znlnziznlnzi/claude-config-studio/.claude/skills/tdd-workflow/SKILL.md

tdd-workflow

Skill0 starsChanged 9 months agoMITView on GitHub

强制测试驱动开发实践,强制 80%+ 代码覆盖率

148 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use orch-pipeline, ralphinho-rfc-pipeline and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • renepfSkill

    orch-pipeline

    Shared orchestration engine for the orch-* skill family. Defines the gated Research-Plan-TDD-Review-Commit pipeline, the size classifier, the agent map, and the two human gates that the orch-* operation skills delegate to. Not usually invoked directly.

    Also in 5 projects that use this

  • junimnjwSkill

    ralphinho-rfc-pipeline

    RFC-driven multi-agent DAG execution pattern with quality gates, merge queues, and work unit orchestration.

    Also in 18 projects that use this

  • loulanyueSkill

    nuxt4-patterns

    Nuxt 4 app patterns for hydration safety, performance, route rules, lazy loading, and SSR-safe data fetching with useFetch and useAsyncData.

    Also in 14 projects that use this

  • RojiosSkill

    dart-flutter-patterns

    Production-ready Dart and Flutter patterns covering null safety, immutable state, async composition, widget architecture, popular state management frameworks (BLoC, Riverpod, Provider), GoRouter navigation, Dio networking, Freezed code generation, and clean architecture.

    Also in 10 projects that use this

  • royaluniondesign-sysSkill

    content-hash-cache-pattern

    Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.

    Also in 23 projects that use this

  • HABUBUSSSkill

    project-guidelines-example

    Also in 20 projects that use this

The file

Files
SKILL.md

TDD 工作流技能

核心流程

  1. 用户旅程 - 将需求记录为 "作为[角色],我想要..."
  2. 编写测试 - 在实现前创建全面的测试用例
  3. 运行测试(失败) - 确认测试在没有代码的情况下失败
  4. 实现代码 - 编写满足测试的最小代码
  5. 运行测试(通过) - 验证所有测试成功
  6. 重构 - 在保持绿色测试的同时提高代码质量
  7. 验证覆盖率 - 确保达到 80%+ 阈值

测试类别

单元测试

  • Jest/Vitest 用于函数、组件、工具
  • 模拟外部依赖
  • 执行快速(< 50ms)

集成测试

  • API 端点测试
  • 数据库操作测试
  • 服务交互测试

E2E 测试

  • Playwright 测试关键用户流程
  • 使用语义选择器
  • 独立可重复

覆盖率标准

  • 最低 80%(单元 + 集成 + E2E)
  • 关键路径 100%(认证、支付、安全)
  • 覆盖边缘情况和错误场景

成功指标

  • 80%+ 代码覆盖率
  • 所有测试一致通过
  • 快速执行(单元测试 < 50ms)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.