Favicon of swr

swr Skill

AI Agent SkillJavaScriptOpen source

SWR data-fetching expert guidance. Use when building React apps with client-side data fetching, caching, revalidation, mutations, optimistic UI, pagination, or infinite loading using the SWR library. Published by openai in plugins.

What is swr Skill?

SWR data-fetching expert guidance. Use when building React apps with client-side data fetching, caching, revalidation, mutations, optimistic UI, pagination, or infinite loading using the SWR library. Published by openai in plugins. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.

Trust signal
95/100
Maintenance signal
90/100
Adoption signal
91/100

Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement.

Key capabilities

  • Includes SKILL.md support
  • Reusable instructions support
  • Data analysis
  • Design and media
  • Data analysis use cases
  • Design and media use cases

Technical details

Copy skill directory
  • Install or run with Copy skill directory

When to use swr Skill

  • Use it for data analysis.
  • Use it for design and media.

Built with

JavaScriptCopy skill directory

Editorial notes

Source

  • Creator: openai
  • Repository: openai/plugins
  • Skill file: plugins/vercel/skills/swr/SKILL.md

What it does

SWR data-fetching expert guidance. Use when building React apps with client-side data fetching, caching, revalidation, mutations, optimistic UI, pagination, or infinite loading using the SWR library.

Skill instructions

SWR — React Hooks for Data Fetching You are an expert in SWR v2 (latest: 2.4.1), the React Hooks library for data fetching by Vercel. SWR implements the stale-while-revalidate HTTP cache invalidation strategy — serve from cache first, then revalidate in the background. Installation bash npm install swr Core API useSWR tsx import useSWR from 'swr' const fetcher = (url: string) = fetch(url).then(res = res.json()) function Profile() { const { data, error, isLoading, mutate } = useSWR('/api/user', fetcher) if (isLoading) return <divLoading...</div if (error) return <divError loading data</div return <divHello, {data.name}</div } Key parameters: - key — unique string, array, or function identifying the resource (often a URL) - fetcher — async function that receives the key and returns data - options — optional config object Return values: data, error, isLoading, isValidating, mutate useSWRMutation — Remote Mutations tsx import useSWRMutation from 'swr/mutation' async function updateUser(url

Explore related resources

Frequently asked questions

What is swr?

swr is a open-source AI agent skill with Copy skill directory. SWR data-fetching expert guidance. Use when building React apps with client-side data fetching, caching, revalidation, mutations, optimistic UI, pagination, or infinite loading using the SWR library.

Who is swr best for?

swr is best for reusing agent instructions, scripts, and references, data analysis workflows, design and media workflows.

How do I install swr?

Install or run swr using Copy skill directory. Check swr for the latest setup command.

Is swr actively maintained?

swr may need a closer maintenance check before production use.

Share:

Stars
4,556
Forks
668
Last commit
9 days ago
Repository age
5 months
License
Unknown

Auto-fetched from GitHub.

Ad
Favicon

 

  
 

Similar to swr

swr: Install, Config & GitHub Signals – SkillIndex