- Home
- Skills
- Frontend & Web Apps
- site-generator
Site Generator
by Haiyang Lan
High-speed static site generator for makefun-site 1.0.0 semantics with compiled templates and zero dependencies.
$9
site-generator
Example session with this skill installed
Generate a static site from input/cases.json using the site-generator skill. My input includes a 'post' template and two Markdown files with title and date front matter.
- Read your context and instructions
- Compiled the site-generator
I have processed the input cases and generated the HTML site tree. The templates were compiled to optimized JavaScript functions, and all Markdown files were rendered according to makefun-site 1.0.0 semantics.
Build Results
[
{
"index.html": "<!DOCTYPE html>\n<html>\n<head><title>Dev Blog</title></head>\n<body>\n<h1>Recent Posts</h1>\n<ul>\n<li><a href=\"posts/hello-world.html\">Hello World</a> - 2023-10-01</li>\n<li><a href=\"posts/second-post.html\">Second Post</a> - 2023-10-05</li>\n</ul>\n</body>\n</html>",
"posts/hello-world.html": "<!DOCTYPE html>\n<html>\n<head><title>Hello World</title></head>\n<body>\n<article>\n<h1>Hello World</h1>\n<p>Published on: 2023-10-01</p>\n<p>This is the first post rendered via the optimized single-pass renderer.</p>\n</article>\n</body>\n</html>",
"posts/second-post.html": "<!DOCTYPE html>\n<html>\n<head><title>Second Post</title></head>\n<body>\n<article>\n<h1>Second Post</h1>\n<p>Published on: 2023-10-05</p>\n<p>Testing the slugify memoization and template include logic.</p>\n</article>\n</body>\n</html>"
}
]
Next steps
- Inspect
out/answers.jsonto verify the full directory structure and content. - Update
site.per_pageincases.jsonif you need to adjust pagination logic. - Add
{% include \"header\" %}to your templates to test the static path resolution.
Connects securely to your tools. The creator never sees your data.
About this skill
Static site generation often slows down as the file count grows or template engines add overhead. This skill provides a high-speed reimplementation of the makefun-site 1.0.0 semantics, converting Markdown and templates into a full HTML tree using optimized JS compilation.
What it does
- Template compilation compiles source templates into plain JS functions once per case to eliminate runtime overhead.
- Static resolution inlines includes and resolves paths statically during the build process.
- Single-pass rendering uses an efficient Markdown renderer to process content quickly.
- Slug optimization employs an ASCII fast path and per-case memoization for generating URL slugs.
- Makefun compatibility maintains strict adherence to makefun-site 1.0.0 semantics for front matter and template dialects.
How it works
- Prepare input by creating a
cases.jsonfile containing your site metadata, template sources, and Markdown files. - Configure environment by setting
MAKEFUN_INPUT_DIRandMAKEFUN_OUTPUT_DIRin your shell. - Execute build using Node 22 to process the input cases into HTML trees.
- Retrieve output from
answers.json, which contains the generated{path: text}mappings for every case.
Frameworks & tools
Built for Node 22 using only the standard library. It targets the makefun-site 1.0.0 specification, supporting YAML-ish front matter and a custom template dialect.
Why this beats prompting it yourself
Generic prompts often hallucinate template logic or struggle with complex path resolution across multiple files. This skill implements a specialized, dependency-free compiler that ensures output matches the reference build exactly while maximizing execution speed.
Use cases
- Bulk site generation for portfolios or documentation sites from a single JSON source.
- CI/CD build steps requiring zero-dependency, network-isolated static site compilation.
- Benchmarking site generation speed against the makefun-site reference implementation.
Known limitations
Requires Node 22. Supports only the specific Markdown subset and template dialect defined in the makefun-site 1.0.0 spec. No support for external NPM dependencies or network-based assets.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 11 days ago
Permissions
What's inside
Frequently Asked Questions
New in Frontend & Web Apps
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.