跳到主内容
智客 ZICQ

技能库 智客分类:文档办公 indexion-documentation

Indexion Documentation

文件分析——评估覆盖范围,检测代码到文件的漂移与计划调和,可视化依赖性与doc图. 回答“什么需要文件?"和“文件仍然准确吗?”

4952 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

文件分析——评估覆盖范围,检测代码到文件的漂移与计划调和,可视化依赖性与doc图. 回答“什么需要文件?"和“文件仍然准确吗?”

何时用

官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:indexion documentation — Documentation Analysis、"What needs documentation?"、Quick coverage overview — how much of the public API is documented?、Full plan with priorities and package inventory、As a GitHub Issue for tracking、JSON for scripting。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

Documentation analysis — assess coverage, detect code-to-doc drift with plan reconcile, visualize dependencies with doc graph. Answers "what needs docs?" and "are docs still accurate?"

indexion documentation — Documentation Analysis"What needs documentation?"Quick coverage overview — how much of the public API is documented?Full plan with priorities and package inventoryAs a GitHub Issue for trackingJSON for scriptingWhich pub declarations lack doc comments?"Are my docs up to date?"Full reconcile report in markdownCheck only package-level docsCheck only tree-level docsCheck specific documents

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
indexion-documentation
description
Documentation analysis — assess coverage, detect code-to-doc drift with plan reconcile, visualize dependencies with doc graph. Answers "what needs docs?" and "are docs still accurate?"
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「indexion-documentation」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-9e22fb9d0eff610f-Indexion-Documentation.html
请存为 .cursor/skills/indexion-documentation/SKILL.md 或 .claude/skills/indexion-documentation/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/trkbt10/indexion-skills' --list

npx skills add 'https://github.com/trkbt10/indexion-skills' --skill 'indexion-documentation'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: indexion-documentation description: Documentation analysis — assess coverage, detect code-to-doc drift with plan reconcile, visualize dependencies with doc graph. Answers "what needs docs?" and "are docs still accurate?" --- # indexion documentation — Documentation Analysis Assess documentation state and detect drift. This skill covers the **evaluation side** of the documentation lifecycle: what exists, what's missing, what's stale. For building READMEs, see `indexion-readme`. ## "What needs documentation?" ```bash # Quick coverage overview — how much of the public API is documented? indexion plan documentation --style=coverage . ``` Reports: - Overall coverage percentage (documented / total pub items) - Per-package breakdown with README presence - Functions vs types coverage split Output example: ``` Overall Coverage: 81% (2285/2806) Functions: 89%, Types: 75% ``` For a detailed plan with prioritized action items: ```bash # Full plan with priorities and package inventory indexion plan documentation . # As a GitHub Issue for tracking indexion plan documentation --format=github-issue . # JSON for scripting indexion plan documentation --format=json . ``` For a quick per-file listing of undocumented items: ```bash # Which pub declarations lack doc comments? indexion grep --undocumented src/ ``` **How detection works:** Uses KGF tokenization to find visibility keywords (`pub`, `public`, `export`) paired with declaration keywords (`fn`, `struct`, `enum`, `type`, `trait`). Associates `///` doc comments with declarations. Language-agnostic — works for any KGF-supported language. **Caveat:** `///|` marker-only comments count as "documented" even without descriptive text. Check `doc_preview` in the output for quality, not just coverage. ## "Are my docs up to date?" Detect drift between implementation code and documentation. ```bash # Full reconcile report in markdown indexion plan reconcile --format=md . ``` This compares code symbols against documentation and reports: - **Vocabulary divergence**: source code terms missing from co-located docs - **Stale docs**: code changed after docs were last updated - **Missing docs**: code modules with no documentation coverage **Read the report:** The Vocabulary Divergence table shows distance (0-100%) between code vocabulary and documentation. 90%+ distance means the README is essentially unrelated to the current code. Check the Gap Terms column for specific missing vocabulary. **Scoped checks:** ```bash # Check only package-level docs indexion plan reconcile --scope=package-docs . # Check only tree-level docs indexion plan reconcile --scope=tree-docs . # Check specific documents indexion plan reconcile --doc='docs/**/*.md' . indexion plan reconcile --doc-spec=markdown . ``` **Timestamp strategies:** ```bash # Use git commit timestamps (more accurate for collaborative projects) indexion plan reconcile --git . # Use file mtimes only (faster, no git dependency) indexion plan reconcile --mtime-only . ``` **Cache and drift:** `plan reconcile` maintains a cache at `.indexion/cache/reconcile/`. After schema changes or indexion upgrades, the cache can become stale and cause deserialization errors. Clear it: ```bash rm -rf .indexion/cache/reconcile ``` ## "Show me the dependency structure" Generate dependency diagrams for understanding module relationships. ```bash # Mermaid diagram (default — embeddable in GitHub README) indexion doc graph src/config/ # Other formats indexion doc graph --format=dot src/ # Graphviz DOT indexion doc graph --format=d2 src/ # D2 indexion doc graph --format=text src/ # ASCII text indexion doc graph --format=json src/ # Machine-readable # Custom title and output file indexion doc graph --title="KGF Dependencies" --output=deps.mmd src/kgf/ ``` ## Analysis Workflow ```bash # 1. What's the current state? indexion plan documentation --style=coverage . # 2. What specific items lack docs? indexion grep --undocumented src/ # 3. Has code drifted from existing docs? indexion plan reconcile --format=md . # 4. What does the dependency structure look like? indexion doc graph --output=deps.mmd src/ # 5. Fix flagged docs, re-verify indexion plan reconcile --format=md . ``` ## Common Pitfalls **"plan reconcile shows 90%+ divergence everywhere"** - Auto-generated skeleton READMEs (API listing only) have high divergence because they lack the vocabulary of the actual implementation. Enrich them with descriptions of what the code does, not just what it exports. **"plan documentation says 100% coverage but docs are wrong"** - Coverage measures presence of doc comments, not accuracy. A `///|` marker counts as documented. Use `plan reconcile` to check content accuracy. **"plan reconcile crashes on startup"** - Cache deserialization error after schema changes. Clear it: `rm -rf .indexion/cache/reconcile` **"plan reconcile detects drift I already fixed"** - The `--git` flag uses commit timestamps. If you fixed docs but haven't committed, mtime-based detection (`--mtime-only`) will see the fix, but git-based won't. **Reconcile only checks implementation -> docs direction.** It detects code terms missing from docs, but does NOT detect docs referencing nonexistent CLI options. For that direction, compare each README against `indexion --help` manually.

相关技能

文档办公

Ontology

为结构化的代理内存和可堆肥技能所打入的知识图. 在创建/征服实体(Person, project, Task, Evention, Document)时使用,链接相关对象,强制约束,规划多步动作作为图变,或技能需要共享状态时使用. 触发到"记住","我知道什么","链接X到Y",…

文档办公

Nano Pdf

使用纳米-pdf CLI编辑带有自然语言指令的PDF.

文档办公

Word / DOCX

创建,检查,并编辑有可靠样式的Microsoft Word文档和DOCX文件,编号,跟踪更改,表格,章节,并进行相容性检查. 当 (1) 任务涉及 Word 或 ".docx " 时使用; (2) 文件包括跟踪的更改,评论,字段,表格,模板,或页面布局限制; (3) 文档必须在不…

文档办公

Baidu Search

使用Baidu AI搜索引擎(BDSE)搜索网页. 用于实时信息、文件或研究专题.