Part 5 of 7. All parts: part 1. Previous: part 4, organizing atoms in folders. Next: part 6, using an atom from a normal component.
This part asks how much of the work in parts 2 to 4 an AI agent can take over. Section 2 is a real run in a clean copy of the starter. Section 3 is written from the skill files, and I did not run those skills.
To see the Badge the agent wrote in section 2, clone the companion repository and check out its tag (it is based on the part 1 starter, so it does not contain parts 2 to 4):
| 1 | git clone https://github.com/rhockUxbee/sitecoreai-content-sdk-nextjs-app-router-atoms-beta.git |
| 2 | cd sitecoreai-content-sdk-nextjs-app-router-atoms-beta |
| 3 | git checkout part-5-skills |
Preliminary post. Written with AI assistance and run locally against the starter. Tested with Content SDK beta build 20261105114751, November 2026. Uxbee has requested Early Access to atoms in SitecoreAI but does not have it yet, so for the moment the Design Studio steps come from Sitecore's documentation and are untested. These posts will be updated once we have access. More in part 1.
What this part does
Show what an AI agent does when it builds an atom with only the guidance the starter ships, where that guidance helps and where it leaves gaps, and how a community set of skills differs.
1. The skills the starter ships
The starter has 17 skills under .agents/skills. Three are about atoms, and the others are out of scope for this series. CLAUDE.md and AGENTS.md point the agent to them and say to load one skill per task. Each is a rule list of about 30 lines with a Stop section that hands over to a sibling skill. None contains a code example.
content-sdk-atoms-setupexplains the wiring that is already in the starter: the empty catalog and registry insrc/atoms/index.tsx,atomsConfigonSitecoreProvider, andbreakOnErrorinsitecore.cli.config.ts. It says the CLI reads onlysrc/atoms/index.ts(x)with a namedcatalogexport, that atoms are not in the component map, and thatatoms:updatemust run once so the lock file exists (otherwiseMV-012).content-sdk-atoms-createcovers the catalog and registry:defineAtomsCataloganddefineAtomsRegistryfrom@sitecore-content-sdk/nextjs/atoms,actions: {}when there are none, and per component the props (Zod), a description, and optionalslots,allowedChildren,allowedParentsandversion. Registry names must match catalog names. It says to prefer the field schemas such astextFieldSchemaover inventing field shapes.content-sdk-atoms-maintaincovers the lock file: validate, update, the error codes (MV-012,IV-010,MV-014,MV-013,IV-008,IV-009), optional versions,breakOnError, never editing hashes by hand, and removing an atom by deleting it and runningatoms:update.
What the three do not mention: stylingSolution, Tailwind, or how to lay out the files as the atoms grow.
2. Let an agent build an atom
To see what the starter's guidance does on its own, I gave my AI coding assistant the Badge task in a clean copy of the part 1 state (the part-1-starter tag, no atoms). It had only what is in the repo: no plugins, no web, and none of Christian Hahn's skills. The task, worded as a developer would:
Add a Badge atom for Design Studio: a small label for a status or category such as 'New' or 'Beta'. It has a text prop and a tone (neutral, info, success, warning). Make it available in Design Studio and check that it is valid.
I told it not to run npm run build and not to commit, and to log every file it opened and every command it ran. What follows is its own account. I checked the resulting files, git status and the guidance claims myself, but I did not re-run its commands.
What it read. CLAUDE.md, then AGENTS.md, .agents/docs/README.md and Skills.md. It opened three skills: create, maintain and setup. It skipped the other 14 skills and the four AGENTS-*.md docs. Opening three breaks the rule "load one skill per task", and it said why: the task is both "add an atom" and "check that it is valid", and no skill says which to pick for a task like that.
What it did.
- Wrote the Badge into
src/atoms/index.tsx. - Ran
atoms:validate. With no lock file it logged[IE-008] Lock file validation failedand[MV-012] Lock file not found, and still exited 0. That isbreakOnErrorbeing false, as the maintain skill says, so exit 0 is not proof that validation passed. - Ran
atoms:update("Lock file updated successfully"), thenatoms:validateagain ("atoms.lock.json is up to date"). - Ran
npx tsc --noEmit, which failed with 13TS2307errors for missing.sitecorefiles:sites.json, the two component maps,metadata.jsonand the two import maps. These are generated files that a fresh checkout does not have. The guidance does not mention this. The agent ransitecore-tools:generate-mapandsitecore-tools:buildon its own, after whichtscpassed with no errors. - Confirmed that
.sitecore/metadata.jsonnow contains Badge, which is what Design Studio reads. It did not start the dev server or open Design Studio.
The code it wrote:
| 1 | import { z } from 'zod'; |
| 2 | import { defineAtomsCatalog, defineAtomsRegistry } from '@sitecore-content-sdk/nextjs/atoms'; |
| 3 | |
| 4 | export const catalog = defineAtomsCatalog({ |
| 5 | components: { |
| 6 | Badge: { |
| 7 | props: z.object({ |
| 8 | text: z.string(), |
| 9 | tone: z.enum(['neutral', 'info', 'success', 'warning']).default('neutral'), |
| 10 | }), |
| 11 | description: 'A small label for a status or category, such as "New" or "Beta".', |
| 12 | }, |
| 13 | }, |
| 14 | actions: {}, |
| 15 | }); |
| 16 | |
| 17 | const toneClasses = { |
| 18 | neutral: 'bg-gray-100 text-gray-800', |
| 19 | info: 'bg-blue-100 text-blue-800', |
| 20 | success: 'bg-green-100 text-green-800', |
| 21 | warning: 'bg-yellow-100 text-yellow-800', |
| 22 | } as const; |
| 23 | |
| 24 | export const registry = defineAtomsRegistry(catalog, { |
| 25 | components: { |
| 26 | Badge: ({ props }) => ( |
| 27 | <span |
| 28 | className={`inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium ${ |
| 29 | toneClasses[props.tone ?? 'neutral'] |
| 30 | }`} |
| 31 | > |
| 32 | {props.text} |
| 33 | </span> |
| 34 | ), |
| 35 | }, |
| 36 | }); |
Compared with the Badge from part 2:
| Part 2 (by hand) | Agent run | |
|---|---|---|
text prop | textFieldSchema(), rendered as props.text?.value | z.string(), rendered as props.text |
stylingSolution | 'tailwind' | not set |
className prop | optional string | none |
| description | adds "Use the tone to signal meaning." | the one-line label only |
| Validation | lock file up to date | lock file up to date |
text prop- Part 2 (by hand)
textFieldSchema(), rendered asprops.text?.value- Agent run
z.string(), rendered asprops.text
stylingSolution- Part 2 (by hand)
'tailwind'- Agent run
- not set
className prop- Part 2 (by hand)
- optional string
- Agent run
- none
- Part 2 (by hand)
- adds "Use the tone to signal meaning."
- Agent run
- the one-line label only
- Part 2 (by hand)
- lock file up to date
- Agent run
- lock file up to date
Both pass the CLI's validation, so the validation says nothing about the differences. They matter for Design Studio:
- The skill told it to use field schemas, and it did not. The create skill says to prefer
textFieldSchema, but the agent used a plain string. Whether Design Studio then passes a plain string or a field object into that prop, I cannot say without Early Access. Part 2, section 6, shows what a field schema adds to the metadata that Design Studio receives. - No
stylingSolution. Part 2 sets it to'tailwind'so the Tailwind compiler ininstrumentation-node.tscompiles the classes an atom uses. The guidance never mentions it, so the agent never set it. Its Badge uses Tailwind classes that may then not be compiled in Design Studio. That is what the docs lead me to expect, not something I tested. - A thinner description. Part 2 says the description is what Design Studio's AI reads. The agent's is accurate but says nothing about when to use which tone.
Where the guidance was wrong or unclear:
AGENTS.mdtells you to runnpm run type-check, andpackage.jsonhas no such script. The agent usednpx tsc --noEmit.- Nothing explains why
tscfails on a fresh checkout. - Nothing says how to choose a skill for a task that spans create and maintain.
The takeaway. The skills got an agent to a valid, working Badge in about a minute and a half, with no error it could not handle. Validation passing is the weak signal here: the agent's atom is valid and still differs from mine in three ways that only show in Design Studio. The skills tell an agent what the rules are. They do not tell it what a good atom looks like. That is the part a catalog review, by a person, still has to cover.
3. Community skills versus the starter's
Christian Hahn publishes a set of Sitecore skills in github.com/chris1415/sitecore-skills-pocs, which he calls a personal proof of concept, not an official Sitecore product. The plugin sitecore-content-sdk-nextjs-app-router has 17 skills, and two of them are about atoms: content-sdk-app-router-atoms, which covers wiring, the runtime and debugging, and content-sdk-app-router-atom-create, which covers writing one atom. I read both files. I have not installed or run them.
How they differ from the starter's three:
- They are much more detailed, and they say how sure they are. The starter's skills are short rule lists. His mark facts with a date and the SDK build they were measured on, and tag what he could not confirm as
[UNVERIFIED]. The atoms skill starts with a version gate: atoms exist only under thebeta.atomstag, and the Sitecore packages must be pinned to one exact build. - The split is different. The starter has setup, create and maintain. His has one skill for the app side and one for writing an atom. His create skill adds a decision table (atom, or code component?), enums for design choices instead of free strings, and the advice to treat description and example as the brief for Design Studio's AI.
- They come with scripts. His text refers to
check-atoms-lock.mjsas a CI gate,mock-edge.mjsfor a local mock of the content service, andprobe-mms.mjsfor debugging a component that renders nothing. - They disagree about removing an atom. The starter's maintain skill says to delete it from the catalog and registry, then run
atoms:update. His says never to delete an atom a Document still uses, because it then renders nothing without an error, and to retire it withlegacy: trueinstead. He says outright that this overrides the starter's skill. The SDK's own type comments back him on whatlegacydoes: it makes Design Studio stop offering the atom to new AI generations, and existing usages are unaffected. I have not tested how a Document behaves when its atom is deleted, so I cannot say more.
Several of his warnings match what I hit in part 3 with the Content Kit install. He lists the SDK pins being rewritten, the missing @/ alias, two entry files in src/atoms, and the need to exclude the atom folders from the component map. He also says atoms validate exits with code 0 on lock problems unless breakOnError is true, which is what I saw in part 2. And he says a catalog split over several files is fine as long as src/atoms/index.tsx re-exports catalog and registry, which is what part 4 does with the Content Kit's src/atoms/index.ts. His skill names index.tsx, and the starter's skill says the CLI accepts either.
Three things I could not check:
- His claims about the runtime: how the content service serves Documents, how the CSS is compiled, and the Design Studio bridge.
- His claim that the lock hash does not see changes to Zod checks or
withPropMeta, so those need a version bump by hand. I testeddescribe()in part 4, and it holds. - His two measured builds, which are older than the one in my project. His own file says the beta tag moved several times in a day.
As always: read a skill before you let an agent run it. This one is a personal proof of concept for a beta feature.
4. Verdict
An agent with the starter's skills gets the mechanics right: it finds the files, writes a catalog and a registry, regenerates the lock file and validates. It is the choices that need a person: which field schema, which styling setting, and a description that tells Design Studio's AI when to use the atom.
If you start with atoms and an AI agent, this is the checklist I would use:
- Tell the agent to use the field schemas (
textFieldSchemaand the others), and check that it did. - Set
stylingSolution: 'tailwind'if the atoms use Tailwind classes. - Review every description as if it were the prompt, because for Design Studio it is.
- Set
breakOnErrortotruein CI, because validate exits 0 on problems otherwise. - On a fresh checkout, run
sitecore-tools:generate-mapandsitecore-tools:buildbefore you trusttsc. - Read a skill before you let an agent follow it, whether it is the starter's or a community one.
The usual caveat applies: atoms are in Early Access on beta packages, and I have not tested any of this inside Design Studio.
Not tested yet
- Whether the starter's skills and Christian Hahn's can be used together without conflicts.
- Whether a plain
z.string()text prop works in Design Studio, or only a field schema does. - What Design Studio's AI does with weak or missing catalog descriptions.
Next up, part 6: use an atom from a normal Sitecore component.





