wiki-page-writer

wiki-page-writer is an agent for Claude Code from bearlike/Assistant. It costs 34 tokens per session (1,628 once invoked), scanned A, original, MIT.

A worker that creates one wiki page from selected source files and related code references. It writes the page in Markdown, with optional diagrams and tables, and submits it to the wiki.

In plain words
What is it for?
Use it to document one part of a codebase, including its relationships, data, and flow.
Why use it?
It turns a focused reading of code into a structured documentation page without requiring the whole repository to be regenerated.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the wiki plugin — 8 agents shipped together

Good fit Use it to document one part of a codebase, including its relationships, data, and flow.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/bearlike/assistant/wiki-page-writer
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.

Clone the repo
git clone --depth 1 https://github.com/bearlike/Assistant

Made for: Claude Code.

Or install wiki, the plugin that ships this one along with the rest of its 8 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-page-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/bearlike/assistant/wiki-page-writer/github.svg)](https://agentmods.dev/agents/bearlike/assistant/wiki-page-writer)
Your own site
<a href="https://agentmods.dev/agents/bearlike/assistant/wiki-page-writer"><img src="https://agentmods.dev/badge/agents/bearlike/assistant/wiki-page-writer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wiki-page-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/bearlike/assistant/wiki-page-writer"><img src="https://agentmods.dev/badge/agents/bearlike/assistant/wiki-page-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 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,628 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00034 $0.01628
Opus 5.5 $0.00014 $0.00651
Sonnet 5.5 $0.00007 $0.00326
Haiku 4.5 $0.00003 $0.00163

Measured 1mo ago against content hash 9015c0a28041, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wiki-page-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 1mo 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.

packages/mewbo_graph/src/mewbo_graph/plugins/wiki/agents/wiki-page-writer.md · 187 lines

How it starts

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

Generate one wiki page. Read source; synthesize markdown, Mermaid diagrams, and tables; submit via wiki_submit_page. Terminate immediately after submission.

Your task is provided in full by the parent wiki-indexer agent. Parse id, title, purpose, relevantFiles, parent, and REPO GROUNDING NOTES from it before any tool call.


Execution steps

  1. Read source files — call read_file for each path in relevantFiles. Read all before synthesising.
  2. Gather additional context — use wiki_code_search or wiki_query_graph to find cross-references, callers, or related symbols not in relevantFiles. Keep to what the page directly covers.
  3. Synthesize — write the full page in memory (do not write to disk). Follow the content rules below.
  4. Submit — call wiki_submit_page(pageId=<id>, frontmatter=<yaml string>, body=<markdown string>) exactly once.
  5. Stop — the loop exits on submission. Do not call any further tools.

Entities (consume, don't re-extract)

The enrich phase already built the entity graph BEFORE you ran (the GraphRAG ordering law). Use resolve_entity(name, type) to look an entity up rather than re-extracting it — never mint entities here, and never extract them from your own generated page prose. If you surface a durable, prose-only entity the enricher missed, do NOT mint it directly — submit it as an insight:

wiki_submit_insight(content=..., entity_recommendations=[{"action": "create", "subjects": ["<name>|<type>"], "rationale": "..."}])

The next idempotent re-index mints it from that recommendation prior.


Page structure

YAML frontmatter

---
title: <Human readable title>
slug: <pageId>
relevantSources:
  - path: <file path>
    lines: "<start>-<end>"
---

relevantSources lists files and line ranges actually cited in the body. One entry per distinct file section referenced.

Markdown body

# <title>

One-paragraph overview of what this subsystem does and why it exists.

## <Section heading>

...

## <Section heading>

...

Read the full file on GitHub · 187 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. 1mo ago First seen · 187 lines · 34 tokens per session scan A 9015c0a28041

Subscribe to this mod's changes

wiki-page-writer is an agent published in the GitHub repository bearlike/Assistant (44 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 1,628 once invoked, about $0.0001 per session on Opus 5.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-08-30.

Related

Other agents, from other repositories

notebooklm-specialist

Use this agent when you need AI-powered deep research and analysis via Google NotebookLM. Context: Orchestrator has spawned this agent for NotebookLM analysis phase user: "You are the NotebookLM specialist. Research brief: [topic]. Notebook ID: abc123. Output: ./docs/research/..." assistant: "Reading my skills and…

jmagar/claude-homelab · 244 tokens

cr-custom-rules

Reviews a supplied diff against explicit repository rules from supplied rule sources. Use only when dispatched by the code-review skill with at least one rule source.

srtab/daiv · 34 tokens

cr-structure

Reviews a supplied diff for introduced, concrete design and maintainability hazards. Use only when dispatched by the code-review skill.

srtab/daiv · 28 tokens

cr-correctness

Reviews a supplied diff for introduced behavioral and contract defects. Use only when dispatched by the code-review skill.

srtab/daiv · 26 tokens

planner

Plan and design drafter on Opus 5. The orchestrator dispatches it to author implementation plans, designs, and idea explorations as ADVISORY DRAFTS: it explores the change area (read-only), weighs alternatives, and returns a structured plan the orchestrator adjudicates against its fuller context. Default lane for…

TigerGTC/opus-rail · 105 tokens

executor

The DEFAULT destination for implementation in opus sessions: any coding, debugging, test-writing, or focused-review task that touches more than one trivial file goes here, per task, at the moment the work starts — not as an occasional escalation for large work. Runs Opus 5. Dispatch scoped: single objective, exact…

TigerGTC/opus-rail · 111 tokens