markdown-static-site-source

markdown-static-site-source is a skill for Claude Code, Codex from pedroiff0/awesome-skills. It costs 75 tokens per session (1,017 once invoked), scanned A, original, MIT.

A method for making a plain data-driven website editable through Markdown or Obsidian, a Markdown note-taking app, while leaving its HTML, CSS, and rendering code unchanged.

In plain words
What is it for?
It helps find the site's content data, create a Markdown source with optional YAML settings, generate the data file, and verify it against the original.
Why use it?
It moves content editing away from JavaScript or JSON files and checks that the site's meaning stays the same after each update.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps find the site's content data, create a Markdown source with optional YAML settings, generate the data file, and verify it against the original.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pedroiff0/awesome-skills/markdown-static-site-source
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 pedroiff0/awesome-skills --skill markdown-static-site-source
Clone the repo
git clone --depth 1 https://github.com/pedroiff0/awesome-skills

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 markdown-static-site-source

README.md
[![agentmods](https://agentmods.dev/badge/skills/pedroiff0/awesome-skills/markdown-static-site-source.svg)](https://agentmods.dev/skills/pedroiff0/awesome-skills/markdown-static-site-source)
Your own site
<a href="https://agentmods.dev/skills/pedroiff0/awesome-skills/markdown-static-site-source"><img src="https://agentmods.dev/badge/skills/pedroiff0/awesome-skills/markdown-static-site-source.svg" alt="Measured on agentmods" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,017 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.00075 $0.01017
Opus 5 $0.00037 $0.00508
Sonnet 5 $0.00015 $0.00203
Haiku 4.5 $0.00007 $0.00102

Measured 4d ago against content hash 006d9f7ecb45, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

markdown-static-site-source 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 4d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/generate_js_data.py, scripts/verify_deep_equal.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/web/markdown-static-site-source/SKILL.md · 45 lines

How it starts

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

Markdown as the source of truth for a JS-data-driven static site

When to use

  • A static site (plain HTML/CSS/JS, no build framework) renders content from a data object in a JS file, e.g. window.PORTFOLIO_DATA = {...} consumed by a render script (main.js) that builds the DOM.
  • The user wants to edit content in Markdown / Obsidian and have the site update, WITHOUT touching the HTML/template/CSS.
  • The render must stay EXACTLY the same (pixel/semantics identical to today).

Core idea

Find the "data seam": the single JS object the render engine reads. Make a Markdown file with YAML frontmatter the SOURCE OF TRUTH. Write a tiny generator that emits that same JS object. The render engine never changes → output is identical by construction. Verify the emitted object is semantically equal to the original, NOT byte-equal (formatting differs, meaning must not).

Steps

  1. Locate the data object. Grep for window.<X> = / const PORTFOLIO_DATA. Confirm what consumes it (e.g. main.js reads window.X and builds DOM).
  2. Snapshot the original data file to *.orig — this is your verification baseline.
  3. (Optional, one-time) seed.js: load the original JS (shim window / module.exports), dump the parsed object to a YAML-frontmatter MD. Freezes today's content as the source.
  4. build.py: read the MD, emit valid JS reconstructing the SAME object:
    • Serialize with a real JS-literal emitter (objects/arrays as {}/[], strings double-quoted with \" and \n escapes). Do NOT emit YAML — the browser must evaluate it.
    • Preserve structure exactly: same keys, same nesting, same field order where the consumer relies on it.
    • Resolve constants: if the original referenced variables inside the data (e.g. "https://orcid.org/" + ORCID), inline the values so the generated object equals the original at runtime.
    • For i18n, mirror the EXACT nesting of the original (e.g. bolsas may nest i18n.en = {title,kind,desc} per language). Match it; don't transpose unless you also change the consumer.
  5. verify.js (Node): load BOTH the generated file and *.orig via new Function('window', src + 'return window.X'), then deep-equal the objects. Exit 1 on diff. This is the real test — a byte diff will always show false positives.
  6. Pre-commit hook: run build.py so git commit always recompiles; git add the generated file.
  7. User workflow: edit src/<site>.md in Obsidian → python3 tools/build.pygit add -A && git commit && git push.

Read the full file on GitHub · 45 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 45 lines · 75 tokens per session scan A 006d9f7ecb45

Subscribe to this mod's changes

markdown-static-site-source is a skill published in the GitHub repository pedroiff0/awesome-skills (1 stars, last pushed yesterday), licensed MIT. It adds 75 tokens to every session and 1,017 once invoked, about $0.0004 per session on Opus 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-03.

Related

Other skills, from other repositories

hermes-desktop-plugins

Write plugins for the Hermes desktop app: statusbar items, layout panes, command-palette commands, keybinds, routes, and themes. A plugin is a single plain-JavaScript ESM file the app loads at runtime — no build step, no repo changes. A plugin can also talk to its own Python backend namespace (ctx.rest/ctx.socket →…

AtlasOmnia/donna-starter · 25 tokens

mnemosyne-maintenance

Use when: upgrading Mnemosyne, diagnosing slow/hung consolidation (mnemosynesleep), fixing missing embeddings, or troubleshooting import/version mismatches.

AtlasOmnia/donna-starter · 40 tokens

plugin-first-web-dashboard

Build remote dashboards as plugins in MCP-first services.

ggg123124/vrchat-assistant · 15 tokens

pebble-protocol-ui

Component catalogue for Pebble pebblesend type "ui" blocks — OpenUI Lang syntax, components, the action model (buttons, forms, $state), and what Pebble does NOT support. View when building an interactive UI block.

skyf0xx/Pebble · 58 tokens

receiving-webhooks

General guidelines for building a robust webhook receiver/handler: verifying signatures, raw-body access, replay protection, async processing, retries and endpoint auto-disabling. Use whenever you write, review, or debug a handler that consumes incoming webhooks from any provider.

svix/ai · 56 tokens

agile-web-builder-agent

A Web front-end planning helper that turns product handover materials into a project structure, suggested page files, components, screen states and a first coding task list.

zcweah1981/awesome-hermes-agent-zh · 50 tokens