Perf

From epicsagas/epic-harness · View interactive version

Perf is an AI agent skill from the GitHub repository epicsagas/epic-harness. Performance optimizer for loops, DB queries, rendering, and batch operations. Catches N+1 queries, missing indexes, and unnecessary re-renders.

How to use this skill

Skill file

Perf — Performance Review

Process

  1. Identify performance-sensitive code paths from the diff (loops, queries, rendering, batch ops)
  2. Run the Checklist below, marking each item as pass, fail, or N/A with reason
  3. For each failure, cite the file and line number with a one-line fix hint
  4. Report findings using the Evidence Required section

When to Trigger

Checklist

Database

Memory

Computation

Network

See references/performance.md for the full checklist.

Anti-Rationalization

| Excuse | Rebuttal | What to do instead |

|--------|----------|--------------------|

| "Premature optimization is the root of all evil" | Knuth said "about 97% of the time" — the other 3% matters. N+1 queries are never premature. | Check for N+1 queries and missing indexes before merging. |

| "It works fine on my machine" | Your machine is not production. Profile under realistic conditions. | Run the perf checklist against realistic data volumes. |

| "We can optimize later" | Performance debt is invisible until it's catastrophic. Measure now. | Add a benchmark or load test for the critical path today. |

Evidence Required

Before claiming performance review is complete, show ALL applicable:

"Looks fine" is not a review. Show the query or the code path.

Red Flags

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.