一键导入
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 职业分类
| 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 Mebo:
mebo): MetricID helper, and top-level factory methods.blob/: NumericEncoder, NumericDecoder, BlobSet types, and encoding options.encoding/: Columnar encoders/decoders (Delta, Gorilla, Chimp, DeltaPacked) and iterators.compress/: Codec compression (Zstd, S2, LZ4).errs/: Error sentinels and interfaces.section/: Binary representations, index structures, headers.Public API Contract Gaps:
Edge Case Identification & Initialization:
StartMetricID(id, count) before adding exact counts of points, are robustly validated without leading to non-idiomatic panics.Error Propagation and Inspection:
fmt.Errorf with %w) to preserve context?errs package) for all common failure scenarios (e.g., malformed data, schema mismatch), allowing errors.Is functionality?Data Integrity and Malformed Inputs:
gozstd) require manual memory management or can leak resources upon partial completion.Concurrency Guarantees:
All() method) are isolated properly per-goroutine call.Performance and Memory:
string/slice allocations in tight inner loops (e.g., within Gorilla, Chimp, or Delta encoders/decoders).