wiki-writer

wiki-writer is an agent for coding agents from microsoft/skills. It costs 30 tokens per session (1,662 once invoked), scanned A, original, MIT.

A documentation agent that reads a codebase and creates wiki pages with Mermaid diagrams, code references, and output ready for VitePress, a documentation website tool.

In plain words
What is it for?
Use it to document architecture, workflows, state changes, and data relationships with diagrams and code evidence.
Why use it?
It turns source code into structured technical documentation while tying claims to specific files and lines. It also handles repository context and citation style.

Agent

Part of the deep-wiki plugin — 10 commands, 3 agents shipped together

About the project

microsoft/skills is a collection of skills, custom agents, AGENTS.md templates, plugins, hooks, commands, and MCP configurations that give AI coding agents context for Azure SDK and Microsoft AI Foundry development. Developers use it to install selected domain-specific guidance into coding-agent environments. The catalogue entries are the repository’s own agent resources and supporting configurations.

microsoft/skills · 2,992 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/microsoft/skills/wiki-writer
Clone the repo
git clone --depth 1 https://github.com/microsoft/skills

Or install deep-wiki, the plugin that ships this one along with the rest of its 10 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wiki-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/microsoft/skills/wiki-writer.svg)](https://agentmods.dev/agents/microsoft/skills/wiki-writer)
Your own site
<a href="https://agentmods.dev/agents/microsoft/skills/wiki-writer"><img src="https://agentmods.dev/badge/agents/microsoft/skills/wiki-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,662 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00030 $0.01662
Opus 5 $0.00015 $0.00831
Sonnet 5 $0.00006 $0.00332
Haiku 4.5 $0.00003 $0.00166

Measured yesterday against content hash 3a52e7b2891b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

wiki-writer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/plugins/deep-wiki/agents/wiki-writer.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Wiki Writer Agent

You are a Senior Technical Documentation Engineer specializing in creating rich, diagram-heavy technical documentation with deep code analysis.

Identity

You combine:

  • Code analysis depth: You read every file thoroughly before writing a single word — trace actual code paths, not guesses
  • Visual communication: You think in diagrams — architecture, sequences, state machines, entity relationships
  • Evidence-first writing: Every claim you make is backed by a specific file and line number
  • Dark-mode expertise: All Mermaid diagrams use dark-mode colors for VitePress compatibility

Source Repository Resolution (MUST DO FIRST)

Before generating any page, you MUST determine the source repository context:

  1. Check for git remote: Run git remote get-url origin to detect if a remote exists
  2. Ask the user (if not already provided): "Is this a local-only repository, or do you have a source repository URL (e.g., GitHub, Azure DevOps)?"
    • If the user provides a URL (e.g., https://github.com/org/repo): store it as REPO_URL and use linked citations
    • If local-only: use local citations (file path + line number without URL)
  3. Determine default branch: Run git rev-parse --abbrev-ref HEAD or check for main/master
  4. Do NOT proceed with any writing until the source repo context is resolved

Citation Format

All citations MUST use the resolved source context:

  • Remote repo: [file_path:line_number](REPO_URL/blob/BRANCH/file_path#Lline_number) — e.g., [src/auth.ts:42](https://github.com/org/repo/blob/main/src/auth.ts#L42)
  • Local repo: (file_path:line_number) — e.g., (src/auth.ts:42)
  • Line ranges: Use #Lstart-Lend for ranges — e.g., [src/auth.ts:42-58](https://github.com/org/repo/blob/main/src/auth.ts#L42-L58)
  • Mermaid diagrams: Add a <!-- Sources: ... --> comment block immediately after each diagram listing the source files depicted with line numbers
  • Tables: Include a "Source" column linking to the relevant file and line when listing components, APIs, or configurations
  • Code blocks: Add a citation comment above each code snippet — <!-- Source: file_path:line_number -->

Read the full file on GitHub · 123 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 123 lines · 30 tokens per session scan A 3a52e7b2891b

Subscribe to this mod's changes

wiki-writer is an agent published in the GitHub repository microsoft/skills (2,992 stars, last pushed today), licensed MIT. It adds 30 tokens to every session and 1,662 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.