Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add dylandersen/agentforce-planner-bundle-builder-skill
Or install specific skill: npx add-skill https://github.com/dylandersen/agentforce-planner-bundle-builder-skill
# Description
Comprehensive guide for building, configuring, and deploying Legacy Agentforce GenAiPlannerBundles. Use when creating Agentforce agents, working with GenAiPlannerBundles, GenAiPlugins, or GenAiFunctions, understanding Agentforce architecture, configuring topics/actions/schemas, deploying planner bundles, creating Service or Employee agents, or troubleshooting bundle deployment issues.
# SKILL.md
name: Agentforce Planner Bundle Builder
description: Comprehensive guide for building, configuring, and deploying Legacy Agentforce GenAiPlannerBundles. Use when creating Agentforce agents, working with GenAiPlannerBundles, GenAiPlugins, or GenAiFunctions, understanding Agentforce architecture, configuring topics/actions/schemas, deploying planner bundles, creating Service or Employee agents, or troubleshooting bundle deployment issues.
Agentforce Planner Bundle Builder
This skill provides comprehensive knowledge for building Agentforce Planner Bundles - the core configuration files that define AI agent capabilities, behavior, and structure in Salesforce Agentforce.
Quick Reference
Architecture: Three-tier system
1. GenAiFunctions → Define reusable actions (Flows/Apex/standard actions)
2. GenAiPlugins → Define reusable topics (reference functions)
3. GenAiPlannerBundles → Create agents (reference plugins, create local copies)
Deployment Order (CRITICAL):
1. GenAiFunctions (no dependencies)
2. GenAiPlugins (depends on functions)
3. GenAiPlannerBundles (depends on plugins and functions)
Agent Types:
- Service Agents: Customer-facing (CustomerWebClient surface, SvcCopilotTmpl__ prefix)
- Employee Agents: Internal-facing (Messaging only, EmployeeCopilot__ prefix)
Core Workflow
Building an Agent
- Create GenAiFunction: Define action with invocation target and schemas
- Create GenAiPlugin: Define topic with scope, instructions, and function references
- Create GenAiPlannerBundle: Link plugins, create local copies with unique IDs, configure surfaces
Key Concepts
- Local Copies: Bundles create local copies of plugins/functions with unique IDs
- Source Attribute: Links bundle copies back to original plugin/function names
- Attribute Mappings: Share data between actions via planner variables
- Rule Expressions: Conditionally enable topics/actions based on context
- Schemas: Define input/output structure with Lightning types and PII flags
Detailed Reference
For comprehensive information, see:
- Planner Bundle Guide: Complete reference covering architecture, components, patterns, best practices, deployment, and troubleshooting
Common Tasks
Creating a New Agent
- Identify agent type (Service vs Employee)
- Create required GenAiFunctions
- Create GenAiPlugins that reference functions
- Create GenAiPlannerBundle that links plugins
- Configure surfaces, mappings, and rules
- Deploy in correct order
Adding a Topic to Existing Agent
- Create GenAiFunction(s) for topic actions
- Create GenAiPlugin referencing functions
- Add
localTopicLinksto bundle - Create
localTopicsentry (copy plugin, add unique ID) - Create
localActionsentries (copy functions, add unique IDs) - Link actions to topic via
localActionLinks - Copy schemas to
localActions/{TopicName}_{ID}/{ActionName}_{ID}/
Schema Design
- Use Lightning types:
lightning__textType,lightning__booleanType,lightning__dateType,lightning__numberType - Mark PII fields:
lightning:isPII: true - Mark user input:
copilotAction:isUserInput: true - Set
unevaluatedProperties: falsefor strict validation
Troubleshooting
Common issues:
- Missing invocation targets → Ensure Flow/Apex exists
- Schema mismatches → Verify schema matches Flow/Apex parameters
- Deployment order errors → Deploy Functions → Plugins → Bundles
- Missing source references → Ensure source matches plugin/function developerName
Best Practices
- Topics: Group related actions, clear scope, logical separation
- Instructions: Be specific, avoid hardcoding, trust components
- Schemas: Mark PII, use user input flags, clear descriptions
- Actions: Require confirmation for critical actions, show progress for long operations
- Variables: Consistent naming, share data via attribute mappings
- Rules: Keep simple, document purpose, test thoroughly
Templates
Ready-to-use templates are available in assets/templates/:
- genAiFunction-template.xml - GenAiFunction metadata template
- genAiPlugin-template.xml - GenAiPlugin metadata template
- genAiPlannerBundle-template.xml - Complete bundle template with all components
- schema-input-template.json - Input schema template with common patterns
- schema-output-template.json - Output schema template
- knowledge-search-action-template.xml - Knowledge search action example
Use these templates as starting points when creating new components.
When to Load Reference Guide
Load references/planner-bundle-guide.md when you need:
- Detailed XML structure examples
- Complete component reference
- Advanced patterns and use cases
- Deployment troubleshooting
- Agent type determination logic
- Complete workflow examples
# README.md
Agentforce Planner Bundle Builder Skill
A comprehensive skill for building, configuring, and deploying Agentforce GenAiPlannerBundles in Salesforce. This skill provides specialized knowledge, templates, and best practices for creating AI agents using the Agentforce platform.
What This Skill Provides
- Specialized workflows for building Agentforce agents from scratch
- Domain expertise on GenAiPlannerBundles, GenAiPlugins, and GenAiFunctions architecture
- Bundled resources including XML/JSON templates and comprehensive reference guides
- Best practices for schema design, deployment, and troubleshooting
Installation
Install this skill using the Skills CLI:
npx skills add https://github.com/dylandersen/agentforce-planner-bundle-builder-skill
Or add it directly in Cursor/Claude Code by referencing this repository.
Quick Start
This skill activates when you ask Claude to:
- Create Agentforce agents or GenAiPlannerBundles
- Work with GenAiPlugins or GenAiFunctions
- Understand Agentforce architecture
- Configure topics, actions, or schemas
- Deploy planner bundles
- Troubleshoot bundle deployment issues
Skill Structure
agentforce-planner-bundle-builder-skill/
├── SKILL.md # Main skill instructions and quick reference
├── references/
│ └── planner-bundle-guide.md # Comprehensive 1000+ line reference guide
└── assets/
└── templates/ # Ready-to-use XML and JSON templates
├── genAiFunction-template.xml
├── genAiPlugin-template.xml
├── genAiPlannerBundle-template.xml
├── schema-input-template.json
├── schema-output-template.json
└── knowledge-search-action-template.xml
Key Features
Architecture Understanding
- Three-tier system: GenAiFunctions → GenAiPlugins → GenAiPlannerBundles
- Local copy pattern with unique IDs
- Source attribute traceability
Agent Types
- Service Agents: Customer-facing (
CustomerWebClientsurface,SvcCopilotTmpl__prefix) - Employee Agents: Internal-facing (
Messagingonly,EmployeeCopilot__prefix)
Deployment Workflow
- Deploy GenAiFunctions (no dependencies)
- Deploy GenAiPlugins (depends on functions)
- Deploy GenAiPlannerBundles (depends on plugins and functions)
Templates Included
- GenAiFunction metadata templates
- GenAiPlugin metadata templates
- Complete GenAiPlannerBundle templates
- Input/output schema templates
- Knowledge search action examples
Usage Examples
Creating a new agent:
"Create an Agentforce Service Agent for customer support with case management capabilities"
Adding a topic:
"Add an Account Intelligence topic to my existing Agentforce agent"
Troubleshooting:
"Why is my GenAiPlannerBundle deployment failing?"
Schema design:
"Help me create a schema for a case creation action with PII fields"
Reference Guide
The skill includes a comprehensive reference guide (references/planner-bundle-guide.md) covering:
- Complete component reference (topics, actions, schemas, mappings, rules)
- Common patterns and use cases
- Deployment considerations and troubleshooting
- Agent type determination
- Step-by-step workflow examples
Claude automatically loads this reference when detailed information is needed.
Best Practices
The skill follows these principles:
- Progressive disclosure: Metadata → SKILL.md → References (loaded as needed)
- Concise core: Essential information in SKILL.md, details in references
- Reusable assets: Templates for common patterns
- Clear workflows: Step-by-step guidance for common tasks
Contributing
This skill is designed following the Skill Creator guidelines:
- Concise core instructions
- Detailed references loaded on-demand
- Reusable templates and assets
- Clear triggering mechanisms
License
This skill is provided as-is for use with Claude and Agentforce development.
Related Resources
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.