salesforce-rate-limits

v2026.09.24

Analyze and govern Salesforce API, asynchronous, bulk, and event capacity from current org allocations and usage evidence. Use when preventing or resolving exhaustion. Trigger with "govern Salesforce limits".

GitHub
安装命令
npx skhub add jeremylongshore/salesforce-rate-limits
Markdown
SKILL.md

Salesforce Org Limit and Capacity Governance

Overview

Treat limits as shared, time-varying org contracts and allocate headroom across integrations without publishing fixed universal thresholds.

Prerequisites

  • Authorized org, workload, API and event modes, business priority, and peer integrations
  • Current Limits resource, Sforce-Limit-Info, job, event-usage, and application telemetry
  • Platform, integration, incident, and business owners with a deferral policy

Tool Discipline

Use Read, Glob, and Grep to inspect approved repository and evidence files, WebFetch to re-check current first-party Salesforce documentation, and Write or Edit only for secretless plans, fixtures, configuration, and redacted receipts.

Current Contract

The versioned Limits REST resource returns maximum and remaining allocations and can lag consumption by up to five minutes. Sforce-Limit-Info reports REST API usage; names, allocations, windows, grace behavior, and entitlements vary by org, edition, license, API version, and workload.

Authentication

Use an approved read-only principal with the permission required to view limits. Do not expose tokens, org identifiers, or unrelated allocation details in public metrics or receipts.

Instructions

  1. Inventory every workload sharing the org, its API mode, priority, schedule, concurrency, retry behavior, and owner.
  2. Discover a supported API version and capture current Limits and response-header evidence with timestamps.
  3. Map relevant REST, bulk, async, Apex, storage, and event allocations to workloads and business deadlines.
  4. Model normal, burst, retry-storm, backfill, and incident demand with an explicit measurement-lag safety margin.
  5. Define admission, concurrency, batching, backpressure, deferral, and stop policies per priority class.
  6. Test the policy with synthetic work in an authorized non-production org and prove hard exhaustion is not blindly retried.
  7. Monitor actual usage and reconcile deferred work; review allocations and policy after releases, license changes, and incidents.

Approval Boundaries

Do not consume production capacity for testing, raise concurrency, defer critical work, purchase capacity, or disable peer integrations without accountable owners.

Output

Return the dated allocation snapshot, workload budget, scenarios, safety margin, controls, alerts, deferred-work ledger, and review owner.

Error Handling

ConditionResponse
Limits values change between readsUse timestamps and the documented measurement lag; avoid rapid concurrent reads as a consistency oracle.
Hard allocation is exhaustedStop admission and reconcile pending work; exponential backoff alone cannot create capacity.
Workload ownership is unknownDo not assign it shared capacity until an owner and priority are established.

Example

A redacted completion receipt might look like this:

org=production; resources=rest+bulk+events; snapshot=dated; margin=owner-approved; admission=active; deferred=42; blind-retry=off

Resources

Next Steps

Run the workflow first in the lowest-risk authorized org and preserve its redacted receipt. Schedule a review against the next Salesforce seasonal release and the customer change calendar.

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

skills/.curated/salesforce-rate-limits

默认分支

main

最新提交

e5a6c3b

Tree SHA

c2dc8e8