sf-ai-agentforce

Agentforce platform agent building via Setup UI. TRIGGER when: user maintains or configures agents via the legacy Setup UI / Agent Builder path, creates topics/actions, writes PromptTemplates, or touches .genAiFunction/.genAiPlugin/.promptTemplate metadata XML files. DO NOT TRIGGER when: Agent Script DSL .agent files (use sf-ai-agentscript), agent testing (use sf-ai-agentforce-testing), or persona design (use sf-ai-agentforce-persona).

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "sf-ai-agentforce" with this command: npx skills add jaganpro/sf-skills/jaganpro-sf-skills-sf-ai-agentforce

sf-ai-agentforce: Standard Agentforce Platform Development

Use this skill for the Setup UI / Agent Builder path: declarative topics, Builder-managed actions, GenAiFunction / GenAiPlugin metadata, PromptTemplate integration, Models API usage from Apex, and custom Lightning types.

For new code-first agent development, prefer sf-ai-agentscript.

When This Skill Owns the Task

Use sf-ai-agentforce when the user is:

  • maintaining existing Builder-based agents
  • working in Setup → Agentforce → Agents
  • creating or fixing GenAiFunction, GenAiPlugin, or PromptTemplate metadata
  • wiring Builder topics to Flow / Apex / Prompt Template actions
  • using Models API or LightningTypeBundle in the context of Builder-based agents

Do not use it for:


Required Context to Gather First

Ask for or infer:

  • whether this is a Builder / Setup UI project or a code-first Agent Script project
  • agent type: Service Agent or Employee Agent
  • whether the work targets topics, actions, PromptTemplates, Models API, or custom Lightning types
  • what supporting Flow / Apex / metadata dependencies already exist
  • whether the user needs authoring help, publish help, or troubleshooting

Two Agentforce Paths

PathSkillBest fit
Setup UI / Agent Buildersf-ai-agentforceDeclarative maintenance, existing Builder agents, metadata-driven action registration
Agent Script DSLsf-ai-agentscriptCode-first .agent authoring, deterministic routing, version-controlled agent logic

If the user is starting from scratch and wants strong control over flow/state, route to Agent Script.


Recommended Workflow

Builder Workflow Summary

  1. Confirm this is a Builder / Setup UI project
  2. Pick Service Agent vs Employee Agent
  3. Define topics with strong descriptions, scope, and instructions
  4. Prepare supporting actions (Flow, Apex, PromptTemplate)
  5. Configure inputs / outputs carefully
  6. Validate dependencies
  7. Publish, then activate

Expanded workflow: references/builder-workflow.md


Key Platform Rules

Topic quality matters

Topic descriptions are routing instructions for the planner. They must be:

  • specific
  • scenario-based
  • non-overlapping with sibling topics

Actions are wrappers around real targets

Target typeTypical useRegistered via
Flowsafest default for Builder actionsGenAiFunction
Apexcomplex business logic via @InvocableMethodGenAiFunction
Prompt Templategenerated summaries / drafts / recommendationsGenAiFunction

Supporting metadata deploys first

Before publishing the agent itself, deploy the supporting stack:

  1. metadata / fields if needed
  2. Apex if needed
  3. Flows if needed
  4. PromptTemplate / GenAiFunction / GenAiPlugin
  5. then publish the agent

Publish does not activate

After publish, run sf agent activate separately.


Metadata Guidance

GenAiFunction

Use when registering a single callable action. Validate:

  • target exists
  • target is active / deployable
  • input names match the target contract
  • output names match the target contract
  • capability text clearly says when the action should be used

GenAiPlugin

Use when grouping related functions into one logical package.

PromptTemplate

Use for generated content, not deterministic business rules.

Models API

Use when the solution belongs in Apex-driven AI orchestration rather than Builder-only actions.

Custom Lightning Types

Use when the action needs richer structured input or output presentation.

Expanded reference: references/metadata-reference.md


Cross-Skill Integration

Recommended Orchestration Order

sf-metadata → sf-apex → sf-flow → sf-ai-agentforce → sf-deploy

Required delegations

RequirementDelegate toWhy
Create / fix Flowssf-flowAction target creation and Flow validation
Create / fix Apex actionssf-apex@InvocableMethod and Apex correctness
Deploy / publishsf-deployDeployment orchestration
Test the agentsf-ai-agentforce-testingFormal test execution and assertions

High-Signal Failure Patterns

SymptomLikely causeRead next
Action not available in Buildertarget metadata missing or not deployedreferences/metadata-reference.md
Prompt output is poorPromptTemplate shape / bindings are weakreferences/prompt-templates.md
Apex AI logic times outModels API work placed in the wrong contextreferences/models-api.md
Rich input/output UI not renderingLightning type config or prerequisites are incompletereferences/custom-lightning-types.md
Agent publishes but is not usableforgot explicit activationreferences/cli-commands.md

Reference Map

Start here

Deep technical docs

Rubric

Cross-skill reads


Score Guide

ScoreMeaning
90+Ready to deploy
80–89Strong, minor cleanup only
70–79Review before deploy
60–69Needs work
< 60Block deployment

Full rubric: references/scoring-rubric.md

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

sf-apex

No summary provided by upstream source.

Repository SourceNeeds Review
General

sf-lwc

No summary provided by upstream source.

Repository SourceNeeds Review
General

sf-metadata

No summary provided by upstream source.

Repository SourceNeeds Review
General

sf-flow

No summary provided by upstream source.

Repository SourceNeeds Review