Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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.md first; 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:

  1. "$SKILL/scripts/wiki.sh" enabled <owner/repo> — if false, run enable. Often it is already true, which is not evidence the wiki is usable.
  2. If has-content said no, the .wiki.git repo does not exist and you cannot create it. There is no REST/gh endpoint for creating the first page, and git push to it is rejected with Repository not found even with admin: true and full repo scope. Do not burn turns on git init + push, other remote URLs, or token/scope theories — the push path is closed by design.
  3. 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). Title Home, body irrelevant. Give them the literal URL — it is not discoverable from the repo's Wiki tab when empty in some views.
  4. After they confirm, clone and proceed. The UI-created page is a stub reading Welcome to the <repo> wiki! — overwrite Home.md wholesale. If you had already committed a local Home.md before bootstrapping, rebasing onto origin/master conflicts 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), then CLAUDE.md / docs/ / CHANGELOG if 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.md for 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
Полный SKILL.md на GitHub

Установить wiki-git в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/architecture-hfsa.mdreferences/mermaid.mdreferences/page-playbook.mdscripts/wiki.sh

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить wiki-git с