perf-profile

perf-profile is a skill for Claude Code from tranhieutt/software_development_department. It costs 39 tokens per session (1,093 once invoked), scanned A, original, MIT.

A method for measuring where an application is slow and comparing its behavior with defined performance limits.

In plain words
What is it for?
Use it to investigate slow systems, frame-rate problems, long load times, excessive memory use, draw calls, or expensive code paths.
Why use it?
It helps find CPU, memory, rendering, and other bottlenecks before suggesting which improvements should come first.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter; mentions CLAUDE.md.

Good fit Use it to investigate slow systems, frame-rate problems, long load times, excessive memory use, draw calls, or expensive code paths.

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

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 perf-profile

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tranhieutt/software_development_department/perf-profile"><img src="https://agentmods.dev/badge/skills/tranhieutt/software_development_department/perf-profile.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 1,093 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.
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.01093
Opus 5 $0.00019 $0.00547
Sonnet 5 $0.00008 $0.00219
Haiku 4.5 $0.00004 $0.00109

Measured 8d ago against content hash 23e85345d777, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

perf-profile 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 8d 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.

.claude/skills/perf-profile/SKILL.md · 116 lines

How it starts

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

When this skill is invoked:

  1. Determine scope from the argument:

    • If a system name: focus profiling on that specific system
    • If full: run a comprehensive profile across all systems
  2. Read performance budgets — Check for existing performance targets in design docs or CLAUDE.md:

    • Target FPS (e.g., 60fps = 16.67ms frame budget)
    • Memory budget (total and per-system)
    • Load time targets
    • Draw call budgets
    • Network bandwidth limits (if multiplayer)
  3. Analyze the codebase for common performance issues:

    CPU Profiling Targets:

    • _process() / Update() / Tick() functions — list all and estimate cost
    • Nested loops over large collections
    • String operations in hot paths
    • Allocation patterns in per-frame code
    • Unoptimized search/sort over data entities
    • Expensive physics queries (raycasts, overlaps) every frame

    Memory Profiling Targets:

    • Large data structures and their growth patterns
    • Texture/asset memory footprint estimates
    • Object pool vs instantiate/destroy patterns
    • Leaked references (objects that should be freed but aren't)
    • Cache sizes and eviction policies

    Rendering Targets (if applicable):

    • Draw call estimates
    • Overdraw from overlapping transparent objects
    • Shader complexity
    • Unoptimized particle systems
    • Missing LODs or occlusion culling

    I/O Targets:

    • Save/load performance
    • Asset loading patterns (sync vs async)
    • Network message frequency and size
  4. Generate the profiling report:

    ## Performance Profile: [System or Full]
    Generated: [Date]
    
    ### Performance Budgets
    | Metric | Budget | Estimated Current | Status |
    |--------|--------|-------------------|--------|
    | Frame time | [16.67ms] | [estimate] | [OK/WARNING/OVER] |
    | Memory | [target] | [estimate] | [OK/WARNING/OVER] |
    | Load time | [target] | [estimate] | [OK/WARNING/OVER] |
    | Draw calls | [target] | [estimate] | [OK/WARNING/OVER] |
    
    ### Hotspots Identified
    | # | Location | Issue | Estimated Impact | Fix Effort |
    |---|----------|-------|------------------|------------|
    | 1 | [file:line] | [description] | [High/Med/Low] | [S/M/L] |
    | 2 | [file:line] | [description] | [High/Med/Low] | [S/M/L] |
    
    ### Optimization Recommendations (Priority Order)
    1. **[Title]** — [Description of the optimization]
       - Location: [file:line]
       - Expected gain: [estimate]
       - Risk: [Low/Med/High]
       - Approach: [How to implement]
    
    ### Quick Wins (< 1 hour each)
    - [Simple optimization 1]
    - [Simple optimization 2]
    
    ### Requires Investigation
    - [Area that needs actual runtime profiling to determine impact]
    
  5. Output the report with a summary: top 3 hotspots, estimated headroom vs budget, and recommended next action.

Rules

  • Never optimize without measuring first — gut feelings about performance are unreliable
  • Recommendations must include estimated impact — "make it faster" is not actionable
  • Profile on target hardware, not just development machines
  • Distinguish between CPU-bound, GPU-bound, and I/O-bound bottlenecks
  • Consider worst-case scenarios (maximum entities, lowest spec hardware, worst network conditions)
  • Static analysis (this skill) identifies candidates; runtime profiling confirms

Read the full file on GitHub · 116 lines

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. 8d ago First seen · 116 lines · 39 tokens per session scan A 23e85345d777

Subscribe to this mod's changes

perf-profile is a skill published in the GitHub repository tranhieutt/software_development_department (72 stars, last pushed 4mo ago), licensed MIT. It adds 39 tokens to every session and 1,093 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-09-03.

Related

Other skills, from other repositories