skill-writing-tdd

仓库创建 2026年3月12日最近提交 21 天前SkillHot 收录 20 天前
▸ 精选理由

把 TDD 引入技能编写,适合想提高技能可靠性的开发者。

这个 Skill 做什么

以测试驱动方式编写与验证 agent skills,确保行为可复现与可测。

把写 agent skills 当成 TDD 来做:先写能复现问题的测试场景(可包含子 agent 的压力测试),看测试失败,然后按测试要求写技能说明和指令,直到测试通过。适合新建技能、修改已有技能或排查 agent 没按预期执行的时候使用。它把可测性和可复现性放第一位,不只写文档还要有自动化验证,方便回归和持续维护。

▸ 展开 SKILL.md 英文原文

Use when creating new skills, editing existing skills, diagnosing why an Agent isn't following a skill correctly, or verifying skills work before deployment. Also trigger on 'the agent isn't following the skill' or 'skill quality'.

Skill 开发管理技能开发TDD测试驱动Claude CodeCodex
0
Stars
0
Forks
16
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/huanlongAI/tzh-Harness/main/cowork-skills/skill-writing-tdd/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/huanlongAI/tzh-Harness/main/cowork-skills/skill-writing-tdd/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Writing Skills

## Overview

**Writing skills IS Test-Driven Development applied to process documentation.**

**Personal skills live in agent-specific directories (`~/.claude/skills` for Claude Code, `~/.agents/skills/` for Codex)** 

You write test cases (pressure scenarios with subagents), watch them fail (baseline behavior), write the skill (documentation), watch tests pass (agents comply), and refactor (close loopholes).

**Core principle:** If you didn't watch an agent fail without the skill, you don't know if the skill teaches the right thing.

**REQUIRED BACKGROUND:** You MUST understand superpowers:test-driven-development before using this skill. That skill defines the fundamental 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有