skills/git-wiki/SKILL.md
Build and maintain local code-project wikis under .wiki or language-specific wiki roots such as .wiki-cn and .wiki-fr. Use this skill whenever the user mentions "wiki", "ingest", "refresh wiki", "update wiki", "lint wiki", "check wiki", "document the codebase", "export wiki", "bundle wiki", "archive wiki", or asks a question that can be answered from wiki pages. Also use it when the user asks how something works in the project and a wiki page could capture the answer for future reference.
npx skillsauth add yysun/awesome-agent-world git-wikiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Maintain local wikis for a code project under .wiki by default, with optional language-specific roots such as .wiki-cn, .wiki-fr, or an exact user-named wiki directory such as wiki-cn.
Source of truth is always the current git-tracked repository files at HEAD, including tracked documentation in .docs/ and docs/, not the wiki.
The wiki files themselves may be untracked; read and update the live selected wiki root from the working tree when present.
HEAD only.wiki by default; use the explicit root or language the user names, such as .wiki-cn, wiki-cn, .wiki-fr, "Chinese wiki", or "French wiki".wiki/**, .wiki-*/**, and wiki-*/**index.md checkpoint when it existsindex.md must be updated on every ingestHEADRequired:
<wiki-root>/index.md — human entry point and master catalog (tracks last ingest commit for that root only)Optional (create as needed):
<wiki-root>/overview/ — orientation pages that explain the project, startup path, storage, and reading path<wiki-root>/features/ — one page per significant product capability or implementation area<wiki-root>/bug-fixes/ — one page per notable bug fix or patch<wiki-root>/concepts/ — cross-cutting ideas and patterns<wiki-root>/entities/ — data models, schemas, types<wiki-root>/flows/ — sequences, pipelines, request lifecycles<wiki-root>/risks/ — invariants, compatibility contracts, fragile behavior, and things not to break<wiki-root>/reference/ — code-shaped reference pages when a source path needs focused explanation<wiki-root>/notes/ — ad-hoc or open questionsThe wiki is for a human to understand the codebase, not for the repository to describe itself. Organize the front door around the reader's questions before the code's folders.
<wiki-root>/index.md must answer these questions, in this order:
Use these questions as the primary navigation. features/, entities/, flows/, and reference/ are supporting evidence, not the first mental model.
The Get Started section is for codebase orientation, not a duplicate README. It should give a smart newcomer the first 10 minutes:
When a repo already has setup instructions in README.md or docs/, link to them and summarize only what helps the reader understand the code.
.wiki.wiki-<language-code> when creating a new language wiki, for example .wiki-cn for Chinese and .wiki-fr for Frenchwiki-cn, use that exact root instead of normalizing itindex.md carries extra fields to track ingest state:
---
title: "Project Wiki"
type: "index"
status: "active"
language: "<language-code|default>"
last_commit: "<full-sha>"
updated_at: "YYYY-MM-DD"
---
last_commit is the full git commit SHA at the time of the most recent full-repository ingest for the selected wiki root. This checkpoint lives in the selected root's current index.md file whether or not that root is git-tracked. On the next ingest for the same root, prefer this saved last_commit to find changed files with git diff --name-status -M <last_commit> HEAD.
If git metadata is unavailable, do not fall back to filesystem scanning. Ingest and lint are unavailable until git access works again.
---
title: "Page Title"
type: "overview|feature|bug-fix|concept|entity|flow|risk|reference|note"
status: "draft|active|stale"
language: "<language-code|default>"
source_paths: []
updated_at: "YYYY-MM-DD"
---
Set language to default for .wiki, cn for .wiki-cn or wiki-cn, fr for .wiki-fr, and the matching language code for other language-specific roots.
Use status: "stale" when the source file has changed significantly since the page was last updated, or when the page describes something that no longer exists. During ingest, pages whose source_paths changed since last_commit should be updated or marked stale. Do not delete stale pages automatically — mark them and note the drift so the user can decide.
auth-middleware.md, user-schema.mdlogin-check.md, saved-data-shape.md, startup-flow.mdsrc/api/routes.ts → <wiki-root>/reference/src-api-routes.md<wiki-root>/concepts/request-lifecycle.mdUse [[page-slug]] links between pages whenever a page references something covered on another page. The target should match the destination filename without the .md extension. This makes the wiki navigable and lets lint resolve links deterministically.
Trigger on:
ingestingest [file]ingest [folder]ingest wiki-cningest .wiki-frrefresh wikiupdate wikiupdate Chinese wikiWorkflow:
.wiki; use an explicit root or language-specific root when named<wiki-root>/index.md from the working tree if it exists, even when the wiki root is untracked — note last_commit from frontmatter
<wiki-root>/index.md or a missing last_commit means there is no prior ingest checkpoint for that rootgit rev-parse HEAD to get the current HEAD commit SHAlast_commit is set: git diff --name-status -M <last_commit> HEAD and exclude all wiki roots (.wiki/**, .wiki-*/**, wiki-*/**)last_commit even if the selected wiki root is untracked; do not treat an untracked wiki root as a fresh ingest from HEADgit ls-files at HEAD, excluding all wiki roots (see Ingest Priorities below)<wiki-root>/index.md:last_commit unless the scoped ingest also covers every file changed since last_commitstatus: "stale" with a note in the page body, and update moved or renamed pages based on rename information from git<wiki-root>/index.md:
updated_at to todaylast_commit to the current HEAD SHA only after a full ingest or after processing the complete changed-file set from the previous last_commitlast_commit unchanged and note in index.md that bootstrap coverage is still partiallast_commit merely because the selected wiki root is untrackedIngest is automatic. Do not ask the user for confirmation.
If git commands fail, report that the wiki skill cannot ingest until git access is restored. Do not substitute directory walking.
Trigger on:
export wikibundle wikiarchive wikione-page wikiprepare wiki for notebooklmsend wiki to notebooklmWorkflow:
.wiki; use an explicit root or language-specific root when named<wiki-root>/index.md exists in the working tree
HEADnode skills/git-wiki/scripts/export-wiki-bundle.mjs \
--input-dir <wiki-root>
index-{simple-timestamp}.md in the selected wiki root--output-file <path>--root-name <name>notebooklm skill as the source artifactExport expectations:
<wiki-root>/**/*.mdtitle, type, status, language, tags, description, source_paths, updated_at, and last_commit[[wiki-links]] into plain text so downstream tools do not need Obsidian semantics![[image.png]].wiki-fr/index-20260510-143522.mdWhen doing a broad ingest from git-tracked files, build the human entry point first, then add supporting code pages. Work in this order and stop when you have good coverage (typically 10–20 pages for a medium project):
.docs/ and docs/package.json, pyproject.toml, Cargo.toml, etc.) to determine how the project runsmain.ts, index.ts, app.py, cmd/, etc.) to explain startup and runtime behavior<wiki-root>/overview/ or <wiki-root>/entities/<wiki-root>/flows/<wiki-root>/concepts/ or <wiki-root>/features/<wiki-root>/risks/<wiki-root>/features/ or <wiki-root>/entities/<wiki-root>/features/<wiki-root>/features/<wiki-root>/bug-fixes/For large repos (100+ files), focus on depth over breadth: deeply document the 10 most important modules rather than shallowly touching 50.
When asked a project question:
.wiki; use an explicit root or language-specific root when named<wiki-root>/index.md if it exists.docs/ and docs/ when it is relevant to the question, then confirm against code or config when needed[[wiki-link]] citations when relevant wiki pages existTrigger on:
lintlint wikicheck wikilint .wiki-frcheck Chinese wikiChecks:
[[links]]status: "stale") that may have drifted from current sourcelast_commit with no wiki page)[[wiki-links]] where the target page doesn't exist## Wiki Lint Report — YYYY-MM-DD
### Errors
- [page] description of contradiction or broken link
### Warnings
- [page] description of potential issue
### Suggestions
- description of missing coverage or improvement
### Next Questions
- open questions worth investigating
Do not auto-fix unless explicitly asked.
src/api/routes.ts:42)[[wiki-links]]The wiki succeeds when:
<wiki-root>/index.md helps a new reader navigate the project in under 2 minuteslast_committesting
Scaffold, review, audit, and validate skill-based AI workspaces for agent hosts. Use when the user wants an AI workspace built around SKILL.md plus event handlers, references, templates, scripts, data, and output instead of AGENTS.md; when they want knowledge distillation workflows packaged as a reusable skill; or when they want to convert an AGENTS.md workspace pattern into a skill-owned workspace.
tools
<what this skill does>. Use when the user asks for <trigger phrases>, <task contexts>, or <expected workflow>.
tools
Create, review, audit, and validate AI workspaces for agent hosts such as Codex, Copilot, Gemini, and similar desktop or CLI runtimes. Use when the user asks to design an agent-ready repo, scaffold AGENTS.md and event handlers, create an API-backed or domain knowledge workspace, audit AGENTS.md or SKILL.md quality, or improve how a repo exposes behavior to coding agents.
development
Use when user needs to plan, storyboard, review, critique, or rewrite a presentation outline or slide deck, including SCR presentations, BBP/Beyond Bullet Points presentations, scene-based decks, headline development, bitmap visual generation, and handoffs to Markdown, Marp, or PPTX production.