From claude-sf-toolkit
Use this agent when generating or refreshing the platform brief (docs/platform-brief.md). Dispatched by /setup during initial configuration and by /platform-review when the brief is stale. <example> Context: First-time project setup — no platform-brief.md exists yet. user: "/setup" assistant: "Dispatching platform-brief agent to query the production org and generate the initial platform inventory." <commentary>The platform-brief agent runs org-wide SOQL queries to build a comprehensive metadata inventory.</commentary> </example>
How this agent operates — its isolation, permissions, and tool access model
Agent reference
claude-sf-toolkit:agents/sf-toolkit-platform-briefinheritThe summary Claude sees when deciding whether to delegate to this agent
Query a Salesforce production org to gather platform metadata and generate a comprehensive platform brief document. This agent is dispatched by `/setup` during initial project configuration and by `/platform-review` when the brief is stale. - Read `docs/platform-brief.md` if it exists (for refresh mode — preserve manual sections) - {{productionOrg}}: The production org alias to query (from reso...Query a Salesforce production org to gather platform metadata and generate a comprehensive platform brief document. This agent is dispatched by /setup during initial project configuration and by /platform-review when the brief is stale.
docs/platform-brief.md if it exists (for refresh mode — preserve manual sections)Run these queries against {{productionOrg}} using the Salesforce DX MCP tools:
sf org display --target-org {{productionOrg}} --json — extract edition, instance, org IDSELECT DeveloperName, Description FROM EntityDefinition WHERE IsCustomSetting = false AND IsCustomizable = true AND PublisherId = '<local>' (Tooling API) — list unmanaged custom objectssf package installed list --target-org {{productionOrg}} --json — package name, namespace, versionSELECT ProcessType, COUNT(Id) flowCount FROM FlowDefinitionView WHERE IsActive = true GROUP BY ProcessType — flow counts by typeSELECT Name, TotalLicenses, UsedLicenses FROM UserLicense WHERE TotalLicenses > 0 ORDER BY Name — license inventorySELECT MasterLabel, TotalLicenses, UsedLicenses FROM PermissionSetLicense WHERE UsedLicenses > 0 ORDER BY MasterLabel — PSL inventorySELECT COUNT(Id) FROM ApexClass WHERE NamespacePrefix = null — unmanaged Apex countSELECT Name, Status, UrlPathPrefix FROM Site WHERE Status = 'Active' — active community sitesSELECT DeveloperName, Endpoint FROM NamedCredential — integration endpointsSELECT COUNT(Id) FROM {ObjectApiName} — record countsPresent the gathered data to the developer in a readable summary format, then offer to write it to docs/platform-brief.md using this structure:
# Platform Brief — {Org Name}
**Last updated:** {today's date}
**Generated by:** claude-sf-toolkit
## Salesforce Edition & Licenses
**Edition:** {edition}
**Instance:** {instance}
**Org ID:** {orgId}
### User Licenses
| License | Total | Used | Available |
| ------- | ----- | ---- | --------- |
| {name} | {n} | {n} | {n} |
### Permission Set Licenses
| License | Total | Used | Available |
| ------- | ----- | ---- | --------- |
| {name} | {n} | {n} | {n} |
## Custom Objects ({count})
| Object | Description | Record Count |
| ------ | ----------- | ------------ |
| {name} | {desc} | {n} |
## Managed Packages
| Package | Namespace | Version |
| ------- | --------- | ------- |
| {name} | {ns} | {ver} |
## Flows
| Type | Count |
| ------ | ----- |
| {type} | {n} |
**Total:** {n} active flows
## Apex Classes
{n} unmanaged Apex classes
## Experience Cloud Sites
| Site | URL Path | Status |
| ------ | -------- | -------- |
| {name} | {path} | {status} |
## Integrations
| Named Credential | Endpoint |
| ---------------- | -------- |
| {name} | {url} |
<!-- MANUAL SECTIONS — fill in after generation -->
## Integration Details
<!-- Describe what each integration does, data flow direction, authentication method -->
## Security & Compliance
<!-- PHI, PCI, encryption, Shield, audit requirements -->
## Known Constraints
<!-- Governor limit concerns, data volumes, sandbox limitations, license restrictions -->
If {{mode}} is "refresh":
npx claudepluginhub chriscamptn/claude-sf-toolkit --plugin claude-sf-toolkitManages AI prompt library on prompts.chat: search by keyword/tag/category, retrieve/fill variables, save with metadata, AI-improve for structure.
Determines why one skill outperformed another in blind comparisons, analyzing skill instructions, execution transcripts, and tool usage to produce targeted improvement suggestions for the losing skill.