From dita-tools
Flattens AsciiDoc assemblies by expanding all include directives into a single self-contained document using asciidoctor-reducer. Useful for reducing, resolving, or normalizing nested documentation.
npx claudepluginhub redhat-documentation/redhat-docs-agent-tools --plugin dita-toolsThis skill is limited to using the following tools:
Flatten AsciiDoc assemblies by expanding all include directives into a single self-contained document using `asciidoctor-reducer`.
Recursively lists all AsciiDoc files referenced via include:: directives, with cycle detection, deduplication, sorting, and absolute paths. Use for analyzing document structure, dependencies, or DITA conversion prep.
Extracts Jobs-To-Be-Done records from modular AsciiDoc documentation repos. Analyzes assemblies, includes, conditionals via reduction, source mapping, and chunked analysis for user goals.
Reviews AsciiDoc (.adoc) files for Red Hat modular documentation compliance: module types (concept, procedure, reference), assembly structure, anchor IDs with _{context}, context variables, and include directives.
Share bugs, ideas, or general feedback.
Flatten AsciiDoc assemblies by expanding all include directives into a single self-contained document using asciidoctor-reducer.
gem install asciidoctor-reducer
bash ${CLAUDE_PLUGIN_ROOT}/skills/dita-reduce-asciidoc/scripts/reduce_asciidoc.sh <file.adoc> [-o output.adoc]
# Reduce an assembly (output to master-reduced.adoc in same directory)
bash ${CLAUDE_PLUGIN_ROOT}/skills/dita-reduce-asciidoc/scripts/reduce_asciidoc.sh master.adoc
# Reduce with custom output path
bash ${CLAUDE_PLUGIN_ROOT}/skills/dita-reduce-asciidoc/scripts/reduce_asciidoc.sh master.adoc -o /tmp/flat-master.adoc
skills/dita-reduce-asciidoc/scripts/
└── reduce_asciidoc.sh # Shell wrapper for asciidoctor-reducer