common-performance-engineering

common-performance-engineering is a skill for Claude Code, Codex from HoangNguyen0403/agent-skills-standard. It costs 39 tokens per session (664 once invoked), scanned A, original, MIT.

A method for finding and fixing software slowdowns, high memory use, leaks, and inefficient algorithms. It requires measuring performance before and after changes.

In plain words
What is it for?
Investigating CPU, memory, latency, database-query, loop, caching, batching, network, and input/output bottlenecks.
Why use it?
It replaces guesswork with profiling and checks that an optimisation actually improves performance without causing regressions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Investigating CPU, memory, latency, database-query, loop, caching, batching, network, and input/output bottlenecks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hoangnguyen0403/agent-skills-standard/common-performance-engineering
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HoangNguyen0403/agent-skills-standard --skill common-performance-engineering
Clone the repo
git clone --depth 1 https://github.com/HoangNguyen0403/agent-skills-standard

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for common-performance-engineering

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoangnguyen0403/agent-skills-standard/common-performance-engineering/github.svg)](https://agentmods.dev/skills/hoangnguyen0403/agent-skills-standard/common-performance-engineering)
Your own site
<a href="https://agentmods.dev/skills/hoangnguyen0403/agent-skills-standard/common-performance-engineering"><img src="https://agentmods.dev/badge/skills/hoangnguyen0403/agent-skills-standard/common-performance-engineering/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for common-performance-engineering

Your own site · 80×15
<a href="https://agentmods.dev/skills/hoangnguyen0403/agent-skills-standard/common-performance-engineering"><img src="https://agentmods.dev/badge/skills/hoangnguyen0403/agent-skills-standard/common-performance-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 664 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00664
Opus 5 $0.00019 $0.00332
Sonnet 5 $0.00008 $0.00133
Haiku 4.5 $0.00004 $0.00066

Measured 13d ago against content hash 1d22ae4768f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

common-performance-engineering scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/common/common-performance-engineering/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 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.

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.

Read the full file on GitHub · 83 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 83 lines · 39 tokens per session scan A 1d22ae4768f8

Subscribe to this mod's changes

common-performance-engineering is a skill published in the GitHub repository HoangNguyen0403/agent-skills-standard (565 stars, last pushed 3d ago), licensed MIT. It adds 39 tokens to every session and 664 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

inspector-workbench

Runs Inspector UI work on the standalone Threads state lab so the agent can see the overlay. Use when a CopilotKit employee asks an agent to fix, polish, add, or debug Inspector UI, chrome, panes, overlay actions, launcher, Home, Threads, Playground, Memory, or any visual behavior in @copilotkit/web-inspector. Don't…

CopilotKit/CopilotKit · 112 tokens

coss

Helps implement coss UI components correctly. Use when building UIs with coss primitives and patterns (buttons, dialogs, selects, forms, menus, tabs, segmented controls, inputs, toasts, etc.), migrating from shadcn/Radix to coss/Base UI, composing trigger-based overlays, or troubleshooting coss component behavior.…

cosscom/coss · 85 tokens

asset-pipeline

Audit 2D game art on disk: validate an asset manifest against PNGs, probe sprite sheets and tilesets for occupied frames, report sizes, fix sprite baselines.

kyh/vibedgames · 39 tokens

threejs

Build and debug 3D browser apps and games with Three.js or React Three Fiber: scene, materials, lighting, GLTF, physics, character controllers, cameras, post-processing, performance.

kyh/vibedgames · 42 tokens

debug

Structured bug diagnosis and fixing workflow that reproduces, diagnoses root cause, applies a minimal fix, writes regression tests, and scans for similar patterns.

first-fluke/fullstack-starter · 30 tokens

mcp-apps-builder

MANDATORY for ALL MCP server work - mcp-use framework best practices and patterns. READ THIS FIRST before any MCP server work, including: Creating new MCP servers Modifying existing MCP servers (adding/updating tools, resources, prompts, widgets) Debugging MCP server issues or errors Reviewing MCP server code for…

CopilotKit/CopilotKit · 139 tokens