agentforce-architectur…
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows,…
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,
$ npx -y skills add forcedotcom/sf-skills --skill agentforce-persona-generate --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/agentforce-persona-generateContext preview
The summary Claude sees to decide when to auto-load this skill.
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,
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 a curated collection of Salesforce agent skills for building applications.
Repo: forcedotcom/sf-skills
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows,…
Use this skill to Upgrade Einstein Bots into Agentforce agents end-to-end in a single pass,…
Data Cloud 360° view of a single Agentforce session. TRIGGER when user asks to trace,…
Build, modify, audit, repair, optimize, debug, and deploy agents with Agentforce Agent…
Analyze production Agentforce agent behavior using session traces and Data Cloud, and manage…
Write, run, and analyze structured test suites for Agentforce agents — functional AND…