commerce-b2b-open-code…
Integrate Salesforce B2B Commerce open source components from GitHub into B2B Commerce stores. Use when users mention \"integrate open code components\",…
Get agentic setup prompt categories from a connected Salesforce org using the Connect API via sf api request rest. Use this skill to call GET /services/data/vXX.0/agenticsetup/categories and return the list of prompt categories, optionally with their nested prompts using
$ npx -y skills add forcedotcom/afv-library --skill platform-agenticsetup-categories-get --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/platform-agenticsetup-categories-getContext preview
The summary Claude sees to decide when to auto-load this skill.
Get agentic setup prompt categories from a connected Salesforce org using the Connect API via sf api request rest. Use this skill to call GET /services/data/vXX.0/agenticsetup/categories and return the list of prompt categories, optionally with their nested prompts using
name: platform-agenticsetup-categories-get
description: "Get agentic setup prompt categories from a connected Salesforce org using the Connect API via sf api request rest. Use this skill to call GET /services/data/vXX.0/agenticsetup/categories and return the list of prompt categories, optionally with their nested prompts using fetchPrompts=true. TRIGGER when: user asks to get, fetch, retrieve, list, or show agentic setup categories, prompt categories, setup copilot categories, prompt library categories, available setup prompts, Agentforce prompt library, copilot prompts, or calls the agenticsetup categories Connect REST API. DO NOT TRIGGER when: user wants to create new categories, work with non-categories endpoints, or generate OpenAPI specs."
allowed-tools: Bash Read
metadata:
version: "1.1"
domains: ["Platform", "Agentforce"]
minApiVersion: "67.0"
cliTools:
- tool: ["sf"]
semver: ">=2.0.0"Get prompt categories from the Agentic Setup Categories Connect API on a connected Salesforce org.
**In scope:**
**Out of scope — delegate elsewhere:**
---
The agent needs:
---
sf org display --json
Confirm the org is authenticated and extract the instance URL. If no default org is set, ask the user which org to target with `--target-org`.
**Basic call (categories only):**
sf api request rest /services/data/v67.0/agenticsetup/categories --method GET
**With nested prompts:**
sf api request rest "/services/data/v67.0/agenticsetup/categories?fetchPrompts=true" --method GET
The API returns a JSON object with a `categories` array. Each category has `name`, `label`, and `prompts` fields. See `references/api-response-schema.md` for the full response structure and examples for both `fetchPrompts=true` and `fetchPrompts=false`.
Present the results clearly:
| Error | Meaning | Action | |-------|---------|--------| | Success (exit 0) | 200 OK | Parse and display results | | `FUNCTIONALITY_NOT_ENABLED` | Feature not enabled for this org/user | Tell user the Agentic Setup Categories feature needs to be enabled — check Setup > Einstein/Agentforce | | `INVALID_SESSION_ID` | Session expired | Re-authenticate with `sf org login` | | `NOT_FOUND` | Endpoint not found | API version too old or feature not deployed to this org |
---
| Rule | Rationale | |------|-----------| | Always use `sf api request rest` — never curl or raw HTTP | curl bypasses `~/.sfdx` session tokens and requires manual Authorization headers, making it brittle | | NEVER use SOQL queries | Categories are NOT in standard objects — only available via this Connect REST API | | NEVER generate files (LWC, Apex, XML) | This is a data-fetching task, not a code generation task | | Default to v67.0 unless user specifies | This is the min-version where the endpoint was introduced | | Don't pass fetchPrompts unless asked | Reduces payload size; prompts can be large | | Categories are sorted by label | The API returns them alphabetically — don't re-sort | | Prompts are sorted by text | Within each category, prompts come alphabetically |
---
When finishing, present:
1. **Number of categories** returned 2. **Category list** — name and label for each 3. **Prompts** (if requested) — nested under their category 4. **Any errors** encountered with suggested fixes
---
| File | When to read | |------|--------------| | `references/api-response-schema.md` | When you need to understand the full response structure and field descriptions |
This repository provides a curated collection of Salesforce agent skills for building applications.
Repo: forcedotcom/afv-library
Integrate Salesforce B2B Commerce open source components from GitHub into B2B Commerce stores. Use when users mention \"integrate open code components\",…
Replace OOTB (out-of-the-box) B2B Commerce components with open source equivalents in site metadata content.json files, or look up the equivalent open code…
Use this skill to diagnose and resolve what blocks a DevOps Center promotion of a work item's feature branch: Git merge conflicts and deployment failures.…
Use this skill to manage the full lifecycle of a DevOps Center pipeline — list all pipelines, get a single pipeline's details, create a new pipeline linked to…
Analyzes DevOps Center test failures and Code Analyzer violations in plain language — failure category, offending file/class/method/line, rule violated, fix…
Configures DevOps Center pipeline testing infrastructure: enables a test provider so its suites become available, re-syncs a configured provider to pull in new…