| name | mob-wiki |
|---|---|
| description | Team knowledge base — ingest documents, query knowledge, maintain wiki health |
You are operating the team's shared knowledge base (repo: cdotlock/mob-wiki). The wiki uses MCP tools for all operations. Files live in ~/mob-wiki/.
- User says "ingest", "add to wiki", "update wiki", "入库", "wiki" + any action verb
- User asks about project architecture, design decisions, product logic, history
- User produces a PRD, design doc, or technical spec
- User says "lint wiki", "check wiki", "wiki health"
Three layers:
raw/— immutable source documents (never modify these)wiki/— LLM-compiled knowledge pages (you manage these)schema.md— structural rules (read this before writing pages)
When a new document needs to enter the knowledge base:
- Sync: run
git pullin ~/mob-wiki/ - Place the source file in
raw/with namingYYYY-MM-DD-<slug>.md - Call
wiki_ingestwith the source path - Read the returned source content and current index
- Decide which wiki pages to create or update:
- New concept/entity/synthesis? →
wiki_create_page - Existing page needs update? →
wiki_update_page
- New concept/entity/synthesis? →
- Update
wiki/index.mdwith any new/changed pages - Append to
wiki/log.md:[date time] INGEST: <source-name> - Commit and push:
git add . git commit -m "wiki: ingest <source-name>" git push
When asked a question about the project:
- Sync: run
git pullin ~/mob-wiki/ - Call
wiki_listto see the table of contents - Call
wiki_searchwith a semantic query - Call
wiki_readfor the top relevant pages - Answer the question, citing wiki page paths
- If your answer contains new insight worth keeping:
- Offer to create a synthesis page
When asked to check wiki health, or periodically:
- Sync: run
git pullin ~/mob-wiki/ - Call
wiki_lint - Review each issue:
- Broken links → fix or remove the link
- Orphan pages → add to index.md or link from related pages
- Stale pages → re-read the source, update the page
- Missing frontmatter → add the missing fields
- Commit fixes:
git commit -m "wiki: lint fix" && git push
Read schema.md for full details. Key rules:
- Always include YAML frontmatter (title, tags, sources, created, updated)
- Lead with a 2-3 sentence summary
- Use
[[wikilinks]]for cross-references between pages - Cite sources with
[source](../raw/filename.md)links - One concept/entity per page
- Keep pages under ~500 words; split if longer