markitdown-for-ai
AGENTS.md3 starsChanged 7 months agoApache-2.0View on GitHub
This document provides guidance for AI agents working on this project. MarkItDown Docker image - A containerized version of Microsoft's markitdown library for converting documents (PDF, DOCX, PPTX, XLSX, HTML) to Markdown. This project uses Conventional Commits format: When committing changes, always: The GitHub Actions workflow (.github/workflows/docker.yml) automatically: - Builds and pushes to GHCR on push to main - Creates multi-platform images (amd64, arm64) No manual Docker push needed - CI/CD handles it. The document-to-markdown skill lives in skills/document-to-markdown/SKILL.md. It…
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- document-to-markdownSkill
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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
- Distinctive: line 43
When committing changes, always:
- Very specific: line 45
Update CHANGELOG.md: - Add entry under [Unreleased] section:
- Very specific: line 46
Use appropriate type: Added, Changed, Deprecated, Removed, Fixed, Security
- Distinctive: line 49
Update version in CHANGELOG.md: - When releasing:
- Distinctive: line 51
Update version links at bottom
- Distinctive: line 53
Update README.md: - If changes affect:
- Distinctive: line 71
No manual Docker push needed - CI/CD handles it.
- Very specific: line 85
When updating the skill (new formats, changed image tag, updated commands), edit skills/document-to-markdown/SKILL.md directly — the …
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md 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.
Files
AGENTS.md
This document provides guidance for AI agents working on this project.
Project Overview
MarkItDown Docker image - A containerized version of Microsoft's markitdown library for converting documents (PDF, DOCX, PPTX, XLSX, HTML) to Markdown.
Conventional Commits
This project uses Conventional Commits format:
<type>(<scope>): <description>
[optional body]
[optional footer]Types
| Type | Description |
feat | New feature |
fix | Bug fix |
docs | Documentation only |
style | Code style (formatting, no logic change) |
refactor | Code refactoring |
test | Adding/updating tests |
chore | Maintenance, deps, build changes |
Examples
git commit -m "feat: add support for stdin input"
git commit -m "fix: resolve permission issue with non-root user"
git commit -m "docs: update README with new CLI examples"Release Process
When committing changes, always:
- Update CHANGELOG.md - Add entry under
[Unreleased]section:- Use appropriate type:
Added,Changed,Deprecated,Removed,Fixed,Security - Be descriptive but concise
- Use appropriate type:
- Update version in CHANGELOG.md - When releasing:
- Move
[Unreleased]changes to new[X.Y.Z]section with date - Update version links at bottom
- Move
- Update README.md - If changes affect:
- New features or commands
- New environment variables
- Build instructions
- Usage examples
- Tag release - For new versions:
git tag -a v1.0.0 -m "Release v1.0.0" git push --tags
Docker Image Publishing
The GitHub Actions workflow (.github/workflows/docker.yml) automatically:
- Builds and pushes to GHCR on push to main
- Creates multi-platform images (amd64, arm64)
No manual Docker push needed - CI/CD handles it.
Skill Distribution
The document-to-markdown skill lives in skills/document-to-markdown/SKILL.md.
It is installed via:
npx skills add OpenTechIL/markitdown-for-ai # all supported agents
bash install-skill.sh --ai claude # Claude Code only
bash install-skill.sh --ai opencode # OpenCode only
bash install-skill.sh # all locationsWhen updating the skill (new formats, changed image tag, updated commands), edit
skills/document-to-markdown/SKILL.md directly — the install script fetches it
from GitHub on the fly so users always get the latest version.
Quick Reference
| Command | Description |
docker build -t markitdown-for-ai . | Build locally |
docker run --rm -i markitdown-for-ai < file.pdf | Convert via stdin |
cat file.docx | docker run --rm -i markitdown-for-ai | Pipe content |
docker run --rm -v "$(pwd):/data" -w /data markitdown-for-ai file.docx | Convert by filename |
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
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.

