Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计未展示

tdd时差

Agent Skill

tdd 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

441

周安装

18

GitHub Stars

公开资料未说明

下载量

141
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:tdd(时差)
来源仓库:https://github.com/mintuz/claude-plugins
仓库路径:skills/tdd
安装命令:
npx skills add mintuz/claude-plugins --skill "tdd"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add mintuz/claude-plugins --skill "tdd"

简介

tdd 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词快速定位候选结果时使用。

  • 它支持按任务场景或来源线索筛选信息,适用于时间差相关的研究或调度场景。
  • 通过 npx skills add mintuz/claude-plugins --skill "tdd" 安装,需结合原始 README 确认具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网或文件读写操作。
  • tdd 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
tdd
description
WHEN working in TDD Red-Green-Refactor; NOT ad-hoc coding; write tests first, add minimal code to green, then assess refactoring.

TDD Best Practices

Test-Driven Development with behavior-focused testing, factory patterns, and the Red-Green-Refactor cycle.

Core Principle

Every single line of production code must be written in response to a failing test.

This is non-negotiable. If you're typing production code without a failing test demanding it, you're not doing TDD.

The Sacred Cycle: Red → Green → Refactor

1. RED - Write a Failing Test

Write a test that describes the desired behavior. The test must fail because the behavior doesn't exist yet.

Rules:

  • Start with the simplest behavior
  • Test ONE thing at a time
  • Focus on business behavior, not implementation
  • Use descriptive test names that document intent
  • Use factory functions for test data

2. GREEN - Minimal Implementation

Write the minimum code to make the test pass. Nothing more.

Rules:

  • Only enough code to pass the current test
  • Resist "just in case" logic
  • No speculative features
  • If writing more than needed, STOP and question why

3. REFACTOR - Assess and Improve

With tests green, assess whether refactoring would add value.

Rules:

  • Commit working code FIRST
  • External APIs stay unchanged
  • All tests must still pass
  • Commit refactoring separately
  • Not all code needs refactoring - if clean, move on

Quick Reference

TopicGuide
Red-Green-Refactor examples with step-by-step workflowsworkflow-examples.md
Factory functions, composition, test organization, 100% coveragetest-factories.md
Critical violations, high priority issues, style improvementsviolations.md
Behavior testing patterns, test naming, and organizationpatterns.md

When to Use Each Guide

Workflow Examples

Use workflow-examples.md when you need:

  • Complete TDD workflow examples (free shipping, payment validation)
  • Step-by-step RED-GREEN-REFACTOR cycles
  • When to refactor vs when to move on
  • Refactoring assessment criteria
  • Refactoring rules (commit first, preserve API, etc.)

Test Factories

Use test-factories.md when you need:

  • Factory function patterns with overrides
  • Why factories beat let/beforeEach
  • Composing factories for complex data
  • Test organization by behavior
  • No 1:1 mapping between tests and implementation
  • Achieving 100% coverage through behavior testing

Violations

Use violations.md when you need:

  • Critical violations reference (production code without test, etc.)
  • High priority issues (let/beforeEach, testing privates, etc.)
  • Style issues (large files, duplication, magic values)
  • Behavior vs implementation examples
  • Quality gates checklist

Patterns

Use patterns.md when you need:

  • Behavior-focused testing examples
  • Testing through public APIs only
  • Factory patterns with schema validation
  • Composing factories for complex data
  • Descriptive test naming patterns
  • Test organization by business behavior

Quick Reference: Decision Trees

Should I write this code?

Is there a failing test demanding this code?
├── Yes → Write minimal code to pass
└── No → Write the failing test first

Is my test good?

Does the test verify a business outcome?
├── Yes → Does it use the public API only?
│   ├── Yes → Does it use factory functions?
│   │   ├── Yes → Good test ✓
│   │   └── No → Refactor to use factories
│   └── No → Rewrite to avoid internals
└── No → Rewrite to focus on behavior

Should I refactor?

Are all tests green?
├── Yes → Is the code already clean?
│   ├── Yes → Commit and move on
│   └── No → Commit first, then refactor
└── No → Make tests pass first

How much code should I write?

Does this code make the current failing test pass?
├── Yes → Is there any code that could be removed
│         and tests still pass?
│   ├── Yes → Remove it
│   └── No → Done, commit
└── No → Keep writing minimal code

Summary Checklist

Before committing, verify:

  • [ ] All production code has a test that demanded it
  • [ ] Tests verify behavior, not implementation
  • [ ] Implementation is minimal (only what's needed)
  • [ ] Refactoring assessment completed
  • [ ] All tests pass
  • [ ] Factory functions used (no let/beforeEach)
  • [ ] Test names describe business behavior
  • [ ] Edge cases covered
  • [ ] Tests use public API only
  • [ ] No testing of implementation details
  • [ ] Test organization reflects business features
  • [ ] 100% coverage achieved through behavior testing

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.36%
按下载量换算41

trae

22.17%
按下载量换算31

Antigravity

18.38%
按下载量换算26

Codex

14.44%
按下载量换算20

windsurf

7.23%
按下载量换算10

Gemini CLI

3.58%
按下载量换算5

安全审计

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

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

来源信息

继续浏览同类 Skills