service-omni-channel-limits-analyze
SkillAI & modelsLets your agent check how much of a Salesforce org's Pending Service Routing limit is used, read-only.
Use service-omni-channel-limits-analyze in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add service-omni-channel-limits-analyze and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the service-omni-channel-limits-analyze skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
About this skill
Use to report Omni-Channel Pending Service Routing usage without changing the org: query the current PendingServiceRouting count, compare it with an admin-supplied maximum or a labeled routing-model reference default, and explain which live values are unavailable through supported APIs. TRIGGER when
What this skill tells your AI
The instructions your AI receives, as published by forcedotcom/sf-skills in skills/service-omni-channel-limits-analyze/SKILL.md and read by Ahel’s review.
Report the Pending Service Routing usage that can be obtained safely through supported customer-org APIs. The Salesforce Setup → Omni-Channel → Limits page is read-only and also displays internal values that are not exposed through REST, Tooling, Metadata, or Connect APIs. This skill reports the live PSR count and labels every non-verifiable value explicitly.
Inputs
bash scripts/analyze.sh <org-alias> [--routing-model enhanced|legacy] [--max-psrs <integer>]
org-aliasis required and must already be authenticated with Salesforce CLI.--routing-modeldefaults toenhanced. It selects only the reference maximum used when--max-psrsis absent.--max-psrsaccepts an administrator-provided maximum from 1 through 1,000,000. It is still labeled as not API-verified.
Run
Invoke scripts/analyze.sh with the target org and rely on its JSON result for the live count, labeled comparison values, unavailable hourly values, and blocking details. The script invokes sf org display and sf data query internally; do not reproduce their query or calculation logic outside the script.
To verify the bundled script contract after a change, run python3 scripts/tests/test_limits_analyze_contracts.py; the test module loads its local scripts/tests/_bootstrap.py fixture automatically.
Output contract
The script emits one JSON object:
skill:service-omni-channel-limits-analyzestatus:analyzedorblockedrouting_model:enhancedorlegacymetrics.current_pending_service_routings: live count, comparison maximum, approximate percentage, and source labelsmetrics.pending_service_routing_rate_per_hour: unavailable live value, reference maximum, and source labelscaveats: mandatory accuracy boundariesblocking_issue: actionable failure reason ornull
If PendingServiceRouting cannot be queried, return status: blocked. Do not reinterpret an unavailable object, missing feature, or permission failure as zero usage.
Boundaries
- Never scrape, replay, or submit the Visualforce Setup page. Its session state and controller are not a supported customer API.
- Never describe a reference default as the org's configured maximum.
- Never fabricate the live hourly rate or compute its utilization percentage.
- Never mutate routing, queues, agents, limits, or metadata.
- Treat the PSR count as a point-in-time snapshot that can change while work is routed.
- For a complete channel and routing inventory, use
service-omni-channel-inventory-analyze. - For a user-approved end-to-end Omni setup, hand off to
service-omni-channel-setup-coordinate; this limits analyzer remains read-only.
Reference
Read references/api-notes.md when explaining why the report cannot exactly reproduce every value on the Setup page.
Signals
- GitHub stars
- 1k
- Forks
- 351
- Last commit
- Sep 2026
Advanced
- Item type
- skill
- Key
service-omni-channel-limits-analyze- Source
- github.com/forcedotcom/sf-skills
github.com/forcedotcom/sf-skills
More in AI & models
Skill · anthropics
More in AI & modelstriage
Skill · mattpocock
More in AI & modelswayfinder
Skill · mattpocock
More in AI & modelsalgorithmic-art
Skill · anthropics
More in AI & modelscode-review-and-quality
Skill · addyosmani
More in AI & modelsmarketing-psychology
Skill · coreyhaines31
More in AI & models