Back to skills
SKILL.md
Z Wiki
ASecurityPersistent Repo Wiki workflow combining deterministic z-token topology with z-brain FTS5 semantic summaries, staleness detection, bidirectional .z-wiki/ Markdown sync, and interactive architecture diagram viewing.
- 4 stars
- 0 votes
- 0 copies
- 0 views
- Added December 2, 2026
Works with
Security analysis
100/100npx -y skills add kzxl/z-plugin --skill z-wiki --agent claude-codeAre you the author of Z Wiki?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/kzxl-z-wiki)---
name: z-wiki
description: Persistent Repo Wiki workflow combining deterministic z-token topology with z-brain FTS5 semantic summaries, staleness detection, bidirectional .z-wiki/ Markdown sync, and interactive architecture diagram viewing.
---
# Z-Wiki — Persistent Repo Wiki & Architecture Map
Use `z-wiki` to eliminate cold-start codebase exploration and prevent architectural drift without wasting tokens.
---
## 1. Progressive Disclosure Workflow
```text
[Session Start] ──► zbrain_wiki(action: "map") [L0: ~300-500 tokens]
│
├──► zbrain_wiki(action: "page", slug: "<module>") [L1: Card + Gotchas]
│ │
│ └──► z-token read_symbol / outline [L2: Exact Source]
│
└──► zbrain_wiki(action: "view") [Interactive SVG + Mermaid]
```
---
## 2. Core Actions (`zbrain_wiki`)
| Action | Purpose | When to Use |
| :--- | :--- | :--- |
| `init` | Scan repo deterministically (`z-token.repo_map`) and build skeleton pages + `.z-wiki/` Markdown | First onboarding on a repo, or adding newly created modules |
| `map` | Return compact L0 overview (`slug [FRESH|STALE] — summary`) | Start of any task in a multi-module repo |
| `page` | Inspect L1 module card, citations (`file:line`), dependencies, and linked `z-brain` gotchas | Before modifying an unfamiliar module |
| `search` | FTS5 search across wiki summaries and module docs | Locating which module owns a domain concept or workflow |
| `stale` | Verify live SHA-1 content fingerprints and detect untracked modules | Before trusting stale pages or after external `git pull` |
| `update` | Save agent-authored L0/L1 semantic summary and clear `stale` flag | After `init` or when updating a `[STALE]` module |
| `sync` | Bidirectional `.z-wiki/` Markdown import/export (`direction: "both" \| "import" \| "export"`) | After editing `.z-wiki/*.md` by hand or pulling wiki commits |
| `view` | Generate offline interactive SVG + Mermaid viewer (`.z-wiki/viewer.html`) | Visual architecture inspection or `--serve --open` via CLI |
---
## 3. Enriching `[STALE]` or `skeleton` Modules
1. Call `zbrain_wiki(action: "stale")` or `zbrain_wiki(action: "map")` to identify modules marked `[STALE]` or authored by `skeleton`.
2. Read only the relevant entrypoints/exports via `z-token.outline` and `z-token.read_symbol` (never dump entire modules).
3. Call `zbrain_wiki(action: "update", slug: "<module>", summary_l0: "<1 concise sentence>", content_l1: "<responsibilities, key flows, invariants>")`.
4. Never overwrite another author's module without reading the latest citations first; `init` automatically preserves `agent`/`human` prose and only flags fingerprint changes as `[STALE]`.
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.