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.00040 | $0.04661 |
| Opus 5.5 | $0.00016 | $0.01864 |
| Sonnet 5.5 | $0.00008 | $0.00932 |
| Haiku 4.5 | $0.00004 | $0.00466 |
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 10d ago.
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 — 431 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());
}
});
interface QueuedOfflineMutation {
readonly idempotencyKey: string;
readonly endpoint: string;
readonly method: 'POST' | 'PUT' | 'PATCH' | 'DELETE';
readonly bodyJson: string;
}
async function flushOfflineMutationQueue(): Promise<void> {
const cache = await caches.open('offline-mutation-outbox-v1');
const requests = await cache.keys();
for (const req of requests) {
const stored = await cache.match(req);
if (!stored) continue;
const item = (await stored.json()) as QueuedOfflineMutation;
const response = await fetch(item.endpoint, {
method: item.method,
headers: {
'Content-Type': 'application/json',
'Idempotency-Key': item.idempotencyKey,
},
body: item.bodyJson,
});
if (response.ok || (response.status >= 400 && response.status < 500 && response.status !== 429)) {
await cache.delete(req);
}
}
}
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.
- 10d ago Changed · +10 lines 6576e60e35ca
- 15d ago Changed · +81 lines cf820e73eac5
- 24d ago Changed · +24 lines · -26 tokens per session 3c45acadd01e
- 1mo ago Changed · +10 lines 98235a4f933f
- 1mo ago Changed · +1 lines aa94e8199245
- 1mo ago Changed · +78 lines 1f79e4d4610b
- 1mo ago Changed 2dc10a43a3b9
- 1mo ago Changed ce21e7921167
- 1mo ago Changed cae264a46ea2
- 2mo ago First seen · 227 lines · 66 tokens per session scan A 73ecf91a73b2
pwa-offline-first-expert is a skill published in the GitHub repository roedyrustam/vibes-plug (129 stars, last pushed 3d ago), licensed MIT. It adds 40 tokens to every session and 4,661 once invoked, about $0.0002 per session on Opus 5.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.
pwa-offline-first-expert compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pwa-offline-first-expertroedyrustam/vibes-plug | Skill | 129 | 3d ago | MIT | A | 40 | Cursor |
| ai-engineering-toolkitsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 47 | Claude Code |
| ai-prompt-regression-testingsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 37 | Claude Code |
| ios-developmentAnastasiyaW/codex-claude-code-config | Skill | 218 | 3d ago | MIT | A | 188 | Claude Code |
| nativesimota/agent-skills | Skill | 106 | 12d ago | MIT | A | 53 | Claude Code, Codex |
| voyagersimota/agent-skills | Skill | 106 | 12d ago | MIT | A | 42 | Claude Code, Codex |
| react-native-experttech-leads-club/agent-skills | Skill | 7.2k | 3d ago | none | A | 127 | Claude Code, Codex |