wiki
Rebuild a flow-first project wiki using the mimirs wiki MCP tool. Use when the user asks to generate, rebuild, refresh, or write the wiki for a codebase.
от TheWinci★ 30 звёзд на GitHub
Установить wiki в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Wiki Rebuild
Use the wiki MCP tool as the source of truth. This skill is only a workflow
wrapper; do not invent a separate wiki structure.
The generation prose — discovery rules, the source-first writing contract, the
self-check, and the per-page prompts (flow, screen, overview, mechanism) — is served from
markdown, using packaged defaults unless a project overrides them. To customize
it for a project, run wiki(eject) once: it writes the defaults to
.mimirs/wiki/*.md for you to edit, and a file there overrides the packaged
default. Edit instructions in .mimirs/wiki/, never the generated wiki/ output.
Core Rule
The wiki is flow-first. Create one page for one concrete trigger:
- one HTTP method + route
- one message, event, queue topic, or consumer handler
- one CLI subcommand
- one MCP tool
- one worker, job, schedule, webhook, or server start
Do not bundle all API endpoints into one page. Do not bundle all messages into one page. Do not create broad architecture, module, entity, glossary, or generic data-flow pages unless the human explicitly asks for those.
The sanctioned exception for shared internals is a mechanism page
(kind: "mechanism", slug mechanisms/<name>): one page per internal subsystem
that three or more flows call but that is nobody's entry point — ranking,
caching, graph traversal, or similar. Flow pages link to it instead of each
re-explaining the same internals.
If many flows share files, keep separate pages and connect them with related flows.
Workflow
- Call
index_files()if the project index is empty or stale. - Call
wiki(shape). - Use the returned prompt and prefetch selectors to create
wiki/_discovery.json(flows first, then the overview second pass, then the mechanism third pass). - Validate with
wiki(validate-discovery). - If validation reports errors, fix
wiki/_discovery.jsonand validate again. - If validation passes, ask the human whether to continue.
- If the human says yes, call
wiki(write). - Read
wiki(discovery)and split the work by page slug. - For each slug, call
wiki(write:page:<slug>). - Write only the assigned page under
wiki/. - After all page writers finish, call
wiki(validate-pages)and fix any broken relative.mdlinks it reports. - Before committing the updated pages, call
wiki(changelog)and follow the returned prompt: it diffs the pendingwiki/changes and has you prepend one entry towiki/CHANGELOG.md— a curated summary of the behavior changes for an incremental update, or a single line for a full regeneration. Then commit the pages and the changelog together.
Updating an existing wiki
When the wiki already exists and the code or instructions have changed, prefer an incremental update over a full rebuild:
- Call
index_files()if the index is stale. - Call
wiki(update). It diffs the source and instruction changes since the wiki was last generated (never thewiki/output) and returns the changed files plus the page index. - Follow the returned prompt: decide which pages each change made stale, then call
wiki(write:page:<slug>)for only those pages and rewrite them. Leave untouched pages alone. If the signal says too much changed, do the full rebuild instead. - Call
wiki(validate-pages), thenwiki(changelog), then commit.
Discovery Shape
Each flow may include stateChanges for project items whose state changes
during the flow. Use this for concrete items such as orders, jobs, files,
index rows, cache entries, sessions, messages, or checkpoints. Record from,
to, a plain-language description, and source evidence when the code proves
the change.
Each page should have:
- a category
kind, usually matching the referenced flow kind, such astool,command,route,message,job, orschedule - exactly one
flowIdsitem - a specific slug, such as
routes/post-checkoutormessages/order-created
Avoid broad slugs such as api, endpoints, messages, events,
data-flows, architecture, modules, or entities.
Mechanism pages are the exception to the one-flow rule: kind is
"mechanism", the slug lives under mechanisms/, flowIds is optional and
may list several flows that use the mechanism, and primaryFiles needs only
the owning module.
When a flow depends on concrete caller-provided values or external
conditions, add an inputs array naming what the caller, environment,
schedule, message, config, or file system provides. Omit inputs when there
is no meaningful input.
When a flow has concrete outputs or visible side effects, add an outputs
array naming what the flow returns, writes, updates, starts, publishes, logs,
or otherwise changes. Omit outputs when there is no meaningful output. Do
not put request parameters, command flags, or tool arguments in outputs.
Those are inputs.
Page Writing
Source-first rule: discovery is a map, not page content. Do not paste discovery summaries, file lists, or `mustCov
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл wiki?
Rebuild a flow-first project wiki using the mimirs wiki MCP tool. Use when the user asks to generate, rebuild, refresh, or write the wiki for a codebase.
Как установить скилл wiki?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wiki запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…