一键导入
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 职业分类
Generate Playwright end-to-end test specs and Page Object Models from UI/UX flow walkthroughs. Create complete user journey tests that exercise navigation, forms, and interactions. Use when scaffolding e2e tests, creating POMs, or generating Playwright specs for user flows.
Generate comprehensive Gherkin scenarios from approved FRDs. Produce feature files with acceptance criteria coverage, edge cases, and error handling scenarios. Use when creating BDD scenarios, writing feature files, or mapping FRD requirements to testable Gherkin specifications.
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 BDD test code from Gherkin scenarios. Create Cucumber step definitions with real test code (HTTP calls, Playwright interactions) and Vitest unit tests. Produce a red baseline where all tests compile and fail. Use when scaffolding BDD tests, creating step definitions, or generating unit tests from feature files.
Execute the appropriate test suite (unit, Gherkin, e2e, smoke) and return structured results. Use during Phase 3 (e2e test verification), Phase 4 (red baseline verification), Phase 5 (contract type compilation), Phase 6 (API/Web/integration slices), Phase 7 (smoke tests against deployment), and on resume (re-validate test state). Trigger when running tests, checking test status, or verifying test baselines.
Lightweight entry point for fixing bugs with full traceability. Takes a bug report, links to the relevant FRD, generates a failing test, fixes the code, and ships. Tracked as a micro-increment. Use when fixing bugs with test-first methodology and spec2cloud pipeline traceability.
| 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: