forcedotcom/sf-skills / plugins/builder/service-omni/skills/service-omni-supervisor-config-deploy
service-omni-supervisor-config-deploy
VerifiedUse to stand up a headless Omni-Channel Supervisor Configuration by deploying the classic OmniSupervisorConfig (parent plus supervisor-user and queue companions) in one atomic Metadata API deploy, idempotent via the deploy state. Requires active supervisor users, Omni base settings, and the monitored queues. Triggers: set up Omni Supervisor, configure the classic Supervisor Command Center. Do not use to create supervisor users, assign the ContactCenterSupervisor permission set, or deploy queues, service channels, or presence statuses.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.8 KB |
| assets/force-app/main/default/omniSupervisorConfigs/Omni_Supervisor.omniSupervisorConfig-meta.xml | config | 367 B |
| assets/package.xml | config | 246 B |
| assets/sfdx-project.json | config | 245 B |
| references/api-notes.md | markdown | 11.7 KB |
| scripts/deploy-and-report.shexecutable | script | 29.6 KB |
| scripts/tests/_bootstrap.py | script | 6.2 KB |
| scripts/tests/test_supervisor_config_contracts.pyexecutable | script | 4.9 KB |
scripts/tests/test_supervisor_config_contracts.py
View on GitHub#!/usr/bin/env python3
import json
import sys
import unittest
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent))
from _bootstrap import FakeSf, last_json # noqa: E402
class PreservationTests(unittest.TestCase):
def test_update_preserves_existing_surface_and_visibility(self):
actions = json.dumps(["AllAgents.ChangeQueues", "AllAgents.ChangeSkills"])
tabs = json.dumps(["Wallboard", "Agents"])
with FakeSf() as fake:
rc, output = fake.run(
["org", "1", "CaseQueue"],
{
"FAKE_EXIST_ACTIONS": actions,
"FAKE_EXIST_TABS": tabs,
"FAKE_SKILL_VISIBILITY": "AnySkill",
},
)
deployed_xml = fake.read_state("deployed.xml")
trace = fake.read_state("trace")
self.assertEqual(rc, 0, output)
self.assertIn("<skillVisibility>AnySkill</skillVisibility>", deployed_xml)
self.assertIn("OmniSupervisorActionType=AllAgents.ChangeQueues", trace)
self.assertIn("OmniSupervisorActionType=AllAgents.ChangeSkills", trace)
self.assertIn("OmniSupervisorTabType=Wallboard", trace)
self.assertIn("OmniSupervisorTabType=Agents", trace)
result = last_json(output)
self.assertEqual(result["skill_visibility"], "AnySkill", output)
self.assertEqual(result["surface_preservation"]["actions_restored"], 2, output)
self.assertEqual(result["surface_preservation"]["tabs_restored"], 2, output)
def test_explicit_visibility_overrides_existing_value(self):
with FakeSf() as fake:
rc, output = fake.run(
["org", "1", "CaseQueue", "", "AllSkills"],
{"FAKE_SKILL_VISIBILITY": "AnySkill"},
)
deployed_xml = fake.read_state("deployed.xml")
self.assertEqual(rc, 0, output)
self.assertIn("<skillVisibility>AllSkills</skillVisibility>", deployed_xml)
self.assertEqual(last_json(output)["skill_visibility"], "AllSkills", output)
def test_surface_rows_that_survive_deploy_are_not_inserted_again(self):
with FakeSf() as fake:
rc, output = fake.run(
["org", "1", "CaseQueue"],
{
"FAKE_EXIST_ACTIONS": json.dumps(["AllAgents.ChangeQueues"]),
"FAKE_EXIST_TABS": json.dumps(["Wallboard"]),
"FAKE_DEPLOY_PRESERVES_SURFACE": "1",
},
)
trace = fake.read_state("trace")
self.assertEqual(rc, 0, output)
self.assertNotIn("data create", trace)
self.assertNotIn("OmniSupervisorActionType=", trace)
self.assertNotIn("OmniSupervisorTabType=", trace)
result = last_json(output)
self.assertEqual(result["surface_preservation"]["actions_restored"], 0, output)
self.assertEqual(result["surface_preservation"]["tabs_restored"], 0, output)
def test_unsupported_existing_surface_blocks_before_deploy(self):
with FakeSf() as fake:
rc, output = fake.run(
["org", "1", "CaseQueue"],
{"FAKE_EXIST_TABS": json.dumps(["FlexipageType"])},
)
deployed_xml = fake.read_state("deployed.xml")
self.assertEqual(rc, 1, output)
self.assertEqual(deployed_xml, "")
self.assertIn("cannot be safely restored", last_json(output)["blocking_issue"])
def test_custom_config_identifier_controls_query_manifest_and_deploy(self):
custom_config = "Regional_Supervisor"
with FakeSf() as fake:
rc, output = fake.run(
["org", "1", "CaseQueue", "", "AnySkill", custom_config],
{
"FAKE_CONFIG_DN": custom_config,
"FAKE_MASTER_LABEL": "Regional Supervisor Team",
},
)
deployed_xml = fake.read_state("deployed.xml")
package_xml = fake.read_state("package.xml")
trace = fake.read_state("trace")
self.assertEqual(rc, 0, output)
self.assertEqual(last_json(output)["config_developer_name"], custom_config)
self.assertIn("<members>Regional_Supervisor</members>", package_xml)
self.assertIn("<masterLabel>Regional Supervisor Team</masterLabel>", deployed_xml)
self.assertIn("DeveloperName='Regional_Supervisor'", trace)
self.assertNotIn("DeveloperName='Omni_Supervisor'", trace)
def test_invalid_config_identifier_is_rejected_before_org_access(self):
with FakeSf() as fake:
rc, output = fake.run(
["org", "1", "CaseQueue", "", "AnySkill", "Bad Config' OR Name != '"],
)
trace = fake.read_state("trace")
self.assertEqual(rc, 1, output)
self.assertIn("Invalid config_developer_name", output)
self.assertEqual(trace, "")
if __name__ == "__main__":
unittest.main(verbosity=2)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |