md-to-json-parser

md-to-json-parser is a skill for Claude Code from kay-ou/ClaudeSkills. It costs 0 tokens per session (724 once invoked), scanned A, original, MIT.

A tool for turning Markdown documents—plain-text files with headings, paragraphs, tables, and code blocks—into structured JSON data.

In plain words
What is it for?
Use it to parse Markdown files, extract their structure, and analyze or reuse the resulting JSON.
Why use it?
It makes the document’s sections and content easier for software or an agent to process.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to parse Markdown files, extract their structure, and analyze or reuse the resulting JSON.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kay-ou/claudeskills/md-to-json-parser
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 kay-ou/ClaudeSkills --skill md-to-json-parser
Clone the repo
git clone --depth 1 https://github.com/kay-ou/ClaudeSkills

Made for: Claude Code.

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 md-to-json-parser

README.md
[![agentmods](https://agentmods.dev/badge/skills/kay-ou/claudeskills/md-to-json-parser/github.svg)](https://agentmods.dev/skills/kay-ou/claudeskills/md-to-json-parser)
Your own site
<a href="https://agentmods.dev/skills/kay-ou/claudeskills/md-to-json-parser"><img src="https://agentmods.dev/badge/skills/kay-ou/claudeskills/md-to-json-parser/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.

agentmods 80×15 button for md-to-json-parser

Your own site · 80×15
<a href="https://agentmods.dev/skills/kay-ou/claudeskills/md-to-json-parser"><img src="https://agentmods.dev/badge/skills/kay-ou/claudeskills/md-to-json-parser.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 724 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.00000 $0.00724
Opus 5 $0.00000 $0.00362
Sonnet 5 $0.00000 $0.00145
Haiku 4.5 $0.00000 $0.00072

Measured 9d ago against content hash 32ab17cf06af, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

md-to-json-parser 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/parse_md.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/skills/md-to-json-parser/SKILL.md · 97 lines

What it actually says

name: md-to-json-parser description: Structure Markdown documents into JSON, supporting headings, paragraphs, tables, code blocks, etc. This skill should be used when users need to parse markdown files, convert markdown to structured data, extract content from markdown documents, analyze markdown structure, or process .md files programmatically. Keywords: markdown解析, markdown转JSON, 提取markdown结构, 分析markdown文档, parse markdown, convert md to json, extract markdown content, markdown structure analysis, process markdown files, 处理markdown文件 inputs:

  • md_file_path outputs:
  • structured_json instructions: |

Markdown to JSON Parser

This skill parses Markdown documents and converts them into structured JSON format, making it easier for Claude to understand and work with document content programmatically.

When to Use This Skill

Use this skill when you need to:

  • Extract structured data from Markdown files
  • Convert documentation into JSON for processing
  • Analyze document structure and content
  • Process Markdown files programmatically

Processing Steps

Step 1: Load and Validate Markdown File

  • Read the Markdown file from the provided path
  • Validate file exists and is readable
  • Handle encoding issues (default to UTF-8)

Step 2: Parse Document Structure

  • Extract headings (H1-H6) with their hierarchy
  • Identify paragraphs and text content
  • Locate tables and convert to structured format
  • Find code blocks with their language annotations
  • Detect lists (ordered and unordered)
  • Identify links, images, and other inline elements

Step 3: Convert Tables to Arrays

  • Parse table headers as column names
  • Convert each row to a JSON object
  • Preserve cell content with proper escaping
  • Handle merged cells appropriately

Step 4: Preserve Code Blocks

  • Maintain original formatting and indentation
  • Preserve language annotations
  • Keep special characters and syntax intact
  • Handle multi-line code blocks correctly

Step 5: Generate Structured JSON Output

  • Create hierarchical structure reflecting document organization
  • Include metadata like word count, heading count, etc.
  • Preserve relationships between elements
  • Ensure JSON is valid and well-formed

Output Format

The structured JSON includes:

{
  "metadata": {
    "title": "Document Title",
    "word_count": 1500,
    "heading_count": 8,
    "table_count": 3,
    "code_block_count": 5
  },
  "structure": {
    "headings": [
      {"level": 1, "text": "Main Title", "id": "main-title"}
    ],
    "paragraphs": [
      {"text": "Content...", "word_count": 120}
    ],
    "tables": [
      {
        "headers": ["Column1", "Column2"],
        "rows": [
          {"Column1": "data1", "Column2": "data2"}
        ]
      }
    ],
    "code_blocks": [
      {
        "language": "python",
        "content": "def example():\n    pass"
      }
    ]
  }
}

Error Handling

  • Handle missing files gracefully
  • Manage encoding issues
  • Deal with malformed Markdown
  • Report parsing errors clearly
  • Validate JSON output format
Files

What ships with it

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

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. 9d ago First seen · 97 lines · 0 tokens per session scan A 32ab17cf06af

Subscribe to this mod's changes

md-to-json-parser is a skill published in the GitHub repository kay-ou/ClaudeSkills (11 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 724 tokens. 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

xlsx

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify…

Prat011/awesome-llm-skills · 96 tokens

invoice-organizer

Automatically organizes invoices and receipts for tax preparation by reading messy files, extracting key information, renaming them consistently, and sorting them into logical folders. Turns hours of manual bookkeeping into minutes of automated organization.

Prat011/awesome-llm-skills · 44 tokens

pdf

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

Prat011/awesome-llm-skills · 50 tokens

notion-knowledge-capture

Transforms conversations and discussions into structured documentation pages in Notion. Captures insights, decisions, and knowledge from chat context, formats appropriately, and saves to wikis or databases with proper organization and linking for easy discovery.

Prat011/awesome-llm-skills · 50 tokens

notion-research-documentation

Searches across your Notion workspace, synthesizes findings from multiple pages, and creates comprehensive research documentation saved as new Notion pages. Turns scattered information into structured reports with proper citations and actionable insights.

Prat011/awesome-llm-skills · 47 tokens

pptx

Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks.

Prat011/awesome-llm-skills · 62 tokens