Skip to content
Development
Skill

/common-performance-engineering

Enforce universal standards for high-performance development. Use when profiling bottlenecks, reducing latency, fixing memory leaks, improving throughput, or optimizing algorithm complexity in any language.

From plugin
agent-skills-standard
583200 skills21 agents33 commands1 MCP

Claude Code

$ npx -y skills add hoangnguyen0403/agent-skills-standard --skill common-performance-engineering --agent claude-code

SKILL.md

common-performance-engineering.SKILL.md
name: common-performance-engineering
description: Enforce universal standards for high-performance development. Use when profiling bottlenecks, reducing latency, fixing memory leaks, improving throughput, or optimizing algorithm complexity in any language.
metadata:
  triggers:
    files:
    - '**/*.ts'
    - '**/*.tsx'
    - '**/*.go'
    - '**/*.dart'
    - '**/*.java'
    - '**/*.kt'
    - '**/*.swift'
    - '**/*.py'
    keywords:
    - performance
    - optimize
    - profiling
    - scalability
    - latency
    - throughput
    - memory leak
    - bottleneck

Performance Engineering Standards

**Priority: P0 (CRITICAL)**

Workflow

1. **Baseline**: Profile before changing anything — measure CPU, memory, and latency. 2. **Identify**: Find top bottleneck (N+1 query, hot loop, memory leak). 3. **Fix**: Apply targeted optimization from sections below. 4. **Verify**: Re-profile to confirm improvement and check for regressions.

Resource Management

  • **Memory Efficiency**:
  • Avoid memory leaks: explicit cleanup of listeners, observers, and streams.
  • Optimize data structures: `Set` for lookups, `List` for iteration.
  • Lazy Initialization: Initialize expensive objects only when needed.
  • **CPU Optimization**:
  • Aim for O(1) or O(n); avoid O(n^2) in critical paths.
  • Offload heavy computations to background threads or workers.
  • Memoize pure, expensive functions.

See [implementation examples](references/implementation.md) for memoization and batching patterns.

Network & I/O

  • **Payload Reduction**: Use efficient serialization (Protobuf, JSON minification) and compression (gzip/br).
  • **Batching**: Group multiple small requests into single bulk operations.
  • **Caching**: Implement multi-level caching (Memory -> Storage -> Network) with appropriate TTL and invalidation.
  • **Non-blocking I/O**: Always use asynchronous operations for file system and network access.

UI/UX Performance

  • **Minimize Main Thread Work**: Keep animations and interactions fluid by offloading to workers.
  • **Virtualization**: Use lazy loading or virtualization for long lists/large datasets.
  • **Tree Shaking**: Ensure build tools remove unused code and dependencies.

Monitoring & Testing

  • **Benchmarking**: Write micro-benchmarks for performance-critical functions.
  • **SLIs/SLOs**: Define Service Level Indicators (latency, throughput) and Objectives.
  • **Load Testing**: Test system behavior under peak and stress conditions; for API workloads, follow [API Performance Testing](../../quality-engineering/quality-engineering-api-performance-testing/SKILL.md) for workload modeling, percentiles, and recovery bounds.

Anti-Patterns

  • **No premature optimization**: Profile first, fix proven bottlenecks only.
  • **No N+1 queries**: Always batch and paginate data-access operations.
  • **No synchronous I/O on main thread**: Async all file/network access.

References

  • [Implementation Patterns](references/implementation.md) — profiling patterns, benchmark setup
  • [API Performance Testing](../../quality-engineering/quality-engineering-api-performance-testing/SKILL.md) — workload models, latency percentiles, overload recovery
Read more
@hoangnguyen0403
Ships withagent-skills-standard

The portable standards layer for AI coding agents. Sync once, then work in your own runtime.

583200 skills21 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
583
Star history of hoangnguyen0403/agent-skills-standard on GitHub, a chart by star-history.com

Other skills on agent-skills-standard.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills13d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react4d252k
@facebook@facebookInstall Skill

Questions about common-performance-engineering.

Which coding agents can use common-performance-engineering?
common-performance-engineering installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.