datapages-templates

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

A reference for writing Templ templates for a Datapages application. Templ is a Go-based HTML templating system whose files are compiled into Go code.

In plain words
What is it for?
Use it when creating Datapages templates, page links, asset URLs, query parameters, or actions in `.templ` files.
Why use it?
It explains the project's rules for generated links, form actions, URL safety, and template compilation so invalid pages are caught early.

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 when creating Datapages templates, page links, asset URLs, query parameters, or actions in .templ files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/romshark/datapages/datapages-templates
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-templates
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-templates

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/romshark/datapages/datapages-templates"><img src="https://agentmods.dev/badge/skills/romshark/datapages/datapages-templates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,991 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.00044 $0.02991
Opus 5.5 $0.00018 $0.01196
Sonnet 5.5 $0.00009 $0.00598
Haiku 4.5 $0.00004 $0.00299

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

Security

Grade A, and why

datapages-templates 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-templates/SKILL.md · 181 lines

How it starts

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

Templates

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

A Templ component implements datapages.Component, so handlers can return it. Run templ generate to compile .templ files to _templ.go. Datapages does not run this command. Templ docs: https://templ.guide/llms.md

Return application HTML as a Templ datapages.Component. Do not render it into a datapages.File: its bytes bypass Templ's contextual escaping and the Datapages template linter.

The generated href package has 1 function for each page, named after its page type. Query structs are named href.Query<PageType>. Zero-value fields are omitted from the URL.

<a href={ href.PageIndex() }>Home</a>
<a href={ href.PagePost(post.Slug) }>{ post.Title }</a>
<a href={ href.PageMessages(href.QueryPageMessages{Chat: chatID}) }>Messages</a>
<a href={ href.Asset("logo.svg") }>Logo</a>

The linter rejects a hardcoded root-relative, relative, query-only or empty href. It also rejects javascript:. Literal https://, mailto:, tel:, #frag and //cdn.example.com values are valid. Use href.External(url) for an external URL computed by the app.

Inside href={ ... }, use an href package call, string literal or constant. The linter rejects variables and other calls, including fmt.Sprintf and templ.SafeURL, because it cannot resolve them.

A GETXXX action, which answers with a datapages.File, has a URL builder that is a method of its owner: (*App).GETImage becomes href.App.Image(name), PageDoc.GETExport becomes href.PageDoc.Export(id). href.PageDoc(id) still builds the URL of the page. Pass a query value from the constructor next to the builder, as href.App.Image(name, href.App.ImageQuery(width)). Use these builders in src and href, such as href.App.Image(img.Name) for an image or href.PageDoc.Export(doc.ID) for a download link. The action package has no helper for a GET action: a browser loads it by URL.

Read the full file on GitHub · 181 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 7f5b87586ae9
  2. 1mo ago Changed a2c69305c6c5
  3. 1mo ago Changed · +80 lines · +3 tokens per session fac1e25f0ee3
  4. 2mo ago Changed · +2 lines 677492b13f94
  5. 2mo ago Changed 9e6d5fd0b43d
  6. 2mo ago First seen · 99 lines · 41 tokens per session scan A 379a30e4b3a1

Subscribe to this mod's changes

datapages-templates is a skill published in the GitHub repository romshark/datapages (122 stars, last pushed 6d ago), licensed MIT. It adds 44 tokens to every session and 2,991 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-templates compared with skills from other repositories

datapages-templates next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
datapages-templatesromshark/datapagesSkill1226d agoMITA44Claude Code, Codex
go-idiomsirahardianto/awesome-agvSkill1651mo agoMITA54Claude Code, Codex
structpagesjackielii/structpagesSkill2422d agoBSD-3-ClauseA154Claude Code
golang-proHappyMonkeyAI/AgentsProtocolSkill515d agoMITA61Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k7d agoMITA52Claude Code, Codex
reviewvercel/eveSkill6.2ktodayApache-2.0A31Claude Code, Codex
bex-background-workersbex-co/bexSkill1.6ktodayApache-2.0A118Claude Code, Codex