performance-concurrency-advisor
Skill18 starsChanged 9 months agoMITView on GitHub
Analyze and improve performance, throughput, latency, and concurrency behavior in Kotlin plus Spring services using real evidence from metrics, traces, SQL, thread or heap signals, and code paths. Use when endpoints are slow, pools saturate, coroutines or reactive flows block unexpectedly, N+1 or contention appears, or caching and parallelism decisions need precise, non-generic guidance.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- JetBrains/skillsedited, first seen Apr 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- JetBrains/skills★ 36096% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- ci-cd-containerization-advisorSkill
- configuration-properties-profiles-kotlin-safeSkill
- dependency-conflict-resolverSkill
- domain-decomposition-api-design-advisorSkill
- error-model-validation-architectSkill
- gradle-kotlin-dsl-doctorSkill
- integration-resilience-engineerSkill
- jackson-kotlin-serialization-specialistSkill
- java-kotlin-migration-assistantSkill
- jpa-spring-data-kotlin-mapperSkill
- kotlin-idiomatic-refactorer-spring-awareSkill
- kotlin-spring-proxy-compatibilitySkill
- observability-integratorSkill
- production-incident-responderSkill
- project-context-ingestionSkill
- schema-migration-plannerSkill
- spring-context-di-reasoningSkill
- spring-kotlin-code-reviewSkill
- spring-mvc-webflux-api-builderSkill
- spring-security-configurator-auditorSkill
- stacktrace-log-triageSkill
- test-suite-builderSkill
- transaction-consistency-designerSkill
- upgrade-breaking-change-navigatorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 14 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Treat performance work as evidence-driven systems analysis, not as a bag of folklore.
- Distinctive: line 25
Check these layers explicitly:
- Distinctive: line 56
If queueing exists anywhere in the path, small utilization increases can create nonlinear latency growth.
- Distinctive: line 60
Prefer eliminating unnecessary work before parallelizing existing work.
- Distinctive: line 61
If one optimization helps throughput but worsens tail latency or operator clarity, call that tradeoff out explicitly.
- Distinctive: line 62
When reactive or coroutine code is slower than blocking code, first verify hidden blocking boundaries and context switches before blaming …
- Distinctive: line 63
If the service is already SLO-bound by a dependency, optimize isolation and graceful degradation before micro-optimizing local code.
- Distinctive: line 68
Keep transaction scopes short when locks or connection usage are involved.
- Distinctive: line 69
Treat shared mutable in-memory state as a design smell in horizontally scaled services.
- Distinctive: line 71
Use backpressure, bulkheads, or bounded queues before unbounded parallelism.
- Distinctive: line 85
Do not optimize without measurement.
- Distinctive: line 86
Do not recommend caching, async, or bigger pools as reflexes.
- Distinctive: line 87
Do not confuse throughput optimization with latency optimization.
- Distinctive: line 88
Do not trust local benchmarks alone for highly concurrent or I/O-heavy paths.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Performance Concurrency Advisor
Source mapping: Tier 2 high-value skill derived from Kotlin_Spring_Developer_Pipeline.md (SK-18).
Mission
Find the bottleneck that actually limits the system, then recommend the smallest high-leverage change. Treat performance work as evidence-driven systems analysis, not as a bag of folklore.
Read Evidence First
- Latency metrics, percentile breakdowns, throughput, and error rate.
- Traces for slow flows.
- SQL count or explain plans when persistence is involved.
- Hikari, thread pool, event loop, or queue metrics when available.
- Thread dumps, heap or GC signals, and recent code changes when the issue is severe.
Diagnose By Layer
Check these layers explicitly:
- database query count and query latency
- connection pool contention
- downstream HTTP or messaging latency
- thread pool starvation or scheduler misuse
- event-loop blocking in reactive flows
- serialization or large payload overhead
- lock contention or transactional scope
- cache misses or invalidation churn
- CPU-bound work and allocation pressure
Advanced Performance Heuristics
- N+1 is both a latency bug and a load amplifier. Fixing it often helps pool pressure and downstream CPU together.
- Bigger pools are not a universal fix. If the database is slow, increasing concurrency often worsens tail latency.
- Hikari tuning should follow database capacity and workload pattern, not only CPU count.
- Blocking calls inside WebFlux or coroutine event loops are catastrophic even when average latency looks acceptable.
Dispatchers.IOis not a free performance button. It moves blocking but can also hide architectural mismatch and increase context switching.- Parallelizing downstream calls can reduce mean latency while worsening saturation and timeouts under load.
- Caches need invalidation, warm-up, and cardinality discipline. A bad cache can improve benchmarks and hurt production correctness.
- Large object graphs, verbose JSON, and repeated mapping can dominate latency once the database is already optimized.
- Lock contention and long transactions often look like random latency spikes until you correlate them with pool saturation and retries.
- GC tuning is downstream of allocation patterns. Do not jump to JVM flags before understanding object churn.
Measurement Nuances
- Average latency hides tail pain. Prefer percentiles and saturation correlation when user pain is bursty.
- Coordinated omission can make a load test look healthier than production. Treat benchmark tooling assumptions as part of the evidence.
- Container CPU limits, memory limits, and JDK container-awareness can dominate runtime behavior even when local profiling looks clean.
- Warm-up state, JIT compilation, cache fill, and connection pool priming matter. Separate cold-start behavior from steady-state behavior.
- If queueing exists anywhere in the path, small utilization increases can create nonlinear latency growth. Think in queueing terms, not only in raw CPU percentages.
Expert Heuristics
- Prefer eliminating unnecessary work before parallelizing existing work.
- If one optimization helps throughput but worsens tail latency or operator clarity, call that tradeoff out explicitly.
- When reactive or coroutine code is slower than blocking code, first verify hidden blocking boundaries and context switches before blaming the paradigm.
- If the service is already SLO-bound by a dependency, optimize isolation and graceful degradation before micro-optimizing local code.
Concurrency Rules
- Distinguish I/O-bound work from CPU-bound work before recommending async or parallel execution.
- Keep transaction scopes short when locks or connection usage are involved.
- Treat shared mutable in-memory state as a design smell in horizontally scaled services.
- For coroutine or reactive flows, verify context propagation for transactions, security, and MDC if debugging or tracing is part of the issue.
- Use backpressure, bulkheads, or bounded queues before unbounded parallelism.
Output Contract
Return these sections:
Observed bottleneck: the most likely limiting resource or contention point.Evidence: metrics, traces, code path, or SQL evidence supporting that conclusion.Recommended change: the smallest high-impact optimization.Tradeoffs: what gets better and what new risk appears.Verification: the benchmark, metric, or load-test signal that should improve.
Guardrails
- Do not optimize without measurement.
- Do not recommend caching, async, or bigger pools as reflexes.
- Do not confuse throughput optimization with latency optimization; sometimes they move in opposite directions.
- Do not trust local benchmarks alone for highly concurrent or I/O-heavy paths.
Quality Bar
A good run of this skill identifies the true constraint and gives a measurable improvement plan. A bad run suggests generic tuning knobs with no evidence, no tradeoffs, and no way to confirm success.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

