Skip to content
Back to skills

Query And Rewrite Markdown Structure With Mdq

ASecurity

Use mdq when an agent needs to target headings, lists, links, or other Markdown structure without falling back to brittle regex edits.

  • 36 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added June 2, 2026
ai-agentsgodockergitsecuritydocumentation

Security analysis

A100/100

Scanned June 2, 2026

npx -y skills add agentskillexchange/skills --skill query-and-rewrite-markdown-structure-with-mdq --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Query And Rewrite Markdown Structure With Mdq?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Query And Rewrite Markdown Structure With Mdq
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-query-and-rewrite-markdown-structure-with-mdq/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-query-and-rewrite-markdown-structure-with-mdq)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Query and rewrite Markdown structure with mdq"
slug: "query-and-rewrite-markdown-structure-with-mdq"
description: "Use mdq when an agent needs to target headings, lists, links, or other Markdown structure without falling back to brittle regex edits."
github_stars: 1708
verification: "security_reviewed"
source: "https://github.com/yshavit/mdq"
author: "yshavit"
publisher_type: "individual"
category: "Data Extraction & Transformation"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "yshavit/mdq"
  github_stars: 1708
---

# Query and rewrite Markdown structure with mdq

Use mdq when an agent needs to target headings, lists, links, or other Markdown structure without falling back to brittle regex edits.

## Prerequisites

mdq and Markdown files to inspect or rewrite.

## Installation

Use the upstream install or setup path that matches your environment:
- brew install mdq
- docker pull yshavit/mdq
- cargo install --git https://github.com/yshavit/mdq
- cargo build

Requirements and caveats from upstream:
- reviewers to complete. Enforcing these often requires ugly regexes that are a pain to write and worse to debug. Instead,
- echo 'My [example](https://github.com/yshavit/mdq) markdown' | docker run --rm -i yshavit/mdq '[]()'
- To use a specific release version, use yshavit/mdq:<version>. See [Docker Hub] for available version tags.

Basic usage or getting-started notes:
- For example, GitHub PRs are Markdown documents, and some organizations have specific templates with checklists for all
- you can (for example) ask mdq for all uncompleted tasks:
- [!tip]

- Source: https://github.com/yshavit/mdq
- Extracted from upstream docs: https://raw.githubusercontent.com/yshavit/mdq/HEAD/README.md

## Documentation

- https://github.com/yshavit/mdq

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/query-and-rewrite-markdown-structure-with-mdq/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.