docs-management

Project knowledge-base engine: continuously maintain the docs/ directory as a living knowledge base, inspired by the Karpathy LLM Wiki. Five core operations: Ingest (ingest new info), Query (knowledge retrieval), Lint (health checks), Index (index maintenance), and Synthesize (aggregate global views). Trigger words: doc check, clean docs, doc indexing, docs tidy, knowledge base, is the doc expired, architecture doc, user manual. Trigger scenarios: trigger Ingest when task-manager marks done, periodic Lint health checks, user queries about project history, and trigger Synthesize to update architecture/ or user-guide/ after task-finish reminders. Even if the user doesn’t explicitly say “docs management,” this skill should trigger for any work involving organizing/checking/updating the docs/ directory.

Last repository push
GitHub Stars
107
Forks
17
Issues / PRs
3

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "docs-management" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-47c3e290a5f01a64935830852cac9f845d047bd61f6844d0623a5c3729aee7fa. Verify the upstream source and version against https://github.com/312362115/claude before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Project knowledge-base engine: continuously maintain the docs/ directory as a living knowledge base, inspired by the Karpathy LLM Wiki. Five core operations: Ingest (ingest new info), Query (knowledge retrieval), Lint (health checks), Index (index maintenance), and Synthesize (aggregate global views). Trigger words: doc check, clean docs, doc indexing, docs tidy, knowledge base, is the doc expired, architecture doc, user manual. Trigger scenarios: trigger Ingest when task-manager marks done, periodic Lint health checks, user queries about project history, and trigger Synthesize to update architecture/ or user-guide/ after task-finish reminders. Even if the user doesn’t explicitly say “docs management,” this skill should trigger for any work involving organizing/checking/updating the docs/ directory.

0 Downloads

Introduction source: third_party · 312362115 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: docs-management
version: 1.0.0
last_updated: 2026-04-08
repository: https://github.com/312362115/claude
description: >
  项目知识库引擎:持续维护 docs/ 目录作为活的知识库。
  灵感来源:Karpathy LLM Wiki — LLM 不只是写文档,而是持续维护知识库。
  五个核心操作:Ingest(摄入新信息)、Query(检索知识)、Lint(健康检查)、Index(索引维护)、Synthesize(聚合全局视图)。
  触发词:文档检查、清理文档、文档索引、docs 整理、知识库、文档过期了吗、架构文档、用户手册。
  触发场景:task-manager 标 done 时自动触发 Ingest、定期 Lint 健检、用户查询项目历史、
  task-finish 提醒后触发 Synthesize 更新 architecture/ 或 user-guide/。
  即使用户没有说"文档管理",只要涉及 docs/ 目录的整理/检查/更新,都应触发此技能。

项目知识库引擎(Docs Management)

"维护知识库最累的不是阅读和思考,是记账——交叉引用、一致性维护。这正是 LLM 擅长的。" — Karpathy, LLM Wiki


三层架构

Raw Sources(原始素材)  →  代码、git log、会议记录、外部文档
Wiki(知识库)           →  docs/ 目录下所有结构化文档
Schema(规则)           →  CLAUDE.md 中的文档规范

四个核心操作

操作 1:Ingest(摄入)

新信息进来时,不只是新建文件,而是找到已有文档合并更新。

触发时机:

  • task-manager 标 done 时(复盘完成后自动触发)
  • 新的设计决策产生时
  • 外部信息需要整合到项目文档时

执行流程:

新信息产生
  │
  ├─ 搜索 docs/ 中是否有相关文档
  │   ├─ 有 → 更新已有文档,合并新信息
  │   └─ 无 → 创建新文档
  │
  ├─ 更新 docs/ 内相关交叉引用
  │
  └─ 更新 INDEX(如有)

示例:

  • task-finish 产出复盘 → 写入 docs/decisions/,同时检查对应的 spec 是否需要标注"方案已执行,实际偏差见 decisions/xxx"
  • 发现新的最佳实践 → 更新 docs/guides/ 相关指南

Ingest 中的 spec 偏差处理

spec 标 done 时必须反映最终实现,但不是所有偏差都需要同样的处理方式。

偏差判断
  │
  ├─ 细节偏差(字段名调整、参数变更、实现细节微调)?
  │   └─ 直接更新 spec 中的技术方案章节
  │
  ├─ 方案偏差(换了实现路径,但目标不变)?
  │   └─ 更新 spec 技术方案 + 在决策章节补注"实际执行偏差及原因"
  │
  └─ 方向偏差(目标或范围发生了变化)?
      └─ 写 decision 记录完整复盘,spec 中标注"已被 decisions/xxx 覆盖"

操作 2:Query(查询)

docs/ 是项目的可查询知识库,不是文件堆。

触发时机:

  • 用户问"这个模块之前怎么设计的?"
  • 用户问"上次类似问题怎么解的?"
  • task-start 对焦阶段检索历史经验

执行流程:

查询请求
  │
  ├─ 在 docs/ 中搜索相关文档
  │   ├─ specs/ — 设计方案
  │   ├─ decisions/ — 踩坑记录和经验
  │   ├─ plans/ — 历史开发计划
  │   ├─ tests/ — 测试用例
  │   └─ guides/ — 开发指南
  │
  ├─ 综合相关文档给出回答
  │
  └─ 如果回答有价值且不在现有文档中 → Ingest 回 wiki

操作 3:Lint(健康检查)

定期体检,防止文档腐烂。

触发时机:

  • 用户主动要求检查
  • 大批量代码改动后
  • 定期维护

检查清单:

# 检查项 怎么查 问题示例
1 引用有效性 文档中引用的文件路径是否存在 spec 引用了已删除的文件
2 进度一致性 plan 的 checklist 和实际代码是否一致 plan 说"待做"但代码已完成
3 INDEX 同步 INDEX.md 和实际文件是否对得上 INDEX 有但文件已删
4 跨文档一致 plan 引用的 spec 是否存在 plan 指向不存在的 spec
5 状态同步 backlog 状态和实际进度是否匹配 backlog open 但 plan 已全部完成
6 孤立文档 有没有不被任何 INDEX 或文档引用的文件 遗忘的旧 spec
7 过期内容 文档描述的代码结构是否还存在 spec 说"改 src/old.ts"但该文件已重命名
8 全局视图同步 architecture/ 和 user-guide/ 的 INDEX 和实际子文档是否一致 INDEX 列了但文件不存在、新模块有 spec 但 architecture/ 没收录
9 记忆巡检 memory 中的条目是否仍然有效 feedback 引用的模块已删除、project 信息已过期

输出格式:

## Docs 健康检查报告 — YYYY-MM-DD

### 概况
- 扫描目录:docs/
- 文档总数:X 个
- 发现问题:X 个

### 问题清单

| # | 级别 | 文件 | 问题 | 建议 |
|---|------|------|------|------|
| 1 | 高 | plans/xxx.md | 引用的 spec 不存在 | 更新引用或补建 spec |
| 2 | 中 | specs/xxx.md | 引用的文件路径 src/old.ts 已不存在 | 更新路径 |
| 3 | 低 | backlog/xxx.md | 状态 open 但关联 plan 已全部完成 | 更新为 done |

操作 4:Index(索引维护)

索引是知识库的入口,必须和实际内容同步。

维护对象:

  • docs/backlog/INDEX.md — 需求索引(已有,由 task-manager 维护)
  • docs/decisions/INDEX.md — 经验索引(待建,按时间倒序)

INDEX 更新时机:

  • 新建文档后
  • 文档状态变更后
  • Lint 发现不一致后

操作 5:Synthesize(聚合)

从碎片文档中维护全局视图索引。不是写长文档,是保持索引准确。

维护对象:

目录 INDEX.md 的职责 子文档
docs/architecture/ 模块列表、模块间关系、核心数据流概览 每个模块一份架构文档
docs/user-guide/ 功能目录、快速入门导航 每个功能/模块一份用户指南

触发时机:

触发场景 操作 token 成本
用户手动要求 全量:读所有相关 spec/decision,重建 INDEX 高
task-finish 提醒后用户确认 增量:只读本次变更涉及的模块,更新对应子文档和 INDEX 低
Lint 发现 INDEX 和实际文件不一致 修复:对齐 INDEX 和实际文件列表 极低

执行流程:

触发 Synthesize
  │
  ├─ 全量模式(首次生成 / 用户要求重建)
  │   ├─ 扫描 docs/specs/ 和 docs/decisions/ 提取模块列表
  │   ├─ 每个模块生成/更新 architecture/<模块名>.md
  │   ├─ 生成 architecture/INDEX.md(模块导航 + 关系概览)
  │   └─ user-guide 同理
  │
  └─ 增量模式(单次改动后)
      ├─ 只读本次涉及的 spec/decision
      ├─ 判断是否涉及新模块 / 模块间关系变更
      │   ├─ 是 → 更新对应子文档 + INDEX
      │   └─ 否 → 跳过
      └─ 完成

INDEX.md 格式示例:

# 系统架构

## 模块概览
| 模块 | 职责 | 文档 |
|------|------|------|
| auth | 认证与会话管理 | [auth.md](auth.md) |
| payment | 支付与账单 | [payment.md](payment.md) |

## 模块间关系
- auth → payment:支付前需要认证
- ...(或引用 docs/assets/ 中的架构图)

和 Ingest 的区别:

  • Ingest:一条新信息 → 归档到一个文档(一对一)
  • Synthesize:多个文档 → 聚合成索引和全局视图(多对一)

与其他 skill 的关系

task-finish(复盘产出)→ docs-management.Ingest(整合到知识库)
task-finish(提交时)  → 提醒:是否需要 Synthesize(涉及新模块/模块间交互变更?)
task-start(对焦阶段)→ docs-management.Query(检索历史经验)
task-manager(需求管理)→ docs-management.Index(维护 backlog INDEX)

定期 / 用户主动 → docs-management.Lint(健康检查)
用户主动 / Lint 发现不一致 → docs-management.Synthesize(聚合全局视图)

docs-management vs writing:

  • writing:生产文档(从无到有写出来)
  • docs-management:维护文档(确保已有文档保持健康和可用)

docs-management vs task-manager:

  • task-manager:专门管 backlog(需求的收集/排序/清理)
  • docs-management:管整个 docs/ 目录(包括 backlog 之外的 specs/plans/decisions/等)

Version history

  1. v2026.04.02 GitHub ↗
    Original release notes

    ## Highlights - **流程图多方向布局**:DAG 模式支持 DOWN/RIGHT/UP/LEFT,AI 自动选择合适流向 - **Diagram 能力补齐**:三批交付,图表类型从 25 → 29 种(Treemap/Combo/Kanban/Git Graph/状态图并发等) - **Deep-Research 清理 Graphviz**:删除 graphviz 依赖,图表生成统一对齐 Diagram skill,结构图列表从 4 → 23 种 - **截图规范统一**:禁止手动 Playwright,收口到 capture.py/bridge.py - **图表链路验证**:42/42 全量通过(10 统计图 + 29 结构图 + 3 PNG 抽样) - **Preview-MD**:Mermaid 全覆盖 + 共享 CSS 体系 + VS Code 插件 - **项目基建**:重命名为 Claude Code Skills + README + MIT 许可证 + 分支发布规范 ## All Changes - feat(diagram): 流程图 DAG 模式支持多方向布局 — AI 自动选择合适流向 - feat(diagram): 第一/二/三批能力补齐 — 29 种图表全覆盖 - feat(diagram): 流程图增加 DAG 模式 + DSL 输出模式 - feat(preview-md): Mermaid 全覆盖 + 样式统一 + 导出自包含 HTML - feat(extensions): preview-md-launcher VS Code 插件 - refactor(deep-research): 清理 Graphviz 依赖 — 统一对齐 Diagram skill - test(deep-research): 图表生成链路全量验证 — 42/42 通过 - test(diagram): 全量回归测试 — 29 种 × L1-L4 共 116 用例 - docs(diagram): SKILL.md review — 截图收口 + 描述补齐 - docs(deep-research): SKILL.md review — 禁止手动截图 + 术语规范 - docs: README + MIT 许可证 + 分支发布规范

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 提供五大核心操作(Ingest/Query/Lint/Index/Synthesize)全面覆盖知识库维护场景
  • 明确与其他 skill(task-manager/task-finish)的协同机制,提升整体工作流效率
Trigger Precision88/100

Highlights

  • 触发词覆盖充分且边界清晰,支持隐式触发(涉及 docs/ 目录操作即激活)
Structure and Standards82/100

Areas to improve

  • 缺少显式 When to Use 章节 Reported severity: Minor

    文档中已包含使用场景说明,但未以独立章节标题呈现

    Recommendation: 建议增加显式 'When to Use' 章节以提升可读性

Highlights

  • 结构清晰,分操作详述流程与示例
  • 健康检查清单完整,输出格式规范
Execution Reliability85/100

Areas to improve

  • 未显式说明异常处理机制 Reported severity: Minor

    未覆盖文件读写失败、路径不存在等常见异常的处理策略

    Recommendation: 建议在 Lint 和 Synthesize 流程中补充异常处理说明或默认容错逻辑

Highlights

  • Lint 检查项覆盖全面(9 大项),有效防止文档腐烂
  • Synthesize 区分全量/增量模式,合理控制 token 成本
Evidence Verifiability (mean of the first four)83/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.