Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计提醒

docs-graph文档图

Agent Skill

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

总安装

242

周安装

10

GitHub Stars

公开资料未说明

下载量

79
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

文档图表摘要

  • ===========================
  • 节点: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 警告
  • 套接字通行证
  • 斯尼克通行证

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)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

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 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills