/platform-agentsetup-categories-fetch
Fetch agentic setup prompt categories from a connected Salesforce org using the Connect API. Use this skill to call GET /agenticsetup/categories and return the list of prompt categories, optionally with their nested prompts. TRIGGER when: user asks to get, fetch, list, or show
$ npx -y skills add forcedotcom/sf-skills --skill platform-agentsetup-categories-fetch --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/platform-agentsetup-categories-fetch
Context preview
The summary Claude sees to decide when to auto-load this skill.
Fetch agentic setup prompt categories from a connected Salesforce org using the Connect API. Use this skill to call GET /agenticsetup/categories and return the list of prompt categories, optionally with their nested prompts. TRIGGER when: user asks to get, fetch, list, or show
SKILL.md
platform-agentsetup-categories-fetch.SKILL.mdname: platform-agentsetup-categories-fetch
description: "Fetch agentic setup prompt categories from a connected Salesforce org using the Connect API. Use this skill to call GET /agenticsetup/categories and return the list of prompt categories, optionally with their nested prompts. TRIGGER when: user asks to get, fetch, list, or show agentic setup categories, prompt categories, setup copilot categories, prompt library categories, available setup prompts, Agentforce prompt library, or copilot prompts. DO NOT TRIGGER when: user wants to create new categories, work with non-categories endpoints, or generate OpenAPI specs."
allowed-tools: Bash Read
metadata:
cliTools:
- tool: ["sf"]
semver: ">=2.0.0"
version: "1.0"
minApiVersion: "67.0"platform-agentsetup-categories-fetch
Fetch prompt categories from the Agentic Setup Categories Connect API on a connected Salesforce org.
Scope
**In scope:**
- Calling `GET /services/data/{apiVersion}/agenticsetup/categories` via SF CLI
- Passing the `fetchPrompts` query parameter to include nested prompts
- Parsing and presenting the JSON response (categories, labels, prompts)
- Handling errors (403 when feature is disabled, auth failures)
**Out of scope — delegate elsewhere:**
- Creating or modifying prompt categories → not supported via this API (read-only)
- Org authentication setup → use `sf org login` separately
- Permission set assignment → assigning-permission-set
---
Required Inputs
The agent needs:
- A connected org (already authenticated via `sf org login`)
- Optionally: whether to include nested prompts (`fetchPrompts=true`)
- Optionally: target API version (default: v67.0). Replace `v67.0` in the URL with the user-specified version if provided.
---
Workflow
1. Verify org connectivity
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`.
2. Call the Categories API
**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
3. Parse and present the response
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:
- List categories with their name and label
- If `fetchPrompts=true` was used, show nested prompts under each category
- Note any categories with empty `prompts` arrays (means no prompts exist for that category)
4. Handle errors
| 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 |
---
Rules / Constraints
| 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 |
---
Output Expectations
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
---
Reference File Index
| File | When to read | |------|--------------| | `references/api-response-schema.md` | When you need to understand the full response structure and field descriptions |
Read more
name: platform-agentsetup-categories-fetch
description: "Fetch agentic setup prompt categories from a connected Salesforce org using the Connect API. Use this skill to call GET /agenticsetup/categories and return the list of prompt categories, optionally with their nested prompts. TRIGGER when: user asks to get, fetch, list, or show agentic setup categories, prompt categories, setup copilot categories, prompt library categories, available setup prompts, Agentforce prompt library, or copilot prompts. DO NOT TRIGGER when: user wants to create new categories, work with non-categories endpoints, or generate OpenAPI specs."
allowed-tools: Bash Read
metadata:
cliTools:
- tool: ["sf"]
semver: ">=2.0.0"
version: "1.0"
minApiVersion: "67.0"platform-agentsetup-categories-fetch
Fetch prompt categories from the Agentic Setup Categories Connect API on a connected Salesforce org.
Scope
**In scope:**
- Calling `GET /services/data/{apiVersion}/agenticsetup/categories` via SF CLI
- Passing the `fetchPrompts` query parameter to include nested prompts
- Parsing and presenting the JSON response (categories, labels, prompts)
- Handling errors (403 when feature is disabled, auth failures)
**Out of scope — delegate elsewhere:**
- Creating or modifying prompt categories → not supported via this API (read-only)
- Org authentication setup → use `sf org login` separately
- Permission set assignment → assigning-permission-set
---
Required Inputs
The agent needs:
- A connected org (already authenticated via `sf org login`)
- Optionally: whether to include nested prompts (`fetchPrompts=true`)
- Optionally: target API version (default: v67.0). Replace `v67.0` in the URL with the user-specified version if provided.
---
Workflow
1. Verify org connectivity
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`.
2. Call the Categories API
**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
3. Parse and present the response
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:
- List categories with their name and label
- If `fetchPrompts=true` was used, show nested prompts under each category
- Note any categories with empty `prompts` arrays (means no prompts exist for that category)
4. Handle errors
| 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 |
---
Rules / Constraints
| 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 |
---
Output Expectations
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
---
Reference File Index
| 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/sf-skills
Other skills on sf-skills.
- /agentforce-generate
Build, modify, optimize, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates, modifies, optimizes, or asks about .agent files or aiAuthoringBundle metadata; changes agent behavior, responses, or conversation logic; designs agent actions, tools,
Open skill - /agentforce-observe
Analyze production Agentforce agent behavior using session traces and Data Cloud. TRIGGER when: user queries STDM session data or Data Cloud trace records; investigates production agent failures, regressions, or performance issues; asks about session traces, conversation logs,
Open skill - /agentforce-test
Write, run, and analyze structured test suites for Agentforce agents — functional AND security. TRIGGER when: user writes or modifies test spec YAML (AiEvaluationDefinition); runs sf agent test create, run, run-eval, or results commands; asks about test coverage strategy, metric
Open skill - /automation-flow-generate
Generate Salesforce Flows using the MCP tool execute_metadata_action. Use when the user asks to create, build, or generate a flow — including Screen, Autolaunched, Record-Triggered (before/after-save), Scheduled. Also trigger for flow-like requests such as \"when a record is
Open skill - /dx-code-analyzer-configure
Set up, configure, and troubleshoot Salesforce Code Analyzer for any project. Handles installation, prerequisite checks, diagnosing broken setups, creating and editing code-analyzer.yml overrides, engine-specific settings, ignore patterns, severity overrides, and CI/CD pipeline
Open skill - /dx-code-analyzer-custom-rule-create
Create custom Code Analyzer rules for Regex (pattern matching), PMD (XPath/AST for Apex and metadata XML), and ESLint (LWC/JavaScript/TypeScript). Use when users want to enforce coding standards, ban patterns, detect hardcoded values, govern metadata, or add rules not in the
Open skill

