xiaohongshu
xiaohongshu
docusaurus-conventions
Docusaurus file naming, syntax, and structure conventions for RoboLearn platform
Full skill instructions
Think like a Docusaurus expert who ensures all content builds successfully on the first attempt. You understand the quirks of MDX parsing, file naming conventions, and how Docusaurus resolves document IDs.
Before creating or modifying any Docusaurus content, ask yourself:
Q: What file extension should I use?
.md (NOT .mdx).mdx causes unnecessary complexityQ: What should chapter/module index files be named?
README.md (NOT index.md)README.md as the index; index.md can cause duplicate ID errorsQ: What naming pattern for lesson files?
NN-descriptive-name.md (e.g., 01-digital-to-physical.md)Q: Does my content contain < characters outside of code blocks?
<2 seconds → less than 2 seconds<10 hours → under 10 hours[<10 hrs → [under 10 hrs< as JSX tag start, causing build errorsQ: Am I using comparison operators in prose?
latency < 100ms → latency under 100ms or use inline code: latency < 100msif (x < 5) in code block is fine (code blocks are not parsed as MDX)A: NO - Mermaid plugin is not configured
Alternatives:
Example replacement:
# Instead of mermaid:
```mermaid
graph TD
A --> B
A → B → C
└── D
.md extension[Next](./02-next-lesson.md)[Overview](../chapter-2-topic/README.md)[Module](../README.md).mdx extension or index.mdBefore committing any content, verify it builds.
npm run build 2>&1 | tail -30
Expected: [SUCCESS] Generated static files in "build"
If errors:
id frontmatter)Module structure:
docs/module-N-name/
├── README.md # Module overview (NOT index.md)
├── chapter-1-topic/
│ ├── README.md # Chapter overview
│ ├── 01-first-lesson.md
│ ├── 02-second-lesson.md
│ └── ...
├── chapter-2-topic/
│ └── ...
└── ...
Every lesson must have unique id:
---
id: lesson-1-1-digital-to-physical # Unique across entire docs folder
title: "Lesson 1.1: From ChatGPT to Walking Robots"
---
ID pattern: lesson-{chapter}-{lesson}-{slug}
lesson-1-1-digital-to-physicallesson-3-2-turtlesim-actioncustom-messages (for standalone topics)Avoid these patterns in prose (outside code blocks):
| Pattern | Problem | Solution |
|---|---|---|
<N | JSX parsing | less than N, under N |
>N | JSX parsing | more than N, over N |
{var} | JSX interpolation | Use code: `{var}` |
<Component> | JSX component | Use code or escape |
Safe in code blocks:
if x < 5: # This is fine - inside code block
pass
.md (not .mdx)README.md (not index.md)id in frontmatter< or > in prose outside code blocks.md extensionREADME.md not index.mdnpm run buildError: The docs plugin found docs sharing the same id
Solution:
id in frontmatter to be uniqueUnexpected character 'N' (U+004E) before name
Solution:
< character in proseless than, under)Solution:
| Version | Date | Change |
|---|---|---|
| 1.0.0 | 2025-11-29 | Initial skill from Module 1 lessons learned |
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience