mdcms-greenfield-init

mdcms-greenfield-init is a skill for Claude Code, Codex from mdcms-ai/mdcms. It costs 126 tokens per session (1,165 once invoked), scanned A, original, MIT.

A setup workflow for starting a new MDCMS project with no existing Markdown or MDX content. It creates a starter content structure, configuration file, content type, example post, and server schema.

In plain words
What is it for?
Use it to initialize a fresh project, configure its server, project, and environment, create a basic post type, and optionally upload an example post.
Why use it?
It gives an empty repository the files and server configuration needed to begin managing content with MDCMS.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/mdcms-ai/mdcms/mdcms-greenfield-init
Any agent
npx skills add mdcms-ai/mdcms --skill mdcms-greenfield-init
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-greenfield-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/mdcms-ai/mdcms/mdcms-greenfield-init.svg)](https://agentmods.dev/skills/mdcms-ai/mdcms/mdcms-greenfield-init)
Your own site
<a href="https://agentmods.dev/skills/mdcms-ai/mdcms/mdcms-greenfield-init"><img src="https://agentmods.dev/badge/skills/mdcms-ai/mdcms/mdcms-greenfield-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,165 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00126 $0.01165
Opus 5 $0.00063 $0.00583
Sonnet 5 $0.00025 $0.00233
Haiku 4.5 $0.00013 $0.00117

Measured 5d ago against content hash bc103a4506a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mdcms-greenfield-init 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 5d 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-greenfield-init/SKILL.md · 101 lines

How it starts

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

MDCMS Greenfield Init

Bootstrap MDCMS in a repo that has no content yet. mdcms init scaffolds a minimal starter (one content type, one example post, a valid mdcms.config.ts) and syncs the schema. A follow-up mdcms push uploads the example.

When to use this skill

The user wants MDCMS for a new project and has no existing Markdown/MDX files to import. If the repo already has content, use mdcms-brownfield-init instead.

Prerequisites

  • Server URL (self-host with mdcms-self-host-setup if needed).
  • MDCMS API key with project + schema permissions.
  • Project slug and environment name.
  • Node.js / npm for npx mdcms.

Steps

1. Run init

npx mdcms init --non-interactive \
  --server-url "$MDCMS_SERVER_URL" \
  --project "$MDCMS_PROJECT" \
  --environment "$MDCMS_ENVIRONMENT" \
  --api-key "$MDCMS_API_KEY"

With no content on disk, init:

  1. Scaffolds content/posts/ as the managed directory.
  2. Generates a post type with title: z.string() and slug: z.string().optional().
  3. Writes mdcms.config.ts.
  4. Syncs the schema to the server.
  5. Creates content/posts/example.md (a placeholder with frontmatter and a short body). Skip this last step with --no-example-post if the user does not want it.

If the user prefers a different starter directory, pass --directory <path> — the type is named after the last path segment.

2. Push the example to the server

npx mdcms push

init writes the file locally but does not import it. Running push uploads it so the user can immediately open Studio and see a real draft document.

3. Decide on the content model

At this point the repo has a minimal post type with two fields. Ask the user what their real content model looks like (blog posts with authors and tags? marketing pages? campaigns with localized variants?) and either:

  • Start drafting directly in the scaffolded directory if the starter shape fits, or
  • Delegate to mdcms-schema-refine to add the real types, fields, and references.

Read the full file on GitHub · 101 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. 5d ago First seen · 101 lines · 126 tokens per session scan A bc103a4506a6

Subscribe to this mod's changes

mdcms-greenfield-init is a skill published in the GitHub repository mdcms-ai/mdcms (22 stars, last pushed today), licensed MIT. It adds 126 tokens to every session and 1,165 once invoked, about $0.0006 per session on Opus 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

Other skills, from other repositories

building-emdash-site

Build and customize EmDash CMS sites on Astro. Use when creating pages, defining collections, writing seed files, querying content, rendering Portable Text, setting up menus/taxonomies/widgets, configuring deployment, or any task involving an EmDash-powered Astro site. Assumes basic Astro knowledge but provides all…

emdash-cms/emdash · 70 tokens

intlayer-content

Define rich content structures using Intlayer content nodes. Use when the user asks to "create translations", "handle pluralization", "use markdown in content", or implement "conditional content".

aymericzip/intlayer · 41 tokens

intlayer-compiler

Intlayer Compiler setup and usage. Configures automatic content extraction for your components without the need to define .content files manually.

aymericzip/intlayer · 30 tokens

webiny-api-cms-content-models

Creating Headless CMS content models via code using the ModelFactory pattern. Use this skill when the developer wants to create, modify, or understand content model definitions, define fields and validators, set up reference fields between models, configure field layouts (including nested layouts inside object or…

webiny/webiny-js · 297 tokens

webiny-form-model

Building forms with the FormModel system — field types, renderers, layout, validation, conditional rules, computed fields, and dynamic zones. Use this skill when the developer needs to define form fields with the builder API, choose renderers, build layouts with tabs/rows/separators, add validation (Zod or…

webiny/webiny-js · 93 tokens

webiny-api-permissions

Schema-based permission system for API features. Use this skill when implementing authorization in use cases, defining permission schemas with createPermissionSchema, creating injectable permissions via createPermissionsAbstraction/createPermissionsFeature, checking read/write/delete/publish permissions, handling…

webiny/webiny-js · 78 tokens