agentsclimarketplace

Performance

Skill event4u-app/agent-config/src/skills/performance

Universal AI Agent OS — audited skills, governance rules, replayable state. One contract, every host agent.

Install
npx -y skills add event4u-app/agent-config --skill performance

Assembled 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 database skill)
  • Queue job creation (use jobs-events skill)

Procedure: Optimize performance

Step 0: Identify the bottleneck

  1. Don't optimize prematurely — measure first.
  2. Use DB::enableQueryLog() or Telescope to find slow queries.
  3. Check for N+1 queries on list endpoints.
  4. Search for existing cache services in the project.

Step 1: Apply the right fix

BottleneckFix
N+1 queriesEager loading with with()
Slow queriesAdd indexes, optimize (see database skill)
Repeated expensive queriesCache with TTL
Blocking API callsQueue as background job
Large datasetsPaginate, chunk, cursor
Missing countswithCount() 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

  1. Optimized code with before/after performance comparison
  2. 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() or all() 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

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.