← Back to list

optimize-performance
by iurygdeoliveira
Repositorio destinado a fornecer um kit inicial para desenvolvimento de SaaS usando laravel e filament
⭐ 29🍴 12📅 Jan 20, 2026
SKILL.md
name: optimize-performance description: Guidelines for analyzing and optimizing application performance (N+1, caching, Computed properties).
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()
- Bad:
- Indexes: Ensure searching columns (slugs, foreign keys, status) are indexed.
2. 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 ...;
}
3. Caching
- Cache Facade:
Cache::remember('key', 60, fn() => ...)for unrelated data. - Model Caching: If generic, use the model's
bootedmethod to clear cache on updates.
4. Cloudflare / HTTP
- Check headers for
Cache-Control.
Score
Total Score
80/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
✓フォーク
10回以上フォークされている
+5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon

