dita-index
Build and audit a DITA index (indexterm) — survey index coverage, fix dangling see/see-also redirects, and add index entries where topics have none. Use when asked to check or improve a project's index, find topics missing index terms, or repair cross-references that point nowhere.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-20
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- dita-index
- description
- Build and audit a DITA index (indexterm) — survey index coverage, fix dangling see/see-also redirects, and add index entries where topics have none. Use when asked to check or improve a project's index, find topics missing index terms, or repair cross-references that point nowhere.
03 SKILL.md 正文
DITA index (indexterm)
Index entries (<indexterm>) let readers find content by term; nested indexterms make
sub-entries (primary > secondary), and <index-see>/<index-see-also> redirect from
one term to another. The tool: index_audit (inventory + coverage + dangling redirects).
Process
- Survey —
index_audit <root>returns the entry inventory with topic frequencies, topics carrying no index terms (coverage gaps), and danglingindex-see/-alsoredirects whose target is no real entry. - Fix dangling redirects first — a
<index-see>foo</index-see>is a promise that "foo" is itself an index entry. If it isn't, either correct the target to a real entry or add the missing entry. A reader who follows a dangling see finds nothing. - Close coverage gaps with judgment — not every topic needs index terms, but
reference and concept topics usually benefit. Add
<indexterm>to the topic's prolog (<metadata><keywords>) or inline; use aprimary > secondarynesting only when the secondary genuinely subdivides the primary. - Keep terms consistent — index the same concept under the same primary term across topics (the audit's frequency list surfaces near-duplicates to merge); a split term ("logging" vs "log files") fragments the index.
Report
The coverage gaps and dangling redirects found, what you changed (entries added / redirects fixed), and any term inconsistencies worth normalizing. Index terms are metadata — pair with [[dita-metadata]] for the rest of the prolog, and [[dita-keywords]] for the search vocabulary (a different signal from the index).
04 同仓库更多 Skills
valid-skill
A valid test skill for unit testing.
wrong-name
Name does not match directory.
missing-description
暂无简介
hidden-skill
A skill hidden from model invocation.
dita-subject-schemes
Author or repair a DITA subjectScheme that governs conditional-processing attribute values (@platform, @audience, @product, @props, @otherprops), then validate content against it. Use when introducing controlled values, governing conditional content, or when validate_conditions reports controlled-value violations.
dita-shortdesc
Write SEO-friendly DITA shortdescs and abstracts — a standalone one-sentence summary that doubles as the link preview and the HTML meta description. Use when asked to add or improve a topic's description/abstract, write shortdescs, fill missing ones, or make descriptions SEO-friendly.