cheatmd-dev
cheatmd
Go

Executable Markdown cheatsheets. Write plain .md files that read like normal notes, then run them as interactive commands with variable prompts, pickers, and shell integration for bash/zsh/tmux/zellij.

Last updated Jun 30, 2026
25
Stars
3
Forks
1
Issues
0
Stars/day
Attention Score
32
Language breakdown
No language data available.
โ–ธ Files click to expand
README

CheatMD

CI Go Report Card License: MIT

Executable Markdown cheatsheets. Write readable docs, run interactive commands.

demo

Install

go install github.com/cheatmd-dev/cheatmd/cmd/cheatmd@v1.0.0-rc.3

Requires Go 1.26+.

Quick Start

cheatmd                    # Browse current directory
cheatmd ~/cheats           # Browse a cheats directory
cheatmd -q "docker"        # Start with a search query
cheatmd init               # Initialize default config
cheatmd --lint ~/cheats    # Check cheats for syntax/reference issues
cheatmd packs install      # Install starter cheat packs

Any Markdown heading with a code block can become a cheat:

markdown

Docker: exec into container</code></pre>sh title:"Execute shell in container"

docker exec -it $container /bin/sh <pre><code class="lang-">&lt;!-- cheat var container = docker ps --format &quot;{{.Names}}&quot; --- --header &quot;Select container&quot; --&gt;</code></pre>

What It Does

  • Fuzzy-search cheats by title, command, tags, and description
  • Prompt for variables using shell output, editable defaults, or pickers
  • Reuse variable definitions with modules
  • Run ordered multi-step workflows with chains
  • Lint cheat syntax, imports, chains, and variables
  • Export parsed metadata as JSON or CSV
  • Convert existing navi, tldr, and cheat/cheatsheets collections
  • Run headless over JSON-RPC for editor integrations

Editor Extensions

  • VS Code - syntax highlighting, diagnostics, completion, and CodeLens execution
  • Neovim - syntax highlighting, async diagnostics, completion, and :CheatMDRun
  • Obsidian - inline run buttons, lint status, execution results, and variable autocomplete

Documentation

Full documentation lives in the Wiki:

Contributing

See CONTRIBUTING.md.

Support

If CheatMD saves you time, you can support the project on Ko-fi.

License

MIT

๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท cheatmd-dev/cheatmd ยท Updated daily from GitHub