test-driven-development-sh-wndo5b

Test-driven development专用技能,帮助AI Agent高效完成与测试驱动开发相关的任务。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "test-driven-development-sh-wndo5b":https://skillpi.com/zh/skills/deepskill-5c4cd3f57811baeada085b69c3c1279c20e722b650ec6a8e65974a766926c5ad。安装前核对上游来源和版本:https://skillhub.cn/skills/user_3c6cb52e/test-driven-development-sh-wndo5b。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

Test-driven development专用技能,帮助AI Agent高效完成与测试驱动开发相关的任务。

0 下载

介绍来源: third_party · user_3c6cb52e · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter

name: Testdrivendevelopment
slug: test-driven-development
version: 1.0.0
displayName: Testdrivendevelopment
description: >
  Testdrivendevelopment专用技能,帮助AI Agent高效完成相关任务。
  Testdrivendevelopment专用技能,帮助AI Agent高效完成相关任务。
summary: "Testdrivendevelopment专用技能,帮助AI Agent高效完成相关任务。"
license: MIT
category: 开发者工具
framework:
  - Claude Code
  - Codex
  - Hermes Agent
  - OpenClaw
  - QClaw
  - WorkBuddy
platform: multi-platform
homepage: "https://github.com/1991513ccie-png"
repository: "https://github.com/1991513ccie-png"

Test-Driven Development

Overview

Write a failing test before writing the code that makes it pass. For bug fixes, reproduce the bug with a test before attempting a fix. Tests are proof — "seems right" is not done. A codebase with good tests is an AI agent's superpower; a codebase without tests is a liability.

When to Use

  • Implementing any new logic or behavior
  • Fixing any bug (the Prove-It Pattern)
  • Modifying existing functionality
  • Adding edge case handling
  • Any change that could break existing behavior

When NOT to use: Pure configuration changes, documentation updates, or static content changes that have no behavioral impact.

Related: For browser-based changes, combine TDD with runtime verification using Chrome DevTools MCP — see the Browser Testing section below.

Discover the Stack First

The TDD cycle is universal; the commands are not. Before writing the first test, discover how this repository tests, and use its commands for every RED, GREEN, and verification step:

  • Language and build system — package.json, pom.xml/build.gradle, pyproject.toml, go.mod, Cargo.toml, Gemfile, a Makefile
  • Checked-in wrappers — prefer ./gradlew, ./mvnw, make test, or a repo script over globally installed tools
  • Test framework and configuration — and how it runs a single focused test vs the full suite
  • Existing conventions — where tests live, how files are named, what patterns neighboring tests follow
  • Documented commands — README, CONTRIBUTING, and CI workflows show the commands that actually gate merges

Run the repository's focused-test command during the loop and its full-suite command before completion. Never assume a default like npm test — a Gradle, Cargo, or pytest project has its own equivalent.

The examples below use TypeScript for illustration; the workflow is identical in any language once you've discovered the project's own tooling.

The TDD Cycle

    RED                GREEN              REFACTOR
 Write a test    Write minimal code    Clean up the
 that fails  ──→  to make it pass  ──→  implementation  ──→  (repeat)
      │                  │                    │
      ▼                  ▼                    ▼
   Test FAILS        Test PASSES         Tests still PASS

Step 1: RED — Write a Failing Test

Write the test first. It must fail. A test that passes immediately proves nothing.


// RED: This test fails because createTask doesn't exist ye

(为兼容发布已截断)

当前收录版本

1.0.0

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值78/100

亮点

  • 提供完整的测试驱动开发方法论指导
  • 包含明确的使用场景和边界条件说明
  • 面向开发者群体,具有专业实用价值
触发精准55/100

待提升项

  • description写错位置 原报告严重程度:轻微

    顶层description字段内容重复且模糊,实质性触发描述位于skill_body内部

    改进建议:将When to Use章节的关键触发条件提炼到顶层description字段,明确说明适用场景

亮点

  • skill_body中包含详细的When to Use说明
结构规范65/100

待提升项

  • 文档内容截断 原报告严重程度:重大

    skill_body在RED步骤示例处被截断,显示'(为兼容发布已截断)',导致内容不完整

    改进建议:补全被截断的文档内容,确保TDD流程示例完整可执行

亮点

  • 文档结构清晰,包含流程图、步骤划分和代码示例
  • frontmatter完整,分类准确
执行可靠70/100

亮点

  • 方法论逻辑自洽,步骤清晰可执行
  • 强调发现项目自身工具链的重要性,避免假设默认命令
证据可验 (前四项均值)67/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • github.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。