Site Generator

    by Haiyang Lan

    1

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

    $9

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    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

    1. Inspect out/answers.json to verify the full directory structure and content.
    2. Update site.per_page in cases.json if you need to adjust pagination logic.
    3. 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

    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

    1. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables
    Listed11 days ago

    What's inside

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    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.

    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.

    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.