Prompts for Vibecoders¶
If you build with Cursor, Claude Code, Codex, or any AI coding assistant, Mint Recursive exposes its full documentation index as a single text file the assistant can fetch in one round-trip and use as grounding.
Concept¶
llms.txt is a community convention for serving an LLM-readable digest of a documentation site at a fixed URL. Mint Recursive generates this file from the same MDX content you read, so the assistant sees exactly what you see, no scraping, no stale snapshots.
Three URLs are available on this site:
| URL | Contents |
|---|---|
/en/llms.txt |
Index of every English page with one-line summaries |
/en/llms-full.txt |
Concatenated full markdown of every English page |
/en/llms.mdx |
The same as llms-full.txt but served as MDX (useful when an assistant prefers MDX-style includes) |
(ZH equivalents at /zh/llms.txt, etc.)
Pattern¶
Cursor¶
In Cursor, add the URL to your project's docs context:
Cursor fetches the file, indexes it, and uses it as grounding for every prompt in the project. Update the index by re-fetching when Mint Recursive releases.
Claude Code¶
Tell Claude Code to fetch the index at the start of a session:
Read https://mint-doc.macaron.im/en/llms-full.txt for the full Mint Recursive documentation, then help me write a GRPO training loop on Qwen3-30B with a custom reward.
The fetch happens once per session; Claude Code keeps the content in context.
curl (smoke test)¶
Verify the route works from your terminal:
You should see a list of page titles with their docs URLs.
API Surface¶
The route handler lives at app/[lang]/llms.txt/route.js in this repo. It walks the same fumadocs page tree the sidebar uses, strips MDX-only components (<Callout>, <WxImage>), and emits plain markdown. There are no query parameters; the file is regenerated on each request from the latest content build.
Caveats & Pitfalls¶
- Token budget.
llms-full.txtfor the entire site is several thousand tokens. Most coding assistants keep this comfortably in context, but if you only need a slice, paste a single page's URL with/content.mdappended (e.g.,/en/llms.mdx/sdk/sft/content.md): fumadocs serves a per-page markdown view at that path. - Freshness window. The route reads from the build output, so updates land when the site redeploys (typically within minutes of a merge to
mainof the publicmint-docrepo). If a page you wrote yesterday isn't there yet, the build is still propagating. - Roadmap pages are emitted as-is. A small number of pages describe features still landing (e.g., VLM). Those pages explain their status in plain language; the assistant sees that text verbatim and won't hallucinate a shipped feature.
- Don't paste
MINT_API_KEYinto a prompt. The docs themselves never contain real keys, but if you copy a script from your own machine into an LLM prompt, scrubsk-*tokens first.
Note
Planned skill pack. A separate skill pack for Cursor and Claude Code that bundles Mint Recursive-specific patterns (RL loops, custom rewards, sampling) is still being prepared. Track it at mint-quickstart-alpha/mint-skill/SKILL.md. This is distinct from the Claude Code migration Skill that adapts existing training code to the Mint Recursive API.