Skip to content
cccskills
FreePublished on GitHub

performance

Use when optimizing application performance — caching strategies, eager loading, query optimization, Redis patterns, or background job design.

The English summary is being prepared. Showing the original description.

Works withRedis
See how to install

Files included (1)

  • SKILL.md3.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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.

Performance complexity is a claim, and a claim needs evidence. No cache layer, no denormalised column, no materialised view, no read replica ships on "this will be slow" — it ships on a profile, a query log, or a timing that names the bottleneck. The added complexity is permanent (invalidation bugs, stale reads, a second source of truth); the speedup is hypothetical until measured. State the measurement in the change, or do not add the mechanism.

Carve-out — this does not override the scale-discipline floor. Where that pack is installed, R-A2 mandates an index on every FK and every WHERE / ORDER BY column, and R-A4 governs duplicated data by waiver. Those are structural defaults that ship with the query, not optimisations awaiting a profiler; the evidence gate above applies to added mechanisms (caches, denormalisation, replicas, bespoke indexes beyond parity), never to the floor's baseline.

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

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Use when reviewing UI for accessibility — WCAG 2.2 AA, keyboard nav, focus, ARIA, contrast, screen-reader semantics — even on 'is this a11y-OK?' or 'mach das barrierefrei'.

The English summary is being prepared. Showing the original description.

event4u-app/agent-config12Updated Oct 21, 2026

Use when defining or auditing the activation event — aha-moment selection, retention correlation, falsifiable definition. Triggers on 'what is our aha moment', 'redefine activation'.

The English summary is being prepared. Showing the original description.

event4u-app/agent-config12Updated Oct 21, 2026

Use when capturing an architectural decision — file naming, next ADR number, Status / Context / Decision / Consequences, index regen; fires even without saying 'ADR'.

The English summary is being prepared. Showing the original description.

event4u-app/agent-config12Updated Oct 21, 2026

Adversarial critique — devil's advocate, stress-test, honest teardown ('poke holes', 'be brutal', 'was hältst du davon'); explicit request only. Routine code or design review → code-review.

The English summary is being prepared. Showing the original description.

event4u-app/agent-config12Updated Oct 21, 2026

Use when reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md. Understands the full .augment/, agents/, and copilot-instructions structure.

The English summary is being prepared. Showing the original description.

event4u-app/agent-config12Updated Oct 21, 2026

Use for an adversarial red-team / blue-team / auditor review of an AI agent's CONFIG + behaviour (rules, skills, MCP, hooks, permissions) — attack-chain → defensive-gap list, not a code audit.

The English summary is being prepared. Showing the original description.

event4u-app/agent-config12Updated Oct 21, 2026

See all skills by event4u-app

Report a problem with this skill