creating-plugins

creating-plugins is a skill for Claude Code, Codex from emdash-cms/emdash. It costs 50 tokens per session (1,982 once invoked), scanned A, original, MIT.

A guide for building EmDash CMS plugins, which add custom behavior and content features to a website management system. It covers plugin structure, settings, storage, admin screens, API routes, and custom text blocks.

In plain words
What is it for?
Use it to scaffold or implement an EmDash plugin, such as one with admin pages, content hooks, custom settings, API endpoints, or custom Portable Text blocks.
Why use it?
It gives you the expected structure and options for extending EmDash without having to work them out from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to scaffold or implement an EmDash plugin, such as one with admin pages, content hooks, custom settings, API endpoints, or custom Portable Text blocks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/emdash-cms/emdash/creating-plugins
About the project

EmDash is a content management system for creating and managing websites, built with TypeScript and Astro and deployable on Cloudflare or Node.js with SQLite. It is for site owners and developers who want WordPress-like administration, templates, and plugins without PHP or separate hosting.

emdash-cms/emdash · 14,661 stars · on GitHub · emdashcms.com

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.

Any agent
npx skills add emdash-cms/emdash --skill creating-plugins
Clone the repo
git clone --depth 1 https://github.com/emdash-cms/emdash

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for creating-plugins

README.md
[![agentmods](https://agentmods.dev/badge/skills/emdash-cms/emdash/creating-plugins/github.svg)](https://agentmods.dev/skills/emdash-cms/emdash/creating-plugins)
Your own site
<a href="https://agentmods.dev/skills/emdash-cms/emdash/creating-plugins"><img src="https://agentmods.dev/badge/skills/emdash-cms/emdash/creating-plugins/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for creating-plugins

Your own site · 80×15
<a href="https://agentmods.dev/skills/emdash-cms/emdash/creating-plugins"><img src="https://agentmods.dev/badge/skills/emdash-cms/emdash/creating-plugins.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,982 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 167
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 167
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.1 $0.00050 $0.01982
Opus 5.5 $0.00020 $0.00793
Sonnet 5.5 $0.00010 $0.00396
Haiku 4.5 $0.00005 $0.00198

Measured 1mo ago against content hash 34a81edbe269, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

creating-plugins 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 1mo 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/creating-plugins/SKILL.md · 136 lines

How it starts

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

Creating EmDash plugins

Build against the API that reaches the intended execution mode. Source types and production-boundary tests take precedence over examples in this skill when they disagree.

Choose a format

Format Runtime source Admin UI Distribution
Sandboxed src/plugin.ts default-exports a SandboxedPlugin Block Kit pages, widgets, saved-entry panels, and actions Plugin CLI and registry
Native definePlugin() / createPlugin() React, Block Kit, and Astro components Trusted site dependency only

Use a sandboxed plugin unless the feature needs host-process access, React admin code, Astro rendering components, raw page fragments, or custom Portable Text block definitions. Native plugins run with the site's authority and cannot be installed from the registry.

Scaffold a sandboxed plugin

pnpm dlx @emdash-cms/plugin-cli init my-plugin
cd my-plugin
pnpm install
pnpm run test

The manifest is the identity and trust contract. Runtime hooks and routes live in src/plugin.ts; the CLI generates descriptors, manifests, and bundles. Do not create a separate descriptor factory or sandbox-entry.ts.

import type { SandboxedPlugin } from "emdash/plugin";

const plugin: SandboxedPlugin = {
	hooks: {
		"content:afterSave": async (event, ctx) => {
			ctx.log.info("Content saved", { id: event.content.id });
		},
	},
};

export default plugin;

Import authoring types from emdash/plugin with import type. The CLI bundles value imports such as pluginRoute() and pluginResponse() from emdash/plugin and portableTextToMarkdown() from emdash/client. Sandboxed runtime code can use Web APIs but not Node.js built-ins.

Read the full file on GitHub · 136 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. 1mo ago Changed 34a81edbe269
  2. 2mo ago Changed · +1 lines 66fda54d0060
  3. 2mo ago Changed · +2 lines 77e77df0e48f
  4. 2mo ago Changed · -116 lines · +3 tokens per session 22fbb2bf3b61
  5. 2mo ago Changed · +26 lines 8a184db9058c
  6. 2mo ago Changed · -278 lines · -15 tokens per session scan B → A 053aba212229
  7. 2mo ago Changed · +4 lines 2b8431e42d5d
  8. 2mo ago Changed · +4 lines c15535245716
  9. 2mo ago Changed · +33 lines 00c03c582757
  10. 3mo ago First seen · 460 lines · 62 tokens per session scan B 140f98dd25a7

Subscribe to this mod's changes

creating-plugins is a skill published in the GitHub repository emdash-cms/emdash (14,661 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 1,982 once invoked, about $0.0002 per session on Opus 5.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-30.

Related

creating-plugins compared with skills from other repositories

creating-plugins next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
creating-pluginsemdash-cms/emdashSkill15ktodayMITA50Claude Code, Codex
emdash-cliEngDawood/emdash-claude-pluginSkill41mo agononeA52Claude Code
wordpress-theme-to-emdashEngDawood/emdash-claude-pluginSkill41mo agononeA72Claude Code
webiny-api-cms-content-modelswebiny/webiny-jsSkill8.1ktodaynoneA313Claude Code, Codex
webiny-api-architectwebiny/webiny-jsSkill8.1ktodaynoneA93Claude Code, Codex
webiny-form-modelwebiny/webiny-jsSkill8.1ktodaynoneA93Claude Code, Codex
webiny-v5-to-v6-migrationwebiny/webiny-jsSkill8.1ktodaynoneA75Claude Code, Codex