Writing Skills
技能 已验证 活跃在创建新技能、编辑现有技能或在部署前验证技能是否正常工作时使用
通过应用严格的测试驱动开发方法来指导用户创建和维护高质量的代理技能。
功能
- 用于技能创建的 TDD 方法论
- 代理的详细测试场景
- 关于处理常见合理化的指南
- 文档结构和内容的最佳实践
- 用于弥补漏洞和确保合规性的工作流程
使用场景
- 创建新的代理技能
- 编辑现有技能以进行改进
- 在部署前验证技能
- 确保技能在压力下稳健
非目标
- 在没有首先编写失败的测试的情况下创建技能
- 跳过 RED-GREEN-REFACTOR 周期
- 记录假设场景而不进行测试
- 允许合理化绕过既定规则
工作流
- 遵循 TDD 周期进行技能创建(RED-GREEN-REFACTOR)
- 在没有技能的情况下编写失败的测试场景(基线)
- 逐字记录代理失败和合理化
- 编写解决特定失败的最小化技能
- 运行带有技能的场景以验证合规性
- 通过添加显式反驳和更新文档来弥补漏洞
- 重新测试,直到技能万无一失,代理在压力下合规
实践
- 测试驱动开发
- 文档质量
- 方法论强制执行
- 迭代改进
先决条件
- 理解 superpowers:test-driven-development 技能
安装
请先添加 Marketplace
/plugin marketplace add obra/superpowers/plugin install superpowers@superpowers-dev质量评分
已验证类似扩展
Dart Matcher Best Practices
100Best practices for using `expect` and `package:matcher`. Focuses on readable assertions, proper matcher selection, and avoiding common pitfalls.
Neon Postgres
100Neon Serverless Postgres 的使用指南和最佳实践。涵盖入门、使用 Neon 进行本地开发、选择连接方法、Neon 功能、身份验证(@neondatabase/auth)、PostgREST 风格的数据 API(@neondatabase/neon-js)、Neon CLI 以及 Neon 的平台 API/SDK。可用于任何与 Neon 相关的问题。
Sdk Dx
100Design SDKs that developers love to use—APIs that feel native, error messages that guide, and experiences that reduce friction. This skill covers creating SDKs that drive adoption through exceptional developer experience rather than aggressive marketing. Trigger phrases: "SDK design", "developer experience", "API design", "SDK DX", "error messages", "type safety", "IDE integration", "SDK versioning", "migration guides", "client library design", "making SDKs feel native", "SDK best practices"
Csharp Async
100Get best practices for C# async programming
Golang Concurrency Patterns
100Go concurrency patterns for production services: context cancellation, errgroup, worker pools, bounded parallelism, fan-in/fan-out, and common race/deadlock pitfalls
Coding Standards
100Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.