Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add oaustegard/claude-skills --skill querying-markdowngit clone --depth 1 https://github.com/oaustegard/claude-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/oaustegard/claude-skills/querying-markdown)<a href="https://agentmods.dev/skills/oaustegard/claude-skills/querying-markdown"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/querying-markdown/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/querying-markdown"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/querying-markdown.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00108 | $0.01477 |
| Opus 5.5 | $0.00043 | $0.00591 |
| Sonnet 5.5 | $0.00022 | $0.00295 |
| Haiku 4.5 | $0.00011 | $0.00148 |
Grade A, and why
querying-markdown scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.
querying-markdown
mq is "jq for Markdown" — it parses a .md file into a node stream and lets
you select, filter, and transform by structure (.h2, .code("rust"),
.link) instead of by line-matching. Reach for it when the task is structural:
"every H2 title", "all bash code blocks", "a table of contents", "strip the
frontmatter". For plain substring search, grep is still the right tool; for
code (not prose) structure, use tree-sitting.
Before you use mq: is this actually a structural task?
mq parses the whole document into a node tree before it answers, and that parse cost is real (see Empirical findings). Most "query a markdown file" tasks don't need it. Decide first, using the target — not the file type:
| Your target | Use | Why |
|---|---|---|
Lines with a fixed prefix — #/## headings, > quotes, - bullets, a leading line/verse number |
grep / awk | Line-matching, not structure. grep is faster and already installed. |
| A substring anywhere | grep | mq adds nothing. |
| Code structure inside fences (ASTs, symbols, call sites) | tree-sitting | mq sees the fence, not the code inside it. |
Language-filtered code blocks (.code("bash")); links as structured (text, url) (-F json '.link') |
mq | grep can't filter a fenced block by language without a brittle hand-rolled fence state machine. |
| Markdown→Markdown transforms that must emit valid Markdown — demote/promote headings, rebuild a TOC with anchors, in-place edit | mq | sed doesn't know structure and will corrupt nesting/fences. |
If your task lands in a grep/awk row, do not install mq — close this skill and use the line tool. Diagnosed 2026-06-04: a full-KJV smoke test queried books/chapters/verses (all line-prefix structure) with mq — ~3.3 s per query where grep is milliseconds, the same answers, and a grep post-filter still needed on top. Wrong-shape corpus; mq's selectors earn their parse cost only on the structural rows.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 109 lines · 108 tokens per session scan A b32215eac22c
querying-markdown is a skill published in the GitHub repository oaustegard/claude-skills (395 stars, last pushed today), licensed MIT. It adds 108 tokens to every session and 1,477 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
querying-markdown compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| querying-markdownoaustegard/claude-skills | Skill | 395 | today | MIT | A | 108 | Claude Code |
| superdesignsuperdesigndev/superdesign-skill | Skill | 1.0k | 2mo ago | MIT | A | 115 | Claude Code, Codex |
| figma-to-codescoobynko/claude-code-design-skills | Skill | 40 | 1mo ago | MIT | A | 0 | Claude Code, Codex |
| Linearwrsmith108/linear-claude-skill | Skill | 140 | 4mo ago | MIT | A | 32 | Claude Code |
| smb-sales-boostTomsonx232/smb-sales-boost-skill | Skill | 5 | 1mo ago | MIT | A | 200 | Claude Code, Codex |
| bpmn-xml-generatorstateway-io/bpmn-xml-generator | Skill | 4 | 19d ago | Apache-2.0 | A | 177 | Claude Code |
| free-public-rest-apisaisenseapi/aisense-free-public-rest-apis | Skill | 1 | 3d ago | MIT | A | 366 | Claude Code, Codex |