datapages-actions

datapages-actions is a skill for Claude Code, Codex from romshark/datapages. It costs 50 tokens per session (2,527 once invoked), scanned A, original, MIT.

A guide to writing Datapages handlers for POST, PUT, PATCH, and DELETE requests. It covers request data, streamed page updates, sessions, route values, query values, and HTTP errors.

In plain words
What is it for?
Use it for form submissions, create/update/delete operations, client signals, server-sent page patches, and action error handling.
Why use it?
It brings the rules for server-side actions into one place, reducing mistakes when accepting input or updating a connected page.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it for form submissions, create/update/delete operations, client signals, server-sent page patches, and action error handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/romshark/datapages/datapages-actions
Install

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.

Any agent
npx skills add romshark/datapages --skill datapages-actions
Clone the repo
git clone --depth 1 https://github.com/romshark/datapages

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for datapages-actions

README.md
[![agentmods](https://agentmods.dev/badge/skills/romshark/datapages/datapages-actions/github.svg)](https://agentmods.dev/skills/romshark/datapages/datapages-actions)
Your own site
<a href="https://agentmods.dev/skills/romshark/datapages/datapages-actions"><img src="https://agentmods.dev/badge/skills/romshark/datapages/datapages-actions/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.

agentmods 80×15 button for datapages-actions

Your own site · 80×15
<a href="https://agentmods.dev/skills/romshark/datapages/datapages-actions"><img src="https://agentmods.dev/badge/skills/romshark/datapages/datapages-actions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,527 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.02527
Opus 5.5 $0.00020 $0.01011
Sonnet 5.5 $0.00010 $0.00505
Haiku 4.5 $0.00005 $0.00253

Measured 1mo ago against content hash 277ec5b08702, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

datapages-actions 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.

example/calculator/.agents/skills/datapages-actions/SKILL.md · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Actions

Read datapages first for the build loop, hard rules and naming conventions.

Define a page action as a value-receiver method on its page type. Define an action not tied to a page as a method on *App. Give each action 1 route doc comment. A page action route must be below its page route. For example, /login/submit is valid for PageLogin at /login. An action route cannot end in a {name...} wildcard. Pass that value in a query parameter or a signal.

// POSTSubmit is /login/submit
func (PageLogin) POSTSubmit(r *http.Request) error { return nil }

// POSTSignOut is /sign-out/{$}
func (*App) POSTSignOut(r *http.Request) error { return nil }

GETXXX is a file action, not the page's GET handler. A browser loads it by URL from a link, image or download. It must return datapages.File and may take only *http.Request, Session, Path and Query. The generated href package builds its URL. A GET action skips CSRF checks and must not change server state.

Use a QUERYXXX action for a read that sends data in the body, such as a search with a large filter. It skips the CSRF check because QUERY is a safe method. Never change state in it.

Parameters

Parameters may appear in any order because the generator matches them by type. Names are unrestricted except for stateID. Read wrapped values from .Values.

type what
*http.Request required
datapages.SSE patches the stream of the calling page; page actions only, not *App actions
Session the current session, see datapages-sessions
datapages.Path[struct{...}] route variables, path:"id" tags
datapages.Query[struct{...}] query parameters, query:"p" tags
datapages.Signals[struct{...}] signals sent by the client, json:"v" tags
datapages.State[StateX] per-tab server state, see datapages-state
stateID string tab event address; requires State[T], see datapages-state
datapages.PageCacheWriter writes the offline page cache, see datapages-offline
datapages.Dispatcher[EventX] publishes EventX, see datapages-events

Read the full file on GitHub · 159 lines

Changes

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.

  1. 1mo ago Changed 277ec5b08702
  2. 1mo ago Changed · +2 lines 06aaeea9da9a
  3. 1mo ago Changed · +2 lines 3feffd331cad
  4. 1mo ago Changed b95dcb5b9918
  5. 1mo ago Changed · +3 lines af7766e759ff
  6. 1mo ago Changed · +49 lines · +5 tokens per session 657713cbc4c6
  7. 1mo ago Changed 00ec585999dd
  8. 1mo ago Changed · +2 lines · +2 tokens per session 827dcbfc30af
  9. 2mo ago Changed 76d1fed18fef
  10. 2mo ago First seen · 101 lines · 43 tokens per session scan A 4ac6eff36cad

Subscribe to this mod's changes

datapages-actions is a skill published in the GitHub repository romshark/datapages (122 stars, last pushed 6d ago), licensed MIT. It adds 50 tokens to every session and 2,527 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.

Related

datapages-actions compared with skills from other repositories

datapages-actions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
datapages-actionsromshark/datapagesSkill1226d agoMITA50Claude Code, Codex
structpagesjackielii/structpagesSkill2422d agoBSD-3-ClauseA154Claude Code
golang-proHappyMonkeyAI/AgentsProtocolSkill515d agoMITA61Claude Code, Codex
fastapifastapi/fastapiSkill105ktodayMITA57Claude Code, Codex
sanity-best-practicesvercel/eveSkill6.2ktodayApache-2.0A153Claude Code, Codex
pinchtabpinchtab/pinchtabSkill11k7d agoMITA94Codex
printing-press-amendmvanhorn/cli-printing-pressSkill5.1ktodayMITA222Claude Code