跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

TDD

技能 活跃

Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.

目的

To guide users in implementing test-driven development, ensuring robust and maintainable code through a structured red-green-refactor process.

功能

  • Guides TDD with red-green-refactor loop
  • Emphasizes integration tests through public interfaces
  • Discourages implementation-detail testing
  • Promotes vertical slicing over horizontal slicing
  • Provides refactoring guidance after achieving passing tests

使用场景

  • When building new features using TDD
  • When fixing bugs using a test-first approach
  • When aiming for integration tests over mocks
  • When wanting to learn or enforce TDD principles

非目标

  • Testing implementation details
  • Writing all tests before any implementation
  • Writing code without a corresponding failing test
  • Refactoring while tests are still failing

Trust

  • info:Issues AttentionOpened issues in the last 90 days: 27, closed issues in the last 90 days: 117. The closure rate is relatively high, indicating good responsiveness.

Versioning

  • warning:Release ManagementThere is no explicit versioning (e.g., semver in frontmatter, GitHub releases, or CHANGELOG) and install instructions reference 'main', making it difficult to pin specific versions.

安装

/plugin install skills@mattpocock-skills

质量评分

95 /100
1 day ago 分析

信任信号

最近提交1 day ago
星标78.5k
许可证MIT
状态
查看源代码