mdcms-mdx-components

mdcms-mdx-components is a skill for Claude Code, Codex from mdcms-ai/mdcms. It costs 150 tokens per session (2,473 once invoked), scanned A, original, MIT.

A workflow for registering custom React components in MDX, a Markdown format that can include interactive components. It connects those components to the authoring files, MDCMS Studio preview, and the host app's rendered output.

In plain words
What is it for?
Use it to register components such as callouts, buttons, charts, or videos so they can be authored, previewed, and rendered consistently.
Why use it?
It prevents a custom component from working in only one place, such as the website but not the editor preview.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import config from "../mdcms.config";.

Good fit Use it to register components such as callouts, buttons, charts, or videos so they can be authored, previewed, and rendered consistently.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mdcms-ai/mdcms
agentmods
npx agentmods add skills/mdcms-ai/mdcms/mdcms-mdx-components

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 mdcms-mdx-components

README.md
[![agentmods](https://agentmods.dev/badge/skills/mdcms-ai/mdcms/mdcms-mdx-components/github.svg)](https://agentmods.dev/skills/mdcms-ai/mdcms/mdcms-mdx-components)
Your own site
<a href="https://agentmods.dev/skills/mdcms-ai/mdcms/mdcms-mdx-components"><img src="https://agentmods.dev/badge/skills/mdcms-ai/mdcms/mdcms-mdx-components/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 mdcms-mdx-components

Your own site · 80×15
<a href="https://agentmods.dev/skills/mdcms-ai/mdcms/mdcms-mdx-components"><img src="https://agentmods.dev/badge/skills/mdcms-ai/mdcms/mdcms-mdx-components.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,473 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: 1 finding, 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 MCP Rug Pull · line 96
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
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.00150 $0.02473
Opus 5.5 $0.00060 $0.00989
Sonnet 5.5 $0.00030 $0.00495
Haiku 4.5 $0.00015 $0.00247

Measured 21d ago against content hash d1cd703b7594, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mdcms-mdx-components 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 21d 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/mdcms-mdx-components/SKILL.md · 187 lines

How it starts

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

MDCMS MDX Components

Register custom React components so they work in all three places that read MDCMS content:

  1. Document bodies (<Callout title="…">…</Callout> in the stored MDX),
  2. The Studio editor (insert from the toolbar or / menu, live preview, props form),
  3. The host app's server render through @mdcms/sdk/react.

The code in this skill is complete and matches the shipped @mdcms/* types; use it as written.

When to use this skill

The user has, or wants, content that uses custom components (<Callout>, <Cta>, <Chart>, <Video>) and wants them to work end to end. Also use when a component renders in one place but not another (for example the site renders it but Studio shows a placeholder).

Not for schema changes (mdcms-schema-refine) or plain Markdown (no registration needed).

Prerequisites

  • mdcms.config.ts exists (run mdcms-brownfield-init or mdcms-greenfield-init first).
  • Each component is a React component in the host app's source tree.
  • For Studio: the /admin route from mdcms-studio-embed. For the site: the renderer from mdcms-sdk-integration.

How components flow

A component is registered once, in mdcms.config.ts, with these fields (the full contract; there are no others):

Field Required Purpose
name yes JSX tag used in content (<Callout> needs name: "Callout"). Case-sensitive.
importPath yes Path to the component source, relative to the project root. Studio reads the file's TypeScript props from it.
load no () => Promise<…> that loads the component. Used by the SDK renderer and by Studio previews.
description no Shown next to the component in Studio's insert menu.
propHints no Per-prop form hints, for example { href: { format: "url" } }, { color: { widget: "color-picker" } }.
propsEditor no Path to a custom props editor component (instead of the generated form).
loadPropsEditor no () => Promise<…> that loads the custom props editor in Studio.

Read the full file on GitHub · 187 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. 21d ago Changed · +53 lines d1cd703b7594
  2. 3mo ago First seen · 134 lines · 150 tokens per session scan A 0948b95c1c3f

Subscribe to this mod's changes

mdcms-mdx-components is a skill published in the GitHub repository mdcms-ai/mdcms (22 stars, last pushed 5d ago), licensed MIT. It adds 150 tokens to every session and 2,473 once invoked, about $0.0006 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

mdcms-mdx-components compared with skills from other repositories

mdcms-mdx-components next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mdcms-mdx-componentsmdcms-ai/mdcmsSkill225d agoMITA150Claude Code, Codex
webiny-api-cms-content-modelswebiny/webiny-jsSkill8.1ktodaynoneA313Claude Code, Codex
webiny-api-architectwebiny/webiny-jsSkill8.1ktodaynoneA93Claude Code, Codex
webiny-admin-architectwebiny/webiny-jsSkill8.1ktodaynoneA77Claude Code, Codex
webiny-form-modelwebiny/webiny-jsSkill8.1ktodaynoneA93Claude Code, Codex
webiny-v5-to-v6-migrationwebiny/webiny-jsSkill8.1ktodaynoneA75Claude Code, Codex
webiny-cognito-federationwebiny/webiny-jsSkill8.1ktodaynoneA126Claude Code, Codex