performance

performance is a skill for Claude Code from dean0x/devflow. It costs 19 tokens per session (1,269 once invoked), scanned A, original, MIT.

A code-review reference for finding slow database access, memory leaks, and input/output bottlenecks. It requires measuring system behavior before suggesting an optimization.

In plain words
What is it for?
Use it to review query patterns, memory usage, disk or network operations, service latency, and profiling results.
Why use it?
It helps separate real performance problems from guesses and directs attention to the parts that actually slow an application.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to review query patterns, memory usage, disk or network operations, service latency, and profiling results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dean0x/devflow/performance
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 dean0x/devflow --skill performance
Clone the repo
git clone --depth 1 https://github.com/dean0x/devflow

Made for: Claude Code.

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 performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/dean0x/devflow/performance/github.svg)](https://agentmods.dev/skills/dean0x/devflow/performance)
Your own site
<a href="https://agentmods.dev/skills/dean0x/devflow/performance"><img src="https://agentmods.dev/badge/skills/dean0x/devflow/performance/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 performance

Your own site · 80×15
<a href="https://agentmods.dev/skills/dean0x/devflow/performance"><img src="https://agentmods.dev/badge/skills/dean0x/devflow/performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,269 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.00019 $0.01269
Opus 5.5 $0.00008 $0.00508
Sonnet 5.5 $0.00004 $0.00254
Haiku 4.5 $0.00002 $0.00127

Measured 7d ago against content hash 9d76a9105946, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

src/assets/skills/performance/SKILL.md · 136 lines

How it starts

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

Performance Patterns

Domain expertise for performance optimization and bottleneck detection. Use alongside devflow:review-methodology for complete performance reviews.

Iron Law

MEASURE BEFORE OPTIMIZING

Profile first, optimize second. Every performance claim requires benchmarks. Brendan Gregg's USE Method [1] (Utilization, Saturation, Errors) and Tom Wilkie's RED Method [2] (Rate, Errors, Duration) are the systematic starting points — not guesswork. Gil Tene's coordinated omission warning [8]: averages lie — monitor P99, not mean latency.


Measurement Foundation [1][2][7][8][9]

Method For Measures
USE Method [1] System resources Utilization, Saturation, Errors per resource
RED Method [2] Services Rate, Errors, Duration per endpoint
Flame Graphs [9] CPU hot paths Widest frames = hottest code — optimize those
HDR Histogram [8] Latency Full distribution without coordinated omission

Latency hierarchy [7]: L1 cache ~1ns · L2 ~4ns · L3 ~40ns · RAM ~100ns · SSD ~100µs · Network (DC) ~500µs · HDD ~10ms. Knowing these prevents optimizing the wrong layer [4].


Performance Categories

1. Algorithmic Issues [5][12]

N+1 Query Problem — database query inside a loop. O(n) round-trips [5].

// VIOLATION: 1 + N queries — O(n) round-trips [5]
for (const user of users) {
  user.orders = await db.orders.findByUserId(user.id);
}

// CORRECT: Batch query with Map lookup — O(1) per access [5]
const orders = await db.orders.findAll({ where: { userId: userIds } });
const ordersByUser = new Map(groupBy(orders, 'userId'));
users.forEach(u => u.orders = ordersByUser.get(u.id) || []);

O(n²) Patterns — linear search inside a loop [12].

// VIOLATION: Array.includes is O(n), called n times → O(n²) [12]
items.filter(item => selected.includes(item.id));

// CORRECT: Set lookup is O(1) → total O(n) [12]
const selectedSet = new Set(selected);
items.filter(item => selectedSet.has(item.id));

Read the full file on GitHub · 136 lines

Files

What ships with it

4 files 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. 7d ago Changed · -7 tokens per session 9d76a9105946
  2. 1mo ago First seen · 136 lines · 26 tokens per session scan A 426f9c5c96c7

Subscribe to this mod's changes

performance is a skill published in the GitHub repository dean0x/devflow (20 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 1,269 once invoked, about $0.0001 per session on Opus 5.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

reflect

Use Recall Reflect to review AI coding workflow history as a conversation-first timeline and discuss observed patterns before changing behavior. Trigger when the user asks to reflect on a project, review AI coding workflow, inspect workflow friction, discuss repeated corrections, review handoffs, or explore possible…

samzong/Recall · 57 tokens

guard

Protect Claude Code sessions from context overflow by running a background daemon that monitors session size and auto-prunes before compaction hits. Use when the user says "guard", "protect session", "context getting long", "prevent compaction", "session management", or is running agent teams that need continuous…

Ruya-AI/cozempic · 64 tokens

totem-compiled-rules

Compiled architectural rules and lessons from the Totem knowledge base. Load this when reviewing code for pattern violations or architectural drift.

mmnto-ai/totem · 31 tokens

setup-obsidian

Turn a repo's markdown docs folder into a searchable retrieval graph — router, generated indexes, state file — and open it as an Obsidian vault.

vraj-ai/skills · 36 tokens

continuity-brief

Start a session knowing what the last one did and decided. Use when the task involves: session start, what did i do last, wake up, continuity, resume, brief.

uqeu/estelle-cli · 0 tokens

context-checkpoint

Summarise, pin what matters, drop the noise, keep going. Use when the task involves: checkpoint, compact, context, summarize, phase, long session.

uqeu/estelle-cli · 0 tokens