Token导航 LogoToken导航

Agent Skill · 研究检索

tdd-spec(时分驱动规范)

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

tdd-spec 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 65,351。

总安装 282周安装 12GitHub Stars 6下载 99核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/duc01226/easyplatform --skill tdd-spec

这个 Skill 是做什么的

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

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

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

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

tdd-spec 怎么安装?

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

tdd-spec 支持哪些 AI 工具?

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

tdd-spec 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

tdd-spec 是免费的吗?

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

tdd-spec 用的人多吗?

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

tdd-spec 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 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-spec

时分驱动规范 · 本页

2826需要联网未明确通过

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

SKILL.md 原文

TDD Spec — Test-Driven Specification Writer

[MANDATORY] You MUST ATTENTION use TaskCreate to break ALL work into small tasks BEFORE starting. NEVER skip task creation.
External Memory: For complex or lengthy work (research, analysis, scan, review), write intermediate findings and final results to a report file in plans/reports/ — prevents context loss and serves as deliverable.
Evidence Gate: MANDATORY IMPORTANT MUST ATTENTION — every claim, finding, and recommendation requires file:line proof or traced evidence with confidence percentage (>80% to act, <80% must verify first).
Rationalization Prevention — AI skips steps via these evasions. Recognize and reject: | Evasion | Rebuttal | | --- | --- | | "Too simple for a plan" | Simple + wrong assumptions = wasted time. Plan anyway. | | "I'll test after" | RED before GREEN. Write/verify test first. | | "Already searched" | Show grep evidence with file:line. No proof = no search. | | "Just do it" | Still need TaskCreate. Skip depth, never skip tracking. | | "Just a small fix" | Small fix in wrong location cascades. Verify file:line first. | | "Code is self-explanatory" | Future readers need evidence trail. Document anyway. | | "Combine steps to save time" | Combined steps dilute focus. Each step has distinct purpose. |
Graph Context (MANDATORY when graph.db exists): Before generating test specs, run graph impact analysis. This reveals cross-service consumers, event handlers, and implicit connections (MESSAGE_BUS, API_ENDPOINT, TRIGGERS_EVENT) that tests must cover.

Quick Summary

Goal: Generate or update test specifications in feature docs Section 15 (canonical TC registry) using the unified TC-{FEATURE}-{NNN} format. Supports 5 modes: TDD-first, implement-first, update (post-change/PR), sync, and from-integration-tests.

Be skeptical. Apply critical thinking, sequential thinking. Every claim needs traced proof, confidence percentages (Idea should be more than 80%).

MANDATORY IMPORTANT MUST ATTENTION Plan ToDo Task to READ the following project-specific reference doc: > Evidence-Based Reasoning — Speculation is FORBIDDEN. Every claim needs proof. > > 1. Cite file:line, grep results, or framework docs for EVERY claim > 2. Declare confidence: >80% act freely, 60-80% verify first, <60% DO NOT recommend > 3. Cross-service validation required for architectural changes > 4. "I don't have enough evidence" is valid and expected output > > BLOCKED until: - [] Evidence file path (file:line) - [] Grep search performed - [] 3+ similar patterns found - [] Confidence level stated > > Forbidden without proof: "obviously", "I think", "should be", "probably", "this is because" If incomplete → output: "Insufficient evidence. Verified: [...]. Not verified: [...]." > Cross-Cutting Quality — Check across all changed files: > > 1. Error handling consistency — same error patterns across related files > 2. Logging — structured logging with correlation IDs for traceability > 3. Security — no hardcoded secrets, input validation at boundaries, auth checks present > 4. Performance — no N+1 queries, unnecessary allocations, or blocking calls in async paths > 5. Observability — health checks, metrics, tracing spans for new endpoints - .claude/skills/tdd-spec/references/tdd-spec-template.md — TC template format - docs/project-reference/domain-entities-reference.md — Domain entity catalog, relationships, cross-service sync (read when task involves business entities/models) (content auto-injected by hook — check for [Injected:...] header before reading) - docs/test-specs/ — Test specifications by module (read existing TCs before generating new to avoid duplicates and maintain TC ID continuity)

Workflow:

  1. Mode Detection — Determine mode: TDD-first, implement-first, update, sync, or from-integration-tests
  2. Investigation — Analyze PBI/codebase/existing TCs/git changes based on mode
  3. TC Generation — Generate TC outlines, review interactively with user
  4. Write to Feature Doc — Upsert TCs into target feature doc Section 15
  5. Dashboard Sync — Optionally update docs/test-specs/ cross-module dashboard
  6. Next Steps — Suggest follow-on actions based on mode

Key Rules:

  • Unified format: TC-{FEATURE}-{NNN} — feature codes in docs/project-reference/feature-docs-reference.md
  • Source of truth: Feature docs Section 15 is the canonical TC registry
  • Evidence required: Every TC MUST ATTENTION have Evidence: {FilePath}:{LineRange} or TBD (pre-implementation) for TDD-first mode
  • Minimum 4 categories: Positive (happy path), negative (error handling), authorization (role-based access), edge cases
  • Cross-cutting TC categories:

- Authorization TCs (mandatory): Authorized access succeeds, unauthorized access rejected, role-based visibility verified - Seed Data TCs (if applicable): Reference data exists, seeder runs correctly - Performance TCs (if applicable): Feature performs within SLA under production-like data volume - Data Migration TCs (if applicable): Data transforms correctly, rollback works, no data loss

  • Interactive review: ALWAYS use AskUserQuestion to review TC list with user before writing

Quick Reference

Related Skills

SkillRelationship
test-specHeavyweight planning/investigation → feeds into this skill
test-specs-docsDashboard writer → syncs FROM feature docs Section 15
integration-testCode generator → generates integration tests FROM TCs written by this skill
feature-docsFeature doc creator → creates the Section 15 that this skill populates

Output Locations

ArtifactPath
TCs (canonical)docs/business-features/{App}/detailed-features/{feature}.md Section 15
Dashboard (optional)docs/test-specs/{Module}/README.md Implementation Index
Priority index (optional)docs/test-specs/PRIORITY-INDEX.md
Phase-Mapped Coverage: When a plan exists with multiple phases, generate test cases PER PHASE — not just per feature. Each phase's success criteria MUST ATTENTION have ≥1 test case.

Frontend/UI Context (if applicable)

When this task involves frontend or UI changes,
UI System Context — For ANY task touching .ts, .html, .scss, or .css files: MUST ATTENTION READ before implementing: 1. docs/project-reference/frontend-patterns-reference.md — component base classes, stores, forms 2. docs/project-reference/scss-styling-guide.md — BEM methodology, SCSS variables, mixins, responsive 3. docs/project-reference/design-system/README.md — design tokens, component inventory, icons Reference docs/project-config.json for project-specific paths.
  • Component patterns: docs/project-reference/frontend-patterns-reference.md
  • Styling/BEM guide: docs/project-reference/scss-styling-guide.md
  • Design system tokens: docs/project-reference/design-system/README.md

Detailed Workflow

Phase 1: Mode Detection & Context

Detect mode from user prompt and context:

ModeSignalAction
TDD-firstPBI/story exists, code not yet writtenGenerate specs from requirements
Implement-firstCode already exists, no/incomplete TCsGenerate specs from codebase analysis
UpdateExisting TCs + code changes / bugfix / PRDiff existing TCs against current code/PR, find gaps, update both
SyncUser says "sync test specs" or bidirectional needReconcile feature docs ↔ docs/test-specs/ (either direction)
From-integration-testsTests exist with test spec annotations, no docsExtract TC metadata from test code → write to feature docs

Must read FIRST:

  1. docs/project-reference/feature-docs-reference.md — identify the correct {FEATURE} code for TC IDs
  2. Target feature doc — check if Section 15 exists, read existing TCs to avoid ID collisions

If target feature doc doesn't exist:

  • Suggest running /feature-docs first, OR
  • Create a minimal Section 15 stub in the appropriate feature doc

Phase 2: Investigation

TDD-first mode:

  1. Read the PBI/story document (from team-artifacts/pbis/ or user-provided)
  2. Extract acceptance criteria
  3. Identify test categories: CRUD operations, validation rules, authorization (mandatory), workflows, edge cases, seed data, performance data, data migration
  4. Cross-reference with existing feature doc requirements (Sections 1-14)
  5. Cross-reference PBI Authorization section → generate authorization TCs (unauthorized access rejection per role)
  6. Cross-reference PBI Seed Data section → generate seed data TCs if reference/config data needed
  7. Cross-reference PBI Data Migration section → generate migration TCs if schema changes exist

Implement-first mode:

  1. Grep for commands/queries in the target service: grep -r "class.*Command.*:" src/Services/{service}/
  2. Grep for entities and domain events
  3. Trace code paths: Controller → Command → Handler → Entity → Event Handler
  4. Identify testable behaviors from actual implementation

Update mode (post-change / post-bugfix / post-PR):

  1. Read existing Section 15 TCs
  2. git diff or git diff main...HEAD (for PRs) to find code changes since TCs were last updated
  3. Identify: new commands/queries not covered, changed behaviors, removed features
  4. For bugfixes: add a regression TC for the bug that was fixed (e.g., TC-GM-040: Regression — goal title validation bypass)
  5. Generate gap analysis
  6. Update both feature docs Section 15 AND docs/test-specs/ dashboard

Sync mode (bidirectional reconciliation):

  1. Read feature docs Section 15 TCs for target module
  2. Read docs/test-specs/{Module}/README.md TCs
  3. Read test files: grep for test spec annotations in src/Services/{service}*.IntegrationTests/
  4. Build 3-way comparison table:
| TC ID | In Feature Doc? | In test-specs/? | In Test Code? | Action Needed |
|-------|----------------|-----------------|---------------|---------------|
| TC-OM-001 | ✅ | ✅ | ✅ | None |
| TC-OM-025 | ✅ | ❌ | ✅ | Add to test-specs/ |
| TC-OM-030 | ❌ | ✅ | ❌ | Add to feature doc |
  1. Reconcile: write missing TCs to whichever system lacks them
  2. Feature docs remain source of truth — any conflict uses feature doc version

From-integration-tests mode (reverse-engineer specs from existing tests):

  1. Grep for [Trait("TestSpec", "TC-...")] in target test project
  2. For each test method: extract TC ID, method name, test description from comments
  3. Read the test method body to generate GWT steps and evidence
  4. Write extracted TCs to feature doc Section 15 (if not already there)
  5. Useful when: tests were written before the spec system existed, or imported from another project

Phase 3: TC Generation with Interactive Review

  1. Generate TC outlines as a summary table:
| TC ID | Name | Priority | Category | Status |
|-------|------|----------|----------|--------|
| TC-GM-037 | Create goal with cascading key results | P0 | CRUD | New |
| TC-GM-038 | Reject goal without required title | P1 | Validation | New |
| TC-GM-039 | External user cannot access goals | P0 | Permission | New |
  1. Use AskUserQuestion to review with user:
Question: "These {N} test cases cover {feature}. Review the list:"
Options:
- "Approve as-is (Recommended)" — Proceed to writing
- "Add missing scenario" — Describe what's missing
- "Adjust priorities" — Change P0/P1/P2 assignments
- "Regenerate" — Re-analyze and try again
  1. Iterate until user approves.

Phase 4: Write to Feature Doc Section 15

This is the canonical write — feature docs own the TCs.

  1. Locate Section 15 in target feature doc
  2. If Section 15 exists: append new TCs after existing ones, preserving existing TC IDs
  3. If Section 15 doesn't exist: create it from template
  4. Use Edit tool to upsert — never overwrite existing TCs

TC format (from tdd-spec-template.md):

#### TC-{FEATURE}-{NNN}: {Descriptive Test Name} [{Priority}]

**Objective:** {What this test verifies}

**Preconditions:**

- {Setup requirement}

**Test Steps:**
\`\`\`gherkin
Given {initial state}
And {additional context}
When {action}
Then {expected outcome}
And {additional verification}
\`\`\`

**Acceptance Criteria:**

- ✅ {Success behavior}
- ❌ {Failure behavior}

**Test Data:**
\`\`\`json
{ "field": "value" }
\`\`\`

**Edge Cases:**

- {Boundary condition}

**Evidence:** `{FilePath}:{LineRange}` or `TBD (pre-implementation)`

Evidence rules by mode:

  • TDD-first: Evidence: TBD (pre-implementation) — will be updated after implementation
  • Implement-first: Evidence: {actual file}:{actual lines} — trace to real code
  • Update: Update existing evidence references if code moved

Phase 5: Update docs/test-specs/ Dashboard (Optional)

If docs/test-specs/{Module}/README.md exists:

  1. Update the Implementation Index section with new TC→test method mappings
  2. For TDD-first: map to expected test method names (will be created by /integration-test)
  3. Update PRIORITY-INDEX.md with new TC entries in correct priority tier

Skip this phase if user says "skip dashboard" or if no docs/test-specs/ file exists for the module.

Phase 6: Next Step Suggestion

Based on mode, suggest via AskUserQuestion:

TDD-first:

1. "/integration-test — Generate test stubs from these TCs (Recommended)"
2. "/plan — Plan the feature implementation"
3. "Done for now — I'll implement later"

Implement-first:

1. "/integration-test — Generate integration tests (Recommended)"
2. "/workflow-review-changes — Review all changes"
3. "Done for now"

Update (post-change/PR):

1. "/integration-test — Generate/update tests for changed TCs (Recommended)"
2. "/test — Run existing tests to verify coverage"
3. "/test-specs-docs — Sync dashboard with updated TCs"
4. "Done for now"

Sync:

1. "/test-specs-docs — Sync dashboard after reconciliation (Recommended)"
2. "/integration-test — Generate tests for any TCs missing test coverage"
3. "Done for now"

From-integration-tests:

1. "/test-specs-docs — Sync dashboard with newly documented TCs (Recommended)"
2. "/test — Run tests to verify all documented TCs pass"
3. "Done for now"

Anti-Patterns

  • ❌ Writing TCs to docs/test-specs/ as the primary destination (use feature docs Section 15)
  • ❌ Using TC-{SVC}-{NNN} or TC-{SVC}-{FEATURE}-{NNN} format (use unified TC-{FEATURE}-{NNN})
  • ❌ Generating TCs without reading existing Section 15 (causes ID collisions)
  • ❌ Skipping the interactive review step (user must approve TC list)
  • ❌ Writing TCs without Evidence field (every TC needs it, even if TBD)

See Also

  • test-spec — Heavyweight test planning and investigation (use BEFORE this skill for complex features)
  • test-specs-docs — Dashboard sync skill (aggregates TCs from feature docs to docs/test-specs/)
  • integration-test — Integration test code generator (use AFTER this skill to generate test stubs)
  • feature-docs — Feature doc creator (creates the Section 15 that this skill populates)
  • refine — PBI refinement (feeds acceptance criteria into this skill's TDD-first mode)

Workflow Recommendation

MANDATORY IMPORTANT MUST ATTENTION — NO EXCEPTIONS: If you are NOT already in a workflow, you MUST ATTENTION use AskUserQuestion to ask the user. Do NOT judge task complexity or decide this is "simple enough to skip" — the user decides whether to use a workflow, not you: 1. Activate pbi-to-tests workflow (Recommended) — tdd-spec → tdd-spec-review → quality-gate 2. Execute /tdd-spec directly — run this skill standalone

Next Steps

MANDATORY IMPORTANT MUST ATTENTION — NO EXCEPTIONS after completing this skill, you MUST ATTENTION use AskUserQuestion to present these options. Do NOT skip because the task seems "simple" or "obvious" — the user decides:

  • "/integration-test (Recommended)" — Generate integration test code from specs
  • "/test" — Run tests to verify implementation
  • "Skip, continue manually" — user decides

Closing Reminders

MANDATORY IMPORTANT MUST ATTENTION break work into small todo tasks using TaskCreate BEFORE starting. MANDATORY IMPORTANT MUST ATTENTION validate decisions with user via AskUserQuestion — never auto-decide. MANDATORY IMPORTANT MUST ATTENTION add a final review todo task to verify work quality. MANDATORY IMPORTANT MUST ATTENTION READ the following files before starting:

  • IMPORTANT MUST ATTENTION never skip steps via "too simple" or "already searched" evasions. Plan anyway, test first, show grep evidence.
  • IMPORTANT MUST ATTENTION cite file:line evidence for every claim. Confidence >80% to act, <60% do NOT recommend.
  • IMPORTANT MUST ATTENTION check error handling, logging, security, performance, and observability across changed files.
  • IMPORTANT MUST ATTENTION read frontend-patterns-reference, scss-styling-guide, design-system/README before any UI change.

平台分布

Codex

35.73%
按下载量换算35

Claude

31.79%
按下载量换算31

Cursor

17.94%
按下载量换算18

Gemini CLI

9.53%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills