projectWikiSkill
Use $project-wiki to connect a project task to its rules, implementation, knowledge structure and verified return. Keep the project's native Wiki as the fact owner; the skill supplies the working method.
- Start a real task: skill entry.
- Decide where new knowledge belongs, diagnose a missed rule, or migrate a page: Wiki evolution.
- Capture and return work across agents: collaboration workflow.
- Run the helper or package it: usage.
- Maintain this repository: engineering entry.
The version identity is plugin.json. What is verified for each version
(CI, main, package, installed hosts, hooks, delivery, use) is one table in
docs/wiki/status.md. Version history is in
CHANGELOG.md; measured evidence is in
evals/reports/.
让项目 Wiki 成为比猜文件名、全仓搜索更省事的工程入口。
可安装 skill 在 project-wiki/,名称为 $project-wiki。它将问题、精确源码位置、接口契约、规则、影响面、检查与证据边界连接起来;分别量化结构完整度、任务路由表现、语义核验和实际使用效果,避免一个总分掩盖未知。
- 了解项目与导读:从产品、角色和跨域例子建立理解;区分全文阅读与导语巡读,理解验收与任务定位分别评价。
- 功能闭环规则:所有功能按用户结果核必要能力与八维证据;文档结构、实现接通、运行验收分别判,缺口不能当完成。
- 结构契约:接口声明、实现、消费者、规则来源、失败与兼容、精确定位。
- 量化模型:100 分结构量表、任务命中率与独立演练指标。
- 持续维护:改动触发、计划交付、漂移检查、CI 与交接。
- 既有 Wiki 接入:复用原生索引与闸,恢复中断审阅,沿生产者、消费者、部署证据核验事实;不强制迁移到第二套 manifest。
- 六图框架:架构、流程、时序、数据模型、部署、状态六种视角的职责与项目级覆盖检查。
- 工程深度:字段/单位/字节布局、状态守卫与上下文、重试和资源边界、轻量决策记录。
- 复合改动定位:任务地图、内部编辑接缝、捕获范围、共用规则与完整工作面验收。
使用
将整个 project-wiki 文件夹放入目标工具支持的 skills 目录,或通过支持 GitHub 子目录的 skill 安装器从本仓 project-wiki 子目录安装。安装位置由用户决定,仓库内容不自动修改本机配置。
Python 3.10+ 即可运行工具,无第三方依赖:
python project-wiki/scripts/wiki.py query --root <project> "外部源端口"
python project-wiki/scripts/wiki.py task --root <project>
python project-wiki/scripts/wiki.py task <task-id> --root <project>
python project-wiki/scripts/wiki.py list --root <project>
python project-wiki/scripts/wiki.py audit --root <project>
python project-wiki/scripts/wiki.py build --root <project>
python project-wiki/scripts/wiki.py check --root <project>
python project-wiki/scripts/wiki.py evaluate --root <project> --tasks <tasks.json>
wiki.py reads a schema 1 or 2 manifest at docs/wiki/routes.json. Entry points:
| Script | Commands | Boundary |
|---|---|---|
project-wiki/scripts/wiki.py | query, task, list, audit, build, check, evaluate | Route-manifest navigation, structural audit and routing evaluation |
project-wiki/scripts/workflow.py | capture, capture-return, start, delegate, show (--snapshot-only), review-template, finish | Revision-bound native Wiki context, delegation and diff reconciliation; capture and capture-return run only an explicit caller-supplied native argv. See collaboration workflow |
project-wiki/scripts/edit_gate.py | none: reads one Claude PreToolUse event on stdin | Optional pre-edit gate, active only in a checkout holding .project-wiki/edit-gate.json. See pre-edit gate |
scripts/package_plugin.py | --output <new-directory> [--with-lifecycle-hooks [--hook-layout legacy|portable]] | Builds a package from the canonical skill; default is skill-only; writes no host configuration |
scripts/plugin_doctor.py | --package <package> [--source <checkout>], optional saved --codex-inventory/--codex-marketplace/--codex-version-file/--codex-hooks/--codex-hooks-cwd, --claude-transcript | Inspects package/source closure and caller-saved host snapshots; never enables, trusts or runs hooks |
The hook profile (--with-lifecycle-hooks) adds hooks/codex.json and
hooks/claude.json: SessionStart saved-task delivery through lifecycle.py, plus
the Claude-only PreToolUse edit gate. See
optional lifecycle delivery.
可以先在本仓完整样例上运行:
python project-wiki/scripts/wiki.py build --root evals/fixture-project
python project-wiki/scripts/wiki.py evaluate --root evals/fixture-project --tasks evals/tasks.json
python -m unittest discover -s tests -v
六图样例的可选渲染验收使用 node evals/render-diagrams.mjs,需要可用的 Playwright 与 Chrome;可用 WIKI_PLAYWRIGHT_MODULE 指向已有模块、WIKI_BROWSER_CHANNEL 选择浏览器。工具不自动安装依赖,默认输出到临时目录;Mermaid CDN 可由 WIKI_MERMAID_URL 指定固定版本。核心 Python 工具仍无第三方依赖。
各类分数与采用证据分层报告,见 量化模型 与 docs/wiki/status.md。仅 build 写生成索引;其余命令不执行目标项目或清单中的检查命令。
项目起源于两个共用 Wiki 的开源仓库的接口改进演练;skill 是通用工程方法,不要求固定技术栈、固定页数或每个功能画六张图。
验证记录:结构评分、任务自测、独立试用与真实项目采用记录;逐版本状态见 docs/wiki/status.md。