Install
$ agentstack add skill-abhatt-rh-redhat-docs-agent-tools-dita-validate-asciidoc ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
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
- Discovers all included files using the
dita-includesscript - Creates a temporary Vale config with AsciiDocDITA rules only
- Runs
vale syncto download the AsciiDocDITA package - Runs Vale with
--minAlertLevel=warningon all files - 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-includesskill 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.
- Author: abhatt-rh
- Source: abhatt-rh/redhat-docs-agent-tools
- License: Apache-2.0
- Homepage: https://redhat-documentation.github.io/redhat-docs-agent-tools/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.