一键导入
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 职业分类
Dispatch an external reviewer (Codex plugin preferred, GitHub Copilot CLI fallback) to perform a precision pass / pre-implementation sanity check on a plan that has already cleared multiple rounds of architectural review. Catches residual stale text, internal contradictions, ambiguous pseudocode, and numbering drift — does not redesign. Writes a structured review report under tmp/.
Dispatch an external reviewer (Codex plugin preferred, GitHub Copilot CLI fallback) to perform a full architectural / recurring review of a design or implementation plan. Use when a plan has changed substantially since the last review (new pillar, new design direction, new scope) and you want a fresh outside-model pass against the invariants and failure modes. Writes a structured review report under tmp/.
Dispatch an external reviewer (Codex plugin preferred, GitHub Copilot CLI fallback) to perform a post-implementation review of delivered code against a plan / phase spec. Verifies the implementation faithfully realizes the spec, surfaces latent bugs, audits test coverage, and runs lint/build/test validation. Writes a versioned review report under tmp/. Designed for iterative fix-review loops until merge-clean.
Audits and updates docs/ files, READMD.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.
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.
| 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 Parti:
parti): Manager, Config, Hooks, Optionsconsumer/: Queue, Static, Dynamic, Broadcast consumer typespartition/: Publisher, JSPublisher, Subscriber, routing configstrategy/: ConsistentHash, WeightedConsistentHash, RoundRobinsource/: Static, NatsKV partition sourcestypes/: Shared interfaces and error sentinelsPublic API Contract Gaps:
Edge Case Identification & Initialization:
Config, PartitionConfig, or consumer options that will panic or return a non-idiomatic error if omitted during construction.Partition.HashID() correctly handles all edge cases for its key set.Error Propagation and Inspection:
fmt.Errorf with %w) to preserve the error chain, or does it discard original error information?types/errors.go and re-exported via root errors.go) for common failures, allowing errors.Is() usage?Resource Management Safety:
Manager.Stop(), consumer .Stop(), subscriber .Close()), are these methods safe to call multiple times? Is there documentation on the consequences if cleanup is not called?Concurrency Guarantees:
Manager is used concurrently — are all state mutations properly synchronized?Hooks.OnAssignmentChanged) document whether they are called from a dedicated goroutine or the caller's goroutine.CurrentAssignment() return values document read-only constraints (no deep copy = shared slice headers).Performance and Memory: