dita-reltables
Relate DITA topics with a relationship table (or topic-local related-links) — propose and author governed related links from shared subjects, reference-safely. Use when asked to relate topics, build or audit a reltable, add related links, or connect concepts to their tasks and references.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-20
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- dita-reltables
- description
- Relate DITA topics with a relationship table (or topic-local related-links) — propose and author governed related links from shared subjects, reference-safely. Use when asked to relate topics, build or audit a reltable, add related links, or connect concepts to their tasks and references.
03 SKILL.md 正文
Relate topics with a relationship table
A <reltable> in a map defines relationships between topics (classically a
concept ↔ task ↔ reference matrix); DITA-OT turns each row into related-links at
output, so related links are governed in one place instead of scattered
<related-links> in every topic. Tools: reltable_audit, edit_reltable, grounded
by keyword_audit, xpath_query, where_used, list_keys.
The hard part is deciding what relates — that's the judgment
The link graph (where_used/check_links) only knows links that already exist; it
can't tell you two topics should relate. That is the judgment this skill carries:
- Relate by subject, not by accident. Group topics that share a subject. Use
keyword_audit(its co-occurrence output is a topic-pair relatedness signal) and sharedcategory/subjectrefas the clustering input — don't guess. Generating keywords first (dita-keywords) sharpens this signal. - Use the concept→task→reference idiom. A concept relates to the tasks that use it and the references that document it; put each in its typed column. Topic type comes from the root element.
- Don't duplicate. Skip pairs already linked inline (
where_used) or already covered by an existing reltable row (reltable_audit). - reltable vs related-links. Use a reltable for map-wide relationships; use
topic-local
<related-links><link>only for genuine one-offs (author those withedit, no command needed). - Prefer keyrefs for cell targets when the project uses keys (
list_keys).
Process
- Inventory —
xpath_query "//concept|//task|//reference"(or list project files) and collect title/shortdesc/categoryper topic. - Cluster — run
keyword_auditfor the co-occurrence pairs; group topics by shared keywords/category into relationship sets with concept/task/reference roles. - De-dup —
reltable_audit(existing coverage + the links it already generates) andwhere_used; drop pairs already related.project_graphlists every existing relationship in one call:reltableedges (kept apart from TOCtopicrefs) and inlinelinkedges ([[dita-project-graph]]). - Propose to the user — relatedness is an editorial call; confirm the rows before writing.
- Author —
edit_reltable:create-table --columns concept,task,reference(if none), thenadd-rowandadd-target --row R --col C --href|--keyref …. Preview with dry-run. (Or the editor's Project ▸ Edit Relationship Tables… grid.) - Confirm —
reltable_auditshows the new related-links and flags any broken / map-targeting / type-mismatched cell;validatethe map.
Report
The rows added (with the subject that motivated each), the related-links now generated, any pairs deliberately skipped (already linked), and audit findings. Pairs with [[dita-keywords]] (the clustering signal) and [[dita-subject-schemes]] (governed categories).
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.