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.
git clone --depth 1 https://github.com/mdcms-ai/mdcmsnpx agentmods add skills/mdcms-ai/mdcms/mdcms-sdk-integrationWrote 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.
[](https://agentmods.dev/skills/mdcms-ai/mdcms/mdcms-sdk-integration)<a href="https://agentmods.dev/skills/mdcms-ai/mdcms/mdcms-sdk-integration"><img src="https://agentmods.dev/badge/skills/mdcms-ai/mdcms/mdcms-sdk-integration/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.
<a href="https://agentmods.dev/skills/mdcms-ai/mdcms/mdcms-sdk-integration"><img src="https://agentmods.dev/badge/skills/mdcms-ai/mdcms/mdcms-sdk-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00109 | $0.03663 |
| Opus 5.5 | $0.00044 | $0.01465 |
| Sonnet 5.5 | $0.00022 | $0.00733 |
| Haiku 4.5 | $0.00011 | $0.00366 |
Grade A, and why
mdcms-sdk-integration 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.
How it starts
The opening of the file, as written. The whole thing — 335 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MDCMS SDK Integration
Use @mdcms/sdk in the host app to fetch MDCMS content at build time or request time, replacing any filesystem-driven content layer, and supporting the draft/published split.
When to use this skill
The user wants to consume MDCMS content programmatically from a host app — typically to render pages, build a blog index, or hydrate a CMS-driven section. Two sub-paths:
- Brownfield (replace) — the app currently imports markdown from the repo (
import about from "../content/about.md",fs.readFile,remark/mdx-bundler). Replace that with SDK calls. - Greenfield (write new) — the app has no content-fetching code yet. Add it fresh.
Not for editing content (use Studio), not for schema changes (use mdcms-schema-refine), not for admin embedding (use mdcms-studio-embed).
Prerequisites
- A running MDCMS server and content synced against a schema (via
mdcms-brownfield-initormdcms-greenfield-init). - A React-based host app with
mdcms.config.tsat its root. - An API key with
content:read(addcontent:read:draftfor drafts) that the host app reads at runtime fromMDCMS_API_KEY. Never ship the API key to the browser.
Steps
1. Install the SDK
Use the project's package manager. server-only makes the build fail if a client component imports the module that holds the API key:
pnpm add @mdcms/sdk server-only
# or: npm install / bun add / yarn add @mdcms/sdk server-only
2. Create the client
Build the client from mdcms.config.ts, which already holds serverUrl, project and environment. Read only the API key from the environment.
lib/cms.ts:
import "server-only";
import { createClient } from "@mdcms/sdk";
import { createMdcmsRenderer } from "@mdcms/sdk/react";
import config from "../mdcms.config";
const apiKey = process.env.MDCMS_API_KEY;
if (!apiKey) {
throw new Error("MDCMS_API_KEY is not set.");
}
// Server URL, project and environment come from mdcms.config.ts; only the
// API key is a secret.
export const cms = createClient({
serverUrl: config.serverUrl,
project: config.project,
environment: config.environment,
apiKey,
});
// Renders document bodies with the components registered in mdcms.config.ts.
export const renderer = createMdcmsRenderer(config);
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.
- 21d ago Changed · +92 lines 8d6a9e792ea5
- 3mo ago First seen · 243 lines · 109 tokens per session scan A e078f8080955
mdcms-sdk-integration is a skill published in the GitHub repository mdcms-ai/mdcms (22 stars, last pushed 5d ago), licensed MIT. It adds 109 tokens to every session and 3,663 once invoked, about $0.0004 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.
mdcms-sdk-integration compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mdcms-sdk-integrationmdcms-ai/mdcms | Skill | 22 | 5d ago | MIT | A | 109 | Claude Code, Codex |
| webiny-api-cms-content-modelswebiny/webiny-js | Skill | 8.1k | today | none | A | 313 | Claude Code, Codex |
| webiny-api-architectwebiny/webiny-js | Skill | 8.1k | today | none | A | 93 | Claude Code, Codex |
| webiny-admin-architectwebiny/webiny-js | Skill | 8.1k | today | none | A | 77 | Claude Code, Codex |
| webiny-form-modelwebiny/webiny-js | Skill | 8.1k | today | none | A | 93 | Claude Code, Codex |
| webiny-v5-to-v6-migrationwebiny/webiny-js | Skill | 8.1k | today | none | A | 75 | Claude Code, Codex |
| webiny-cognito-federationwebiny/webiny-js | Skill | 8.1k | today | none | A | 126 | Claude Code, Codex |