AgentStack
SKILL verified Apache-2.0 Self-run

Dita Validate Asciidoc

skill-abhatt-rh-redhat-docs-agent-tools-dita-validate-asciidoc · by abhatt-rh

Validate AsciiDoc files for DITA conversion readiness by running Vale linting with AsciiDocDITA rules. Reports warnings and errors in a markdown table format. Use this skill when asked to validate, check, or assess AsciiDoc files before DITA conversion.

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-abhatt-rh-redhat-docs-agent-tools-dita-validate-asciidoc

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Dita Validate Asciidoc? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Validate AsciiDoc for DITA Conversion

Validate AsciiDoc assemblies or modules for DITA conversion readiness by running Vale linting with AsciiDocDITA rules. Results are formatted as a markdown table with one issue per row.

Overview

This skill runs Vale with the AsciiDocDITA rule set to identify DITA compatibility issues in AsciiDoc files. For assemblies, it automatically discovers all included files using dita-includes. Only warnings and errors are reported (suggestions are excluded).

Usage

bash ${CLAUDE_SKILL_DIR}/scripts/validate_asciidoc.sh  [options]

Options

| Option | Description | |--------|-------------| | -l, --list-only | Only list files, don't run Vale | | -h, --help | Show help message |

Examples

# Validate an assembly and all includes (only existing files are processed)
bash ${CLAUDE_SKILL_DIR}/scripts/validate_asciidoc.sh master.adoc

# List files that would be validated
bash ${CLAUDE_SKILL_DIR}/scripts/validate_asciidoc.sh master.adoc --list-only

Output format

The script outputs Vale issues in line format:

file:line:column:severity:rule:message

Example output:

/path/to/modules/con-intro.adoc:12:5:warning:AsciiDocDITA.BlockTitle:Block titles are not supported
/path/to/modules/proc-install.adoc:8:1:error:AsciiDocDITA.HardLineBreak:Hard line breaks are not supported
/path/to/modules/ref-options.adoc:25:10:warning:AsciiDocDITA.EntityReference:Use Unicode instead of HTML entities

Formatting as markdown table

After running the script, format the output as a markdown table:

| File | Line | Severity | Rule | Message | |------|------|----------|------|---------| | modules/con-intro.adoc | 12 | warning | AsciiDocDITA.BlockTitle | Block titles are not supported | | modules/proc-install.adoc | 8 | error | AsciiDocDITA.HardLineBreak | Hard line breaks are not supported | | modules/ref-options.adoc | 25 | warning | AsciiDocDITA.EntityReference | Use Unicode instead of HTML entities |

Include a summary at the end:

Summary: 1 error, 2 warnings

How it works

  1. Discovers all included files using the dita-includes script
  2. Creates a temporary Vale config with AsciiDocDITA rules only
  3. Runs vale sync to download the AsciiDocDITA package
  4. Runs Vale with --minAlertLevel=warning on all files
  5. Outputs issues in parseable line format

Vale configuration

The script uses a hardcoded Vale configuration:

StylesPath = .vale/styles

MinAlertLevel = warning

Packages = https://github.com/jhradilek/asciidoctor-dita-vale/releases/latest/download/AsciiDocDITA.zip

[*.adoc]
BasedOnStyles = AsciiDocDITA

Prerequisites

  • Vale must be installed: https://vale.sh/docs/vale-cli/installation/
  • The dita-tools:dita-includes skill script must be available

Example invocations

  • "Validate the master.adoc for DITA conversion"
  • "Check the assembly for DITA issues"
  • "Run DITA validation on modules/con-overview.adoc"
  • "What issues will I have converting this to DITA?"
  • "Are there any AsciiDocDITA errors in the assembly?"

Script location

scripts/
└── validate_asciidoc.sh    # Bash script for DITA validation

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.