Back to Skills

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 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 catego

751stars276forksUpdated 7/24/2026

Security Assessment

Safe(95/100)

Detected risks:

Executes read-only CLI commands(Runs Salesforce CLI (sf) commands via Bash, limited to read-only GET requests and org display)
Security Score95/100

About platform-agentsetup-categories-fetch

platform-agentsetup-categories-fetch fetches Agentic Setup prompt categories from a connected Salesforce org through the Connect API. It calls GET /services/data/{apiVersion}/agenticsetup/categories via the Salesforce CLI and returns the list of prompt categories, optionally including their nested prompts when fetchPrompts=true is supplied.

The skill is deliberately read-only and narrow in scope: it verifies org connectivity with sf org display, issues the categories request with sf api request rest, parses the JSON response into a clear list of category names, labels, and prompts, and maps common errors (feature-not-enabled 403s, expired sessions, not-found) to actionable guidance. It intentionally excludes creating or modifying categories, org authentication setup, and OpenAPI generation, delegating those to other flows.

It targets Salesforce developers and admins working with Agentforce / setup copilot prompt libraries who need to inspect available prompt categories on an already-authenticated org, using the CLI rather than raw HTTP so that session tokens are handled correctly.

FAQ

What endpoint does it call?

GET /services/data/{apiVersion}/agenticsetup/categories on a connected Salesforce org, optionally with the fetchPrompts query parameter to include nested prompts.

Can it create or edit prompt categories?

No. The skill is read-only by design; creating or modifying categories is out of scope, as is org authentication setup and OpenAPI generation.

What are the prerequisites?

An org already authenticated with sf org login and the Salesforce CLI available. It uses sf api request rest rather than curl so that ~/.sfdx session tokens are applied automatically.

What happens if the feature isn't enabled?

A FUNCTIONALITY_NOT_ENABLED / 403 error is surfaced with a hint to enable the Agentic Setup Categories feature under Setup > Einstein/Agentforce.

All Files

2 files
references/api-response-schema.md3.0 KB
View
SKILL.md4.4 KB
View

Install platform-agentsetup-categories-fetch

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill