Toolverse
All skills

prefetcher

by openclaw

AI suggests routes and data to prefetch for better UX. Use when optimizing navigation performance.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
openclaw
Category
Backend
Views
1

About this skill

AI suggests routes and data to prefetch for better UX. Use when optimizing navigation performance.

How to use

  1. Otwórz terminal w katalogu projektu i uruchom narzędzie wskazując ścieżkę do plików źródłowych: npx ai-prefetch ./src. Prefetcher przeskanuje strukturę tras i przepływy nawigacji.

  2. Jeśli chcesz skupić się na konkretnym przepływie użytkownika (np. po zalogowaniu), dodaj flagę --entry: npx ai-prefetch ./src --entry /dashboard. To zawęża analizę do ścieżek startujących z tego punktu.

  3. Aby uwzględnić analizę wywołań API, użyj flagi --include-api: npx ai-prefetch ./src --include-api. Narzędzie zidentyfikuje, które zapytania warto prefetchować razem z trasami.

  4. Wygeneruj gotowy kod prefetch za pomocą flagi --generate: npx ai-prefetch ./src --generate. Otrzymasz sugestie, które zasoby prefetchować i w jakim porządku.

  5. Jeśli używasz Next.js, zoptymalizuj prefetch linków: npx ai-prefetch ./src --framework next. Narzędzie dostosuje rekomendacje do komponentu Link z Next.js.

  6. Wdrażając prefetch, pamiętaj o best practices: prefetchuj na hover, nie na load; wybierz 2–3 najbardziej prawdopodobne następne akcje; używaj requestIdleCallback dla niekritycznych zasobów, aby nie marnować pasma użytkownika.

Related skills

fastapi-templates

by wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

Backend
327582

api-design-principles

by wshobson

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

Backend
50146

sql-optimization-patterns

by wshobson

Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

Backend
40163

supabase-operations

by elevanaltd

Supabase operational knowledge for migrations, RLS optimization, MCP tool benchmarks, and ADR-003 compliance. Use when validating database migrations, optimizing Row-Level Security policies, checking MCP tool performance, or ensuring Supabase operational standards. Triggers on:

Backend
27109

stripe-integration

by wshobson

Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.

Backend
40147

youtube-transcript

by michalparkola

Download YouTube video transcripts when user provides a YouTube URL or asks to download/get/fetch a transcript from YouTube. Also use when user wants to transcribe or get captions/subtitles from a YouTube video.

Backend
53214