一键导入
qa-review
Perform a critical review focused on correctness, fault tolerance, and performance implications of a Go library from the perspective of external users.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Perform a critical review focused on correctness, fault tolerance, and performance implications of a Go library from the perspective of external users.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Performs a critical review focused on discoverability, clarity, and ease of use (Developer Experience) of a Go package, relying exclusively on the exported API (Godoc) and the README, without reading internal source code.
Audits and updates docs/ files, README.md and public-package Godoc comments to match the current API, exported symbols, option names, and behavioral contracts in the codebase. Does not invent changes — only syncs what is verifiably out of date.
| name | qa-review |
| description | Perform a critical review focused on correctness, fault tolerance, and performance implications of a Go library from the perspective of external users. |
Assumed Role: Quality Assurance (QA) Engineer.
Testing Premise: Your testing plan relies on the public API (Godoc) and the README as the primary specifications. You need to ensure the library is robust, reliable, and compliant with its published contract.
When executing this skill, perform a critical review focused on correctness, fault tolerance, and performance implications, specifically addressing the following points from the perspective of a user who intends to misuse the library:
When reviewing specific packages, specify them by name. Default scope for Helix:
helix): CQLClient, WithXxx optionsadapter/cql/v1, adapter/cql/v2: session adapterspolicy/: StickyRead, PrimaryOnlyRead, RoundRobinRead, ConcurrentDualWrite, SyncDualWrite, AdaptiveDualWrite, ActiveFailover, CircuitBreaker, LatencyCircuitBreakerreplay/: MemoryReplayer, NATSReplayer, Workertopology/: Local, NatsKVtypes/: Shared interfaces, sentinel errors, DualClusterError, ClusterErrorPublic API Contract Gaps:
Edge Case Identification & Initialization:
ReadStrategy, WriteStrategy, FailoverPolicy, Replayer) are not configured.NewCQLClient is called with no options? Is the default behavior documented?Close() behave correctly when called multiple times?Dual-Write Error Semantics:
nil returned if ≥1 cluster succeeds; *types.DualClusterError if both fail.ErrReplayQueueFull)?AdaptiveDualWrite correctly document ErrWriteAsync and ErrWriteDropped return conditions?Error Propagation and Inspection:
fmt.Errorf with %w) to preserve the error chain?errors.Is() and errors.As() usable for all documented sentinel errors and error types?*types.ClusterError?Resource Management Safety:
CQLClient.Close(), Worker.Stop()), are these methods safe to call multiple times?NATSReplayer handle NATS disconnects gracefully (replay messages not lost)?Concurrency Guarantees:
CQLClient is used concurrently — are all state mutations properly synchronized?StickyRead's cluster-selection state safe for concurrent access from multiple goroutines?Performance and Memory:
AdaptiveDualWrite's latency tracking use bounded data structures?