Token导航 LogoToken导航

Agent Skill · 研究检索

tdd-planning(TDD 规划)

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

tdd-planning 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证为 MIT,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 46,340。

总安装 784周安装 33GitHub Stars 20下载 275核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/desplega-ai/ai-toolbox --skill tdd-planning

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

tdd-planning 用于查找、检索和筛选相关信息,适合在多种宿主环境中快速定位候选结果。适用于需要根据关键词或任务场景进行信息检索与筛选的场景。通过 npx skills add 命令从 GitHub 仓库安装使用。安装前建议确认权限范围、维护状态及是否会触发联网或文件读写操作。

可结合来源仓库和原始 README 进一步核验具体用法和功能细节。

来源仓库内路径:skills/tdd-planning

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/desplega-ai/ai-toolbox --skill tdd-planning;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

tdd-planning 怎么安装?

在终端执行 npx skills add https://github.com/desplega-ai/ai-toolbox --skill tdd-planning。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

tdd-planning 支持哪些 AI 工具?

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

tdd-planning 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/desplega-ai/ai-toolbox --skill tdd-planning;npx skills add desplega-ai/ai-toolbox --skill "tdd-planning" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

tdd-planning 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

tdd-planning 用的人多吗?

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

tdd-planning 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
tdd-planning

TDD 规划 · 本页

78420执行命令MIT通过

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

SKILL.md 原文

TDD Planning

You are creating implementation plans that follow a strict Test-Driven Development approach. Every implementation step follows the TDD cycle: RED → GREEN → COMMIT/ROLLBACK.

Core TDD Principles

This skill enforces a disciplined TDD workflow:

  1. RED: Write a failing test first (test must fail for the right reason)
  2. GREEN: Write minimal code to make the test pass (nothing more)
  3. COMMIT/ROLLBACK: If green, commit. If stuck, rollback to last green state.

No implementation code is written without a failing test first. This is non-negotiable.

Working Agreement

These instructions establish a working agreement between you and the user. The key principles are:

  1. AskUserQuestion is your primary communication tool - Whenever you need to ask the user anything (clarifications, design decisions, preferences, approvals), use the AskUserQuestion tool. Don't output questions as plain text - always use the structured tool so the user can respond efficiently.
  2. Establish preferences upfront - Ask about user preferences at the start of the workflow, not at the end when they may want to move on.
  3. Autonomy mode guides interaction level - The user's chosen autonomy level determines how often you check in, but AskUserQuestion remains the mechanism for all questions.

User Preferences

Before starting planning (unless autonomy is Autopilot), establish these preferences:

Commit Granularity - Use AskUserQuestion with:

QuestionOptions
"How granular should commits be?"1. Commit after each GREEN (Recommended for strict TDD), 2. Commit after each feature/phase completes, 3. I'll handle commits manually

Rollback Strategy - Use AskUserQuestion with:

QuestionOptions
"When a test can't be made green after reasonable effort, what's the rollback strategy?"1. git checkout. to last commit (Recommended), 2. git stash changes for later analysis, 3. Keep failing code, ask for guidance

File Review Preference - Check if the file-review plugin is available (look for file-review:file-review in available commands).

If file-review plugin is installed, use AskUserQuestion with:

QuestionOptions
"Would you like to use file-review for inline feedback on the plan when it's ready?"1. Yes, open file-review when plan is ready (Recommended), 2. No, just show me the plan

Store these preferences and act on them during implementation.

When to Use

This skill activates when:

  • User invokes a TDD-planning command
  • Another skill references **REQUIRED SUB-SKILL:** Use desplega:tdd-planning
  • User explicitly asks for TDD-based planning
  • The feature being implemented is test-critical or safety-critical

Autonomy Mode

At the start of planning, adapt your interaction level based on the autonomy mode:

ModeBehavior
AutopilotResearch independently, create complete TDD plan, present for final review only
Critical (Default)Get buy-in at major decision points, validate test strategy
VerboseCheck in at each step, confirm test approach before each cycle

The autonomy mode is passed by the invoking command. If not specified, default to Critical.

Process Steps

Step 1: Context Gathering & Test Infrastructure Analysis

  1. Read all mentioned files immediately and FULLY:

- Research documents, related plans, JSON/data files - IMPORTANT: Use Read tool WITHOUT limit/offset parameters - CRITICAL: Read files yourself before spawning sub-tasks

  1. Analyze test infrastructure:

- What testing framework is used? (Jest, pytest, Go testing, etc.) - Where do tests live? (co-located, __tests__/, tests/, etc.) - What's the test command? (npm test, make test, pytest, etc.) - Are there existing test patterns to follow?

  1. Spawn initial research tasks:

- Use codebase-locator agent to find test files and test utilities - Use codebase-analyzer agent to understand current test patterns - Use codebase-pattern-finder agent to find similar test implementations - Use context7 MCP for testing library insights

  1. Present understanding and questions (if not Autopilot): First, present your findings as text: ` Based on the research of the codebase, I understand we need to [summary]. Test Infrastructure: - Framework: [testing framework] - Test location: [where tests live] - Test command: [command] - Existing patterns: [relevant patterns found] ` Then, if there are questions, use AskUserQuestion.

Step 2: Test Strategy Design

  1. Identify testable units:

- What are the smallest testable pieces? - What inputs/outputs can be verified? - What edge cases matter?

  1. Design test progression:

- Start with simplest case (happy path) - Progress to edge cases - End with error handling

  1. Present test strategy (if not Autopilot): Use AskUserQuestion to validate approach: Question Options "I propose starting with [simplest test case] and progressing to [more complex cases]. Does this test progression make sense?" 1. Yes, proceed, 2. Let's discuss the order, 3. Add more test cases

Step 3: Plan Structure Development

  1. Create TDD cycle outline: Each feature/phase is broken into TDD cycles: ## Feature: [Name] ### Cycle 1: [Simplest behavior] - RED: Test for [specific behavior] - GREEN: Implement [minimal code] - COMMIT: "[descriptive message]" ### Cycle 2: [Next behavior]...
  2. Get feedback on structure before writing details (unless Autopilot)

Step 4: Detailed Plan Writing

Before proceeding, exit plan mode to write the plan file.

Write the plan to thoughts/<username|shared>/plans/YYYY-MM-DD-tdd-description.md.

Path selection: Use the user's name (e.g., thoughts/taras/plans/) if known from context. Fall back to thoughts/shared/plans/ when unclear.

CRITICAL: Every TDD cycle MUST include exact test code to write and expected failure message. See template for exact format.

QA Specs (optional): Features that change user-facing behavior SHOULD include an optional ### QA Spec (optional): section at the Feature level (after the feature header, before the first TDD cycle). Unlike regular plans where QA specs attach per-phase, TDD plans attach them per-feature since the RED/GREEN cycle itself serves as the per-cycle verification. See the template for the format.

Template: Read and follow the template at cc-plugin/base/skills/tdd-planning/template.md

Step 5: Review and Iterate

  1. Present draft plan location: ` I've created the TDD implementation plan at: thoughts/<username|shared>/plans/YYYY-MM-DD-tdd-description.md Please review it. `
  2. Iterate based on feedback (if not Autopilot)
  3. Offer structured review:

- After iteration, offer: "Would you like me to run /review on this TDD plan for completeness and gap analysis?" - If yes, invoke the desplega:reviewing skill on the plan document

  1. Learning Capture: OPTIONAL SUB-SKILL: If significant insights, patterns, gotchas, or decisions emerged during this workflow, consider using desplega:learning to capture them via /learning capture. Focus on learnings that would help someone else in a future session.
  2. Workflow handoff: After the plan is finalized (and optionally reviewed), use AskUserQuestion with: Question Options "The TDD plan is ready. What's the next step?" 1. Implement this plan (→ /implement-plan), 2. Run a review first (→ /review), 3. Done for now (park the plan) Based on the answer:

- Implement: Suggest the /implement-plan command with the plan file path - Review: Invoke the desplega:reviewing skill on the plan document - Done: Set the plan's status to ready or parked as appropriate

  1. Finalize the plan - DO NOT START implementation

Review Integration

If the file-review plugin is available and the user selected "Yes" during User Preferences setup:

  • After creating plans, invoke /file-review:file-review <path>
  • If user selected "No" or autonomy mode is Autopilot, skip this step

TDD Cycle Requirements (MANDATORY)

Every implementation step MUST follow the TDD cycle. Plans without proper TDD cycles are incomplete.

Required Structure for Each Cycle

### Cycle N: [Behavior being implemented]

#### RED Phase
**Test to write:**

// Exact test code goes here


**Expected failure:**

[Expected error message or failure output]


**Verify RED:** `[test command]` should fail with the above message

#### GREEN Phase

**Implementation approach:** [Brief description of minimal code needed]

**Files to modify:**

- `path/to/file.ext`: [what to add/change]

**Verify GREEN:** `[test command]` should now pass

#### COMMIT/ROLLBACK

**If GREEN:**

- Commit message: `"[descriptive message following conventional commits]"`
- Command: `git add -A && git commit -m "[message]"`

**If STUCK (can't reach GREEN after reasonable effort):**

- Rollback: `git checkout.` (or `git stash` based on preference)
- Reassess: Consider if the test is too big, or if design needs rethinking

Validation Checklist

Before finalizing any TDD plan, verify:

  • [ ] Every implementation step has RED → GREEN → COMMIT/ROLLBACK structure
  • [ ] RED phase includes exact test code to write
  • [ ] RED phase includes expected failure message
  • [ ] GREEN phase describes minimal implementation
  • [ ] Each cycle is small enough to complete in one sitting
  • [ ] Cycles build on each other progressively
  • [ ] Rollback strategy is clear for each cycle

Important Guidelines

  1. Tests First, Always: Never describe implementation without the test that drives it
  2. Minimal GREEN: Only write enough code to pass the test, nothing more
  3. Small Cycles: If a cycle seems big, break it into smaller cycles
  4. Progressive Complexity: Start simple, add complexity through new tests
  5. Clear Rollback Points: Every commit is a safe point to return to
  6. No Speculative Code: Don't add code "because we'll need it later"

平台分布

Claude Code

29.12%
按下载量换算80

OpenCode

20.85%
按下载量换算57

Codex

17.96%
按下载量换算49

Antigravity

11.41%
按下载量换算31

Gemini CLI

7.17%
按下载量换算20

windsurf

3.23%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/desplega-ai/ai-toolbox --skill tdd-planning;npx skills add desplega-ai/ai-toolbox --skill "tdd-planning" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills