test-driven-development-lr-no53

Testdrivendevelopment specialized skill to help AI Agents efficiently carry out related tasks.

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-lr-no53" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9a72fb43660ab0f45a0be32cc6edb4cb331a5a987666b7cae65fbbb61c246f53. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/test-driven-development-lr-no53 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

Testdrivendevelopment specialized skill to help AI Agents efficiently carry out related tasks.

0 Downloads

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

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter

name: Testdrivendevelopment
slug: test-driven-development
version: 1.0.0
displayName: Testdrivendevelopment
description: >
  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 

(为兼容发布已截断)

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 聚焦测试驱动开发方法论,面向开发者高频刚需场景
  • 提供清晰的红-绿-重构循环指导,实用性强
Trigger Precision90/100

Highlights

  • 触发描述完整且位置正确,边界清晰,无歧义
Structure and Standards70/100

Areas to improve

  • 示例内容被截断 Reported severity: Minor

    TDD Cycle 部分的代码示例被截断,影响完整性

    Recommendation: 补全 RED/GREEN 循环的完整示例,确保端到端可理解

Highlights

  • 文档结构清晰,章节划分合理,使用场景与边界说明明确
Execution Reliability75/100

Areas to improve

  • 异常处理细节不足 Reported severity: Minor

    未覆盖测试失败时的诊断建议或异常处理流程

    Recommendation: 补充测试失败时的常见原因排查与修复建议

Highlights

  • 强调使用项目自有工具链,避免假设默认命令,提升执行可靠性
Evidence Verifiability (mean of the first four)80/100

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

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

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.