comark — Claude Code skill: markdown parsing with components
The comark skill parses markdown with Comark component support and renders it in Vue, React, Svelte or Angular. Fits projects with custom blocks in documentation or content.
no license 306 installs ★ 730 updated 2026-11-10
npx skills add onmax/nuxt-skills --skill comark -a claude-codeWhat comark does
The skill teaches the agent to work with Comark, a markdown extension where you can embed components directly in text (::alert{type="info"} for blocks, :icon for inline). The parser is built on markdown-it, supports YAML frontmatter, automatic TOC generation, and syntax highlighting via Shiki. Rendering packages are @comark/vue, @comark/react, @comark/svelte, and @comark/angular.
The main method is parseMarkdown(), which returns AST, frontmatter, and metadata. There is streaming mode with auto-close for incomplete tags, suitable for on-the-fly content generation. Components can be mapped to custom ones: pass an object with names and get rendering with your own Vue or React components instead of default blocks.
Installation requires npm or pnpm. Documentation includes guides for syntax, parsing, and rendering for each framework.
What it helps with
- parse markdown with custom components embedded in text
- render Comark documents in Vue, React, Svelte or Angular
- generate content in streaming mode with auto-close for tags
- extract YAML metadata and automatic TOC from markdown
- map blocks like
::alertto your own project components
Example prompts for the agent
- Parse markdown with frontmatter and output AST and metadata
- Create a Vue component that renders a Comark document with custom
::alertand::cardblocks - Set up streaming markdown parsing for real-time content generation
How to install comark
1Skills CLI (Vercel)
npx skills add onmax/nuxt-skills --skill comark -a claude-code2Manually: put the files in place
~/.claude/skills/comark/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/comark/
1Skills CLI (Vercel)
npx skills add onmax/nuxt-skills --skill comark -a codex2Manually: put the files in place
.agents/skills/comark/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add onmax/nuxt-skills --skill comark -a cursor2Manually: put the files in place
.cursor/skills/comark/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install onmax/nuxt-skills skills/comark2Manually: put the files in place
.github/skills/comark/SKILL.md1Skills CLI (Vercel)
npx skills add onmax/nuxt-skills --skill comark -a gemini-cli2Platform CLI
gemini skills install https://github.com/onmax/nuxt-skills --path skills/comarkManually: put the files in place
.devin/skills/comark/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add onmax/nuxt-skills --skill comark -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about comark
How to install comark in Claude Code?
Run npx skills add onmax/nuxt-skills --skill comark -a claude-code. The skill will be placed in ~/.claude/skills/comark/SKILL.md.
What does the comark skill do?
It teaches the agent to parse and render markdown with Comark components — blocks like ::alert{type="info"} and inline like :icon. Supports Vue, React, Svelte, Angular, streaming, YAML frontmatter, and syntax highlighting via Shiki.
Which frameworks does comark support?
Vue, React, Svelte, and Angular. Each has a separate package: @comark/vue, @comark/react, @comark/svelte, and @comark/angular.