Enforces technical foundations for service workers, Wasm execution, and accessibility.
Install
mkdir -p .claude/skills/apis && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11016" && unzip -o skill.zip -d .claude/skills/apis && rm skill.zipInstalls to .claude/skills/apis
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Connection overhead: ├── Can tolerate connection setup per request → REST ├── Persistent connection needed for latency → WebSocket ├── Millions of short-lived connections → REST (HTTP/2 multiplexing) └── Dozens of persistent connections → WebSocketKey capabilities
- →Implement Service Workers
- →Execute WebAssembly
- →Manage IndexedDB
- →Ensure web accessibility
How it works
It use browser-native technologies to optimize performance and offline capabilities.
Inputs & outputs
When to use apis
- →Optimizing web performance
- →Implementing service workers
- →Executing wasm binaries
About this skill
Skill
1. Advanced Strategy and Execution
To optimize Skill, we enforce the following foundational rules:
- WebSockets & SSE: Utilizing Server-Sent Events for one-way realtime streams.
- Service Workers: Intercepting network requests for offline caching and Progressive Web App (PWA) support.
- WebAssembly (Wasm): Executing C/Rust binaries in the browser at near-native speeds.
- IndexedDB: Asynchronous client-side storage for massive structured datasets.
- Web Accessibility (a11y): Ensuring ARIA labels and keyboard navigation support for screen readers.
Core Implementation
navigator.serviceWorker.register('/sw.js').then(reg => {
console.log('SW registered!', reg);
}).catch(err => console.log('Boo!', err));
2. Advanced Strategy and Execution
To optimize Skill, we enforce the following foundational rules:
- Service Workers: Intercepting network requests for offline caching and Progressive Web App (PWA) support.
- IndexedDB: Asynchronous client-side storage for massive structured datasets.
- WebAssembly (Wasm): Executing C/Rust binaries in the browser at near-native speeds.
- Web Accessibility (a11y): Ensuring ARIA labels and keyboard navigation support for screen readers.
Mathematical Thresholds
$$ \text{Lighthouse Score} = \alpha \times \text{LCP} + \beta \times \text{FID} + \gamma \times \text{CLS} $$
3. Advanced Strategy and Execution
To optimize Skill, we enforce the following foundational rules:
- IndexedDB: Asynchronous client-side storage for massive structured datasets.
- WebAssembly (Wasm): Executing C/Rust binaries in the browser at near-native speeds.
- Web Accessibility (a11y): Ensuring ARIA labels and keyboard navigation support for screen readers.
System Architecture
graph TD
A[Browser] --> B{Service Worker}
B -->|Cache Hit| C[(Cache Storage)]
B -->|Cache Miss| D[Network]
D --> C
4. Advanced Strategy and Execution
To optimize Skill, we enforce the following foundational rules:
- WebAssembly (Wasm): Executing C/Rust binaries in the browser at near-native speeds.
- IndexedDB: Asynchronous client-side storage for massive structured datasets.
- Web Accessibility (a11y): Ensuring ARIA labels and keyboard navigation support for screen readers.
- WebSockets & SSE: Utilizing Server-Sent Events for one-way realtime streams.
- Service Workers: Intercepting network requests for offline caching and Progressive Web App (PWA) support.
Mathematical Thresholds
$$ \text{Lighthouse Score} = \alpha \times \text{LCP} + \beta \times \text{FID} + \gamma \times \text{CLS} $$
5. Advanced Strategy and Execution
To optimize Skill, we enforce the following foundational rules:
- Service Workers: Intercepting network requests for offline caching and Progressive Web App (PWA) support.
- Web Accessibility (a11y): Ensuring ARIA labels and keyboard navigation support for screen readers.
- WebSockets & SSE: Utilizing Server-Sent Events for one-way realtime streams.
- WebAssembly (Wasm): Executing C/Rust binaries in the browser at near-native speeds.
Core Implementation
navigator.serviceWorker.register('/sw.js').then(reg => {
console.log('SW registered!', reg);
}).catch(err => console.log('Boo!', err));
6. Advanced Strategy and Execution
To optimize Skill, we enforce the following foundational rules:
- Web Accessibility (a11y): Ensuring ARIA labels and keyboard navigation support for screen readers.
- WebSockets & SSE: Utilizing Server-Sent Events for one-way realtime streams.
- IndexedDB: Asynchronous client-side storage for massive structured datasets.
- Service Workers: Intercepting network requests for offline caching and Progressive Web App (PWA) support.
System Architecture
graph TD
A[Browser] --> B{Service Worker}
B -->|Cache Hit| C[(Cache Storage)]
B -->|Cache Miss| D[Network]
D --> C
7. Advanced Strategy and Execution
To optimize Skill, we enforce the following foundational rules:
- Service Workers: Intercepting network requests for offline caching and Progressive Web App (PWA) support.
- WebAssembly (Wasm): Executing C/Rust binaries in the browser at near-native speeds.
- Web Accessibility (a11y): Ensuring ARIA labels and keyboard navigation support for screen readers.
- IndexedDB: Asynchronous client-side storage for massive structured datasets.
- WebSockets & SSE: Utilizing Server-Sent Events for one-way realtime streams.
Core Implementation
navigator.serviceWorker.register('/sw.js').then(reg => {
console.log('SW registered!', reg);
}).catch(err => console.log('Boo!', err));
8. Advanced Strategy and Execution
To optimize Skill, we enforce the following foundational rules:
- WebAssembly (Wasm): Executing C/Rust binaries in the browser at near-native speeds.
- WebSockets & SSE: Utilizing Server-Sent Events for one-way realtime streams.
- IndexedDB: Asynchronous client-side storage for massive structured datasets.
- Service Workers: Intercepting network requests for offline caching and Progressive Web App (PWA) support.
- Web Accessibility (a11y): Ensuring ARIA labels and keyboard navigation support for screen readers.
Mathematical Thresholds
$$ \text{Lighthouse Score} = \alpha \times \text{LCP} + \beta \times \text{FID} + \gamma \times \text{CLS} $$
9. Advanced Strategy and Execution
To optimize Skill, we enforce the following foundational rules:
- Service Workers: Intercepting network requests for offline caching and Progressive Web App (PWA) support.
- IndexedDB: Asynchronous client-side storage for massive structured datasets.
- WebAssembly (Wasm): Executing C/Rust binaries in the browser at near-native speeds.
- Web Accessibility (a11y): Ensuring ARIA labels and keyboard navigation support for screen readers.
- WebSockets & SSE: Utilizing Server-Sent Events for one-way realtime streams.
System Architecture
graph TD
A[Browser] --> B{Service Worker}
B -->|Cache Hit| C[(Cache Storage)]
B -->|Cache Miss| D[Network]
D --> C
10. Advanced Strategy and Execution
To optimize Skill, we enforce the following foundational rules:
- IndexedDB: Asynchronous client-side storage for massive structured datasets.
- WebSockets & SSE: Utilizing Server-Sent Events for one-way realtime streams.
- WebAssembly (Wasm): Executing C/Rust binaries in the browser at near-native speeds.
- Service Workers: Intercepting network requests for offline caching and Progressive Web App (PWA) support.
Mathematical Thresholds
$$ \text{Lighthouse Score} = \alpha \times \text{LCP} + \beta \times \text{FID} + \gamma \times \text{CLS} $$
11. Advanced Strategy and Execution
To optimize Skill, we enforce the following foundational rules:
- WebSockets & SSE: Utilizing Server-Sent Events for one-way realtime streams.
- WebAssembly (Wasm): Executing C/Rust binaries in the browser at near-native speeds.
- Service Workers: Intercepting network requests for offline caching and Progressive Web App (PWA) support.
- Web Accessibility (a11y): Ensuring ARIA labels and keyboard navigation support for screen readers.
- IndexedDB: Asynchronous client-side storage for massive structured datasets.
Core Implementation
navigator.serviceWorker.register('/sw.js').then(reg => {
console.log('SW registered!', reg);
}).catch(err => console.log('Boo!', err));
When not to use it
- →Server-side logic
Limitations
- →Requires modern browser support
- →Complexity of implementation
How it compares
It focuses on advanced browser-native performance strategies rather than server-side optimization.
Compared to similar skills
apis side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| apis (this skill) | 0 | 1mo | Review | Advanced |
| web-games | 11 | 6mo | No flags | Intermediate |
| pwa-development | 9 | 4mo | Caution | Intermediate |
| vite | 7 | 5mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
web-games
davila7
Web browser game development principles. Framework selection, WebGPU, optimization, PWA.
pwa-development
alinaqi
Progressive Web Apps - service workers, caching strategies, offline, Workbox
vite
antfu
Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building libraries/SSR apps with Vite.
webf-infinite-scrolling
openwebf
Create high-performance infinite scrolling lists with pull-to-refresh and load-more capabilities using WebFListView. Use when building feed-style UIs, product catalogs, chat messages, or any scrollable list that needs optimal performance with large datasets.
js-hoist-regexp
TheOrcDev
Hoist RegExp creation outside render or memoize with useMemo(). Apply when using regular expressions in React components or frequently called functions.
webf-async-rendering
openwebf
Understand and work with WebF's async rendering model - handle onscreen/offscreen events and element measurements correctly. Use when getBoundingClientRect returns zeros, computed styles are incorrect, measurements fail, or elements don't layout as expected.