跳转到主要内容

Writing Skills

技能 已验证 活跃

在创建新技能、编辑现有技能或在部署前验证技能是否正常工作时使用

目的

通过应用严格的测试驱动开发方法来指导用户创建和维护高质量的代理技能。

功能

  • 用于技能创建的 TDD 方法论
  • 代理的详细测试场景
  • 关于处理常见合理化的指南
  • 文档结构和内容的最佳实践
  • 用于弥补漏洞和确保合规性的工作流程

使用场景

  • 创建新的代理技能
  • 编辑现有技能以进行改进
  • 在部署前验证技能
  • 确保技能在压力下稳健

非目标

  • 在没有首先编写失败的测试的情况下创建技能
  • 跳过 RED-GREEN-REFACTOR 周期
  • 记录假设场景而不进行测试
  • 允许合理化绕过既定规则

工作流

  1. 遵循 TDD 周期进行技能创建(RED-GREEN-REFACTOR)
  2. 在没有技能的情况下编写失败的测试场景(基线)
  3. 逐字记录代理失败和合理化
  4. 编写解决特定失败的最小化技能
  5. 运行带有技能的场景以验证合规性
  6. 通过添加显式反驳和更新文档来弥补漏洞
  7. 重新测试,直到技能万无一失,代理在压力下合规

实践

  • 测试驱动开发
  • 文档质量
  • 方法论强制执行
  • 迭代改进

先决条件

  • 理解 superpowers:test-driven-development 技能

安装

请先添加 Marketplace

/plugin marketplace add obra/superpowers
/plugin install superpowers@superpowers-dev

质量评分

已验证
99 /100
1 day ago 分析

信任信号

最近提交2 days ago
GitHub 所有者 obra (opens in new tab)
星标189.3k
许可证MIT
状态
查看源代码

类似扩展

Dart Matcher Best Practices

100

Best practices for using `expect` and `package:matcher`. Focuses on readable assertions, proper matcher selection, and avoiding common pitfalls.

技能
flutter

Neon Postgres

100

Neon Serverless Postgres 的使用指南和最佳实践。涵盖入门、使用 Neon 进行本地开发、选择连接方法、Neon 功能、身份验证(@neondatabase/auth)、PostgREST 风格的数据 API(@neondatabase/neon-js)、Neon CLI 以及 Neon 的平台 API/SDK。可用于任何与 Neon 相关的问题。

技能
neondatabase

Sdk Dx

100

Design 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"

技能
jonathimer

Csharp Async

100

Get best practices for C# async programming

技能
github

Golang Concurrency Patterns

100

Go concurrency patterns for production services: context cancellation, errgroup, worker pools, bounded parallelism, fan-in/fan-out, and common race/deadlock pitfalls

技能
bobmatnyc

Coding Standards

100

Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.

技能
affaan-m