swr
Pass
Audited by Gen Agent Trust Hub on Mar 15, 2026
Risk Level: SAFE
Full Analysis
- Standard Package References: The skill references the
swrlibrary, which is a widely used and trusted React hook for data fetching. Installation instructions use standard package managers (npm, pnpm, yarn, bun) to fetch the library from the official registry. - Network Operations: The code examples demonstrate the use of standard web APIs such as
fetchandWebSocketfor data retrieval and real-time updates. These are essential for the skill's primary purpose of providing data-fetching guidance. - Input Handling Patterns: The skill provides examples of conditional fetching and optimistic updates using user-defined keys and fetcher functions. This is a core part of the SWR API and is presented in a safe, educational manner.
- Global Configuration: Includes instructions for using
SWRConfigto set application-wide defaults, which is a best practice for managing data-fetching behavior in React applications.
Audit Metadata