optimize-performance

Performance Optimizer Skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "optimize-performance" with this command: npx skills add iurygdeoliveira/labsis-kit/iurygdeoliveira-labsis-kit-optimize-performance

Performance Optimizer Skill

Use this skill when the user reports "slow pages" or asks to "optimize" code.

Checklist

  1. Database (The Usual Suspect)
  • N+1 Detection: Look for loops calling relationships.

  • Bad: @foreach ($users as $user) {{ $user->posts->count() }} @endforeach

  • Fix: User::withCount('posts')->get()

  • Indexes: Ensure searching columns (slugs, foreign keys, status) are indexed.

  1. Livewire / Filament
  • Computed Properties: Use #[Computed] for expensive calculations that don't need to run on every dehydrate.

  • Lazy Loading: Use lazy() on heavy components.

#[Computed] public function heavyData() { return ...; }

  1. Caching
  • Cache Facade: Cache::remember('key', 60, fn() => ...) for unrelated data.

  • Model Caching: If generic, use the model's booted method to clear cache on updates.

  1. Cloudflare / HTTP
  • Check headers for Cache-Control .

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

scaffold-filament-resource

No summary provided by upstream source.

Repository SourceNeeds Review
General

scaffold-filament-page

No summary provided by upstream source.

Repository SourceNeeds Review
General

scaffold-controller

No summary provided by upstream source.

Repository SourceNeeds Review