satoshiman/mdsvr/markdown-for-mdsvr
- community
Checking that the SKILL.md file is still in the repository.
Generate complete, multi-file Markdown documentation sets (doc sites) that are fully compatible with mdsvr (Markdown Server). Use this skill whenever the user wants to create documentation, write a doc site, build technical docs, generate a knowledge base, or produce any set of .md files that will be served or exported by mdsvr. Always trigger for: "generate documentation", "create doc site", "write guides", "create wiki", or any request involving multiple markdown files intended for a documentation server or static export.
Install
npx vskill@latest install satoshiman/mdsvr/markdown-for-mdsvrSKILL.md
Markdown for mdsvr Skill
Generate a complete, valid, multi-file Markdown documentation set for use with mdsvr — supports both server mode and static export.
When this skill is triggered, produce multiple `.md` files that form a cohesive documentation site, following all mdsvr conventions strictly.
Step 1 — Understand the Request
Before generating files, extract from the user's request:
- Topic / product name — what is being documented?
- Target audience — developers, end-users, ops teams, etc.
- Scope — how many pages / sections are needed?
- Language — Vietnamese, English, or bilingual?
- Diagrams needed? — if yes, read
rules/mermaid.mdfor syntax rules. - Quizzes needed? — if the doc set includes self-check questions or chapter
quizzes, read rules/quiz.md for the `quiz JSON format.
- Math needed? — if the doc set includes formulas or equations, read
rules/math.md for the $...$ / $$...$$ / `math LaTeX syntax.
If any of these are unclear, ask ONE focused question before proceeding.
Step 2 — Plan the File Structure
Design the file structure before writing content. Prefer a flat structure because it is easier to browse, link, reorder, and maintain:
Create subdirectories only when the documentation is large enough that a flat list becomes difficult to navigate, such as when a section contains many closely related pages or needs its own index. Do not create a subdirectory for only one or two pages. When subdirectories are justified, each must contain a README.md section index.
Adapt the structure to the user's topic and scale it up or down as needed.
Step 3 — Apply mdsvr File & Link Rules (MANDATORY)
3.1 File Naming Rules
| Rule | ❌ Wrong | ✅ Correct | |
|---|---|---|---|
| No dots in middle of name | 0.1.quickstart.md | 01-quickstart.md | |
| No dots in middle of name | config.v2.md | config-v2.md | |
| Use kebab-case | GettingStarted.md | getting-started.md | |
| Use numeric prefix for order | guide.md (in sidebar) | 01-guide.md | |
| Descriptive names | page1.md | installation.md | |
| Directory index must be | index.md | README.md |
3.2 Link Structure Rules
| Rule | ❌ Wrong | ✅ Correct | |
|---|---|---|---|
| Use relative paths only | [Guide](/docs/guide) | [Guide](./guide) | |
No .md extension in links | [Setup](./setup.md) | [Setup](./setup) | |
| Link to directory, not README | [Start](./01-getting-started/README) | [Start](./01-getting-started) | |
| Anchor links must match headings | [See](#install-steps) (if heading doesn't exist) | Match exactly |
3.3 Heading Structure Rules
| Rule | ❌ Wrong | ✅ Correct | |
|---|---|---|---|
| Every page needs H1 | _(page starts with H2)_ | # Page Title as first heading | |
| Don't skip heading levels | H1 → H3 | H1 → H2 → H3 | |
| Headings must be descriptive | ## Section 1 | ## Installation Requirements |
Step 4 — Apply Frontmatter to Every File
Each .md file must start with YAML frontmatter. mdsvr turns it into the page <title>, meta description, Open Graph/Twitter Card tags, and JSON-LD structured data:
Optional frontmatter fields that mdsvr understands — use them when relevant:
Do NOT hand-write <meta>/<link> tags or JSON-LD inside Markdown — mdsvr already generates canonical URLs, all og:*/twitter:* tags, Article/WebSite/BreadcrumbList JSON-LD, sitemap.xml, robots.txt, and llms.txt automatically from frontmatter plus _mdsvr/settings.json.
Step 5 — Content Guidelines
README.md (Homepage) — Required
- Must exist at the root of the docs folder.
- Include: project overview, quick navigation links to all sections.
- Use a welcome callout if appropriate.
Section README.md (Directory Index)
Only required when the documentation is large enough to justify a subdirectory.
- Summarize what the section covers.
- List all pages in the section with relative links.
Content Pages
- One focused topic per page.
- Start with a brief intro paragraph.
- Prefer GitHub-style callouts because they are portable and widely supported:
```markdown > [!NOTE] > Additional context the reader should know.
> [!TIP] > Practical advice that helps the reader.
> [!WARNING] > Important information requiring attention.
> [!CAUTION] > A risk or potentially harmful consequence. ```
- Do not use triple-colon callouts such as
:::note,:::warning,:::tip, or:::dangerunless the user explicitly requests them. - Use numbered lists for step-by-step procedures.
- Link liberally to related pages using relative paths.
- End with a "Next Steps" or "Related" section when useful.
Step 6 — Mermaid Diagrams (When Needed)
If the documentation benefits from diagrams (architecture, flows, sequences, ERDs, state machines, etc.), embed Mermaid diagrams inline in the relevant .md files.
Before generating any diagram, readrules/mermaid.mdfor the fullsyntax reference and generation rules. All rules in that file are mandatory.
Quick checklist (from mermaid.md):
- Choose the most appropriate diagram type — do NOT default to
flowchart. - Always declare direction in flowcharts:
flowchart TDorflowchart LR. - Node IDs: only letters, numbers, underscores. No
-,.,(,). - Node labels with spaces must use double quotes:
A["My Label"]. - Subgraphs must have explicit IDs:
subgraph myid["Label"]. - Sequence diagrams: declare all
participantlines before messages. - No hardcoded colors or styles unless user explicitly requests.
- Use emoji instead of colors to convey semantic meaning.
- One diagram per code block; validate syntax before outputting.
Step 7 — Create Files and Deliver
Use create_file to write each .md file to the filesystem. Then zip everything and call present_files so the user can download the result.
7.1 Write each file
For every file in the planned structure, call create_file with the full path under /mnt/user-data/outputs/<project-name>/:
Write the complete, final content in each call — do not write placeholders.
7.2 Zip and present
After all files are written, zip the output folder and call present_files:
Then call present_files with the path to the .zip file.
7.3 Summary in chat
After present_files, write a short message in chat containing:
- File tree — show the complete directory structure that was generated.
- How to serve — one-liner:
npx mdsvr ./my-projectormdsvr ./my-project. - Page count — e.g. "Generated 8 pages across 3 sections."
Quick Reference — Common Mistakes to Avoid
Reference Files
rules/mermaid.md— Full Mermaid v11 syntax reference for all 19 diagram
types. Read this whenever any diagram is needed in the documentation.
rules/quiz.md— Interactive`quizblock JSON contract: question types,
answer format, and authoring rules. Read this whenever a quiz or self-check section is needed.
rules/math.md— LaTeX math syntax ($...$,$$...$$,`mathblocks),
delimiter and escaping rules. Read this whenever formulas or equations are needed.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/markdown-for-mdsvr/SKILL.md
Popularity
- Repository stars
- 5
- Repository forks
- 1
- 7-day trend score
- 9
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/satoshiman/mdsvr/markdown-for-mdsvr)