# Perf Check

> Use when the user wants to check performance, find slow code, identify bottlenecks, or audit efficiency.

- **Type:** Skill
- **Install:** `agentstack add skill-huzaifa525-claude-code-optimizer-perf-check`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [huzaifa525](https://agentstack.voostack.com/s/huzaifa525)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [huzaifa525](https://github.com/huzaifa525)
- **Source:** https://github.com/huzaifa525/claude-code-optimizer/tree/master/templates/.claude/skills/perf-check
- **Website:** https://www.npmjs.com/package/claude-code-optimizer

## Install

```sh
agentstack add skill-huzaifa525-claude-code-optimizer-perf-check
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

Analyze **$ARGUMENTS** for performance issues.

## Check Categories

### Database & Queries
- N+1 query patterns (loop with query inside)
- Missing indexes on frequently queried columns
- SELECT * instead of specific columns
- Missing pagination on list endpoints
- Unoptimized joins or subqueries

### Memory & Resources
- Unclosed connections, streams, file handles
- Growing arrays/maps without limits
- Event listeners not removed on cleanup
- Large objects held in memory unnecessarily
- Missing cleanup in useEffect (React)

### Frontend Performance
- Unnecessary re-renders (missing useMemo, useCallback, React.memo)
- Large bundle imports (import entire library vs specific module)
- Images without lazy loading or optimization
- Missing code splitting
- Synchronous operations blocking UI thread
- Missing virtualization for long lists

### API & Network
- Missing caching (Redis, in-memory, HTTP cache headers)
- Redundant API calls
- Missing request deduplication
- Large payloads without compression
- Missing connection pooling

### General
- O(n²) or worse algorithms where O(n) is possible
- Synchronous file I/O in async context
- Regex backtracking (catastrophic regex)
- Unnecessary deep cloning

## Output Format

```
## Performance Report: [target]

### Critical (fix now)
- [file:line] [issue] [impact] [fix]

### Warning (should fix)
- [file:line] [issue] [impact] [fix]

### Suggestion (optimization)
- [file:line] [issue] [impact] [fix]

### Good Patterns Found
- [what's already well-optimized]
```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [huzaifa525](https://github.com/huzaifa525)
- **Source:** [huzaifa525/claude-code-optimizer](https://github.com/huzaifa525/claude-code-optimizer)
- **License:** MIT
- **Homepage:** https://www.npmjs.com/package/claude-code-optimizer

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-huzaifa525-claude-code-optimizer-perf-check
- Seller: https://agentstack.voostack.com/s/huzaifa525
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
