Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add roedyrustam/vibes-plug --skill pwa-offline-first-expertgit clone --depth 1 https://github.com/roedyrustam/vibes-plugWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/roedyrustam/vibes-plug/pwa-offline-first-expert)<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/pwa-offline-first-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/pwa-offline-first-expert/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/pwa-offline-first-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/pwa-offline-first-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00066 | $0.02008 |
| Opus 5 | $0.00033 | $0.01004 |
| Sonnet 5 | $0.00013 | $0.00402 |
| Haiku 4.5 | $0.00007 | $0.00201 |
Grade A, and why
pwa-offline-first-expert scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
const fetchPromise = fetch(request) How it starts
The opening of the file, as written. The whole thing — 227 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PWA & Offline-First Expert (2026 Edition)
English
Description
Expert guide for building enterprise-grade Local-First and Progressive Web Applications (PWA). Eliminates loading spinners by reading and writing to local databases (OPFS SQLite, RxDB, IndexedDB) first, replicating seamlessly in the background with zero conflict (CRDTs, ElectricSQL, PowerSync), and packaging to native stores via PWABuilder.
Trigger Conditions
- Applications requiring full offline functionality (field operations, mobile dashboards, transit apps).
- User experience demands 0ms local read/write latency without loading spinners.
- Multi-device sync architecture with automatic conflict resolution.
- Packaging web apps for distribution on Google Play Store, iOS Safari PWA, or Microsoft Store.
1. The Local-First Principles (2026 Standard)
- No Spinners for Local Data: UI reads and writes to local storage (OPFS / IndexedDB) synchronously. Latency is always 0ms.
- Multi-Device Conflict-Free Replication: Changes replicate in the background using CRDTs or central event logs (ElectricSQL / PowerSync).
- Network is an Enhancement: App is 100% functional on an airplane or subway without internet.
- User Owns Their Data: Data persists on client hardware first; cloud server is a backup/sync relay.
2. Production Recipe: Service Worker Caching (Workbox v7 / Native SW)
// sw.ts - Production Service Worker with Stale-While-Revalidate
/// <reference lib="webworker" />
declare const self: ServiceWorkerGlobalScope;
const CACHE_NAME = 'app-v2.11.0-cache';
const STATIC_ASSETS = [
'/',
'/index.html',
'/manifest.json',
'/styles/global.css',
'/icons/icon-512x512.png',
];
// 1. Install & Pre-cache critical application shell
self.addEventListener('install', (event) => {
event.waitUntil(
caches.open(CACHE_NAME).then((cache) => cache.addAll(STATIC_ASSETS))
);
self.skipWaiting();
});
// 2. Activate & Clean stale caches
self.addEventListener('activate', (event) => {
event.waitUntil(
caches.keys().then((keys) =>
Promise.all(
keys.filter((k) => k !== CACHE_NAME).map((k) => caches.delete(k))
)
)
);
self.clients.claim();
});
// 3. Stale-While-Revalidate Strategy for Navigation & API GETs
self.addEventListener('fetch', (event) => {
const { request } = event;
// Ignore POST/PUT/DELETE mutations (handled by offline sync queues)
if (request.method !== 'GET') return;
event.respondWith(
caches.open(CACHE_NAME).then(async (cache) => {
const cachedResponse = await cache.match(request);
const fetchPromise = fetch(request)
.then((networkResponse) => {
if (networkResponse.status === 200) {
cache.put(request, networkResponse.clone());
}
return networkResponse;
})
.catch(() => cachedResponse || Response.error());
return cachedResponse || fetchPromise;
})
);
});
// 4. Background Sync for offline mutations
self.addEventListener('sync', (event: any) => {
if (event.tag === 'sync-mutations') {
event.waitUntil(flushOfflineMutationQueue());
}
});
async function flushOfflineMutationQueue() {
// Read pending mutations from IndexedDB and POST to backend
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 227 lines · 66 tokens per session scan A da4e154d2976
pwa-offline-first-expert is a skill published in the GitHub repository roedyrustam/vibes-plug (53 stars, last pushed yesterday), licensed MIT. It adds 66 tokens to every session and 2,008 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.
Other skills, from other repositories
expo
Expert in Expo for React Native development. Covers Expo Router, EAS Build and Submit, development builds, native module integration, and production deployment. Knows how to build cross-platform mobile apps efficiently while maintaining access to native capabilities. Use when "expo, react native, mobile app, eas…
dart-flutter-patterns
A collection of architecture and coding patterns for building Dart and Flutter applications, including state management, navigation, networking, storage, and tests.
flutter-add-widget-preview
Adds interactive widget previews to the project using the previews.dart system. Use when creating new UI components or updating existing screens to ensure consistent design and interactive testing.
flutter-setup-declarative-routing
Configure MaterialApp.router using a package like gorouter for advanced URL-based navigation. Use when developing web applications or mobile apps that require specific deep linking and browser history support.
compose-multiplatform-patterns
Compose Multiplatform and Jetpack Compose patterns for KMP projects — state management, navigation, theming, performance, and platform-specific UI.
flutter-apply-architecture-best-practices
Architects a Flutter application using the recommended layered approach (UI, Logic, Data). Use when structuring a new project or refactoring for scalability.