generate-ditamap
Skill2 starsChanged 6 months agoMITView on GitHub
Generates a valid DITA 1.3 map template. Use this skill when you need a correctly structured starting point for a DITA map with topicref placeholders, key definitions, and an optional relationship table. Output includes the correct DOCTYPE declaration.
In this repository18 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- context-setupSkill
- dita-best-practicesSkill
- ditaval-helperSkill
- error-handlingSkill
- generate-bookmapSkill
- generate-dita-topicSkill
- generate-keyrefsSkill
- keyspace-debugSkill
- map-resolveSkill
- pdf-to-ditaSkill
- refactor-dita-contentSkill
- review-dita-guideSkill
- validate-bookmapSkill
- validate-ditamapSkill
- validate-dita-topicSkill
- visitor-extendSkill
- xslt-dita-helperSkill
The file
Files
Overview
Generates a DITA 1.3 <map> template from a title and ID.
Usage
python scripts/generate_ditamap.py "My Map Title" my-map-id
# With topic hrefs pre-filled
python scripts/generate_ditamap.py "My Map Title" my-map-id --topics intro.dita config.dita usage.ditaOutput
Well-formed XML to stdout including:
<?xml?>+<!DOCTYPE map PUBLIC "-//OASIS//DTD DITA 1.3 Map//EN"><title>, one<topicref>per--topicsargument (or two placeholder refs)- A
<keydef>block for each topic ref - A skeleton
<reltable>with two columns
Common edge cases
hrefvalues use forward slashes even on Windows (DITA convention)<keydef>keysattribute is derived from the filename stem (e.g.,intro.dita→key-intro)<reltable>is scaffolded but empty; remove it if not needed
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

