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.
git clone --depth 1 https://github.com/acaprino/daodanWrote 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/commands/acaprino/daodan/pwa-scaffold)<a href="https://agentmods.dev/commands/acaprino/daodan/pwa-scaffold"><img src="https://agentmods.dev/badge/commands/acaprino/daodan/pwa-scaffold/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/commands/acaprino/daodan/pwa-scaffold"><img src="https://agentmods.dev/badge/commands/acaprino/daodan/pwa-scaffold.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.00056 | $0.01583 |
| Opus 5 | $0.00028 | $0.00792 |
| Sonnet 5 | $0.00011 | $0.00317 |
| Haiku 4.5 | $0.00006 | $0.00158 |
Grade A, and why
pwa-scaffold scanned grade A with 0 findings 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 4d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/pwa-expert:pwa-scaffold
Scaffold a production-ready PWA into the current project. Delegate execution to pwa-architect. The agent reads the relevant references (manifest.md, service-workers.md, frameworks-tooling.md) on-demand.
Framework detection
- Parse
package.jsonif present. - Look for
vite.config.*,next.config.*,angular.json,nuxt.config.*in the project root. - If
$ARGUMENTSis provided, use it (one of:vite,next,angular,nuxt,vanilla). - If detection is ambiguous, ask the user via
AskUserQuestionwhich framework to target.
Inputs to collect
Before generating files, use AskUserQuestion to gather:
- App name (full): used for manifest
name. Example: "Acme Productivity Suite". - App name (short): used for manifest
short_nameand the iOS metaapple-mobile-web-app-title. Example: "Acme". - Description: used for manifest
description. - Theme color (hex): used for manifest
theme_colorand the<meta name="theme-color">. Default:#0f172a. - Background color (hex): used for manifest
background_colorand Android splash. Default:#ffffff. - Two primary shortcuts (name + URL each): for manifest
shortcuts. Defaults can be skipped if the user does not have them yet.
Idempotency
Before writing each file, check if it exists. If it does, show a diff and ask via AskUserQuestion whether to overwrite, merge, or skip. Never silently overwrite an existing manifest or SW.
Generated artifacts (per framework)
Vite (vite-plugin-pwa)
public/manifest.webmanifestwith the full set of members permanifest.md(id, display_override, icons any+maskable, screenshots wide+narrow, shortcuts).vite.config.ts(or.js): add theVitePWAplugin fromvite-plugin-pwawithregisterType: 'prompt',strategies: 'generateSW', manifest reference,workbox.runtimeCachingwith the four canonical strategies (CacheFirst for hashed assets, NetworkFirst for navigation withnetworkTimeoutSeconds: 3, StaleWhileRevalidate for low-criticality data, NetworkOnly + BackgroundSyncPlugin for POST mutations). Ifvite.config.*already exists, modify it in-place via Edit. Never overwrite.index.html: insert the iOS meta tag block plus<link rel="manifest" href="/manifest.webmanifest" crossorigin="use-credentials">and<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">.- Registration:
vite-plugin-pwaprovidesvirtual:pwa-register. Addimport { registerSW } from 'virtual:pwa-register'and the workbox-window banner pattern (seeservice-workers.md) insrc/main.ts(x). public/icons/README.md: explain the icon requirements (192+512 PNGany, 192+512 PNGmaskable, 180x180 opaqueapple-touch-icon.png, optional SVGany). Include the 40 percent safe-zone rule for maskable icons.public/icons/: empty stub files (icon-192.png,icon-512.png,icon-maskable-192.png,icon-maskable-512.png,apple-touch-icon.png) as 0-byte placeholders to make the manifest valid before real icons are supplied.
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.
- 4d ago First seen · 87 lines · 56 tokens per session scan A 437813ef82f7
pwa-scaffold is a command published in the GitHub repository acaprino/daodan (9 stars, last pushed yesterday), licensed MIT. It adds 56 tokens to every session and 1,583 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.
Other commands, from other repositories
ui-flow-review
Review menus, HUD, navigation, and player flow from a UX perspective.
responsive-design-specialist
Use when a layout breaks between sizes. Arbitrary breakpoints, type that does not scale, images that blow out the grid, or a desktop design retrofitted onto mobile.
design-form
Design a form with the fewest fields that works, clear labels, and errors that help.
frontend-3d
You are an expert in 3D web development using Three.js, React Three Fiber, WebGL, and WebGPU. You create immersive 3D experiences for the web.
frontend-design
Read and follow the instructions in agents/frontend-design/design-all.md. Also read all referenced files in agents/frontend-design/reference/ as needed for the task.
get-component-source
The full TSX source of a component (append " demo" for its usage example).