qmd

qmd is a skill for Claude Code, Codex from amanning3390/flowstate-qmd. It costs 30 tokens per session (926 once invoked), scanned A, original, MIT.

A local project-memory tool for coding agents that searches Markdown files such as design documents, decision records, changelogs, meeting notes, and runbooks.

In plain words
What is it for?
Retrieving project context, searching documentation, inspecting exact notes or decisions, and explaining which stored documents support the retrieved context.
Why use it?
It helps an agent find relevant project history and decisions instead of relying only on the current conversation or manual document searches.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also reads ~/.codex or $CODEX_HOME. Also seen: mentions Codex.

Part of the qmd plugin — 2 skills shipped together

Good fit Retrieving project context, searching documentation, inspecting exact notes or decisions, and explaining which stored documents support the retrieved context.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/amanning3390/flowstate-qmd/qmd
Install

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.

Any agent
npx skills add amanning3390/flowstate-qmd --skill qmd
Clone the repo
git clone --depth 1 https://github.com/amanning3390/flowstate-qmd

Made for: Claude Code, Codex.

Or install qmd, the plugin that ships this one along with the rest of its 2 skills.

Wrote 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.

agentmods badge for qmd

README.md
[![agentmods](https://agentmods.dev/badge/skills/amanning3390/flowstate-qmd/qmd.svg)](https://agentmods.dev/skills/amanning3390/flowstate-qmd/qmd)
Your own site
<a href="https://agentmods.dev/skills/amanning3390/flowstate-qmd/qmd"><img src="https://agentmods.dev/badge/skills/amanning3390/flowstate-qmd/qmd.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 926 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00926
Opus 5 $0.00015 $0.00463
Sonnet 5 $0.00006 $0.00185
Haiku 4.5 $0.00003 $0.00093

Measured 8d ago against content hash 0e6579fcb75a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

qmd 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 8d 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.

skills/qmd/SKILL.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

QMD for Coding Agents

FlowState-QMD is a local-first memory layer for coding agents. It turns markdown knowledge bases into project memory that is fast enough to feel built in.

What It Is Good At

  • Repo memory: design docs, specs, ADRs, RFCs, changelogs
  • Team memory: meeting notes, incident reviews, migration summaries
  • Agent memory: anticipatory context before a reactive search step
  • Trustworthy recall: inspectable snippets, doc IDs, and explain traces

Status

!qmd status 2>/dev/null || echo "Not installed: run 'qmd skill install --global' or 'npm install -g @tobilu/qmd'"

Start Here

  1. Call fetch_anticipatory_context at the beginning of a coding turn when recent conversation context is available.
  2. Use query when you need deeper retrieval or want to inspect the evidence directly.
  3. Use get or multi_get to pull exact docs, ADRs, changelogs, or notes once you know what matters.

MCP Tool: fetch_anticipatory_context

Use this first when you want the agent to feel like it already knows the project context.

{
  "recent_conversation": "What changed in the auth rollback plan and why did we revert the migration?",
  "refresh": false,
  "lite_mode": false
}

Returns:

  • cached anticipatory memories from FlowState when available
  • or a fresh live query over the current project memory

MCP Tool: query

{
  "searches": [
    { "type": "lex", "query": "\"auth rollback\" migration changelog" },
    { "type": "vec", "query": "why did we revert the authentication migration?" }
  ],
  "collections": ["docs", "notes"],
  "intent": "coding agent project memory for a migration debugging task",
  "limit": 8
}

Query Types

Type Method Best for
lex BM25 exact names, code terms, filenames, changelog phrases
vec Vector natural-language engineering questions
hyde Vector nuanced answers when you know what the result should sound like

Writing Better Coding-Agent Queries

Read the full file on GitHub · 113 lines

Files

What ships with it

1 file 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.

Changes

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.

  1. 8d ago First seen · 113 lines · 30 tokens per session scan A 0e6579fcb75a

Subscribe to this mod's changes

qmd is a skill published in the GitHub repository amanning3390/flowstate-qmd (47 stars, last pushed 5mo ago), licensed MIT. It adds 30 tokens to every session and 926 once invoked, about $0.0002 per session on Opus 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-08-30.

Related

Other skills, from other repositories

distilly

Build and use evidence-grounded local person profiles with Distilly's exact five-tool workflow. Use when a user asks to research, ingest, distill, update, correct, retrieve, or recall a real or fictional person's profile, voice, boundaries, or evidence.

titanwings/distilly · 56 tokens

workspace-dispatch

Single-agent mission orchestrator. Decomposes a mission into tasks, spawns one worker per task using the default model, verifies exit criteria, and chains tasks with retry. No critic pattern — each worker self-verifies. Simple, fast, works with any model config.

outsourc-e/hermes-workspace · 59 tokens

hermes-memory-providers

Install and configure Mnemosyne as a Hermes Agent memory provider — local SQLite with vector search, episodic consolidation, and temporal knowledge graphs.

mnemosyne-oss/mnemosyne · 34 tokens

mnemosyne

Persistent cross-session memory via Mnemosyne — store, recall, and consolidate facts, preferences, and context.

mnemosyne-oss/mnemosyne · 22 tokens

mnemosyne-memory-override

Hard rule override that forces Mnemosyne for all durable memory storage. The legacy memory tool is DEPRECATED for user preferences, credentials, and project conventions. Use memory ONLY for ephemeral session state.

mnemosyne-oss/mnemosyne · 46 tokens

query-memory

A memory-search workflow for finding information from earlier conversations. It can search summaries, retrieve original messages, count messages, and look up logged emotional changes.

wangxijie001/yoji · 94 tokens