agentforce-architectur…
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
Author a Salesforce Digital Experience brand (a \"brand.json\") so the VS Code Brand Toolkit can load, edit, and preview it. Use this skill whenever someone wants to: create a brand, make a new brand, generate a brand from a description or a color/logo/mood, add a brand to a
Claude Code
$ npx -y skills add forcedotcom/sf-skills --skill experience-cms-brand-create --agent claude-code
Codex
$ npx skills add forcedotcom/sf-skills --skill experience-cms-brand-create -a codex -y
Cursor
$ npx skills add forcedotcom/sf-skills --skill experience-cms-brand-create -a cursor -y
Gemini CLI
$ npx skills add forcedotcom/sf-skills --skill experience-cms-brand-create -a gemini-cli -y
GitHub Copilot
$ npx skills add forcedotcom/sf-skills --skill experience-cms-brand-create -a github-copilot -y
OpenCode
$ npx skills add forcedotcom/sf-skills --skill experience-cms-brand-create -a opencode -y
Windsurf
$ npx skills add forcedotcom/sf-skills --skill experience-cms-brand-create -a windsurf -y
name: experience-cms-brand-create
description: "Author a Salesforce Digital Experience brand (a \"brand.json\") so the VS Code Brand Toolkit can load, edit, and preview it. Use this skill whenever someone wants to: create a brand, make a new brand, generate a brand from a description or a color/logo/mood, add a brand to a project so the Brand Toolkit picks it up, scaffold a brand.json, theme a Digital Experience site, or turn a brand idea (\"a dark luxury brand\", \"match our logo\", \"coral + rounded + friendly\") into a loadable brand. Also use it when the user mentions \"Brand Toolkit\", \"theme manager brand\", \"brand token\", \"colorScheme\", \"primaryAccent\", \".digitalExperience/brands\", \"sfdc_cms:title\", or a \"brand.json\" that should show up in the Brand Toolkit. Do NOT use this skill to apply an existing brand's voice, tone, or guidelines to generated content (use experience-cms-brand-apply), to search Salesforce CMS for existing brands, or to search for images, media, or logos (use experience-search-coordinate)."
metadata:
version: "1.0"
domains: ["Experience"]
relatedSkills:
- "experience-cms-brand-apply"
- "experience-search-coordinate"Generates a Digital Experience **brand** — one `brand.json` file — from a user's description, and writes it where the VS Code **Brand Toolkit** will discover it, so the user can immediately load, edit, and preview the brand.
A brand is a single JSON object of design tokens: colors (`colorScheme`), a font catalog and base font (`fontFamily` / `baseFontFamily`), size/spacing/border scales, per-role `typography`, and `buttonStyleGroup` definitions. Most of it is fixed structure with internal references; **you create a brand by starting from a known-good template and changing only the leaf values** (colors, font choice, border radius, base size) plus a unique name.
The Brand Toolkit owns everything downstream: it computes derived hover colors, compiles the `--tm-*` CSS, and manages the active-brand config on Save. Your job is just the `brand.json`.
> **Related:** This skill *creates* a new brand definition. To *apply* an existing > brand's voice, tone, and guidelines to generated content, use the > `experience-cms-brand-apply` skill instead.
Read each reference when its step arrives — don't inline everything up front:
is your starting point for EVERY brand. Copy it, then change leaves.
references you must leave intact; the `colorScheme` guide; the font catalog and which fonts actually render in the preview; the derived-colors rule. Read before editing values.
(`.digitalExperience/brands/<slug>.brand.json`), the title→slug rule, and what the toolkit generates so you don't. Read before writing the file.
Walk these steps in order. When you have an interactive user, ask before assuming and confirm the design back before writing; in a single-turn, headless, or CLI run with no user to answer, state the choices you inferred and write in the same run rather than waiting for a confirmation that cannot arrive (see Step 3). Steps 1–5 create the brand file and complete the task. After they finish, an optional post-completion action — opening the Brand Toolkit to preview/edit — is described in **"After completion"** below; it is not part of the required workflow.
Find out what the brand should feel like. If the user already gave a description ("a dark, premium fintech brand in deep purple"), extract from it; otherwise ask briefly for:
unique in the project). If they don't offer one, propose one from the vibe.
a description ("Salesforce blue", "warm coral"). Convert to a `#rrggbb` hex.
`root` and `contrast`.
classic serif, techy mono), density. Map these to `borderRadius`, `fontFamily` choice, and `baseFontSize`.
If a logo or image is provided, sample its dominant color for `primaryAccent` and judge light/dark from its background. Keep it to a couple of questions — infer the rest from the vibe and confirm in Step 3.
1. Read `assets/brand-template.json` — this is your base. Read `references/brand-anatomy.md` so you know which leaves are safe to change. 2. Copy the template and override ONLY leaf values:
`#000000`; dark: a dark bg / `#ffffff`).
the accent.
entries) → a reference to a catalog key whose font actually renders in the preview (see the anatomy doc's font list).
`baseFontSize.value`, `fontWeight.normal`. 3. Do NOT: add `*Derived` color keys, drop or rename any section/key, replace a `{!$brand....}` reference with a literal, or use a font name outside the renderable catalog. The structure must stay identical to the template. 4. Sanity-check contrast: `contrast` on `root`, and `primaryAccentContrast` on `primaryAccent`, must be legible. Prefer black/white for the contrast colors
This repository provides Salesforce agent skills, plugins, and sample apps for building applications.
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
Use this skill to Upgrade Einstein Bots into Agentforce agents end-to-end in a single pass, orchestrating per-bot Agent Spec…
Data Cloud 360° view of a single Agentforce session. TRIGGER when user asks to trace, inspect, summarize, or describe a specific…
Build, modify, audit, repair, optimize, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates,…
Analyze production Agentforce agent behavior using session traces and Data Cloud, and manage Agent Health Monitoring (AHM)…
Use to design an AI agent persona — identity, voice, tone, behavioral style, guardrails — and encode it into Agent Script (.agent…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.