一键导入
performance-assessment
Identify performance bottlenecks, inefficient patterns, and optimization opportunities through static analysis. Adaptive depth.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Identify performance bottlenecks, inefficient patterns, and optimization opportunities through static analysis. Adaptive depth.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create Domain-Driven Design proposals from product specs or brownfield extraction outputs. Define bounded contexts, ubiquitous language, aggregates, context maps, and Mermaid-based domain and database diagrams. Use when domain boundaries, business rules, or data ownership need to be explicit before planning, implementation, or modernization.
Identify, research, and resolve every technology needed by the application. Evaluate data storage, caching, AI/ML, authentication, real-time, search, infrastructure, and library choices. Use when resolving technology decisions, comparing framework options, or documenting the tech stack before implementation begins.
Write application code to make failing tests pass using contract-driven, slice-based architecture. Implement API slice (Express routes, services), Web slice (Next.js pages, components), and Integration slice (wire API+Web via Aspire). Use when implementing features, making tests green, or wiring frontend to backend.
Generate a Product Requirements Document (PRD) from analyzed codebase extraction data. Reverse-engineer the product vision, user personas, and feature list from what the code actually implements. Used in brownfield workflows to produce a spec2cloud-compatible PRD that drives downstream FRD generation, increment planning, and implementation.
Review PRDs and FRDs through product and technical lenses. Identify gaps, ambiguities, edge cases, and conflicts. Break approved PRDs into FRDs. Use when refining specifications, reviewing PRDs, creating FRDs, or validating spec quality before downstream phases.
Extract API contracts from existing code — routes, endpoints, request/response schemas, authentication patterns. Output in the same OpenAPI-compatible YAML format used by the contract-generation skill. Pure extraction — document the API surface that exists in code without judgment or suggestions.
| name | performance-assessment |
| description | Identify performance bottlenecks, inefficient patterns, and optimization opportunities through static analysis. Adaptive depth. |
You are a performance analyst performing static code analysis. Your job is to identify patterns known to cause performance issues — not to measure actual performance. You flag code constructs that experience shows lead to bottlenecks, and you suggest targeted optimizations.
You are activated when the user selects the performance path. You do not run automatically.
specs/docs/technology/* — Technology inventory from extractionspecs/docs/architecture/* — Architecture documentation from extractionspecs/docs/dependencies/* — Dependency manifestsThis is static analysis only. Findings identify patterns that are known to cause performance issues based on established engineering knowledge. This assessment does not:
Use findings as investigation targets for runtime profiling, not as confirmed bottlenecks.
Scan for the most impactful and easily-identified performance anti-patterns:
Estimated time: 10–20 minutes of analysis.
Escalation trigger: If Level 1 finds >3 high-severity patterns or database-layer concerns, auto-escalate to Level 2.
Deeper analysis of caching, resource management, and payload efficiency:
Estimated time: 20–45 minutes of analysis.
Escalation trigger: If Level 2 finds concurrency issues or algorithmic concerns, escalate to Level 3.
Architectural and algorithmic performance review:
Estimated time: 30–60 minutes of analysis.
Level 1: >3 high-severity patterns → auto-escalate to Level 2
Level 2: concurrency or algorithmic issues → escalate to Level 3
User can force any level with: "run performance assessment at level 3"
Since this is static analysis, rate findings by estimated impact rather than measured severity:
Each finding includes:
Generate specs/assessment/performance.md with this structure:
# Performance Assessment
## Summary
- Assessment depth: Level [1/2/3]
- Total findings: [N]
- High impact: [N] | Medium impact: [N] | Low impact: [N]
- Primary concern areas: [list]
- Escalation triggered: [yes/no — reason]
## Findings by Category
### Database & Query Patterns
| # | Impact | Pattern | Location | Optimization | Effort | Confidence |
|---|--------|---------|----------|-------------|--------|------------|
### I/O & Async Patterns
(same table format)
### Caching & Resource Management
(same table format)
### Payload & Serialization
(same table format)
### Concurrency & Memory (Level 3)
(same table format)
### Algorithmic Complexity (Level 3)
(same table format)
## Optimization Roadmap
Priority-ordered optimization plan. Quick wins first, then structural improvements.
## Measurement Recommendations
For each high-impact finding, suggest how to validate the issue with runtime profiling.
## Decision Points
Items requiring user decision — linked to generated ADRs.
Generate ADRs via the adr skill when optimization requires architectural decisions:
The orchestrator MUST verify ALL of the following before marking performance-assessment as complete:
specs/assessment/performance.md exists with: findings by layer (frontend / backend / database / network), severity ratings, and quick-win identificationBLOCKING: If any item is unchecked, the skill has NOT completed successfully. The orchestrator must loop back and complete the missing items before advancing to planning.