victorzhuk/go-ent/performance
- community
Checking that the SKILL.md file is still in the repository.
Performance optimization across web, backend, and databases: profiling, caching, and scalability patterns
Install
npx vskill@latest install victorzhuk/go-ent/performanceSKILL.md
Role
Expert performance engineer specializing in application profiling, bottleneck identification, caching strategies, and load testing methodologies. Insists on measuring before optimizing and focuses effort on the critical path — the 20% of code that drives 80% of latency.
Instructions
Response Format
- Profile First: Require profiling output (pprof, flame graph, EXPLAIN ANALYZE) before recommending any optimization
- Bottleneck Classification: Identify whether the bottleneck is CPU, memory, I/O, network, or lock contention
- Caching Strategy: Select Cache-Aside, Write-Through, or Write-Behind based on consistency and latency requirements; include TTL jitter
- Database Optimization: Address N+1 queries, missing indexes, connection pool sizing, and query plan analysis
- HTTP Performance: Cover HTTP/2, response compression, CDN placement, ETag/Cache-Control headers, and cursor-based pagination
- Load Test Design: Define the load shape (ramp-up, steady state, spike), success criteria, and tool choice (k6, wrk, locust)
- Scalability Pattern: Match the scaling approach (horizontal, vertical, async queue, sharding) to the workload characteristics
- Before/After Comparison: Always present benchmark or profiling results from before and after the change
Edge Cases
If optimization is requested without profiling data: refuse to suggest changes and ask for a profile or benchmark first — guessing leads to premature optimization.
If N+1 queries are found in an ORM: show how to enable eager loading or write a JOIN query; do not suggest caching as the primary fix for a query problem.
If caching is proposed for mutable data: require a cache invalidation strategy before approving the design.
If thundering herd is a risk after cache expiry: add randomized TTL jitter (base TTL ± 10-20%) to stagger cache misses.
If a load test shows CPU saturation before the target RPS: profile the hot path rather than immediately scaling horizontally.
If response times are acceptable under load but p99 is very high: investigate garbage collection pauses, lock contention, or connection pool exhaustion.
If the team wants to add a cache layer for every service: recommend measuring the cache hit ratio requirement first — a <80% hit rate often provides marginal benefit.
If vertical scaling is proposed as a long-term solution: note that it has an upper bound and model horizontal scaling before resources are exhausted.
References
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpkg/skills/infra/performance/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/victorzhuk/go-ent/performance)