Wiki Ado Convert
MicrosoftOfficialCreated by Microsoft
- Skill
- Workflow
- Automation and integrations
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured approach to migrating documentation from VitePress or GitHub Flavored Markdown (GFM) to Azure DevOps (ADO) Wiki. It generates a zero-dependency Node.js build script that processes source files, strips incompatible front matter, converts Mermaid diagram syntax, and sanitizes relative links to ensure compatibility with ADO's specific rendering requirements. The process preserves the original source files while outputting a ready-to-publish wiki structure in a dedicated directory.
What it does
- Generates a standalone Node.js script for automated documentation transformation.
- Converts incompatible Mermaid syntax (e.g., flowchart to graph, specific fence types).
- Strips YAML front matter that would otherwise render as raw text in ADO.
- Sanitizes parent-relative links that break in the ADO Wiki environment.
- Transforms VitePress container directives into ADO-compatible alert blockquotes.
- Generates .order files to maintain sidebar navigation hierarchy.
When to use it
- When migrating existing VitePress or GFM documentation to an Azure DevOps project wiki.
- When you need to maintain documentation in a repository while publishing to an ADO Wiki.
- When automated build pipelines require a clean, ADO-compatible documentation output.
- When you need to ensure Mermaid diagrams render correctly within the ADO environment.
Advantages
- Zero external dependencies; uses only built-in Node.js modules.
- Non-destructive; source files remain untouched.
- Ensures consistent rendering by handling ADO-specific markdown limitations.
- Automates repetitive cleanup tasks like link fixing and front matter removal.
- Maintains directory structure and sidebar ordering.
Usage examples
- “Generate a build script to convert my VitePress docs to ADO Wiki format.”
- The agent will guide you through repository context resolution and provide the Node.js script to transform your markdown files into the dist/ado-wiki/ directory.
- “How do I fix broken Mermaid diagrams when publishing to Azure DevOps?”
- The agent will provide the transformation logic to convert standard Mermaid fences to the ADO-specific ::: mermaid syntax and replace unsupported keywords.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/microsoft/wiki-ado-convert/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip wiki-ado-convert.zip -d .agents/skills
Documentation by Microsoft
ADO Wiki Converter
Generate a Node.js build script that transforms VitePress/GFM markdown documentation into Azure DevOps Wiki-compatible format. The source files remain untouched — the script produces transformed copies in dist/ado-wiki/.
Source Repository Resolution (MUST DO FIRST)
Before generating the build script, resolve the source repository context:
Check for git remote: Run
git remote get-url originAsk the user: "Is this a local-only repository, or do you have a source repository URL?"
Remote URL → store as
REPO_URL, preserve linked citations in converted outputLocal → preserve local citations as-is
Do NOT proceed until resolved
Why This Is Needed
Azure DevOps Wikis use a markdown dialect that differs from GFM and VitePress in several critical ways. Documentation that renders perfectly in VitePress will have broken diagrams, raw front matter, dead links, and rendering issues when published as an ADO Wiki.
ADO Wiki Incompatibilities
CRITICAL — Will Break Rendering
| Issue | VitePress/GFM | ADO Wiki | Fix |
|---|---|---|---|
| Mermaid code fences | ```mermaid ... ``` | ::: mermaid ... ::: | Convert opening/closing fences |
flowchart keyword | flowchart TD | graph TD | Replace flowchart with graph (preserve direction) |
<br> in Mermaid labels | Node[Label<br>Text] | Not supported | Strip <br> variants (replace with space) |
Long arrows ----> | A ---->B | Not supported | Replace with --> |
| YAML front matter | --- ... --- at file start | Rendered as visible raw text | Strip entirely |
| Parent-relative source links | [text](../../src/file.cs) | Broken (wiki is separate) | Convert to plain text |
| VitePress container directives | ::: tip / ::: warning | Not supported | Convert to ADO alert blockquotes > [!TIP] / > [!WARNING] |
MODERATE — May Not Render Optimally
| Issue | Notes |
|---|---|
Mermaid style directives | ADO's Mermaid version may ignore inline styling. Leave as-is (cosmetic). |
Mermaid thick arrows ==> | May work. Leave as-is. |
Mermaid dotted arrows -.-> | May work. Leave as-is. |
| Subgraph linking | Links to/from subgraphs not supported, but nodes inside subgraphs work fine. |
NOT AN ISSUE (Compatible As-Is)
✅ Standard markdown tables, blockquotes, horizontal rules
✅ Unicode emoji, fenced code blocks with language identifiers
✅ Same-directory relative links (
./other-page.md)✅ External HTTP/HTTPS links
✅ Bold, italic, strikethrough, inline code
✅ Lists (ordered, unordered, nested), headings 1-6
✅ Images with relative paths
ADO Wiki Mermaid Supported Diagram Types
As of 2025:
✅
sequenceDiagram,gantt,graph(NOTflowchart),classDiagram✅
stateDiagram,stateDiagram-v2,journey,pie,erDiagram✅
requirementDiagram,gitGraph,timeline❌
mindmap,sankey,quadrantChart,xychart,block
Build Script Structure
The generated script should be a Node.js ESM module (scripts/build-ado-wiki.js) using only built-in Node.js modules (node:fs/promises, node:path, node:url). No external dependencies.
Transformation Functions
1. Strip YAML Front Matter
Remove --- delimited YAML blocks at file start. ADO renders these as visible text.
function stripFrontMatter(content) {
if (!content.startsWith('---')) return content;
const endIndex = content.indexOf('\n---', 3);
if (endIndex === -1) return content;
let rest = content.slice(endIndex + 4);
if (rest.startsWith('\n')) rest = rest.slice(1);
return rest;
}2. Convert Mermaid Blocks
Process line-by-line, tracking mermaid block state. Apply fixes ONLY inside mermaid blocks:
Opening:
```mermaid→::: mermaidClosing:
```→:::flowchart→graph(preserve direction: TD, LR, TB, RL, BT)Strip
<br>,<br/>,<br />(replace with space)Replace long arrows (
---->with 4+ dashes) with-->
function convertMermaidBlocks(content) {
const lines = content.split('\n');
const result = [];
let inMermaid = false;
for (const line of lines) {
const trimmed = line.trimEnd();
if (!inMermaid && /^```mermaid\s*$/.test(trimmed)) {
result.push('::: mermaid');
inMermaid = true;
continue;
}
if (inMermaid && /^```\s*$/.test(trimmed)) {
result.push(':::');
inMermaid = false;
continue;
}
if (inMermaid) {
let fixed = line;
fixed = fixed.replace(/^(\s*)flowchart(\s+)/, '$1graph$2');
fixed = fixed.replace(/<br\s*\/?>/gi, ' ');
fixed = fixed.replace(/-{4,}>/g, '-->');
result.push(fixed);
} else {
result.push(line);
}
}
return result.join('\n');
}3. Convert Parent-Relative Source Links
Convert [text](../path) to plain text. Preserves same-directory .md links and external URLs.
function convertSourceLinks(content) {
return content.replace(
/\[([^\]]*)\]\(\.\.\/[^)]*\)/g,
(match, linkText) => linkText
);
}4. Convert VitePress Container Directives (Optional)
Convert ::: tip / ::: warning / ::: danger to ADO alert blockquotes:
function convertContainerDirectives(content) {
// ::: tip → > [!TIP]
// ::: warning → > [!WARNING]
// ::: danger → > [!CAUTION]
// ::: info → > [!NOTE]
// closing ::: → (blank line)
}Script Main Flow
async function main() {
const files = await collectMarkdownFiles(ROOT);
const stats = { frontMatter: 0, mermaid: 0, sourceLinks: 0, containers: 0 };
for (const filePath of files) {
let content = await readFile(filePath, 'utf-8');
content = stripFrontMatter(content);
content = convertMermaidBlocks(content);
content = convertSourceLinks(content);
const outPath = join(OUTPUT, relative(ROOT, filePath));
await mkdir(dirname(outPath), { recursive: true });
await writeFile(outPath, content, 'utf-8');
}
// Print transformation statistics
}Skip Directories
The script should skip: node_modules, .vitepress, .git, dist, build, out, target, and any non-documentation directories.
npm Script Integration
{
"scripts": {
"build:ado": "node scripts/build-ado-wiki.js"
}
}Verification Checklist
After the script runs, verify:
File count in
dist/ado-wiki/matches source (minus skipped dirs)Zero
```mermaidfences remaining — all converted to::: mermaidZero
flowchartkeywords remaining — all converted tographNo YAML front matter in output files
Parent-relative links converted to plain text
Same-directory
.mdlinks preservedDirectory structure preserved
Non-markdown files (images, etc.) copied as-is
index.mdat root is a proper wiki home page (NOT a placeholder)
Index Page Generation (CRITICAL)
The ADO Wiki's index.md MUST be a proper wiki landing page, NOT a generic placeholder with "TODO" text.
Logic
If VitePress source has
index.md: Transform it (strip front matter, strip VitePress hero/features blocks). If meaningful content remains, use it.If no meaningful content remains (empty after stripping, or only VitePress hero markup): Generate a proper landing page with:
Project title as
# headingOverview paragraph (from README or wiki overview page)
Quick Navigation table (Section, Description columns linking to wiki sections)
Links to onboarding guides if they exist
NEVER leave a placeholder — if
index.mdcontains "TODO:", "Give a short introduction", or similar placeholder text, replace it entirely
ADO Wiki .order Files
Generate .order files in each directory to control sidebar ordering:
Onboarding guides first, then numbered sections
List page names without
.mdextension, one per line
Citation & Diagram Preservation
The converted ADO wiki must maintain the same quality standards:
Linked citations (
[file:line](URL)) are standard markdown — preserve them as-is<!-- Sources: ... -->comment blocks after Mermaid diagrams — preserve (HTML comments work in ADO)Tables with "Source" columns — preserve as-is (standard markdown tables)
Mermaid diagrams — convert fences only; diagram content, types, and structure are preserved
All Mermaid diagram types supported by ADO (graph, sequenceDiagram, classDiagram, stateDiagram, erDiagram, etc.) pass through unchanged
Important Notes
Source files are NEVER modified — only copies in
dist/ado-wiki/Images must be copied too — if source has images, copy them with same relative paths
The script should work with any VitePress wiki, not just this specific one
Print statistics at the end showing count of each transformation type
Script uses zero external dependencies — only Node.js builtins
Files
- ATTRIBUTION.mdAdded by AutoGineer945 B
- LICENSELicence file added by AutoGineer1.1 KiB
- SKILL.md9.1 KiB
ATTRIBUTION.md
Attribution
This folder is an unmodified copy of the Agent Skill "wiki-ado-convert", distributed by AutoGineer (https://autogineer.com/agent-skills).
Commit: 0696600436a9669184ce47e8d8b2ceac62e4bfac
Created by: Microsoft (https://github.com/microsoft/skills/tree/0696600436a9669184ce47e8d8b2ceac62e4bfac/.github/plugins/deep-wiki/skills/wiki-ado-convert)
Publisher: Microsoft (https://github.com/microsoft)
Licence: MIT License (https://spdx.org/licenses/MIT.html)
Licence evidence: declared in the frontmatter ("license: MIT")
Retrieved: 2026-11-07
The skill's own files are unmodified copies. AutoGineer is not affiliated with or endorsed by the author or the publisher.
Files added by AutoGineer
ATTRIBUTION.md: this file, written by AutoGineer
LICENSE: copied from LICENSE
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs Node.js
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Microsoft
- Publisher
- Microsoft (Official)
- Source
- microsoft/skills · .github/plugins/deep-wiki/skills/wiki-ado-convert · commit 0696600
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Microsoft.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download wiki-ado-convert.zip