emdash-cms — Claude Code skill: what it does, how to install
Get guidance for adding EmDash to Astro, configuring content storage, and querying entries. Useful when starting a CMS project or extending an existing site.
npx skills add reason-machines/trending-skills --skill emdash-cms -a claude-codeWhat emdash-cms does
This skill walks through integrating EmDash with Astro, choosing a database and storage backend, defining content types, and fetching entries for pages. Its examples cover Cloudflare D1, SQLite on Node.js, PostgreSQL, and Turso, along with commands for schema types and database migrations.
EmDash represents rich text as Portable Text data, so pages need a renderer for that content. Its plugins run in isolated Workers; the Cloudflare setup shown here uses Worker Loaders. That configuration matters: without Worker Loaders, plugins cannot run in the sandboxed setup described by the skill.
What it helps with
- add EmDash to an existing Astro project
- configure a database and content storage
- generate TypeScript definitions from a content schema
- fetch and sort published collection entries
- render Portable Text in an Astro page
Example prompts for the agent
- Add EmDash to my Astro project and configure SQLite.
- Create a content type for posts, then generate its TypeScript definitions.
- Show me how to fetch published entries sorted by date.
How to install emdash-cms
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill emdash-cms -a claude-code2Manually: put the files in place
~/.claude/skills/emdash-cms/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/emdash-cms/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill emdash-cms -a codex2Manually: put the files in place
.agents/skills/emdash-cms/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill emdash-cms -a cursor2Manually: put the files in place
.cursor/skills/emdash-cms/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/trending-skills emdash-cms2Manually: put the files in place
.github/skills/emdash-cms/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill emdash-cms -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/trending-skills --path skills/emdash-cmsManually: put the files in place
.devin/skills/emdash-cms/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill emdash-cms -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 emdash-cms
How do I install emdash-cms in Claude Code?
Run npx skills add reason-machines/trending-skills --skill emdash-cms -a claude-code. The skill file is at ~/.claude/skills/emdash-cms/SKILL.md.
What does emdash-cms do?
It guides an AI coding agent through setting up EmDash with Astro, configuring data storage, and querying content. It also covers schema types, migrations, and Portable Text rendering.
Which databases can I use with emdash-cms?
The examples show Cloudflare D1, SQLite, PostgreSQL, and Turso/libSQL. A local file-storage setup is also shown for SQLite.