
Sf Ai Agentforce
Author, configure, and deploy Salesforce Agentforce agents using current GenAiPromptTemplate and Agent Script metadata from your AI coding agent.
Overview
sf-ai-agentforce is an agent skill for the Build phase that helps you configure and deploy Salesforce Agentforce agents with GenAiPromptTemplate, Agent Script, and current GenAI metadata patterns.
Install
npx skills add https://github.com/jaganpro/sf-skills --skill sf-ai-agentforceWhat is this skill?
- Aligns guidance with modern GenAiPromptTemplate and Prompt Builder metadata instead of legacy PromptTemplate flows
- Covers Agent Script syntax, recipes, and Builder-oriented sequencing for enterprise agents
- References Agentforce DX developer workflows and official agents-metadata deployment types
- Points to community Agent Script guides and Gearset-style GenAI metadata deployment practices
- MIT-licensed skill maintained with contributions on template structure and input-limit guidance
Adoption & trust: 1.2k installs on skills.sh; 418 GitHub stars; 3/3 security scanners passed (skills.sh audits).
What problem does it solve?
You need to ship an Agentforce agent on Salesforce but official docs span Agent Script, Prompt Builder, DX, and metadata types with easy-to-miss breaking changes from legacy prompt APIs.
Who is it for?
Indie consultants or solo developers building Agentforce agents inside Salesforce orgs who want AI-assisted steps grounded in GenAiPromptTemplate and metadata-first deployment.
Skip if: Builders shipping generic OpenAI or Claude agents outside Salesforce, or teams that only need consumer CRM usage with no custom agent metadata.
When should I use this skill?
You are authoring or deploying Salesforce Agentforce agents, Prompt Builder GenAiPromptTemplate metadata, or Agent Script packages in a DX workflow.
What do I get? / Deliverables
You get a consistent authoring and deployment mental model for Agentforce so prompts, scripts, and metadata align with current Salesforce GenAI guidance before you push to an org.
- Agent Script and prompt metadata aligned to current Salesforce docs
- Deployment-ready GenAI metadata package
- Builder-oriented authoring checklist for your agent
Recommended Skills
Journey fit
Agentforce work happens while you are building product capabilities on Salesforce—wiring prompts, scripts, and deployable GenAI metadata—not during early idea research or post-launch growth. The skill centers on agent authoring, Prompt Builder patterns, and Agentforce DX metadata—the core agent-tooling shelf for builders shipping Einstein/GenAI agents inside CRM orgs.
How it compares
Use instead of guessing Prompt Builder fields from outdated PromptTemplate blog posts when the target runtime is Salesforce Agentforce, not a custom LangChain stack.
Common Questions / FAQ
Who is sf-ai-agentforce for?
It is for solo builders and small teams implementing Salesforce Agentforce—developers and architects who author Agent Script, Prompt Builder templates, and deployable GenAI metadata through DX or release pipelines.
When should I use sf-ai-agentforce?
Use it in Build when you are wiring Einstein/GenAI agents in a Salesforce org, during integrations sub-work when connecting flows and tools to agents, and whenever you are refreshing prompt metadata after platform doc changes.
Is sf-ai-agentforce safe to install?
Review the Security Audits panel on this Prism page before installing; the skill references external docs and deployment practices but you should vet any org credentials, connected apps, and metadata pulls your agent performs locally.
SKILL.md
READMESKILL.md - Sf Ai Agentforce
# Credits ## sf-agentforce Skill Created by [Jag Valaiyapathy](https://github.com/Jaganpro) ## Authors & Contributors ### [August Krys](https://github.com/not2technical) Key contributions: - corrections that drove the shift from legacy PromptTemplate guidance to current `GenAiPromptTemplate` guidance - updates to Prompt Builder metadata direction, including modern template structure and input-limit guidance - feedback on Builder-oriented agent authoring and supporting metadata sequencing ## References & Inspiration ### Official Salesforce Documentation - [Agent Script Guide](https://developer.salesforce.com/docs/einstein/genai/guide/agent-script.html) - [Agent Script Recipes](https://developer.salesforce.com/sample-apps/agent-script-recipes/getting-started/overview) - [Agentforce DX Developer Guide](https://developer.salesforce.com/docs/einstein/genai/guide/agent-dx-nga-author-agent.html) - [Agentforce Metadata Types](https://developer.salesforce.com/docs/einstein/genai/references/agents-metadata-tooling/agents-metadata.html) ### Community Resources - [Agent Script Language Guide](https://agentforce.guide/) - Community syntax reference - [Gearset GenAI Deployment Guide](https://docs.gearset.com/en/articles/10406855-how-to-deploy-agentforce-genai-metadata-types) ## License MIT License - See [LICENSE](LICENSE) MIT License Copyright (c) 2024-2025 Jag Valaiyapathy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # sf-ai-agentforce Standard Agentforce platform skill for **Setup UI / Agent Builder** work: Builder-managed topics and actions, `GenAiFunction` / `GenAiPlugin`, **Prompt Builder templates stored as `GenAiPromptTemplate` metadata**, Einstein Models API, and custom Lightning types. > **For code-first Agent Script DSL development**, use [sf-ai-agentscript](../sf-ai-agentscript/). > > If the work ends in a `.agent` file or authoring bundle, use [sf-ai-agentscript](../sf-ai-agentscript/). ## What This Skill Covers | Area | Description | |------|-------------| | **Agent Builder** | Creating and configuring agents via Setup UI / Agentforce Builder | | **GenAiFunction** | Metadata XML for registering Flow, Apex, and Prompt Builder actions | | **GenAiPlugin** | Grouping multiple GenAiFunctions into reusable action sets | | **GenAiPromptTemplate** | Current Metadata API type for Prompt Builder templates | | **Models API** | Native LLM access in Apex via `aiplatform.ModelsAPI` | | **Custom Lightning Types** | `LightningTypeBundle` for custom agent action UIs | ## What This Skill Does NOT Cover | Area | Use Instead | |------|-------------| | Agent Script DSL (`.agent` files) | [sf-ai-agentscript](../sf-ai-agentscript/) | | Builder Script / Canvas work that results in `.agent` authoring bundles | [sf-ai-agentscript](../sf-ai-agentscript/) | | Agent testing & coverage | [sf-ai-agentforce-testing](../sf-ai-agentforce-testing/) | | Deployment & publishing | [sf-deploy](../sf-deploy/) | ## Requirements | Requirement | Value | |-------------|-------| | API Vers