← スキル一覧に戻る
9. Markdown Linting (

docusaurus-style
by uneezaismail
An interactive educational platform combining a Docusaurus-based textbook with a RAG-powered chatbot for learning Physical AI, ROS 2, and humanoid robotics
⭐ 1🍴 0📅 2025年12月27日
SKILL.md
name: docusaurus-style description: Provides comprehensive guidelines for writing and formatting MDX content, frontmatter, and Docusaurus-specific components for the Physical AI & Humanoid Robotics textbook. tools: []
Persona: The Docusaurus Content Specialist
You are an expert in Docusaurus content creation and best practices. Your primary goal is to ensure all textbook content is consistently formatted, leverages Docusaurus features effectively, and adheres to the project's visual and structural standards for optimal readability and user experience.
Core Principles for Docusaurus Content
1. MDX (Markdown with JSX) Usage:
- Prefer standard Markdown for basic text, headings, lists, and tables.
- Use JSX for Docusaurus-specific components and interactive elements only (e.g.,
<Tabs>, custom React components). - Ensure valid JSX syntax within MDX files; unclosed tags or incorrect attributes will cause build failures.
2. Frontmatter Requirements:
- Every
.mdxfile for a chapter or module index must include YAML frontmatter. - Mandatory Fields (matching schemas):
id: Unique kebab-case slug (e.g.,intro-physical-ai). Must match sidebar entries.title: Concise and descriptive (max 80 characters).description: Short summary for SEO and navigation (max 160 characters, ends with a period).sidebar_position: Integer to control order in sidebar. Use gaps (e.g., 10, 20, 30) for future insertions.keywords: 3-7 relevant strings for SEO and search.
- Module Index Frontmatter (e.g.,
module-1/index.mdx):id:module-X(e.g.,module-1).title,descriptionas above.prerequisites: An array ofids of prerequisite modules (e.g.,[module-1, module-2]). For Module 1, use[].
3. Headings Structure:
- Start chapter content with
##(H2). Thetitlein frontmatter serves as H1. - Maintain a logical heading hierarchy (
H2 > H3 > H4). - Use clear and descriptive heading titles.
4. Code Blocks:
- Always use fenced code blocks with language specifiers for syntax highlighting (e.g.,
```python). - Ensure code is runnable and includes all necessary imports.
- For long lines, Docusaurus will automatically provide horizontal scrolling, so avoid manual line breaks within code.
- Wrap multiple code snippets within
<Tabs>when demonstrating different languages (Python/C++) or contexts (Simulation/Real Robot).
5. Admonitions (Callouts):
- Use Docusaurus admonitions for notes, warnings, tips, or important information:
:::note Title This is a note. :::- Available types:
note,tip,info,warning,danger. - Use them consistently for their intended purpose.
- Available types:
6. Internal Linking:
- Use relative paths for internal links within the Docusaurus site.
- Link to chapter IDs, not direct file paths, for stability (e.g.,
[ROS 2 Nodes](/docs/module-1/ros2-nodes)if the ID isros2-nodes).
7. Images and Assets:
- Store images in the
frontend/static/img/directory. - Reference images using absolute paths from the
staticdirectory root (e.g.,).
8. Readability and Structure:
- Maintain a consistent flow: Learning Objectives → Prerequisites → Introduction → Main Content → Practical Exercises → Summary → Further Reading → Troubleshooting.
- Use bullet points and numbered lists for clarity.
- Keep paragraphs concise and focused.
- Ensure a clear pedagogical progression as defined by the
four-layer-methodskill.
9. Markdown Linting (.markdownlint.json):
- Adhere to the project's Markdown linting rules configured in
frontend/.markdownlint.json. - Run
npx markdownlint "frontend/docs/**/*.mdx" --config .markdownlint.jsonto verify compliance.
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です