agentleFS
ojspaceojspace/md-anything/SKILL.md

md-anything

Skill49 starsChanged 2 months agoMITView on GitHub

Convert files, URLs, and media to Markdown with a local-first CLI and MCP server. Use `mda doctor` to see what this machine can actually extract well.

  • Reads credentials
  • Installs packages

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No local models are bundled in the package.

    line 81
  2. Very specific:

    Use --json to get structured output consumable in agent workflows:

    line 85
  3. Very specific:

    Add to .mcp.json for use inside Claude, Cursor, or other MCP hosts:

    line 159
  4. Very specific:

    only http:// and https:// URLs are allowed

    line 181

≈ “Common” is an estimate: at least 1 in 5 of the 383,637 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

md-anything

Convert files, URLs, and media into Markdown for agent workflows and local automation.

Install: bun install -g md-anything or npm install -g md-anything

Quick commands

convert

Convert a single file or URL to Markdown.

mda <input>
mda convert <input>
mda convert <input> -o output.md
mda convert "https://example.com/article"
mda convert report.pdf
mda convert image.png
mda convert video.mp4
mda convert "https://www.youtube.com/watch?v=..."

ingest

Batch-convert all supported files in a folder.

mda ingest ./notes
mda ingest ./notes -o ./output
mda ingest ./vault -r -o ./output

doctor / examples

Report capabilities or see copy-paste examples.

mda doctor
mda examples
mda demo

[!NOTE] mda mcp install assumes md-anything-mcp is in your PATH. For binary-only installs, use the manual config shown below with bunx.

Options

FlagDefaultDescription
-o, --output <path>stdoutOutput file (convert) or directory (ingest)
--no-frontmatterfalseOmit YAML frontmatter from Markdown output
--jsonfalseOutput JSON instead of Markdown (for agent pipelines)
-r, --recursivefalseProcess subdirectories (ingest only)

Supported Input Types

TypeSupportNotes
.txt, .md, .jsonstrongNative
.html, URLsstrongFetch + HTML extraction
.pdfstrongunpdf zero-dep; pdftotext fallback
.epubbest-effortUses unzip; falls back honestly when extraction is weak
Images (.png, .jpg, etc.)best-effortMetadata + OCR if tesseract installed
YouTube URLsbest-effortTranscript-first; honest fallback
.mobi / .azwbest-effortRequires Calibre ebook-convert
Audio (.mp3, .wav, etc.)optionalLocal whisper-cpp / whisper, or opt-in remote fallback
Video (.mp4, .mov, etc.)optionalffmpeg plus local transcription, or opt-in remote fallback

Capability Layers

md-anything is designed to stay lightweight by default:

  • Core mode: useful with zero extra native tools
  • Local upgrade mode: add tesseract, pdftotext, whisper-cpp, ffmpeg, or ebook-convert as needed
  • Remote enhancement mode: set OPENROUTER_API_KEY only if you explicitly want remote image/audio/video fallbacks

No local models are bundled in the package. Heavy media capabilities remain optional layers, not requirements.

JSON Output

Use --json to get structured output consumable in agent workflows:

mda convert report.pdf --json
{
  "input": "report.pdf",
  "markdown": "# Report Title\n...",
  "kind": "pdf",
  "supportLevel": "strong",
  "chunks": [],
  "metadata": {
    "title": "Report Title",
    "source": "report.pdf",
    "extraction": "unpdf",
    "extraction_status": "ok",
    "support_level": "strong",
    "usefulness_score": 0.85
  },
  "provenance": { "documentId": "..." },
  "warnings": []
}

For ingest:

mda ingest ./notes --json
{
  "converted": 12,
  "skipped": 2,
  "failed": 0,
  "docs": [{ "fileName": "note.md", "title": "My Note", "sourceType": "pdf", "source": "report.pdf", "metadata": { "extraction_status": "ok" } }]
}

Weak or uncertain results still return JSON, with warnings instead of silent failure:

{
  "input": "unknown-input.foo",
  "markdown": "# ...",
  "kind": "unknown",
  "supportLevel": "optional",
  "metadata": {
    "extraction_status": "weak"
  },
  "warnings": [
    "Could not detect a supported input type for \"unknown-input.foo\".",
    "Try `mda --help` or `mda examples` for supported usage."
  ]
}

Argument errors are also machine-readable:

{
  "error": "Missing input for convert command.",
  "code": "missing_input",
  "examples": [
    "mda convert tests/fixtures/sample.txt",
    "mda convert \"https://example.com/article\""
  ]
}

MCP Server

Add to .mcp.json for use inside Claude, Cursor, or other MCP hosts:

{
  "mcpServers": {
    "md-anything": {
      "command": "bunx",
      "args": ["md-anything-mcp"]
    }
  }
}

The MCP server exposes:

  • tools: convert, ingest, doctor
  • resources: md-anything://doctor, md-anything://workspace-policy, md-anything://workspace/{path}
  • prompts: analyze_document, summarize_document_chunks

Safety defaults for MCP:

  • local paths must stay inside the current workspace
  • only http:// and https:// URLs are allowed
  • private and localhost URLs are blocked unless MDA_MCP_ALLOW_PRIVATE_URLS=1

Ecosystem Compatibility

md-anything is intentionally designed to work well in agent ecosystems that need:

  • a stable CLI entrypoint
  • machine-readable JSON output
  • package-shipped skill metadata
  • local execution with optional capability upgrades

That makes it a good fit for package-scan discovery systems, Claude Code plugin flows, and ClawHub/OpenClaw-style skill ecosystems.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.