mb-wiki
БесплатноБез исполняемых скриптовНе проверенCreate and maintain personal wikis using Commune Wiki architecture. Use when: (1) Setting up a new wiki from the commune-wiki template (2) Personalizing wiki…
от dmthepm★ 44 звезды на GitHubОб этом скилле
Wiki Skill
Create and maintain personal wikis with atomic notes, WikiLinks, and auto-deploy.
Need help? Type /mb-help + your question anytime. If conversation compacts, /mb-help reloads fresh context.
Pull Latest Updates (Always)
See references/pull-engine-updates.md for the standard Main Branch update check. Run it at the start of every /mb-wiki invocation.
Where Files Go
Wiki files go to YOUR WIKI REPO, not your business repo or the Main Branch engine.
your-wiki-repo/ <- Files saved here
├── src/content/notes/ <- Atomic notes (/mb-wiki add)
├── src/content/research/ <- Full research docs (/mb-wiki research)
└── src/content/updates/ <- Auto-generated updates (/mb-wiki recent)
~/.mainbranch/mb-wiki.json <- Config pointing to wiki repo
mainbranch/ (engine) <- Never modified by /mb-wiki
└── .claude/skills/mb-wiki/ <- This skill lives here
The skill reads ~/.mainbranch/mb-wiki.json to find your wiki repo location.
Prerequisites
Before using this skill:
- GitHub CLI (
gh) installed and authenticated - pnpm installed (
npm install -g pnpm) - Cloudflare account (free tier works) — can create during setup
Check for existing config:
cat ~/.mainbranch/mb-wiki.json 2>/dev/null || echo "No wiki configured yet"
Modes
| Mode | What It Does | When to Use |
|---|---|---|
setup |
Clone template, deploy to CF Pages | First time (quick) |
configure |
Personalize wiki (name, social, domain, etc.) | After setup |
add |
Create atomic note with frontmatter | Daily note-taking |
publish |
Git commit + push (auto-deploy) | After any changes |
research |
Convert Gemini/GPT research to wiki | After deep research |
update |
Pull upstream template changes | When fixes released |
recent |
Generate "Recent Updates" from Git | Weekly or on threshold |
Mode: setup
Quick first-time wiki setup. Installs default template and deploys via wrangler CLI. Run /mb-wiki configure after to personalize.
Quick gist: Ask repo name, check gh auth, create+clone repo, merge commune-wiki template upstream, apply Windows path fixes if needed, pnpm install && pnpm build, push to main, ensure Cloudflare account, create Pages project via dashboard with Git connect, capture the deployed URL, write site URL into astro.config.mjs, push to trigger deploy, save ~/.mainbranch/mb-wiki.json.
See references/setup-mode.md for the full 12-step procedure: every command, the Windows compat fixes, the Cloudflare dashboard click-path, and the exit message.
Mode: add
Create a new atomic note following evergreen note principles.
Usage: /mb-wiki add "Note Title"
Steps:
- Read config:
cat ~/.mainbranch/mb-wiki.json | jq -r '.wiki_repo' - Generate slug:
echo "Note Title" | tr '[:upper:]' '[:lower:]' | tr ' ' '-' | tr -cd '[:alnum:]-' - Check existing:
ls "$WIKI_REPO/src/content/notes/$SLUG.md" 2>/dev/null - Create note with frontmatter — see references/note-template.md
- Apply evergreen principles: atomic, concept-oriented, densely linked
- Suggest WikiLinks:
grep -r "concept" "$WIKI_REPO/src/content/notes/" --include="*.md" -l
Frontmatter validation:
- Valid
statusvalues:draft,live,updated - Valid
visibilityvalues:public,private,draft
Exit: "Note created. Run /mb-wiki publish to deploy, or continue editing."
Mode: publish
Commit changes and push to trigger auto-deploy.
Usage: /mb-wiki publish "commit message" or /mb-wiki publish
Steps:
- Read config, cd to wiki repo
- Check
git status --short - Generate commit message if not provided (analyze changed files)
- Commit and push:
git add -A && git commit -m "[type] Message" && git push
Exit: "Pushed to GitHub. Cloudflare Pages will auto-deploy in ~90 seconds. Check status: https://dash.cloudflare.com → Workers & Pages → [project-name]"
Mode: research
Convert Gemini/GPT deep research into wiki format.
Usage: /mb-wiki research [path-to-research-file.md]
Steps:
- Read research file
- Create summary note (tripwire) in
notes/— see references/research-format.md - Create full research in
research/ - Format external links with arrow icon
- Suggest WikiLinks to existing notes
Exit: "Created research summary and full research. Run /mb-wiki publish to deploy."
Mode: update
Pull upstream template improvements from commune-wiki.
Usage: /mb-wiki update
Steps:
- Read config, cd to wiki repo
- Fetch upstream:
git fetch upstream - Show changes:
git log HEAD..upstream/main --oneline - Confirm merge with user
- Merge:
git merge upstream/main --no-edit - Rebuild:
pnpm install && pnpm build
Exit: "Updated to latest te
Установить mb-wiki в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл mb-wiki?
Create and maintain personal wikis using Commune Wiki architecture. Use when: (1) Setting up a new wiki from the commune-wiki template (2) Personalizing wiki (name, avatar, social links, domain) (3) Adding atomic notes with proper frontmatter and WikiLinks (4) Publishing changes (git commit + push for auto-deploy) (5) Converting Gemini/GPT deep research into wiki format (6) Pulling upstream template updates from Devon (7) Generating "Recent Updates" notes from Git history Triggered by: /mb-wiki, "add a note", "publish wiki", "create wiki", "configure wiki", "personalize wiki"
Как установить скилл mb-wiki?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mb-wiki запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic