# Markdown Toolkit

> Convert Markdown to HTML, build a table of contents, list links, and count words with Python. Use when the user or agent wants to publish, navigate, or measure a Markdown document.

Markdown Toolkit is a free AI agent skill on Agensi by megaartaiking-cmd, in Technical Documentation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [megaartaiking-cmd](https://www.agensi.io/creators/ahmad-hasnain)
- Category: [Technical Documentation](https://www.agensi.io/skills/technical-documentation)
- Version: 1.1
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/markdown-toolkit
- Tags: documentation, python, markdown, html-conversion, static-site-gen

## About this skill

Managing large Markdown files usually requires heavy editors or complex static site generators. This skill provides a lightweight, local-first toolset to analyze, navigate, and convert Markdown documents directly from your terminal or IDE. It handles everything from metadata extraction to standalone HTML conversion without sending your data to a cloud service.

### What it does
- **HTML Conversion** transforms Markdown files into standalone, browser-ready HTML documents.
- **TOC Generation** builds a structured table of contents based on document headings.
- **Link Auditing** extracts and lists every URL and its associated anchor text for easy verification.
- **Document Statistics** calculates word counts, heading frequency, and estimated reading time.

### How it works
1. **Validation** checks that the target file is a valid Markdown document before processing.
2. **Analysis** runs `mdtool.py stats` or `toc` to map the document structure and metadata.
3. **Extraction** executes the `links` command to audit all internal and external references.
4. **Transformation** converts the source to HTML using the `to-html` command, creating a new output file while preserving the original.

### Frameworks & tools
This skill uses a Python-based utility script `mdtool.py` to perform local processing. It requires a Python environment and works entirely with local filesystem paths.

### Why this beats prompting it yourself
Standard LLM prompts often hallucinate word counts or miss deep-nested links in long documents. This skill uses a deterministic script to provide 100% accurate counts and structures, ensuring your HTML exports are consistent every time.

### Use cases
- Convert internal technical documentation into shareable HTML pages.
- Audit long-form articles for broken or unwanted external links.
- Generate structural overviews for massive README files.
- Calculate reading times for newsletter or blog post drafts.

### Known limitations
The HTML converter does not support tables or footnotes. It does not follow or validate the status of extracted links unless explicitly requested.

## Requires

- Python 3.10+

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Markdown Toolkit skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What core problem does the Markdown Docs skill solve?

This skill provides a local Python-based utility for Markdown analysis, link extraction, and HTML conversion, solving the accuracy issues often found when asking AI to manually count words or audit deep links.

### Does my data or Markdown content get sent to a cloud service for processing?

No, this is a local-first utility. All processing, analysis, and HTML conversion happen entirely on your local machine, ensuring your sensitive documentation never leaves your environment.

### What exactly is included in the purchase of this skill?

Upon purchase, you receive the full Python utility script (`mdtool.py`), integration instructions for your AI agent, and documentation on how to use the specific analysis and conversion commands.

### Which AI agents or frameworks can I use this skill with?

This skill is designed for any AI agent or environment with access to a Python interpreter and the local filesystem, making it compatible with most developer-focused AI IDEs and terminal-based agents.

### Are there any specific Markdown elements that the HTML converter cannot handle?

The HTML converter currently focuses on standard Markdown syntax; it does not support rendering for tables or footnotes at this time.

### Does the link auditing feature automatically verify if the extracted links are still active?

While it extracts all URLs and anchor text for your review, it does not automatically ping the URLs to check for 404 errors or server status.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
