wiki-git
БесплатноЗапускает вложенные скриптыНе проверенCurate a GitHub repository's wiki (the separate repo.wiki.git) into a coherent, tightly written set of pages: Home, Introduction (project + features)…
от htlin222★ 78 звёзд на GitHubОб этом скилле
wiki-git
Turn a repo into a well-curated GitHub wiki. The wiki is a separate git repo at
https://github.com/<owner>/<repo>.wiki.git; this skill clones it, writes/updates a fixed
set of curated pages, and pushes.
SKILL below is the runtime "Base directory for this skill" value. Invoke the helper as
"$SKILL/scripts/wiki.sh" <subcommand> and read references as "$SKILL/references/<file>".
The deliverable
A curated wiki is a small fixed set of pages, each with a job (full spec:
references/page-playbook.md):
| Page | Job |
|---|---|
| Home | one-screen "what is this + where do I go", with an at-a-glance mermaid diagram |
| Introduction | purpose, features table, key design decisions |
| Roadmap | short / mid / long term + preserved upgrade paths |
| Gotchas / Lessons | real hard-won traps: symptom -> cause -> fix |
| Tech Debt | each item: background -> impact -> repayment |
| Head-First-Software-Architecture | the architecture, taught through the book (references/architecture-hfsa.md) |
| _Sidebar | navigation, matching the repo's language and link convention |
Scale to the repo: fold pages together for a tiny repo; split topical deep-dives out for a rich one. Don't manufacture filler to hit a page count.
Workflow
1. Scope & preflight
- Identify the target
owner/repo(default to the current repo's origin if unspecified). "$SKILL/scripts/wiki.sh" has-content <owner/repo>— does a wiki with pages already exist?- no -> see Bootstrapping a never-used wiki below. This is a hard blocker with a one-time manual step; handle it before writing any page content.
- yes -> you're updating: read the existing pages and
_Sidebar.mdfirst; match their voice, structure, and link convention. Add/refresh, don't clobber.
- Clone:
"$SKILL/scripts/wiki.sh" clone <owner/repo> <clone-dir>.
Bootstrapping a never-used wiki
has_wiki: true and .wiki.git existing are two different things, and only the first is
reachable from the CLI:
"$SKILL/scripts/wiki.sh" enabled <owner/repo>— iffalse, runenable. Often it is alreadytrue, which is not evidence the wiki is usable.- If
has-contentsaidno, the.wiki.gitrepo does not exist and you cannot create it. There is no REST/ghendpoint for creating the first page, andgit pushto it is rejected withRepository not foundeven withadmin: trueand fullreposcope. Do not burn turns ongit init+push, other remote URLs, or token/scope theories — the push path is closed by design. - Ask the user to save one page at
https://github.com/<owner>/<repo>/wiki/_new("$SKILL/scripts/wiki.sh" bootstrap-url <owner/repo>prints it). TitleHome, body irrelevant. Give them the literal URL — it is not discoverable from the repo's Wiki tab when empty in some views. - After they confirm,
cloneand proceed. The UI-created page is a stub readingWelcome to the <repo> wiki!— overwriteHome.mdwholesale. If you had already committed a localHome.mdbefore bootstrapping, rebasing ontoorigin/masterconflicts on that stub; resolve by taking your version entirely.
While waiting on the user, do the step-2 discovery and draft pages locally — the manual step blocks publishing, not authoring.
2. Discovery heuristic (understand before writing)
Gather the raw material for curation. Read, in rough priority:
README, then the top-level directory layout (the logical components), thenCLAUDE.md/docs//CHANGELOGif present.git log(recent themes, "why we changed X"), open issues/PRs for roadmap & gotchas.- Any existing wiki pages (when updating).
From that, answer: what is it & for whom, what are the real features, what design decisions shaped it, where is it going, what traps were hit, what debt exists, and what are the 2-3 driving architectural characteristics. These answers ARE the pages.
Decide the language: write the wiki in the repo's own primary language (e.g. zh-TW if the README is zh-TW, English if English; mirror an existing wiki's language, including bilingual pages if it has them). Keep code identifiers and commands in their original form.
3. Write the pages
- Follow
references/page-playbook.mdfor each page's structure. - For the architecture page, follow
references/architecture-hfsa.md— teaching-first: every book concept gets a plain-language explanation THEN a concrete mapping to this repo. - Add mermaid
Установить wiki-git в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл wiki-git?
Curate a GitHub repository's wiki (the separate repo.wiki.git) into a coherent, tightly written set of pages: Home, Introduction (project + features), Roadmap, Gotchas/Lessons, Tech Debt, and an Architecture page taught through the book *Head First Software Architecture* — with mermaid diagrams, in the repo's own language and style, then commit and push. Use when the user wants to create, update, curate, or document a GitHub repo's wiki; write or refresh wiki pages; add an architecture / design page to a wiki; enable a wiki; or asks for "/wiki-git". Handles both first-time wikis and updates to existing ones, and can fan out across many repos.
Как установить скилл wiki-git?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wiki-git запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic