mdcms-schema-refine

mdcms-schema-refine is a skill for Claude Code, Codex from mdcms-ai/mdcms. It costs 146 tokens per session (2,006 once invoked), scanned A, original, MIT.

A schema-editing workflow for MDCMS, a content management system that stores Markdown and MDX content. It changes content types, fields, and links between types in mdcms.config.ts and syncs those changes to the server.

In plain words
What is it for?
Use it to create or modify content types, add fields such as tags, or connect content such as blog posts and authors.
Why use it?
It keeps the structure of your content in one place and helps update the server when that structure changes. It is for schema changes, not editing individual articles or pages.

Skill for Claude CodeCodex

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

Good fit Use it to create or modify content types, add fields such as tags, or connect content such as blog posts and authors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mdcms-ai/mdcms/mdcms-schema-refine
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 mdcms-ai/mdcms --skill mdcms-schema-refine
Clone the repo
git clone --depth 1 https://github.com/mdcms-ai/mdcms

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-schema-refine

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mdcms-ai/mdcms/mdcms-schema-refine"><img src="https://agentmods.dev/badge/skills/mdcms-ai/mdcms/mdcms-schema-refine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 146 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,006 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: 3 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 MCP Rug Pull · line 113
    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]
  • medium MCP Rug Pull · line 121
    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]
  • medium MCP Rug Pull · line 135
    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.00146 $0.02006
Opus 5.5 $0.00058 $0.00802
Sonnet 5.5 $0.00029 $0.00401
Haiku 4.5 $0.00015 $0.00201

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

Security

Grade A, and why

mdcms-schema-refine 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-schema-refine/SKILL.md · 184 lines

How it starts

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

MDCMS Schema Refine

Edit mdcms.config.ts to shape the content model and push the change to the server. This is the skill for post-init schema work — whether that's correcting a brownfield-inferred schema, extending a greenfield scaffold, or evolving a mature project.

When to use this skill

  • After mdcms-brownfield-init when the inferred schema needs corrections or additions.
  • After mdcms-greenfield-init when the scaffolded post type is not enough for the real content model.
  • Any time the user asks to add/edit a type, add/edit a field, or link two types via a reference.

Not for importing content, embedding Studio, or editing individual documents — those are different skills.

Prerequisites

  • A working mdcms.config.ts and a reachable MDCMS server (run mdcms-brownfield-init or mdcms-greenfield-init first if not).
  • The user must be logged in for the target (server, project, environment). mdcms schema sync writes to the server and fails with 401/unauthorized otherwise. If mdcms status prints an auth error, run mdcms login (interactive) or set MDCMS_API_KEY (non-interactive) before continuing — see mdcms-content-sync-workflow Step 0 for full guidance.
  • Read the current config before editing so you understand the shape you're changing.

Core concepts

  • Type — a content kind (e.g. post, page, author). Declared via defineType(name, { directory, fields, ... }).
  • Imports: defineConfig, defineType, fieldTypes and z all come from @mdcms/cli, as in the config mdcms init writes. @mdcms/cli re-exports defineConfig, defineType and fieldTypes from @mdcms/shared (so they do not appear by name in the CLI's own source) and z from zod, which keeps the config on the CLI's Zod instance.
  • Field — a Zod validator attached to a frontmatter key. Typical shapes: z.string().min(1), z.number().optional(), z.boolean().default(false), z.array(z.string()), z.enum([...]).
  • Reference — fieldTypes.reference("<target-type>") makes a field point to a document of another type. References are resolved by the SDK and surfaced in Studio as pickers.
  • Localized type — localized: true on defineType makes every document live in multiple locale variants grouped by a shared translation group id.
  • Environment-scoped fields — .env("staging") chained onto a Zod validator makes a field only apply in that environment. Use sparingly.

Read the full file on GitHub · 184 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 · +14 lines 162734c0f49d
  2. 3mo ago First seen · 170 lines · 146 tokens per session scan A 4b6fbb1851d5

Subscribe to this mod's changes

mdcms-schema-refine is a skill published in the GitHub repository mdcms-ai/mdcms (22 stars, last pushed 5d ago), licensed MIT. It adds 146 tokens to every session and 2,006 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-schema-refine compared with skills from other repositories

mdcms-schema-refine next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mdcms-schema-refinemdcms-ai/mdcmsSkill225d agoMITA146Claude Code, Codex
creating-pluginsemdash-cms/emdashSkill15ktodayMITA50Claude Code, Codex
writing-emdash-docsemdash-cms/emdashSkill15ktodayMITA85Codex
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