Agent Skill · Zuplo

zudoku-guide

Comprehensive Zudoku framework guide. Teaches how to find current documentation, verify API signatures, and build API documentation sites and developer portals. Covers documentation lookup strategies (embedded docs, remote docs), core concepts (configuration, navigation, OpenAPI integration, plugins, authentication, theming), and common patterns. Use this skill for all Zudoku development to ensure you're using current APIs from the installed version or latest documentation.

Provider: Zuplo Path in repo: skills/zudoku-guide/SKILL.md

Skill body

Zudoku Framework Guide

Build beautiful API documentation sites and developer portals with Zudoku. This skill teaches you how to find current documentation and configure Zudoku projects.

The Zudoku framework is an open source project built on top of vite. However, it is also used as the underlying framework for Zuplo's developer portal/documentation product. This means that all the documentation and knowledge about how to use Zudoku is also applicable to building documentation sites with Zuplo. If you are building a documentation site with Zuplo, you can use the same Zudoku configuration and concepts covered in this skill, but you will deploy it using Zuplo's platform instead of hosting it yourself. End users may refer to Zudoku as "developer portal", "API documentation site", or "docs site", but the underlying framework is Zudoku. This skill focuses on teaching you how to use Zudoku effectively, which will directly translate to building powerful documentation sites with Zuplo.

Prerequisites

Before writing any Zudoku code, check if the package is installed:

ls node_modules/zudoku/

Documentation lookup guide

Quick Reference

User Question First Check How To
“Create/install Zudoku project” references/create-zudoku.md Setup guide with CLI and manual steps
“How do I configure X?” references/embedded-docs.md Look up in node_modules/zudoku/
“How do I use X?” (no packages) references/remote-docs.md Fetch from https://zudoku.dev/llms.txt
“I’m getting an error…” references/common-errors.md Common errors and solutions
“Upgrade from v0.x to v0.y” references/migration-guide.md Version upgrade workflows

Priority order for writing code

  1. Embedded docs first (if package installed)

    Look up current types and config options in node_modules. Example:

    grep -r "ZudokuConfig" node_modules/zudoku/dist/
    
  2. Source code second (if package installed)

    If you can’t find what you need in the types, look directly at the source code:

    # Check type definitions
    cat node_modules/zudoku/dist/config.d.ts
    
  3. Remote docs third (if package not installed)

    Fetch the latest docs from the Zudoku website:

    https://zudoku.dev/llms.txt
    
    • Why: Latest published docs (may be ahead of installed version)
    • Use when: Package not installed or exploring new features
    • More information: references/remote-docs.md

Core concepts

Configuration

Zudoku uses a single configuration file (zudoku.config.ts or .tsx, .js, .mjs, .jsx) that controls structure, metadata, style, plugins, and routing.

import type { ZudokuConfig } from "zudoku";

const config: ZudokuConfig = {
  navigation: [
    { type: "category", label: "Documentation", items: ["introduction"] },
    { type: "link", to: "api", label: "API Reference" },
  ],
  apis: {
    type: "file",
    input: "./apis/openapi.yaml",
    path: "/api",
  },
  docs: {
    files: "/pages/**/*.{md,mdx}",
  },
};

export default config;

Key components

Content authoring

Zudoku supports GitHub Flavored Markdown and MDX (JSX in Markdown). Features include:

Plugin system

Zudoku is extensible with plugin types:

Deployment

Zudoku supports deployment to:

Build with npm run build → outputs to /dist.

Critical requirements

Node.js version

Zudoku requires Node.js 22.7.0+ (or 20.19+).

Config file security

The config file runs on both client and server at runtime. Never include secrets directly in zudoku.config.ts — they will be exposed to the client.

When you see errors

Common signs of issues:

What to do:

  1. Check references/common-errors.md
  2. Verify current API in embedded docs
  3. Check the Zudoku config type definitions

Development workflow

Always verify before writing code:

  1. Check package installed

    ls node_modules/zudoku/
    
  2. Look up current API
  3. Write code based on current docs

  4. Test locally
    npm run dev  # http://localhost:3000
    

Resources

Skill frontmatter

license: MIT metadata: {"author" => "Zuplo", "version" => "2.0.0", "repository" => "https://github.com/zuplo/tools"}