mintlify-mdx

mintlify-mdx is a skill for Claude Code, Codex from Kevin-Liu-01/Agent-Machines. It costs 128 tokens per session (2,561 once invoked), scanned A, original, MIT.

An engineering guide for building custom components and bundled code in Mintlify, a documentation platform that turns Markdown and JSX into websites.

In plain words
What is it for?
Use it when writing or debugging Mintlify snippets, changing documentation styles, or including npm packages in documentation components.
Why use it?
It explains undocumented build rules and common causes of confusing MDX errors, including how separate code exports are evaluated.

Skill for Claude CodeCodex

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

Good fit Use it when writing or debugging Mintlify snippets, changing documentation styles, or including npm packages in documentation components.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kevin-liu-01/agent-machines/mintlify-mdx
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 Kevin-Liu-01/Agent-Machines --skill mintlify-mdx
Clone the repo
git clone --depth 1 https://github.com/Kevin-Liu-01/Agent-Machines

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 mintlify-mdx

README.md
[![agentmods](https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/mintlify-mdx/github.svg)](https://agentmods.dev/skills/kevin-liu-01/agent-machines/mintlify-mdx)
Your own site
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/mintlify-mdx"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/mintlify-mdx/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mintlify-mdx

Your own site · 80×15
<a href="https://agentmods.dev/skills/kevin-liu-01/agent-machines/mintlify-mdx"><img src="https://agentmods.dev/badge/skills/kevin-liu-01/agent-machines/mintlify-mdx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,561 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00128 $0.02561
Opus 5 $0.00064 $0.01281
Sonnet 5 $0.00026 $0.00512
Haiku 4.5 $0.00013 $0.00256

Measured 7d ago against content hash 6a4b2546c163, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

mintlify-mdx 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 7d ago.

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.

knowledge/skills/mintlify-mdx/SKILL.md · 229 lines

How it starts

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

Mastering Mintlify

Mintlify is a Next.js App Router site that compiles MDX on the server, hydrates in the browser, and serves via Next. This skill covers the parts the docs don't — what the pipeline actually does, where the sandbox sharp edges are, and how to customize around them.

For content writing, read writing/voice and writing/structure in the docs repo. This skill is for engineers building custom components, integrations, or bundling npm packages.

The Pipeline

.mdx file
  → remark parser (@mdx-js/mdx + acorn)
  → remarkMdxInjectSnippets         ← inlines /snippets/*.jsx ASTs
  → estree-util-to-js (findExport)  ← extracts one export at a time
  → next-mdx-remote-client/serialize (function-body mode)
  → Reflect.construct(SyncFunction, keys.concat(compiledSource))
  → component tree → SSR → hydrate

The critical detail: findExport extracts each ExportNamedDeclaration AST subtree in isolation. Sibling imports, sibling const declarations, sibling exports — all dropped from each export's scope.

Hard Constraints (Memorize These)

1. Each named export is evaluated in isolation

Sibling declarations are invisible. This fails:

// FAILS: "ReferenceError: __lib is not defined"
export const __lib = (() => { return { Terminal, useTerminal }; })();
export const Terminal = __lib.Terminal;        // __lib not in scope
export const useTerminal = __lib.useTerminal;  // nor here

Fix: one self-contained IIFE per export, even if it duplicates bytes.

export const Terminal = (() => { /* full body */ return Terminal; })();
export const useTerminal = (() => { /* full body again */ return useTerminal; })();

2. import expressions are rejected

Function-body mode refuses ESM syntax needing module resolution: import(), import.meta.url, export ... from. Error:

Unexpected missing options.baseUrl needed to support "export … from", "import", or "import.meta.url" when generating "function-body"

Fix: drop dynamic imports. Use plain fetch() instead of SDK imports.

Read the full file on GitHub · 229 lines

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. 7d ago First seen · 229 lines · 128 tokens per session scan A 6a4b2546c163

Subscribe to this mod's changes

mintlify-mdx is a skill published in the GitHub repository Kevin-Liu-01/Agent-Machines (29 stars, last pushed yesterday), licensed MIT. It adds 128 tokens to every session and 2,561 once invoked, about $0.0006 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

21st-ui

Find, install, and generate UI with 21st.dev. Use when the user asks for a UI component (pricing table, hero, navbar, dashboard, form, etc.), wants design inspiration, needs a brand logo as an SVG component, or wants to generate new UI from a prompt.

21st-dev/magic-mcp · 63 tokens

harness-design-fuzzing

Reference vocabulary for designing instrumented harnesses that drive vulnerability discovery — design classes (trigger-driven vs coverage-driven), tiered scope (T1 isolated function / T2 multi-component / T3 full build), systematic input exploration, the two-coverage distinction (fuzzer-feedback vs audit)…

provos/ironcurtain · 147 tokens

workspace-builder

Build ServiceNow App Engine Studio applications — sysscope creation, scoped tables, sysawworkspace with lists/forms, the sysux record chain behind UI Builder workspaces, data brokers, and application export readiness checks. Never create a UI Builder page by inserting a sysuxpage row.

serac-labs/serac · 62 tokens

ui-builder-patterns

Build ServiceNow UI Builder / Next Experience pages — macroponents, GraphQL/script data brokers, client state parameters, event handlers (NOWRECORDLIST etc.), and now-record-list/form component configuration.

serac-labs/serac · 44 tokens

widget-coherence

Build Service Portal widgets (spwidget) with synchronized server/client/HTML — data. initialization, ng-click + controller method matching, c.server.get action handlers, and Angular directive usage.

serac-labs/serac · 41 tokens

remotion

Create editable AI video projects with Remotion and React, then preview and render them to MP4. Use for vertical short videos, product demos, story-driven animations, HUD/tech visuals, feed ads, tutorial videos, subtitles, voiceover, sound effects, and code-based video iteration.

EKKOLearnAI/hermes-studio · 61 tokens