dita-glossary
Govern a DITA glossary (glossentry, abbreviated-form) — audit the term inventory, fix abbreviated-form/term references that don't resolve to a glossary entry, and find unused glossentries. Use when asked to check terminology consistency, repair undefined glossary references, or clean up an unused glossary.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-20
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- dita-glossary
- description
- Govern a DITA glossary (glossentry, abbreviated-form) — audit the term inventory, fix abbreviated-form/term references that don't resolve to a glossary entry, and find unused glossentries. Use when asked to check terminology consistency, repair undefined glossary references, or clean up an unused glossary.
03 SKILL.md 正文
DITA glossary & terminology (glossentry / abbreviated-form)
A <glossentry> defines a term (its <glossterm> and surface forms); content links to
it by key — <abbreviated-form keyref="…"/> pulls the short form, <term keyref="…">
links the term. The tool: glossary_audit (inventory + undefined references + unused
entries).
Key facts
- Glossentries are keyed. A
<keydef keys="waveform" href="glossary/g-waveform.dita"/>binds the keywaveformto the glossentry;<abbreviated-form keyref="waveform"/>then resolves through that key. Soglossary_auditneeds the rootMap to resolve references — without it you get the inventory only. abbreviated-formMUST resolve to a glossentry (it expands the term's short form); atermmay keyref any key, so only a truly undefined key is wrong there.
Process
- Survey —
glossary_audit <root> --root-map <map>: the glossentry inventory, undefined references (anabbreviated-form/termkeyref that doesn't resolve to a glossary entry), and unused glossentries (defined but never referenced). - Fix undefined references — either the keyref is a typo (correct it to the real
key), the glossentry is missing (create it), or the keydef is missing (add it so the
key resolves). An undefined
abbreviated-formrenders nothing useful. - Decide on unused entries — an unused glossentry is dead weight or a term you meant to use; either reference it from the content that discusses the term, or remove it. Don't blindly delete — a glossary entry can be intentionally forward-looking.
- Consistency — the same concept should have one glossentry, referenced everywhere, not be re-explained inline per topic.
Report
The undefined references (and how each was fixed — typo / missing entry / missing keydef), the unused entries and your decision, and any duplicate definitions. For the keys that bind glossentries, see [[dita-keys]]; for content reuse generally, [[dita-conref-reuse]].
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.