/dotcms:dotcms-create-sitesfrom dotCMS
Plans and builds a complete dotCMS site in two phases. Phase 1 interviews the user and writes PLAN.md (purpose, sitemap, data model, every fact tagged) and DESIGN.md (visual identity tokens). Phase 2 hands off to the dotcms-best-practices skill, which owns the build sequence, and holds the verify-and-fix loop until every page type renders. Stops invented facts shipping as real. Supports both VTL-rendered and headless (Next.js) delivery. Use when someone wants to build, scaffold, or create a new dotCMS site or microsite.
Ships in dotCMS. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Two phases: plan, then build. You do both.
PLAN.md — everything non-visual: purpose, audience, hostname, sitemap, sections, data model, and every fact tagged confirmed / placeholder / n-a.DESIGN.md — the visual identity (YAML tokens + prose rationale). Colors are never invented — sample them from the user's logo/assets if provided, or ask.dotcms-best-practices, which owns the build sequence.PLAN.md and DESIGN.md belong in the project directory you're building — not wherever you
happen to be. A PLAN.md describing something other than a dotCMS site is not yours.
Copy this checklist and track progress. References are in reference/plan/.
Plan Progress:
- [ ] 1. If a site PLAN.md/DESIGN.md already exists for THIS project, read it, confirm it,
and interview only on gaps. Otherwise start fresh — you are writing them.
- [ ] 2. Run the interview (reference/plan/interview.md) — infer from assets, confirm the
drafted plan in ONE batch; ask upfront only what can't be inferred (delivery mode,
transaction model, real-vs-placeholder facts)
- [ ] 3. Draft prose in the agreed voice; collect or defer every fact; source colors from
logo/assets or ask
- [ ] 4. Write DESIGN.md (visual identity) from reference/plan/design-template.md
- [ ] 5. Write PLAN.md (structure + tagged facts) from reference/plan/plan-template.md
- [ ] 6. Confirm tagging is complete — every FACT field tagged, every STRUCTURE section
carrying a heading tag — and PLAN.md's top checklist lists all gaps
- [ ] 7. Confirm the plan with the user before building
Phase 1 cannot be skipped unless both files already exist for this project and the user confirms them. Don't start Phase 2 until the plan is confirmed.
Load dotcms-best-practices and work through reference/README.md — the 11 steps in
dependency order, the delivery-mode fork, and the file for each step.
What you carry into it:
| From PLAN.md | Used for |
|---|---|
| §2 hostname | creating the site |
| §3b delivery mode | which branch of the sequence applies — VTL or headless |
| data model | the content types to create |
| sitemap and sections | the pages, and what gets placed on them |
| DESIGN.md tokens | the theme's CSS (VTL), or the app's styling (headless) |
The tagging rules survive the build: [PLACEHOLDER] renders as a visible TODO, never an
invented value; [n/a] is removed, not flagged; [ai-draft] needs sign-off before launch.
The sequence ends in a verify-and-fix loop. Your job is not to let it stop at one pass — a
first failure is normal. Do not report the build done until every page type verifies.
dotcms-best-practices has a symptom index for classifying failures.
Every field carries exactly one of [confirmed] · [PLACEHOLDER — needs human] ·
[n/a — intentionally omitted] · [ai-draft — approve]. Definitions and how to apply them:
reference/plan/interview.md. Never assume a missing fact is a
placeholder — ask which applies.
PLAN.md and DESIGN.md exist and are fully tagged — every FACT field, every STRUCTURE section.
The site is built and published. Every page type has passed its verify step. No
[PLACEHOLDER] renders as a real value, every [n/a] was removed rather than flagged, and
[ai-draft] copy is flagged for approval.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dotcms/agent-toolkit --plugin dotcms3 skills in this plugin
/dotcms-best-practicesReference for doing any single thing in dotCMS correctly — create a content type, page, template or container; place content; author VTL; wire a headless Next.js frontend; or debug a page that renders blank. Indexed by intent, so you load one file for the task at hand. Use whenever working with dotCMS content types, fields, pages, templates, containers, content placement, VTL/Velocity, the Universal Visual Editor, or a headless dotCMS frontend — and especially when a page renders empty, a slot shows "no component", or a change doesn't appear in LIVE./dotcms-custom-field-migrationMigrates VTL (Velocity Template Language) custom field templates from the legacy dotCMS Dojo/Dijit API to the modern DotCustomFieldApi. By default it returns a single inline file ready to paste into the Custom Field: the migrated code inside #if( $structures.isNewEditModeEnabled() ) and the original legacy code, untouched, inside #else, with no #parse and no extra files. On request it produces three files instead (_old.vtl, _new.vtl and a #parse router), and it converts existing migrations between the two shapes. Use this skill whenever a user asks to migrate, update, or convert a VTL file, custom field template, or dotCMS field that uses any of: DotCustomFieldApi.get(), DotCustomFieldApi.set(), DotCustomFieldApi.onChangeField(), dojo.ready(), dojo.byId(), dijit.byId(), dijit.form.*, dojoType attributes, or any Dojo/Dijit pattern. Also trigger when the user pastes a VTL snippet and asks "what needs to change" or "can you update this", asks for an inline, single-file or one-file migration ("un solo archivo"), wants to paste the result into the content type editor, or wants to collapse a _new/_old/router migration into one file or split an inline one. Also trigger when the user asks to migrate ALL custom fields, every legacy field, or "the whole instance": the skill finds, downloads, and safely republishes every legacy custom field on a live dotCMS instance through the dotCMS MCP server (see "Migrate a whole instance" below). If in doubt, use this skill.