test-driven-development-sh-wndo5b
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "test-driven-development-sh-wndo5b" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5c4cd3f57811baeada085b69c3c1279c20e722b650ec6a8e65974a766926c5ad. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/test-driven-development-sh-wndo5b before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Test-driven development specialized skill to help an AI agent efficiently perform tasks related to test-driven development.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- 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.
- Audience
- 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.
- Testing
- Not tested
Browse files
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, aMakefile - 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
(为兼容发布已截断)Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供完整的测试驱动开发方法论指导
- 包含明确的使用场景和边界条件说明
- 面向开发者群体,具有专业实用价值
Areas to improve
-
description写错位置 Reported severity: Minor
顶层description字段内容重复且模糊,实质性触发描述位于skill_body内部
Recommendation: 将When to Use章节的关键触发条件提炼到顶层description字段,明确说明适用场景
Highlights
- skill_body中包含详细的When to Use说明
Areas to improve
-
文档内容截断 Reported severity: Major
skill_body在RED步骤示例处被截断,显示'(为兼容发布已截断)',导致内容不完整
Recommendation: 补全被截断的文档内容,确保TDD流程示例完整可执行
Highlights
- 文档结构清晰,包含流程图、步骤划分和代码示例
- frontmatter完整,分类准确
Highlights
- 方法论逻辑自洽,步骤清晰可执行
- 强调发现项目自身工具链的重要性,避免假设默认命令
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.