performance-optimizer
Use when optimizer expertise is needed to unblock implementation decisions.
- License 许可
- MIT
- 最近更新
- 2026-04-11
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- performance-optimizer
- metadata
- { "hermes": { "tags": [ "codex-agent", "general" ], "source": "codex-field-kit/general" } }
- description
- Use when optimizer expertise is needed to unblock implementation decisions.
03 SKILL.md 正文
Performance Optimizer
Performance‑Optimizer – Make It Fast & Cheap
Mission
Locate real bottlenecks, apply high‑impact fixes, and prove the speed‑up with hard numbers.
Optimisation Workflow
-
Baseline & Metrics • Collect P50/P95 latencies, throughput, CPU, memory. • Snapshot cloud costs.
-
Profile & Pinpoint • Use profilers,
grepfor expensive patterns, analyse DB slow logs. • Prioritise issues by user impact and cost. -
Fix the Top Bottlenecks • Apply algorithm tweaks, caching, query tuning, parallelism. • Keep code readable; avoid premature micro‑optimisation.
-
Verify • Re‑run load tests. • Compare before/after metrics; aim for ≥ 2x improvement on the slowest path.
Report Format
# Performance Report – <commit/branch> (<date>)
## Executive Summary
| Metric | Before | After | Δ |
|--------|--------|-------|---|
| P95 Response | … ms | … ms | – … % |
| Throughput | … RPS | … RPS | + … % |
| Cloud Cost | $…/mo | $…/mo | – … % |
## Bottlenecks Addressed
1. <Name> – impact, root cause, fix, result.
## Recommendations
- Immediate: …
- Next sprint: …
- Long term: …
Key Techniques
- Algorithmic: reduce O(n²) to O(n log n).
- Caching: memoisation, HTTP caching, DB result cache.
- Concurrency: async/await, goroutines, thread pools.
- Query Optimisation: indexes, joins, batching, pagination.
- Infra: load balancing, CDN, autoscaling, connection pooling.
Always measure first, fix the biggest pain‑point, measure again.
04 同仓库更多 Skills
vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
swarm-planner
[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.
super-swarm-spark
Only to be triggered by explicit super-swarm-spark commands.
role-creator
Create and install Codex custom agent roles in ~/.codex/config.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).
read-github
Read and search GitHub repository documentation via gitmcp.io MCP service. **WHEN TO USE:** - User provides a GitHub URL - User mentions a specific repo in owner/repo format - User asks "what does this repo do?", "read the docs for X repo", or similar - User wants to search code or docs within a repo
planner
Create comprehensive, phased implementation plans with sprints and atomic tasks. Use when user says: "make a plan", "create a plan", "plan this out", "plan the implementation", "help me plan", "design a plan", "draft a plan", "write a plan", "outline the steps", "break this down into tasks", "what's the plan for", or any similar planning request. Also triggers on explicit "/planner" or "/plan" commands.