ワンクリックで
code-review-performance
Performance code review lens for identifying bottlenecks, inefficient algorithms, and resource waste.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Performance code review lens for identifying bottlenecks, inefficient algorithms, and resource waste.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
pi-ensemble's bundled vipune memory doctrine — full reference for using the vipune CLI as a project-scoped semantic memory store. Encodes the 5-type memory taxonomy (fact, preference, procedure, guard, observation), the active/candidate status split as the long-term/short-term mechanism, freshness verification before acting on recalled memories, conflict handling via --supersedes, periodic consolidation reflexes, the hard prohibition on storing secrets, and pi-ensemble-specific framing (multi-agent shared DB, session autosave). Use this skill whenever starting a project task; before delegating work; before making architectural decisions; after task completion; when the user mentions "remember"/"recall"/"vipune"; when surprised by codebase reality vs recalled memory; or when encountering a known-feeling pitfall. Project-scoped, semantic-search-driven; designed to make every session smarter than the last without context bloat or memory rot.
REST and GraphQL API design with versioning, authentication, and OpenAPI documentation. Use when designing API endpoints, request/response formats, or API architecture. Do NOT use for implementation in specific languages.
Architecture code review lens for assessing design quality, coupling, cohesion, and structural integrity.
Error-handling and resilience code review lens for catching silent failures, unbounded I/O, swallowed exceptions, and partial-failure pitfalls.
Security-focused code review lens for identifying vulnerabilities, injection risks, auth flaws, and unsafe patterns.
Simplicity code review lens for identifying unnecessary complexity, dead code, and maintainability issues.
| name | code-review-performance |
| description | Performance code review lens for identifying bottlenecks, inefficient algorithms, and resource waste. |
Specialized agent for performance analysis during code review. Focuses on identifying inefficiencies, bottlenecks, and optimization opportunities.
When PM explicitly dispatches this lens:
Do NOT broaden into:
All findings must follow this structure:
## Must Fix
- [CRITICAL|HIGH] [path:line] Title
- Description: What is wrong and why it matters
- Suggestion: Specific fix with code example
- Metadata: cross_lens_candidate=true/false, tradeoff_required=true/false
## Observations
- [MEDIUM|LOW] [path:line] Title
- Description: Informational finding
- Metadata: cross_lens_candidate=true/false, tradeoff_required=true/false
## Summary
[One paragraph overall assessment]
When reporting findings, always include:
cross_lens_candidate: Indicates this finding might also be relevant to other lenses
true if this finding could trigger other lens checks (e.g., missing indexing might be both performance and architecture)false if this is purely a performance concerntradeoff_required: Indicates if fixing this requires accepting a tradeoff
true if the fix involves code complexity, readability, or maintenance tradeoffsfalse if the fix is straightforward with no downsideAlgorithmic Complexity
Database Performance
Network I/O
Memory Management
Caching Strategy
Concurrency
Asset Optimization
## Must Fix
- [HIGH] [src/api/users.ts:34] N+1 query problem
- Description: For each user, a separate query fetches posts inside loop. For 100 users, this is 101 queries
- Suggestion: Use eager loading: `User.includes(:posts).all` to fetch in 2 queries total
- Metadata: cross_lens_candidate=true, tradeoff_required=false
Before returning any verdict, construct one concrete high-load or worst-case input (maximum allowed collection size, pathological query shape, cold-cache access, concurrent burst) for the primary code path modified in the diff, and estimate the resource cost. If you cannot construct such an input, your review is incomplete — return BLOCKED with the reason "could not construct worst-case input" rather than APPROVED.
This lens is part of the six-pass code review protocol. Findings are merged with other lenses via deterministic synthesis: