# Commonmark

> Commonmark is an open-source agent skill for files and documents. Apply the CommonMark 0.31.2 spec when parsing or rendering Markdown. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ScaleDockHQ/better-supabase/tree/main/.agents/skills/commonmark
- **Repository:** https://github.com/scaledockhq/better-supabase
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** commonmark
- **Collection:** https://github.com/ScaleDockHQ/better-supabase
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill gives an agent a spec-driven workflow for working with CommonMark. It pins the CommonMark 0.31.2 specification and has the agent act as either a producer or a consumer of the format, citing the pinned revision in what it produces.

The workflow has three steps. The agent first picks the target version and avoids legacy lines. It then walks the quoted requirements in a references file and implements each one that applies to its role, or records it as out of scope. An upgrade step runs only when the user asks for it.

The invariants are quotes taken from the specification, covering topics such as replacing U+0000 with U+FFFD and the spacing rules for ATX headings. A closing checklist confirms the artifact cites the target revision and that every applicable requirement holds. The skill ships only Markdown reference files and no scripts.

## When your agent uses it

> CommonMark: parse and render Markdown by the CommonMark specification. Covers CommonMark 0.31.2. Use when parsing CommonMark. Triggers: CommonMark.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ScaleDockHQ/better-supabase/tree/HEAD/.agents/skills/commonmark)
- [License: MIT](https://github.com/ScaleDockHQ/better-supabase/tree/HEAD/.agents/skills/commonmark)

## Features

- **Pinned spec version:** Targets CommonMark 0.31.2 and records the pinned revision and fetch date in its sources.
- **Quoted requirements:** Includes a references file of sentences quoted from the specification for the agent to check against.
- **Role-aware workflow:** Distinguishes producer and consumer roles when deciding which requirements apply.
- **Version guidance:** A versions reference explains which line to use and how to upgrade between lines.
- **Verification checklist:** Ends with checks that the output cites the target revision and satisfies each applicable requirement.
- **Refresh instructions:** Describes re-reading the source URLs and checking for a newer revision when updating the skill.

## Good for

- Implement a Markdown parser that follows CommonMark 0.31.2
- Check that a Markdown renderer handles ATX headings per the spec
- Review code that consumes CommonMark for spec compliance
- Handle insecure characters such as U+0000 correctly when parsing
- Plan an upgrade between CommonMark versions

## Install

### Claude Code

This skill ships in the `better-supabase` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ScaleDockHQ/better-supabase
/plugin install better-supabase@better-supabase
```

Or copy only this skill to `~/.claude/skills/commonmark`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/commonmark &&
cp -R "$tmp/.agents/skills/commonmark" ~/.claude/skills/commonmark &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/commonmark` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/commonmark` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/commonmark &&
cp -R "$tmp/.agents/skills/commonmark" ~/.agents/skills/commonmark &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/commonmark` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/commonmark` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/commonmark &&
cp -R "$tmp/.agents/skills/commonmark" ~/.cursor/skills/commonmark &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/commonmark` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ScaleDockHQ/better-supabase.git --path .agents/skills/commonmark
```

Or copy the folder to `~/.gemini/skills/commonmark` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/commonmark`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/commonmark &&
cp -R "$tmp/.agents/skills/commonmark" ~/.copilot/skills/commonmark &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/commonmark` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git
```

Then copy `better-supabase/.agents/skills/commonmark` into your agent's skills folder as `commonmark`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which CommonMark version does it cover?

CommonMark 0.31.2 is the pinned and current line, and the user can name another revision.

### Does Commonmark include scripts?

No. It consists of the SKILL.md and Markdown reference files for versions and requirements.

### How do I install Commonmark?

Run npx skills add ScaleDockHQ/scaledock-skills --skill commonmark, then ask the agent to apply CommonMark.

### What license is Commonmark under?

MIT.

### How do I install Commonmark in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/commonmark to use it in all your projects, or to .claude/skills/commonmark in one project. Or install the better-supabase plugin, which includes it: /plugin marketplace add ScaleDockHQ/better-supabase, then /plugin install better-supabase@better-supabase.

### Does Commonmark run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Commonmark?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Commonmark?

The closest alternatives to Commonmark are Markdown to HTML, Update markdown file index, Editorconfig, Agent skills and Convert plaintext to md.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Markdown to HTML](https://ai-powered.com/skills/markdown-to-html): Markdown to HTML is an open-source agent skill for files and documents.
- [Update markdown file index](https://ai-powered.com/skills/update-markdown-file-index): Update markdown file index is an open-source agent skill for files and documents.
- [Editorconfig](https://ai-powered.com/skills/editorconfig-scaledockhq): Editorconfig is an open-source agent skill for developer tools.
- [Agent skills](https://ai-powered.com/skills/agent-skills): Agent skills is an open-source agent skill for developer tools.
- [Convert plaintext to md](https://ai-powered.com/skills/convert-plaintext-to-md): Convert plaintext to md is an open-source agent skill for files and documents.
- [Conventional commits](https://ai-powered.com/skills/conventional-commits): Conventional commits is an open-source agent skill for developer tools.
- [Spec compact](https://ai-powered.com/skills/spec-compact): Spec compact is an open-source agent skill for developer tools.
- [Conventions](https://ai-powered.com/skills/conventions-xiaolai): Conventions is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/commonmark
