hackmd-markdown

Instructions for creating and editing HackMD documents, which are shared online Markdown notes, with diagrams and embedded external content.

In plain words
What is it for?
Use them to write or update HackMD notes containing formatted text, Mermaid, Graphviz, or PlantUML diagrams, and embeds such as YouTube videos or PDFs.
Why use it?
They explain HackMD’s document rules, including how titles, tags, alerts, and tables of contents work.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/eastsun5566/hackmd-skills/hackmd
Any agent
npx skills add EastSun5566/hackmd-skills --skill hackmd
Clone the repo
git clone --depth 1 https://github.com/EastSun5566/hackmd-skills

Made for: Claude Code, Codex.

Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,856 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00051 $0.02856
Opus 5 $0.00026 $0.01428
Sonnet 5 $0.00010 $0.00571
Haiku 4.5 $0.00005 $0.00286

Measured 2d ago against content hash a39f05d8eb3d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hackmd-markdown scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/hackmd/SKILL.md · 563 lines

How it starts

The opening of the file, as written. The whole thing — 563 lines — stays where its author put it; the contents beside it link to each section on GitHub.

HackMD Flavored Markdown Skill

This skill enables AI agents to create and edit HackMD documents with full support for HackMD Flavored Markdown, diagrams, and external embeds.

Metadata (Title and Tags)

HackMD metadata is managed through the editor UI, not in the document content.

Title:

  • Edit using the title field in the HackMD editor
  • If not set, the first H1 header (# Heading) will be used as the title
  • If no title or H1 exists, the note will be titled "Untitled"

Tags:

  • Edit using the tags field in the HackMD editor

Other Settings:

  • Configure in the note's "Settings" menu
  • Slide mode settings are in the "Slide mode" section of the "Share" menu

Tags (Inline Format)

Define tags inline at the start of document:

###### tags: `feature` `documentation` `v2.0`

[!NOTE] Tags can also be managed through the HackMD editor UI.

Table of Contents

Auto-generate ToC with:

[TOC]

This will be replaced with a hierarchical list of headers.

Alert Boxes

Create colored alert boxes with:

:::success
Success message with :tada: emoji!
:::

:::info
Information message with :mega: emoji!
:::

:::warning
Warning message with :zap: emoji!
:::

:::danger
Danger message with :fire: emoji!
:::

:::spoiler Click to reveal
Hidden content here :stuck_out_tongue_winking_eye:
:::

:::spoiler {state="open"} Expanded by default
This spoiler is open initially
:::

Enhanced Blockquotes

Add author, time, and color to blockquotes:

> This is a quote with metadata
> [name=John Doe] [time=2024-01-15 10:30] [color=#3b5998]

> Nested quotes also work
> [name=Jane Smith] [time=2024-01-15 10:35] [color=red]
> > Even deeper nesting!
> > [name=Bob] [time=2024-01-15 10:36] [color=#00ff00]

Code Blocks with Line Numbers

// Line numbers start from 1
var s = "JavaScript";
alert(s);
# Line numbers start from 101
def greet(name):
    print(f"Hello, {name}!")

Read the full file on GitHub · 563 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 563 lines · 51 tokens per session scan A a39f05d8eb3d

Subscribe to this mod's changes

hackmd-markdown is a skill published in the GitHub repository EastSun5566/hackmd-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 51 tokens to every session and 2,856 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

modelchk

Size a task's run before spending it: the cheapest sufficient capability tier (fast, standard, frontier) and the reasoning effort within it, on a neutral scale that binds to whatever levels the model exposes. Use when work seems over- or under-powered, costly, ambiguous, or high-risk, or asks which model class and how…

LilMGenius/paperthin · 74 tokens

re0-loop

Run repeated build -> QA -> re0-memo -> re0-work cycles while preserving learning and letting code die. Use for long agentic projects where progress must be measured by quality-cleared templates, reusable modules, and eliminated anti-patterns rather than hours spent or features accumulated.

LilMGenius/paperthin · 60 tokens

autobahn

Carve guardrail-adjacent items out of scope with safe alternatives before risk-adjacent work starts, then run the safe remainder at full strength in a fresh subagent that only ever sees the carved prompt, never the risky input. Use when a task includes stealth, scraping, privacy, IP, policy, licensing, security, or…

LilMGenius/paperthin · 129 tokens

re0-release

Walk a pending change through this repo's shipping and releasing checklist end to end, then tag and publish once confirmed. User-invoked: run it when you've decided to ship.

LilMGenius/paperthin · 40 tokens

ssotize

Audit and consolidate a fact that's scattered across places into one canonical source, after approval, and replace the rest with references. Use when asked to find duplication, check consistency, locate the source of truth, deduplicate, consolidate, unify, or establish SSOT across artifacts or platforms. Starts…

LilMGenius/paperthin · 78 tokens

re0-plan

Open a paperthin iteration's casebook before re0-loop's first turn — seeded with real content the moment the folder exists, never an empty directory. User-invoked, paperthin-only: assumes the full skill package installed. Run when opening a new build cycle in this repo.

LilMGenius/paperthin · 62 tokens