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-eventsgit 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-events)<a href="https://agentmods.dev/skills/romshark/datapages/datapages-events"><img src="https://agentmods.dev/badge/skills/romshark/datapages/datapages-events/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-events"><img src="https://agentmods.dev/badge/skills/romshark/datapages/datapages-events.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.01769 |
| Opus 5.5 | $0.00022 | $0.00708 |
| Sonnet 5.5 | $0.00011 | $0.00354 |
| Haiku 4.5 | $0.00006 | $0.00177 |
Grade A, and why
datapages-events 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 1mo 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 — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Events
Read datapages first for the build loop, hard rules and naming conventions. Read datapages-state when the page uses per-tab server state.
A handler dispatches an event type. Datapages delivers it over SSE to subscribed pages. Declare the type in the app package or an imported package. Types in imported packages can be shared by multiple apps.
// EventMessageSent is "messaging.sent"
type EventMessageSent struct {
Message string `json:"message"`
}
Dispatch
Add a datapages.Dispatcher[EventX] parameter, 1 per event type.
func (PageChat) POSTSend(
r *http.Request,
messageSent datapages.Dispatcher[EventMessageSent],
) error {
return messageSent.Dispatch(EventMessageSent{Message: "hello"})
}
Dispatch uses the handler's context. Use DispatchCtx(ctx, ev) when the publish can outlive the handler or needs a separate deadline. An action can use r.Context(). An On handler has no request and can use sse.Context(). Publishes through multiple dispatchers are not atomic. Combine their errors with errors.Join.
Handle
On + the event name, on a page or on an embedded type.
func (PageChat) OnMessageSent(
event EventMessageSent,
sse datapages.SSE,
streamID datapages.StreamID, // optional
session Session, // optional
) error {
return sse.PatchElement(messageComponent(event.Message))
}
The event and sse are required. On handlers cannot accept signals. Put required data on the event, or use datapages.State[T] for per-tab data.
Datapages logs an error that an On handler returns and keeps the stream open. It does not call RecoverError, so send feedback with sse before returning. A panic reaches RecoverError as a datapages.PanicError and closes the stream.
Subjects
A subject field must have the exact type datapages.Subject or datapages.SubjectUser. The generator rejects a defined type such as type Recipient datapages.SubjectUser, and a field that holds a subject type, such as []datapages.SubjectUser, which would route nothing. Subject fields must be exported and must precede payload fields. Their values extend the base subject in field order, separated by periods. EventDirectMessage{Recipient: "u1"} publishes to messaging.direct.u1. A subject field must not be tagged json:"-": the payload carries its value, the subject only routes the event.
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.
- 1mo ago Changed · +22 lines f80cae43c039
- 1mo ago Changed · +2 lines e811140452d3
- 1mo ago Changed 5ce7dd4aa418
- 1mo ago Changed f2e785af0ffb
- 2mo ago Changed 64df3c383da9
- 2mo ago Changed · +2 lines 4e29fa70df8d
- 2mo ago Changed 7f8acb7a6748
- 2mo ago Changed 09cde78c74d6
- 2mo ago First seen · 100 lines · 56 tokens per session scan A a49145c3273a
datapages-events is a skill published in the GitHub repository romshark/datapages (122 stars, last pushed 6d ago), licensed MIT. It adds 56 tokens to every session and 1,769 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-20.
datapages-events compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| datapages-eventsromshark/datapages | Skill | 122 | 6d ago | MIT | A | 56 | Claude Code, Codex |
| structpagesjackielii/structpages | Skill | 24 | 22d ago | BSD-3-Clause | A | 154 | Claude Code |
| golang-proHappyMonkeyAI/AgentsProtocol | Skill | 5 | 15d ago | MIT | A | 61 | Claude Code, Codex |
| fastapifastapi/fastapi | Skill | 105k | today | MIT | A | 57 | Claude Code, Codex |
| sanity-best-practicesvercel/eve | Skill | 6.2k | today | Apache-2.0 | A | 153 | Claude Code, Codex |
| pinchtabpinchtab/pinchtab | Skill | 11k | 7d ago | MIT | A | 94 | Codex |
| printing-press-amendmvanhorn/cli-printing-press | Skill | 5.1k | today | MIT | A | 222 | Claude Code |