site-content

site-content is a skill for Claude Code from datatorag/mcp-gateway. It costs 55 tokens per session (7,246 once invoked), scanned C, original, MIT.

Project-specific instructions for adding or editing content on datatorag.com, including blog posts, changelogs, documentation and landing-page sections. They describe the Markdown files, frontmatter and shared content loader used by the Next.js site.

In plain words
What is it for?
Adding or updating site content, using the correct frontmatter, placing files in the right collections and following the site's content conventions.
Why use it?
They help contributors follow the site's existing content structure instead of creating incompatible files or duplicate loading logic.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Part of the datatorag plugin — 16 skills, 4 agents, 1 hook, 1 MCP server shipped together

Good fit Adding or updating site content, using the correct frontmatter, placing files in the right collections and following the site's content conventions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/datatorag/mcp-gateway/site-content
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 datatorag/mcp-gateway --skill site-content
Clone the repo
git clone --depth 1 https://github.com/datatorag/mcp-gateway

Made for: Claude Code.

Or install datatorag, the plugin that ships this one along with the rest of its 16 skills, 4 agents, 1 hook, 1 MCP server.

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 site-content

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/datatorag/mcp-gateway/site-content"><img src="https://agentmods.dev/badge/skills/datatorag/mcp-gateway/site-content.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,246 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00055 $0.07246
Opus 5.5 $0.00022 $0.02898
Sonnet 5.5 $0.00011 $0.01449
Haiku 4.5 $0.00006 $0.00725

Measured today against content hash 5496fdf3a2d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

site-content scanned grade C with 1 finding 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 today.

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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

- **Component embed via marker**: a doc's markdown can place `<!--setup-instructions-->`
.claude/skills/site-content/SKILL.md · 437 lines

How it starts

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

Site Content

Load codebase-map first if you haven't — it has the one-paragraph summary of these systems. This skill is the detailed, code-accurate version: exact frontmatter fields, page conventions, and the checklist for shipping a content change on datatorag.com (a Next.js App Router site in apps/gateway).

Content systems

Blog, changelog, docs, and skills are markdown-in-repo, not a CMS — no MDX. All four run on one shared loader, apps/gateway/src/lib/content-collection.ts; the four near-identical hand-rolled copies it replaced had already drifted apart in their fallback handling, which is why it exists.

Each collection is declared with defineCollection<T>({ dir, parse, sort }). The loader reads content/<dir>/*.md from path.join(process.cwd(), "content", ...), parses frontmatter with gray-matter (matter()), derives the slug from the filename, hands each file to the collection's own parse as a ParsedFile ({ slug, data, content }), drops any file whose parse returns null, applies sort, and returns { getAll, getBySlug } — the slug lookup is Map-backed. The cache is per collection and populated once, with the same "content is static at deploy time" meaning as before: a markdown edit does nothing on a running server; it needs a restart/redeploy (dev server hot-reload aside).

Read frontmatter through the field.* helpers (field.string, field.number, field.stringArray) rather than hand-written typeof checks or ?? chains. Divergent fallback handling between collections is exactly the drift the shared loader removed — field.stringArray discards a non-array instead of coercing it, and that behaviour should stay uniform. Body-to-HTML is still each collection's own job (marked.parse(content) as string), because the four differ in how they split the body.

Adding a collection is: a parse function, a defineCollection call, and a type. Do not add a fifth loader.

Blog — apps/gateway/src/lib/blog.ts

Slug = filename without .md. Frontmatter fields, with fallback if omitted:

Read the full file on GitHub · 437 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. today Changed 5496fdf3a2d5
  2. 27d ago Changed · +17 lines cf56b6a51e46
  3. 1mo ago Changed · +13 lines 7e1e17e25269
  4. 1mo ago Changed · +133 lines ff0147387e57
  5. 1mo ago Changed · +6 lines 3bd341e89c00
  6. 1mo ago Changed · +8 lines 42e7324ec77a
  7. 2mo ago First seen · 260 lines · 55 tokens per session scan C 54a030056262

Subscribe to this mod's changes

site-content is a skill published in the GitHub repository datatorag/mcp-gateway (4 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 7,246 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

site-content compared with skills from other repositories

site-content next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
site-contentdatatorag/mcp-gatewaySkill4yesterdayMITC55Claude Code
imagegenopenai/codexSkill133ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code
chat-pet-sprite-creationmicrosoft/vscodeSkill195ktodayMITA53Claude Code, Codex