Maintain developer-facing wiki pages for a code project without editing business code. Prefer code facts, canonical page types, linked pages, and future-maintainer needs over generic knowledge-base writing.
Use this skill to keep project knowledge close to code development:
Use templates.md for page skeletons.
Do not use when the goal is only to modify product code or write non-development documents.
wiki_root: ./docs/wikicode_root: ./srcraw_root: ./docs/rawAGENTS.md / CLAUDE.md (or equivalent project instruction files)AGENTS.md / CLAUDE.md -> defaults above/change, /module, /ingest, /query, /lint, and /sync are intent labels, not required slash commandscode_root (default ./src)git reset --hard, git checkout --, force-push, rm -rf, or similar commandschanges/*.md - what changed, why, impact, testing, follow-upmodules/*.md - responsibility, entry points, interfaces, dependencies, tests, performance, debtsources/*.md - external source summary mapped to project modulesconcepts/*.md - project-specific concept or pattern pagedecisions/*.md - confirmed ADRs and their consequencesindex.md - wiki entry pointlog.md - timeline of important records/changeCollect user background, changed files, and optional git evidence first. Create a change page under changes/. Then update related module pages, index.md, and log.md.
Always preserve developer-facing details:
/moduleRead the module code and any existing module page first. Create or update modules/.
Capture:
If the module boundary is ambiguous, ask which directory or component the user means.
/ingestRead the source, then map it to current code or modules before writing. Create a sources/ page. Update concepts/ or modules/ only when the link is grounded in project evidence.
Do not stop at summary. Show:
Use git status, git diff, and git log to understand what changed. Git is strong evidence for what changed, not for why. If motivation is missing, ask for background or label it as a hypothesis.
Create decisions/*.md only for confirmed technical decisions. If a source or diff only suggests an architectural direction, recommend ADR creation instead of recording an unconfirmed decision as fact.
/query - answer from existing wiki plus a freshness check against newer code or change pages/explore - compare concepts, alternatives, and project-specific applications/lint - report missing pages, stale pages, broken links, orphan modules, or code/wiki drift/sync - scan code vs wiki and suggest updates; do not mass-edit by defaultindex.md and log.md/query-style requests, verify whether the wiki may be stale before treating it as currentchanges/, modules/, sources/, concepts/, and decisions/index.md, or log.md| Excuse | Reality |
|---|---|
| -------- | --------- |
Diff 已经说明了为什么改。 | Diff usually shows what changed, not the full motivation or tradeoff. |
模块名一看就知道。 | Folder names are weak evidence when boundaries overlap. |
顺手补 ADR 更完整。 | ADRs record confirmed decisions, not guesses made under time pressure. |
Wiki 已经差不多了,直接回答更快。 | A stale wiki can mislead the next maintainer. |
这些页面名意思差不多,先写再说。 | Canonical page paths and page types are part of the contract. |
顺手把旧代码/旧文件删掉更干净。 | This skill maintains wiki assets; it must not delete user code or non-wiki project files. |
我先全都补完,回头再问目录名已经足够说明职责用户很急,所以可以把推断写进去既然像架构决策,就直接补 ADR先写几个看起来差不多的页面名,后面再整理顺手把旧代码、旧文档或 git 历史一起清掉If you hear one of these in your head, stop and ground the update in code, existing wiki pages, or explicit user confirmation.
| Intent | Evidence first | Default output | Always preserve |
|---|---|---|---|
| -------- | ---------------- | ---------------- | ----------------- |
change | user background, changed files, optional git evidence | changes/*.md plus related module recent changes, index.md, log.md | code paths, compatibility, testing, follow-up |
module | code paths, existing module page, known dependencies | modules/*.md | interfaces, dependencies, tests, performance, debt |
ingest | source content, related code/modules | sources/*.md plus linked concepts/ or modules/ pages | project mapping, action items, unconfirmed-vs-confirmed decisions |
query | wiki pages plus freshness check against newer code/change pages | answer only, optionally suggest a page update | drift warnings, relevant modules, recent changes, constraints |
共 3 个版本