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 romshark/datapages --skill datapages-offlinegit clone --depth 1 https://github.com/romshark/datapagesWrote 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/romshark/datapages/datapages-offline)<a href="https://agentmods.dev/skills/romshark/datapages/datapages-offline"><img src="https://agentmods.dev/badge/skills/romshark/datapages/datapages-offline/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/romshark/datapages/datapages-offline"><img src="https://agentmods.dev/badge/skills/romshark/datapages/datapages-offline.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.00042 | $0.02443 |
| Opus 5.5 | $0.00017 | $0.00977 |
| Sonnet 5.5 | $0.00008 | $0.00489 |
| Haiku 4.5 | $0.00004 | $0.00244 |
Grade A, and why
datapages-offline 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 16d 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 — 203 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Offline and instant loads
Read datapages first for the build loop, hard rules and naming conventions.
modules/offline serves a service worker and adds registration to HTML responses. Handlers write its cache through the pageCache datapages.PageCacheWriter parameter:
- Snapshots (
Set): served only while the browser is offline. - Shims (
SetShim): served online too, at once, then replaced by the live page.
The worker runs only in a secure context (HTTPS or localhost). Everywhere else the API does nothing.
Configure the module
Declaring PageOffline generates a WithOffline option with that page's route:
// PageOffline is /offline
type PageOffline struct{ App *App }
func (PageOffline) GET(r *http.Request) (body datapages.Component, err error) {
return pageOffline(), nil
}
opts := []datapages.ServerOption{
// Self-host Datastar: the CDN is unreachable offline.
datapages.WithDatastarJS(assets.Path("datastar-1.0.5.js")),
datapagesgen.WithOffline(app.OfflineConfig()),
}
// OfflineWorkerVersion identifies the installed worker and its cache. Increment
// it after a Datapages upgrade or a change to Assets, ExcludePaths,
// CrossOriginDestinations, OfflineClass, or PageOffline. Changes to Assets or
// PageOffline require a new installation because the worker fetches them only
// during installation.
const OfflineWorkerVersion = 1
func OfflineConfig() offline.Config {
return offline.Config{
WorkerVersion: OfflineWorkerVersion,
// Precache the files required to render cached pages offline.
Assets: []string{
assets.Path("style.css"), assets.Path("datastar-1.0.5.js"),
},
}
}
For shims without PageOffline, install the module directly:
offline.WithServiceWorker("", offline.Config{WorkerVersion: 1})
offline.Config field |
default |
|---|---|
WorkerVersion |
1; increment after a Datapages upgrade or a change to Assets, ExcludePaths, CrossOriginDestinations, OfflineClass, or PageOffline |
ScriptURL |
/service-worker.js; the scope is the whole origin either way |
Assets |
none; files cached during installation |
OfflineClass |
is-offline, toggled on <html> while offline |
CrossOriginDestinations |
image, style, script, font; empty non-nil disables |
ExcludePaths |
none; same-origin prefixes never cached |
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.
- 16d ago Changed c3483772929a
- 1mo ago Changed 1090e9847f2f
- 1mo ago Changed 16ce936a0964
- 1mo ago Changed 094355177778
- 1mo ago Changed fd95cf950685
- 1mo ago Changed 55f778f44f07
- 2mo ago Changed · +2 lines e66c3af9ad9e
- 2mo ago Changed · +2 lines 3e50ed6fd515
- 2mo ago First seen · 199 lines · 42 tokens per session scan A 09292e5e7f30
datapages-offline is a skill published in the GitHub repository romshark/datapages (122 stars, last pushed 6d ago), licensed MIT. It adds 42 tokens to every session and 2,443 once invoked, about $0.0002 per session on Opus 5.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-22.
datapages-offline compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| datapages-offlineromshark/datapages | Skill | 122 | 6d ago | MIT | A | 42 | Claude Code, Codex |
| playwrightopenai/openai-agents-python | Skill | 31k | today | MIT | A | 19 | Claude Code, Codex |
| pinchtabpinchtab/pinchtab | Skill | 11k | 7d ago | MIT | A | 94 | Codex |
| pinchtab-mcppinchtab/pinchtab | Skill | 11k | 7d ago | MIT | A | 52 | Claude Code, Codex |
| create-payment-credentialvercel/eve | Skill | 6.2k | today | Apache-2.0 | A | 23 | Claude Code, Codex |
| cabloy-mcp-resource-pagescabloy/cabloy | Skill | 987 | today | MIT | A | 107 | Claude Code, Codex |
| ketch1broseidon/ketch | Skill | 768 | 2d ago | MIT | A | 147 | Claude Code, Codex |