ワンクリックで
docusaurus-conventions
Docusaurus file naming, syntax, and structure conventions for RoboLearn platform
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Docusaurus file naming, syntax, and structure conventions for RoboLearn platform
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | docusaurus-conventions |
| description | Docusaurus file naming, syntax, and structure conventions for RoboLearn platform |
| domain | authoring |
| version | 1.0.0 |
| created | "2025-11-29T00:00:00.000Z" |
| triggers | ["Creating lesson files","Creating module/chapter structure","Writing MDX content","Fixing Docusaurus build errors"] |
| learned_from | ["Module 1 ROS 2 implementation (2025-11-29)","8 file extension fixes, 10 mermaid removals, 3 MDX syntax errors"] |
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 |
Creates assessments with varied question types (MCQ, code-completion, debugging, projects) aligned to learning objectives with meaningful distractors based on common misconceptions. Activate when educators design quizzes, exams, or tests measuring understanding; need questions at appropriate cognitive levels (Bloom's taxonomy); want balanced cognitive distribution (60%+ non-recall); or require rubrics for open-ended questions. Generates MCQs with diagnostic distractors, code-writing prompts, debugging challenges, and project-based assessments targeting deep understanding.
Integrate OpenAI ChatKit framework with custom backend and AI agents. Handles ChatKit server implementation, React component integration, context injection, and conversation persistence.
This skill should be used when scaffolding complex concepts for learners. It applies cognitive load architecture principles to break down concepts into digestible pieces while respecting learning science limits.
This skill should be used when deploying a Docusaurus site to GitHub Pages. It automates the configuration, building, and deployment process, handling GitHub Pages setup, environment configuration, and CI/CD automation. Includes local validation before GitHub Actions triggering.
Design simulation worlds using SDF with ground planes, models, physics configuration, and lighting
Generate measurable learning outcomes aligned with Bloom's taxonomy and CEFR proficiency levels for educational content. Use this skill when educators need to define what students will achieve, create learning objectives for curriculum planning, or ensure objectives are specific and testable rather than vague. This skill helps break down complex topics into progressively building learning goals with clear assessment methods and success criteria.