# site-generator

> High-speed static site generator for makefun-site 1.0.0 semantics with compiled templates and zero dependencies.

site-generator is a paid AI agent skill on Agensi by Haiyang Lan, in Frontend & Web Apps. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Haiyang Lan](https://www.agensi.io/creators/haiyang-lan)
- Category: [Frontend & Web Apps](https://www.agensi.io/skills/frontend-web-apps)
- Version: 1.0
- Last updated: 2026-11-24
- Security: scan passed (2026-11-24); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/site-generator
- Tags: web-design, static-site-generator, node-js, markdown, template-engine

## 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
1. **Prepare input** by creating a `cases.json` file containing your site metadata, template sources, and Markdown files.
2. **Configure environment** by setting `MAKEFUN_INPUT_DIR` and `MAKEFUN_OUTPUT_DIR` in your shell.
3. **Execute build** using Node 22 to process the input cases into HTML trees.
4. **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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the site-generator skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill improve build speeds compared to standard static site generators?

This skill is designed for high-performance static site generation, specifically solving the issue of build slowdowns in large projects by using compiled templates and zero-dependency JS execution.

### What are the core technical requirements and specifications for this generator?

The skill requires Node.js 22 and strictly follows the makefun-site 1.0.0 specification, including its specific template dialect and YAML-ish front matter.

### Can I use this skill in a restricted or network-isolated CI/CD environment?

It is built specifically for environments where speed and security are priorities; because it has zero external dependencies, it is ideal for network-isolated CI/CD pipelines.

### Does the generator support external NPM dependencies for custom template logic?

No, this skill is a specialized compiler that targets the makefun-site 1.0.0 spec; it does not support external NPM packages or custom JavaScript injections during the build.

### What is included in the purchase of the Site Generator skill?

You will receive the optimized generation logic, documentation on input/output formatting, and a sample configuration to ensure your 'cases.json' is structured correctly for the compiler.

### How are the input data and the final generated HTML output structured?

Inputs are managed via a single 'cases.json' file containing metadata and content, while the output is a unified 'answers.json' mapping file paths to their generated HTML content.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
