as-markdown

Parse mixed text to extract markdown headers, lists, links, and code blocks.

10|Updated Jul 22, 2025
One-click install
npx skills add https://github.com/bdambrosio/Cognitive_workbench --skill as-markdown
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: as-markdown
Source: https://github.com/bdambrosio/Cognitive_workbench/tree/main/src/tools_out/as-markdown
Command: npx skills add https://github.com/bdambrosio/Cognitive_workbench --skill as-markdown

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps to parse and extract specific structural elements like headers, lists, links, and code blocks from text that contains markdown, especially when it's mixed with other content or embedded within LLM responses.

Core Features & Use Cases

  • Markdown Parsing: Identifies and extracts markdown elements from potentially noisy text.
  • Structural Extraction: Can pull out headers for table of contents, list items, code blocks, or content under specific headers.
  • Use Case: Extracting a table of contents from an LLM-generated document summary or pulling all code examples from a technical explanation.

Quick Start

Use the as-markdown skill to extract all headers from the document.

Frequently Asked Questions about as-markdown

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract markdown headers and lists from unstructured text?

To extract markdown headers and lists from unstructured text, you parse the content to identify structural elements. This validates markdown presence and isolates headers or list items even from noisy inputs.

How do I pull code blocks out of an LLM response that contains mixed markdown?

You pull code blocks from mixed markdown by applying structural extraction. This identifies and retrieves specific markdown elements like code blocks embedded within semi-structured text.

Can I generate a table of contents from markdown headers in a noisy document?

Yes, you can generate a table of contents from markdown headers in a noisy document by extracting header elements. The parsing process handles both clean and noisy inputs to validate and retrieve structural markdown components.

What is the best way to parse embedded markdown elements from semi-structured text?

The best way to parse embedded markdown elements from semi-structured text is using structural extraction to identify headers, lists, links, and code blocks. It validates markdown presence and handles noisy inputs effectively.

Does markdown extraction work on text mixed with other content?

Yes, markdown extraction works on text mixed with other content by parsing and validating markdown structures. It successfully retrieves elements like headers and links from unstructured or semi-structured inputs.

Why does markdown parsing fail on certain noisy text inputs?

Markdown parsing may fail on noisy text inputs if structural elements are heavily obscured or malformed. The extraction process validates markdown presence but requires identifiable patterns to retrieve headers, lists, or code blocks successfully.