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.zip

Installs 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 → WebSocket
248 chars · catalog descriptionno explicit “when” trigger
Advanced

Key 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

You give it
Performance goal
You get back
Optimization strategy

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.

SkillInstallsUpdatedSafetyDifficulty
apis (this skill)01moReviewAdvanced
web-games116moNo flagsIntermediate
pwa-development94moCautionIntermediate
vite75moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry