Token导航 LogoToken导航

Agent Skill · 研究检索

docs-graph(文档图)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

docs-graph 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 67,721。

总安装 242周安装 10GitHub Stars 公开资料未说明下载 79核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:docs-graph(文档图)
来源仓库:https://github.com/codihaus/claude-skills
仓库路径:skills/docs-graph
安装命令:
npx skills add https://github.com/codihaus/claude-skills --skill docs-graph
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/codihaus/claude-skills --skill docs-graph

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

文档图表摘要 =========================== 节点:12 |边缘:18 按类型: 用例:5 特征:2 规格:4 BRD:1 查看完整图表:plans/docs-graph.md 查询:/docs-graph auth 匹配“auth”的节点:4 uc-auth-001(用例)- 登录 ← 功能验证、规范验证-001 → 功能验证 uc-auth-002(用例)- 注册 ← 功能验证 → uc-auth-001,功能验证 feature-auth(功能)- 身份验证 ← uc-auth-001、uc-auth-002、uc-auth-003 →(无) spec-auth-001(规范)- 登录规范 ←(无) → uc-auth-001 检查:/docs-graph --check 链接检查结果 ================= ✓ 16 个有效链接 ✗ 2 个失效链接 破损: 计划/brd/用例/auth/UC-AUTH-001-login.md:5 [[uc-auth-004]] - 未找到节点 计划/功能/身份验证/规格/UC-AUTH-001/README.md:12 [[功能计费]] - 未找到节点 建议: - uc-auth-004:您是指 uc-auth-003 吗?

- 功能计费:创建计划/功能/计费/README.md 使用的工具 工具 目的 重击 运行 graph.py 脚本 阅读 阅读 docs-graph.json、docs-graph.md 全局 查找计划文件 整合 技能 关系 /汇报 使用维基链接创建用例 /dev-规格 创建链接到用例的规范 /dev-侦察 为功能创建 scout.md 故障排除 图表未更新: 检查钩子是否在 .claude/settings.local.json 中 验证 jq 已安装 运行 /docs-graph --regenerate 强制更新 损坏的链接: 运行 /docs-graph --check 寻找问题 更新 wikilinks 以匹配节点 ID 节点 ID 为小写,无 slug(例如 uc-auth-001 不是 UC-AUTH-001-登录 ) 每周安装量 10 存储库 科迪豪斯/克劳德-技能 第一次看到 2天前 安全审计 Gen Agent Trust Hub 警告 套接字通行证 斯尼克通行证

来源仓库内路径:skills/docs-graph

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/codihaus/claude-skills --skill docs-graph;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

docs-graph 怎么安装?

在终端执行 npx skills add https://github.com/codihaus/claude-skills --skill docs-graph。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

docs-graph 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

docs-graph 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

docs-graph 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

docs-graph 用的人多吗?

公开数据是累计安装 242 次,近一周安装 10 次,下载 79 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

docs-graph 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
docs-graph

文档图 · 本页

242—只读未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

/docs-graph - Documentation Graph Viewer

Skill Awareness: See skills/_registry.md for all available skills. - Auto-updated: By Claude Code hook on Write/Edit to plans/ - Use before: /dev-specs to see related UCs - Use before: /debrief change request to see impact

View and query relationships between planning documents.

When to Use

  • See overview of all plans and their relationships
  • Find related documents before making changes
  • Check impact of changes (what links to this?)
  • Verify graph is up-to-date

Usage

/docs-graph                    # Show graph summary
/docs-graph auth               # Show nodes related to "auth"
/docs-graph --regenerate       # Force regenerate graph
/docs-graph --check            # Verify all links resolve

How It Works

The graph is automatically updated via Claude Code hooks whenever files in plans/ are created or modified. This skill provides on-demand viewing and querying.

Automatic Updates

PostToolUse hook triggers on Write/Edit to plans/:

  1. Hook detects file path contains plans/
  2. Runs python3 scripts/graph.py --check-path <path>
  3. Graph files updated before next Claude action

Graph Files

plans/
├── docs-graph.json    # Machine-readable graph data
└── docs-graph.md      # Mermaid visualization

Workflow

Phase 1: Load Graph

  1. Check if plans/docs-graph.json exists
  2. If not, run python3 scripts/graph.py to generate
  3. Read graph data

Phase 2: Display or Query

Summary mode (default):

  • Show node count by type
  • Show edge count
  • Display mermaid diagram from docs-graph.md
  • List any errors

Query mode (with argument):

  • Filter nodes matching query
  • Show incoming links (what references this)
  • Show outgoing links (what this references)

Regenerate mode (--regenerate):

  • Force full rescan of plans/
  • Update docs-graph.json and docs-graph.md
  • Show diff if changes detected

Check mode (--check):

  • Verify all wikilinks resolve to existing nodes
  • Report broken links
  • Suggest fixes

Phase 3: Output

Display results with:

  • Mermaid diagram (if summary)
  • Table of matching nodes (if query)
  • Broken link report (if check)

Wikilink Convention

Documents use [[wikilinks]] to reference each other:

# UC-AUTH-001: Login

> **Feature**: [[feature-auth]]
> **Related**: [[uc-auth-002]], [[uc-auth-003]]
> **Spec**: [[spec-auth-001]]

Link ID format:

  • Use cases: [[uc-auth-001]] (lowercase, no slug)
  • Features: [[feature-auth]]
  • Specs: [[spec-auth-001]]
  • Change requests: [[cr-001]]

Node Types

TypeSourceShape (Mermaid)
brdbrd/README.mdStadium [[]]
use-casebrd/use-cases/**/*.mdRectangle []
change-requestbrd/changes/*.mdHexagon {{}}
featurefeatures/*/README.mdPill ([])
specfeatures/*/specs/**/*.mdParallelogram [//]
scout**/scout.mdCylinder [()]

Example Output

Summary

Documentation Graph Summary
===========================
Nodes: 12 | Edges: 18

By Type:
  use-case: 5
  feature: 2
  spec: 4
  brd: 1

View full graph: plans/docs-graph.md

Query: /docs-graph auth

Nodes matching "auth": 4

uc-auth-001 (use-case) - Login
  ← feature-auth, spec-auth-001
  → feature-auth

uc-auth-002 (use-case) - Signup
  ← feature-auth
  → uc-auth-001, feature-auth

feature-auth (feature) - Authentication
  ← uc-auth-001, uc-auth-002, uc-auth-003
  → (none)

spec-auth-001 (spec) - Login Spec
  ← (none)
  → uc-auth-001

Check: /docs-graph --check

Link Check Results
==================
✓ 16 valid links
✗ 2 broken links

Broken:
  plans/brd/use-cases/auth/UC-AUTH-001-login.md:5
    [[uc-auth-004]] - node not found

  plans/features/auth/specs/UC-AUTH-001/README.md:12
    [[feature-billing]] - node not found

Suggestions:
  - uc-auth-004: Did you mean uc-auth-003?
  - feature-billing: Create plans/features/billing/README.md

Tools Used

ToolPurpose
BashRun graph.py script
ReadRead docs-graph.json, docs-graph.md
GlobFind plan files

Integration

SkillRelationship
/debriefCreates use cases with wikilinks
/dev-specsCreates specs linking to use cases
/dev-scoutCreates scout.md for features

Troubleshooting

Graph not updating:

  • Check hook is in .claude/settings.local.json
  • Verify jq is installed
  • Run /docs-graph --regenerate to force update

Broken links:

  • Run /docs-graph --check to find issues
  • Update wikilinks to match node IDs
  • Node IDs are lowercase, no slug (e.g., uc-auth-001 not UC-AUTH-001-login)

平台分布

Codex

35.21%
按下载量换算28

Claude

31.28%
按下载量换算25

Cursor

18.41%
按下载量换算15

Gemini CLI

10.78%
按下载量换算9

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills