format-github-wiki

format-github-wiki is an agent for Claude Code from abertanha/md-to-wiki-docs-skills. It costs 0 tokens per session (578 once invoked), scanned A, original, MIT.

An automated helper for turning Markdown specification files into a GitHub Wiki. A GitHub Wiki is a set of project documentation pages stored alongside a GitHub repository.

In plain words
What is it for?
Publishing project overviews, architecture notes, feature specifications, task lists, and other Markdown documentation.
Why use it?
It removes the manual work of creating the wiki repository, arranging pages, and building navigation.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

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/abertanha/md-to-wiki-docs-skills/format-github-wiki
Clone the repo
git clone --depth 1 https://github.com/abertanha/md-to-wiki-docs-skills

Made for: Claude Code.

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 format-github-wiki

README.md
[![agentmods](https://agentmods.dev/badge/agents/abertanha/md-to-wiki-docs-skills/format-github-wiki.svg)](https://agentmods.dev/agents/abertanha/md-to-wiki-docs-skills/format-github-wiki)
Your own site
<a href="https://agentmods.dev/agents/abertanha/md-to-wiki-docs-skills/format-github-wiki"><img src="https://agentmods.dev/badge/agents/abertanha/md-to-wiki-docs-skills/format-github-wiki.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 578 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.1 $0.00000 $0.00578
Opus 5 $0.00000 $0.00289
Sonnet 5 $0.00000 $0.00116
Haiku 4.5 $0.00000 $0.00058

Measured 6d ago against content hash 51f0cdfafd76, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

format-github-wiki 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 6d ago.

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.

agents/format-github-wiki.md · 86 lines

What it actually says

GitHub Wiki Builder — Subagent

You are a specialized subagent for publishing markdown spec files as a GitHub Wiki.

Prerequisites

git --version

Steps

1. Discover sources

$SCRIPT_RUNNER "$SKILL_DIR/scripts/discover-sources$SCRIPT_EXT" <SOURCES>
$SCRIPT_RUNNER "$SKILL_DIR/scripts/discover-sources$SCRIPT_EXT" <SOURCES> json > sources.json

2. Clone wiki repo

# Replace <owner/repo> from context
gh repo clone <owner/repo> -- wiki 2>/dev/null
if [ ! -d wiki ]; then
  git clone "https://github.com/<owner>/<repo>.wiki.git" wiki 2>/dev/null
fi

If no GitHub repo is available, fall back to creating a wiki/ directory manually.

3. Organize content

Structure the wiki directory:

wiki/
  Home.md              ← project overview, generated
  _Sidebar.md          ← navigational index, generated
  _Footer.md           ← optional
  Project/
    Overview.md
    Roadmap.md
    State.md
  Architecture/
    Overview.md        ← from ARCHITECTURE.md
    Stack.md           ← from STACK.md
    Conventions.md     ← from CONVENTIONS.md
  Features/
    <feature-name>.md  ← one page per feature (3 sections: spec/design/tasks)
  Quick-Tasks/
    <task-name>.md
  References.md        ← if provided

4. Convert to Wiki format

Convert Markdown links to MediaWiki-style [[Page Name]] links:

for f in $(find wiki -name '*.md'); do
  # Convert [text](path/file.md) → [[file|text]] for cross-pages
  # Convert [text](https://...) → [text](https://...) unchanged (external)
  sed -i \
    -e 's/\[\([^]]*\)\](\([^)]*\)\.md)/[[\2|\1]]/g' \
    -e 's/\[\([^]]*\)\](\([^)]*\)\/\([^)]*\))/[[\3|\1]]/g' \
    "$f"
done

5. Commit and push

cd wiki
git add -A
git commit -m "docs: auto-generate wiki from spec files"
git push origin HEAD 2>/dev/null

Output

Return to the orchestrator:

  • Path to wiki/ directory
  • URL to live wiki (if pushed)
  • Any warnings (broken links, push failures)
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. 6d ago First seen · 86 lines · 0 tokens per session scan A 51f0cdfafd76

Subscribe to this mod's changes

format-github-wiki is an agent published in the GitHub repository abertanha/md-to-wiki-docs-skills (4 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 578 tokens. 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-08-31.