
Markdown Suite
- Updated August 1, 2026
- BaruchiHalamish20/ai-agents
markdown-suite converts PDF documents into Markdown for use as context, with RAG preparation in mind. A SessionStart hook notifies you of the pending conversion queue. It helps turn source PDFs into clean Markdown ready for retrieval pipelines.
Key points
- PDF to Markdown
- RAG context prep
- SessionStart queue notice
- Document ingestion
Markdown Suite by the numbers
- Data as of Aug 2, 2026 (Skillselion catalog sync)
/plugin marketplace add BaruchiHalamish20/ai-agents/plugin install markdown-suite@ai-agents-localAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Last updated | August 1, 2026 |
|---|---|
| Repository | BaruchiHalamish20/ai-agents ↗ |
What it does
Convert PDFs into Markdown for RAG context preparation, with a SessionStart notification of the pending conversion queue.
README.md
markdown-suite
Bundles the PDF/HTML → Markdown conversion workflow as a single plugin.
Overview
markdown-suite keeps converted-md-files/ in sync with whatever is sitting under converted-pdf-files/. The skill enumerates the queue, the agent does the per-file interpretive work, and a SessionStart hook tells you on every new session how many sources are still pending. The split between batch orchestrator (skill) and single-file worker (agent) is deliberate — each file gets a clean isolated agent context so converting a 200-page PDF doesn't pollute the orchestrator with the document's full text.
Source formats supported: .pdf, .html, .htm (case-insensitive). Output is Markdown with preserved heading hierarchy, lists, tables, code blocks, and inline image descriptions. The path layout under converted-pdf-files/ is mirrored verbatim under converted-md-files/ — only the extension flips to .md.
Plugin contents
- Agent
agents/markdown-converter.md— single-file worker. Reads one source underconverted-pdf-files/and writes the Markdown rendering toconverted-md-files/. Tools restricted toRead, Write, Glob. - Skill
skills/convert-to-md/SKILL.md—/convert-to-md [pattern] [--list] [--debug]. Batch orchestrator: enumerates the queue (missing or stale by mtime), dispatches the agent once per pending file, reports a final summary.--listis a dry-run;--debugadds per-file instrumentation and a## Debug logsection to each output. SessionStarthookhooks/inject-conversion-queue.sh— reports the pending queue count (e.g. "1 pending, 3 up-to-date") at session start. Reports only — never triggers conversion automatically.
The lessons that built each piece live in ../lessons/01-custom-agent.md, 02-skills.md, 03-hooks-and-schedules.md, and 04-plugins.md.
Testing the plugin
Hook (no Claude required):
markdown-suite/hooks/inject-conversion-queue.sh ; echo "exit=$?"
# expect: a "Markdown conversion queue: N pending, M up-to-date" summary, exit=0
Skill dry-run inside Claude Code:
/convert-to-md --list
Should print the pending queue with one line per file and not write anything. Useful before a large run.
End-to-end conversion:
Drop a small PDF into converted-pdf-files/, then:
/convert-to-md
Verify a corresponding .md appears under converted-md-files/ with the same relative path. Re-running with no changes should report all files up-to-date and skip them.