mq
CommunityQuery Markdown content with jq-like precision
Authorled8
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Convert the tedious task of exploring Markdown documents into a programmable, expressive query workflow by treating Markdown as a structured abstract syntax tree and providing a jq-like DSL to extract headings, code blocks, tables, and links.
Core Features & Use Cases
- Selector-based extraction: Use selectors such as .h, .code, .link, and .table to target Markdown nodes.
- Attribute access: Retrieve metadata like heading depth, code language, or link URLs via dot notation (e.g., .h.depth, .code.lang, .link.url).
- Multi-file processing and formats: Operate across multiple files and produce outputs in plain text, JSON, or HTML for downstream tooling and analysis.
- Practical scenarios: Quickly inventory documentation by listing all code blocks and languages, or audit external links across a repository.
Quick Start
Query a Markdown file to extract all headings using mq, e.g., mq '.h' file.md
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: mq Download link: https://github.com/led8/.codex/archive/main.zip#mq Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.