Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Md To Json Parser

ASecurity

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.

11 stars
0 votes
0 copies
4 views
Added 12/19/2025
toolspythonapidocumentation

Works with

api

Security Analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned 2/10/2026

$npx -y skills add kay-ou/ClaudeSkills --skill md-to-json-parser --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Md To Json Parser?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Md To Json Parser
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kay-ou-md-to-json-parser/badge)](https://www.skillsdirectory.com/skills/kay-ou-md-to-json-parser)

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

Download with Pro
Files
SKILL.md
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:
  ```json
  {
    "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

Attribution

kay-oukay-ou
View sourceSee grades on GitHubMore from kay-ou →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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 (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

ucoz-landing-skill

Create and edit uCoz homepage landing pages via MCP: custom templates, hero sections, lead forms, navigation menus, SEO, and responsive layout. Includes a visual design system (style selection, layout/grid, section recipes, typography/spacing, color tokens, component states, icons, modern CSS/JS, motion, imagery, social proof, copy/voice, accessibility). Uses ucoz-mcp tools for templates, site file uploads, and site modules.

107 votes

Paperclip

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

953191 votes

Pptx

Presentation toolkit (.pptx). Create/edit slides, layouts, content, speaker notes, comments, for programmatic presentation creation and modification.

471861 votes

Daw Music

Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.

761 votes

Instantly Rdsthomas Mission Control

Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.

761 votes
View all in tools →