agentforce-architectur…
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA…
Use to design an AI agent persona — identity, voice, tone, behavioral style, guardrails — and encode it into Agent Script (.agent files) or Agentforce Builder field values. Runs four sequenced phases (DRAFT, REFINE, SCORE, ENCODE) plus five spokes (NAME, FILL OUT, ADJUST,
Claude Code
$ npx -y skills add forcedotcom/sf-skills --skill agentforce-persona-generate --agent claude-code
Codex
$ npx skills add forcedotcom/sf-skills --skill agentforce-persona-generate -a codex -y
Cursor
$ npx skills add forcedotcom/sf-skills --skill agentforce-persona-generate -a cursor -y
Gemini CLI
$ npx skills add forcedotcom/sf-skills --skill agentforce-persona-generate -a gemini-cli -y
GitHub Copilot
$ npx skills add forcedotcom/sf-skills --skill agentforce-persona-generate -a github-copilot -y
OpenCode
$ npx skills add forcedotcom/sf-skills --skill agentforce-persona-generate -a opencode -y
Windsurf
$ npx skills add forcedotcom/sf-skills --skill agentforce-persona-generate -a windsurf -y
name: agentforce-persona-generate
description: "Use to design an AI agent persona — identity, voice, tone, behavioral style, guardrails — and encode it into Agent Script (.agent files) or Agentforce Builder field values. Runs four sequenced phases (DRAFT, REFINE, SCORE, ENCODE) plus five spokes (NAME, FILL OUT, ADJUST, CHECKLIST, WORKSHOP). Supports greenfield (brand input to a starter .agent file) and brownfield (audit an existing .agent file and re-encode persona fields only), with a 100-point evaluation rubric. Trigger when a user designs a new agent persona, retrofits persona consistency, translates brand guidelines into agent voice, defines tone/register/formality/warmth/humor/personification, encodes a persona for Agent Script or Agentforce Builder, or scores or audits an existing .agent file for persona quality. Do not trigger for building Agentforce actions/metadata, authoring Agent Script flow control without persona work, or testing agent conversations."
metadata:
relatedSkills:
- "agentforce-generate"
version: "3.0"
domains: ["Agentforce"]
cliTools:
- tool: ["python3"]
semver: ">=3.10.0"
allowed-tools: Read Write AskUserQuestion Glob GrepThis skill designs an AI agent persona for Salesforce Agentforce. It walks through four sequenced phases (DRAFT → REFINE → SCORE → ENCODE) and offers five spokes (NAME, FILL OUT, ADJUST, CHECKLIST, WORKSHOP) you can run any time after DRAFT.
**What it produces:**
**Session resumption:** If you stop mid-phase, your progress is preserved in the conversation and can be resumed.
**Scope boundary:** This skill defines WHO the agent is. It does not define dialog flows, subagents, actions, routing, or variables — those are agent design (use `agentforce-generate`). The encoding output for Use Case A produces an `.agent` skeleton with placeholders for those structures; the user fills them in.
Read `references/persona-framework.md` for the full framework. It defines:
Attributes are ordered by dependency. Identity → Personification → Register → Voice → Tone → Delivery → Chatting Style. Constraint notes recommend natural pairings; any combination is valid.
Attribution for the external sources this skill draws on is in `references/attributions.md`.
---
**Before anything else,** ask the user which lane they're on. The two lanes diverge significantly downstream.
> Welcome. Two ways to use this skill: > > 1. **Starting fresh** — design a persona from scratch using brand input, audience details, and channel. **Greenfield.** > 2. **Auditing an existing agent** — review and improve a `.agent` file you already have. **Brownfield.** > > Which one?
Set a `mode` flag in state: `greenfield` or `brownfield`.
**Brownfield triggers:**
**Greenfield triggers:**
---
**Phases** are sequenced — order matters. **Spokes** orbit the hub, available any time after DRAFT, in any order. The hub is presented after every phase or spoke exit.
SEQUENCED PHASES (linear pipeline):
DRAFT → REFINE → SCORE → ENCODE
↑
(loop back via phases or spokes if SCORE finds gaps)
SPOKES (radiate from the HUB; any time after DRAFT):
⊙ NAME — pick or confirm the agent's name
⊙ FILL OUT — phrase book, never-say, lexicon, immutable content
⊙ ADJUST — sThis 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)…
Write, run, and analyze structured test suites for Agentforce agents — functional AND security. TRIGGER when: user writes or…
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.