Customize Copilotforce skills and test them in a Salesforce sandbox
December 04, 2026
The Copilotforce skills are a good starting point, but you can’t open one and change how it works (yet). The Salesforce Headless 360 plugin now includes a handmade copy of all 39 skills, so you can edit them, add your own, and try the changes in a Salesforce sandbox before pushing to production.
This isn’t the official plugin. Microsoft and Salesforce haven’t published the official skill instructions, so I wrote each
SKILL.mdfrom the public skill names and descriptions. Thedescriptionvalues match the official ones verbatim. The package passes deep validation in a dev tenant, and the Salesforce server is in Beta.
Anatomy of a skill
Each skill is one Markdown file at appPackage/skills/<name>/SKILL.md. Here’s call-prep:
---
name: call-prep
description: Build a call brief from Salesforce meeting, account, opportunity, contact, and activity data plus email, documents, and Slack/Teams. Use before a customer meeting...
---
# Call Prep
## When to use this skill
- Before a customer meeting, asked to prepare on attendees, deal history, open threads, or discovery needs.
- For a rep's own one-on-one prep, use rep-context instead.
## How to do it
1. Call `discover` for Account, Opportunity, Contact, and Activity operations for the meeting's account/attendees.
2. Call `dispatch_readonly` to pull meeting-relevant Salesforce data.
3. If Outlook, Teams, or SharePoint sources are available, pull related email, chats, and documents for the same attendees/account.
4. Synthesize into a brief covering attendees, deal history, open threads, and discovery needs.
## What to watch for
- Objects: Account, Opportunity, Contact, Task, Event.
- Read-only.
The description in the front matter decides when Copilot picks the skill. The body decides what it does. Most skills follow the same pattern: call discover, read with dispatch_readonly, synthesize, and ask for confirmation before any write. The plugin has no tool definitions of its own, because they come from the live headless-360 server.
Customize or add a skill
- Edit an existing
SKILL.md, or copy a folder and rename it. - Set a clear
nameanddescription. Say when to use the skill and when to use a neighbor instead, ascall-prepdoes withrep-context. -
For a new skill, add it to
agentSkillsinappPackage/manifest.json:{ "folder": "skills/my-custom-skill" } - Bump
versioninmanifest.json. Copilot needs a new version to pick up a rebuilt package. -
Validate, package, and share:
wiqd plugin validate wiqd plugin provision --env dev wiqd plugin package --env dev wiqd plugin validate --mode deep --env dev wiqd plugin share --scope users --email <address>
Run package only after provision. If package or deep validation reports SALESFORCE_OAUTH_REFERENCE_ID missing, set it in the shell with $env:SALESFORCE_OAUTH_REFERENCE_ID = "<id>".
Five skills write data after confirmation: account-plan, assign-target-to-sdr, call-follow-up, log-activity, and schedule-meeting. Give any skill you write that changes data an explicit confirmation step, and list the objects it touches under “What to watch for”. dispatch can change CRM data or org configuration, so that step is your guardrail.
Point the plugin at a sandbox org
Production is the default. To target a sandbox or scratch org:
-
In
appPackage/manifest.json, changeagentConnectors[0].toolSource.remoteMcpServer.mcpServerUrlto the sandbox URL.sandboxis an inserted path segment. It doesn’t replaceplatform.https://api.salesforce.com/platform/mcp/v1/sandbox/platform/headless-360 -
Create an External Client App in the sandbox org and register a separate OAuth client in the Teams Developer Portal. Use the same settings as production, except for these values:
Field Sandbox value Base URL https://api.salesforce.com/platform/mcp/v1/sandboxAuthorization endpoint https://test.salesforce.com/services/oauth2/authorizeToken endpoint and Refresh endpoint https://test.salesforce.com/services/oauth2/tokenClient ID and Client secret The sandbox External Client App’s consumer key and secret -
Create a sandbox environment, set its registration ID, and provision to it:
wiqd plugin add environment --name sandbox --from dev wiqd plugin provision --env sandboxSet
SALESFORCE_OAUTH_REFERENCE_IDinenv/.env.sandbox.userbefore you provision, so the production and sandbox copies don’t share a connection. -
Bump
versioninmanifest.jsonbefore you package either copy.
Salesforce’s Headless 360 documentation confirms the sandbox server URL.
Known issues
| Symptom | Cause | What to do |
|---|---|---|
| Users sign in again after a few hours | The Microsoft OAuth token store doesn’t refresh these tokens, even though a direct refresh_token grant works on the Salesforce side. The JWT lifetime equals the Salesforce session timeout, 12 hours at most |
Expect a sign-in prompt when the access token expires |
| No dynamic client registration | Salesforce doesn’t publish a registration endpoint, and its hosted MCP 401 responses omit the WWW-Authenticate header |
Use the manual OAuth registration |
A soqlQuery call arrives with an empty query |
A hand-authored mcpToolDescription in the manifest caused it in an earlier version |
The manifest has none now. The appPackage/tools/*.json files are unused leftovers |
| Tools or behavior change | The server is in Beta | Recheck the connection after Salesforce releases |
Every call runs as the signed-in user, so object permissions, field-level security, and sharing rules apply, and actions appear under that user in the Salesforce audit trail.