dita-task-contents

Insert .Procedure block titles into AsciiDoc procedure modules for DITA compatibility.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/redhat-documentation/redhat-docs-agent-tools --skill dita-task-contents
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dita-task-contents
Source: https://github.com/redhat-documentation/redhat-docs-agent-tools/tree/main/plugins/dita-tools/skills/dita-task-contents
Command: npx skills add https://github.com/redhat-documentation/redhat-docs-agent-tools --skill dita-task-contents

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automatically adds missing .Procedure block titles to DITA procedure modules, ensuring compatibility with DITA conversion processes.

Core Features & Use Cases

  • Automatic Title Insertion: Inserts .Procedure before the first ordered list in procedure modules.
  • DITA Compliance: Prepares AsciiDoc files for seamless conversion to DITA task elements.
  • Use Case: When converting a set of AsciiDoc guides to DITA, this skill can quickly identify and fix all procedure files that lack the necessary .Procedure marker, preventing conversion errors.

Quick Start

Use the dita-task-contents skill to add missing procedure titles to all .adoc files in the 'modules/' directory.

Frequently Asked Questions about dita-task-contents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add missing Procedure titles to AsciiDoc files for DITA conversion?

To add missing Procedure titles for DITA conversion, use a script that identifies procedure modules via the `_mod-docs-content-type: PROCEDURE` attribute and inserts the `.Procedure` block title before the first ordered list. It handles prerequisites and avoids code blocks.

Why does my DITA conversion fail on AsciiDoc procedure modules without a .Procedure block?

DITA conversion fails when AsciiDoc procedure modules lack the `.Procedure` block title because the DITA task elements require this specific marker to map steps correctly. Adding the `.Procedure` title before the ordered list ensures seamless DITA compatibility.

Do I need a Ruby interpreter to run AsciiDoc to DITA procedure content scripts?

Yes, you need a Ruby interpreter installed in your environment to execute the `task_contents.rb` script that automatically adds missing `.Procedure` block titles to your AsciiDoc files for DITA compatibility.

Can I automatically fix AsciiDoc procedure modules that lack DITA task markers?

Yes, you can automatically fix AsciiDoc procedure modules by running a script that detects the `:_mod-docs-content-type: PROCEDURE` attribute and inserts the `.Procedure` title before the first ordered list, preparing the files for DITA conversion.

What is the best way to prepare AsciiDoc procedure content for DITA task elements?

The best way to prepare AsciiDoc procedure content for DITA task elements is to ensure every procedure module contains a `.Procedure` block title before the ordered list, which can be automatically inserted by scanning for the `PROCEDURE` content type attribute.