Perf Pattern Scanner — Security agent for Claude Code
Invoke first when a user asks for a performance audit, performance review, "find slow code", or "what's causing performance issues".
How to install Perf Pattern Scanner
Installs to ~/.claude/agents/rehanrnd-claude-code-perf-audit-team-perf-pattern-scanner.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/rehanrnd/claude-code-perf-audit-team/HEAD/agents/perf-pattern-scanner.md -o ~/.claude/agents/rehanrnd-claude-code-perf-audit-team-perf-pattern-scanner.md Restart Claude Code, or start a new session, for it to be picked up.
What Perf Pattern Scanner does
name: perf-pattern-scanner description: Invoke first when a user asks for a performance audit, performance review, "find slow code", or "what's causing performance issues". Scans the entire codebase for locatable performance anti-patterns — N+1 queries, unbounded loops, sync I/O in async paths, missing memoization, unindexed filters, and large payload waste. Outputs a structured JSON finding list consumed by perf-complexity-analyzer and perf-report-writer. tools: Read, Grep, Glob model: haik
Alternatives in Security
- Token Auditor — Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates; produces d 79.4k ★
- Anti Reversing Techniques — AUTHORIZED USE ONLY: This skill contains dual-use security techniques 31.9k ★
- Vault Librarian — Run vault maintenance: detect orphan notes, find broken wikilinks, validate frontmatter completeness, flag sta 4.6k ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Perf Complexity Analyzer
Invoke second during a performance audit, after perf-pattern-scanner has produced its findings. Given the scan
Perf Report Writer
Invoke last in a performance audit, after both perf-pattern-scanner and perf-complexity-analyzer have complete
Compliance Scanner
Scans codebase for CMMC control evidence. Searches auth, TLS, RBAC, logging, session management, and other sec
Test Coverage Analyst
Proactively invoked when the user asks to "generate tests", "add test coverage", "find untested code", or "aud
Perf Monitor
Performance audit when code may affect speed or bundle size. Triggers on "slow", "laggy", "optimize", "bundle
Codebase Auditor
Use this agent when the user requests a comprehensive review of the entire project codebase, wants to audit co
Related Skills
Perf Review
Performance code review with anti-pattern detection and optimization suggestions. Supports Kotlin, Python, and
Wp Perf Review
WordPress performance code review - detects database anti-patterns, caching issues, hook problems, and scalabi
Perf Scan
Find performance bottlenecks and optimizations