Skip to content
Agentmart
Submit a tool

wiki

Rebuild a flow-first project wiki using the mimirs wiki MCP tool.

Skill by TheWinci

IndexedApache-2.0★ 30
Write a review

Chalk Labs

Need help deploying wiki?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/thewinci-wiki

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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.

Use cases: writing, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/wiki

What's inside

Skill name
wiki
Description
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.
License
Apache-2.0
Instructions
133 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# 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

1. Call `index_files()` if the project index is empty or stale.
2. Call `wiki(shape)`.
3. Use the returned prompt and prefetch selectors to create `wiki/_discovery.json`
   (flows first, then the overview second pass, then the mechanism third pass).
4. Validate with `wiki(validate-discovery)`.
5. If validation reports errors, fix `wiki/_discovery.json` and validate again.
6. If validation passes, ask the human whether to continue.
7. If the human says yes, call `wiki(write)`.
8. Read `wiki(discovery)` and split the work by page slug.
9. For each slug, call `wiki(write:page:<slug>)`.
10. Write only the assigned page under `wiki/`.
11. After all page writers finish, call `wiki(validate-pages)` and fix any broken relative `.md` links it reports.
12. Before committing the updated pages, call `wiki(changelog)` and follow the returned prompt: it diffs the pending `wiki/` changes and has you prepend one entry to `wiki/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:

1. Call `index_files()` if the index is stale.
2. Call `wiki(update)`. It diffs the source and instruction changes since the wiki
   was last generated (never the `wiki/` output) and returns the changed files plus
   the page index.
3. 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.
4. Call `wiki(validate-pages)`, then `wiki(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 as
  `tool`, `command`, `route`, `message`, `job`, or `schedule`
- exactly one `flowIds` item
- a specific slug, such as `routes/post-checkout` or `messages/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 `mustCover` wording into a page. Reopen the
source and turn each required topic into an explanation of verified behavior:
what starts the flow, what code runs, what data moves, what state changes, what
can fail, and what the caller or user observes.

For each page:

- treat the page packet as a map, not the source of truth
- read the source files named in `primaryFiles`, flow `files`, flow
  `evidence`, and `stateChanges` evidence before writing
- follow the source from trigger to observable result, including helper calls
  when the named file delegates the important behavior
- explain concepts before relying on internal names
- explain the single assigned flow in plain language
- include a Mermaid `sequenceDiagram` with `autonumber`
- add a numbered list explaining the diagram steps
- include a compact `Inputs` section when the page has `inputs`

From TheWinci/mimirs, Apache-2.0.

More from TheWinci/mimirs

Signals

Stars
30
Forks
3
Open issues
0
Last commit (this folder)
Jun 12, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from TheWinci

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get wiki running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying wiki?

CallGet help
Cite this page

wiki skill. Agent Mart. https://agentmart.dev/skills/thewinci-wiki (last updated 2026-10-24)