markdown

$npx mdskill add axoviq-ai/synthadoc/markdown

Reads Markdown and plain text files verbatim

  • Extracts content from Markdown or plain text files.
  • Depends on Python standard library for file reading.
  • Decides based on file extension or user intent keywords.
  • Delivers extracted content to the user or agent.

SKILL.md

.github/skills/markdownView on GitHub ↗
---
name: markdown
version: "1.0"
description: Ingest Markdown and plain text files
entry:
  script: scripts/main.py
  class: MarkdownSkill
triggers:
  extensions:
    - ".md"
    - ".txt"
  intents:
    - "markdown"
    - "text file"
    - "notes"
requires: []
author: axoviq.com
license: AGPL-3.0-or-later
---

# Markdown Skill

Reads a Markdown or plain text file and returns its content verbatim.

## Setup

No external dependencies — uses only the Python standard library.

## Standalone usage

```python
import asyncio
from synthadoc.skills.markdown.scripts.main import MarkdownSkill

skill = MarkdownSkill()

async def main():
    result = await skill.extract("/path/to/notes.md")
    print(result.text)      # file contents verbatim

asyncio.run(main())
```

## When this skill is used

- Source path ends with `.md` or `.txt`
- User intent contains: `markdown`, `text file`, `notes`

More from axoviq-ai/synthadoc