Asciidoctor
$ asciidoctor Official Low RiskAsciidoctor (asciidoctor) is the fast Ruby reference processor for AsciiDoc, converting .adoc documents into HTML5, DocBook 5, or Unix manpages. It supports stdout streaming (-o -), document attributes (-a), safe-mode sandboxing (-S safe), and strict warning failure exit codes via --failure-level WARN.
brew install asciidoctor Compiling local .adoc files into HTML5, DocBook, or manpages via asciidoctor runs locally in milliseconds without MCP overhead.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic non-interactive CLI with -o - stdout streaming, --failure-level WARN, and -q, though no native --json output.
-o -stdout output and--failure-level WARNexit codes- Plain-text stderr diagnostics with no
--jsonflag
Built-in -S (--safe-mode) levels (unsafe, safe, server, secure) protect against arbitrary file includes and remote URI reads when enabled.
- Configurable
-Ssafe-mode sandbox for untrusted documents
Easy install via brew install asciidoctor, gem install asciidoctor, and Linux distro packages.
- Widely packaged via Homebrew, RubyGems, apt, and dnf
Fast, spec-grade AsciiDoc processor supporting HTML5, DocBook5, manpages, and extensions (asciidoctor-diagram, asciidoctor-pdf).
- Multi-backend conversion with rich
-aattribute overrides
Official Asciidoctor project (asciidoctor/asciidoctor) actively maintained under MIT.
- Official Asciidoctor GitHub organization
Excellent manpage and CLI documentation at docs.asciidoctor.org.
- Official CLI reference at docs.asciidoctor.org
Security, Auth & Guardrails
None required; processes local .adoc files offline.
100% free, offline, and open-source (MIT).
# Asciidoctor Agent Rules - Keep default safe mode (`-S safe` or `-S secure`) when compiling untrusted `.adoc` inputs; avoid `-S unsafe` or `-a allow-uri-read`. - Use `--failure-level WARN` in CI/verification runs so broken `include::` directives fail the command. - Pass `-o -` for dry stdout validation without leaving build artifacts behind.
Agent-Ready Command Recipes
Safe Read-Only Queries
asciidoctor -b html5 -o - --failure-level WARN doc.adoc > /dev/null
Renders doc.adoc to stdout without writing disk files and exits non-zero if any warning occurs.
asciidoctor --version
Prints the installed asciidoctor and Ruby runtime versions.
Controlled Writes & Previews
asciidoctor -b html5 -a toc=left -o out.html doc.adoc
Converts doc.adoc into standalone out.html with a left table-of-contents attribute.
Strengths for Agents
- + Clean
-o -stdout streaming and--failure-level WARNfor zero-write syntax/include validation. - + Built-in
-Ssafe-mode sandboxing limitsinclude::and external URI reads on untrusted docs.
Caveats & Pitfalls
- ! No
--jsonoutput mode for structured warning or AST reporting. - ! PDF or diagram rendering requires separate Ruby gems (
asciidoctor-pdf,asciidoctor-diagram).