/quire-cli:explore-markdownfrom quire-cli
Use when an agent needs to inspect, outline, or fetch targeted sections from Markdown documents using the quire CLI. Applies to spec artifacts and other heading-structured Markdown where quire parse and quire lookup are faster and safer than ad hoc regex parsing.
Ships in quire-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
If this plugin is not initialized or an Agent IX command fails, read the quire-cli setup guide for its prerequisites and local diagnosis.
Use quire for structure-aware Markdown exploration. Prefer it over grep/sed when you need headings, frontmatter, section bodies, generated section IDs, or stable {#block-id} addressing.
From a repo that has quire-cli, use the local binary if available:
target/debug/quire --help
Otherwise use an installed binary:
quire --help
If neither exists and you are in the quire-cli repo, build it:
cargo build
Use parse to get the heading tree and metadata:
quire --pretty parse path/to/doc.md
For a compact outline:
quire parse path/to/doc.md \
| jq -r '.. | objects | select(has("heading") and has("level")) | "\(.level) \(.heading) id=\(.id) block_id=\(.block_id // "-") lines=\(.start_line)-\(.end_line)"'
The id field is parser-derived as <slug>-L<line> and can change when lines move. Use block_id for stable addressing when the heading is authored with a Pandoc attribute:
## Behavior {#blk-behavior}
Use lookup when you know what section you need:
quire lookup path/to/doc.md --heading Behavior
quire lookup path/to/doc.md --heading "Document Title" --level 1
quire lookup path/to/doc.md --id behavior-L14
quire lookup path/to/doc.md --block-id blk-behavior
Use --content when the downstream task only needs the section body:
quire lookup path/to/doc.md --heading Acceptance --content
quire lookup path/to/doc.md --block-id blk-behavior --content
--heading returns the first matching section. Add --level 1 for H1 lookup or another level when duplicate headings are possible.
quire parse path/to/doc.md | jq '.frontmatter'
quire parse path/to/doc.md | jq -r '.frontmatter.id // empty'
Frontmatter parse fallback is tolerant. If frontmatter is malformed, inspect stderr and the frontmatter field before assuming the document is invalid.
--block-id for stable machine operations.--heading --level 1 for document-title/H1 lookup.--content to avoid extra JSON parsing when patching, summarizing, or feeding one section to another tool.quire is unavailable.No match exits nonzero and writes no stdout. Treat that as “selector not present,” then rerun the outline command to discover the actual heading, generated id, or block id.
What SKILL.md sets; muted values are Claude Code's defaults
quire-cli@agent-ix is listed by agent-ix/agent-plugins — review the source before installing
npx claudepluginhub agent-ix/agent-plugins --plugin quire-cli5 skills in this plugin
/link-markdownUse when an agent needs to inspect relationships, ix links, dependency edges, or blast radius in Markdown artifacts with quire-cli. Covers quire extract, frontmatter relationship edges, body ix:// link harvest, and practical link-audit workflows./traceUse when an agent needs to answer "what backs this requirement" or "what does this file/symbol verify" over a repository's declared traceability model with quire-cli. Covers quire trace forward (--id) and inverse (--symbol/--file) lookup, the claims-vs-citations distinction, --prefix, --exclude-path, and when NOT to reach for it./validate-markdownUse when an agent needs to check whether an authored Markdown artifact is structurally valid with quire-cli. Covers quire validate (markdown-only), parse-based sanity checks, required-section checks, and how to report actionable validation failures without doing domain review.Other plugins' skills for the same job