Performance
Universal AI Agent OS — audited skills, governance rules, replayable state. One contract, every host agent.
npx -y skills add event4u-app/agent-config --skill performanceAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when optimizing application performance — caching strategies, eager loading, query optimization, Redis patterns, or background job design.
SKILL.md
2.1 KB, 427 tokens by cl100k_base, as published. Nobody here has run it
performance
When to use
Use when optimizing slow endpoints, designing caching, or improving query performance.
Do NOT use when:
- Database schema design (use
databaseskill) - Queue job creation (use
jobs-eventsskill)
Procedure: Optimize performance
Step 0: Identify the bottleneck
- Don't optimize prematurely — measure first.
- Use
DB::enableQueryLog()or Telescope to find slow queries. - Check for N+1 queries on list endpoints.
- Search for existing cache services in the project.
Step 1: Apply the right fix
| Bottleneck | Fix |
|---|---|
| N+1 queries | Eager loading with with() |
| Slow queries | Add indexes, optimize (see database skill) |
| Repeated expensive queries | Cache with TTL |
| Blocking API calls | Queue as background job |
| Large datasets | Paginate, chunk, cursor |
| Missing counts | withCount() instead of loading relations |
Step 2: Verify
Re-measure after fix. Check that cache invalidation works correctly.
Conventions
→ See guideline php/performance.md for caching patterns, Redis, response time targets.
Output format
- Optimized code with before/after performance comparison
- Caching strategy or query optimization applied
Gotcha
- Cache invalidation bugs are worse than slow queries — don't add caching everywhere.
- Eager loading N+1 is the #1 win — always check list endpoints.
- Don't cache ORM collections/entities with loaded relations (Eloquent, Doctrine, Prisma) — too large.
- Always include tenant ID in cache keys (multi-tenant).
Do NOT
- Do NOT cache without tenant isolation in multi-tenant contexts.
- Do NOT use
get()orall()on large tables — paginate or chunk. - Do NOT add indexes blindly — analyze query patterns first.
Auto-trigger keywords
- performance
- caching
- eager loading
- query optimization
- Redis