npx claudepluginhub stringke/ai-agents --plugin ai-agentsThis skill is limited to using the following tools:
使用 TDD 方法论编写高质量的 SKILL.md 文件。
Applies TDD principles to writing effective Claude Code skills using RED-GREEN-REFACTOR: identify failure scenarios, minimal SKILL.md content, aggressive trimming. For new skills, edits, reviews.
Applies TDD to Claude Code skills: test pressure scenarios with subagents, document failures, write passing docs, refactor until agents comply without rationalizing.
Guides TDD process for creating, modifying, or improving Claude Code skills: baseline failure tests, skill writing, validation, refactoring. Use for 'create a skill' or reusable patterns.
Share bugs, ideas, or general feedback.
使用 TDD 方法论编写高质量的 SKILL.md 文件。
每个技能文件必须包含:
---
name: skill-name
description: 一句话描述技能用途和触发条件。
disable-model-invocation: true/false
argument-hint: [可选参数说明]
allowed-tools: Tool1, Tool2, Tool3
---
字段说明:
name:技能名称,小写字母加连字符description:Claude 用来判断是否匹配用户意图的关键字段。包含触发短语disable-model-invocation:true 表示只能手动触发,false 表示 AI 可自动匹配allowed-tools:技能执行时可使用的工具列表# /name — 一句话描述)description 字段是 AI 匹配技能的核心。好的 description:
列出技能应该响应的用户输入和预期的 AI 行为。
为每个预期行为创建测试场景:
场景:用户说"[触发语句]"
预期:AI 执行 [具体行为]
验证:[如何确认行为正确]
根据测试场景编写技能文件。
使用 Agent 工具派遣子代理,模拟用户场景,验证技能行为。详见 references/testing-skills-with-subagents.md。
根据测试结果修改 SKILL.md,重复测试直到所有场景通过。
references/anthropic-best-practices.md:Anthropic 的技能编写最佳实践references/testing-skills-with-subagents.md:使用子代理测试技能的方法