Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/salesforce-performance-tuning

@0d57af8
Run it yourself

Analyze and tune Salesforce query, pagination, batching, caching, automation, and asynchronous performance using measured org evidence. Use when resolving latency or throughput problems. Trigger with "tune Salesforce performance".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/salesforce-performance-tuning

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈65 tokens for metadata: the name and description. ≈898 when used: this file.

Description uses 3.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈262 characters, or 3.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Evidence-Driven Salesforce Performance Tuning

Overview

Optimize the end-to-end workload without trading correctness, permission enforcement, shared capacity, or recovery for a synthetic benchmark.

Prerequisites

  • Representative workload, latency and throughput objectives, business invariant, and current telemetry
  • Queries, object volumes, selectivity, pagination, automation, locks, API mode, limits, and downstream timing
  • Authorized performance org or sandbox, synthetic dataset, stop thresholds, and rollback owner

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

Salesforce offers versioned query and limits resources; query performance feedback through REST explain is explicitly Beta. Query plans, indexes, object cardinality, automation cost, and limits depend on the target org and must be measured.

Authentication

Use an approved read-only performance principal first and a separately approved principal for canary writes. Do not collect broad record payloads or use administrator access to mask real permission cost.

Instructions

  1. Define the business invariant and measure end-to-end latency, throughput, error rate, API consumption, locks, retries, and downstream lag.
  2. Trace time across client, network, authentication, query, pagination, automation, async jobs, event delivery, and reconciliation.
  3. Inspect query shape, selected fields, predicates, cardinality, selectivity, ordering, pagination, and current metadata.
  4. Use documented explain or query-plan tooling only under its current status and corroborate recommendations with measured tests.
  5. Compare bounded changes to query design, caching, conditional requests, composite or bulk modes, concurrency, and scheduling.
  6. Canary one change at a time with synthetic or approved non-production data and fixed stop thresholds.
  7. Verify correctness, permissions, limits, event and business outcomes; roll back regressions and publish the evidence.

Approval Boundaries

Do not request indexes, change automation, increase concurrency, add caches, alter consistency, or load production for a benchmark without owners.

Output

Return the baseline trace, bottleneck evidence, tested alternatives, capacity effect, correctness checks, canary result, rollback, and recommendation.

Error Handling

Condition Response
Explain output is treated as production proof Label it Beta guidance and require representative measured validation.
Optimization changes returned records Reject the change and restore the original business invariant.
Faster client behavior consumes unsafe shared capacity Apply backpressure or scheduling before increasing rollout.

Example

A redacted completion receipt might look like this:

workload=account-sync; baseline_p95=recorded; bottleneck=query; change=selective-filter; limits=safe; correctness=exact; canary=pass

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.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides legitimate technical guidance and code snippets for optimizing Salesforce API performance, such as SOQL tuning, batching operations, and metadata caching. It follows standard developer practices for CRM integrations. A low-risk finding is noted regarding the ingestion of data from external Salesforce environments, which is inherent to the skill's purpose.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
What it can do
Reads files Network Edits files
Modelinherit
argument-hint
[org-alias] [workload]
version
1.8.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
All 6 allowed tools
ReadGlobGrepWebFetchWriteEdit
Other metadata
tags
[
  "saas",
  "salesforce",
  "performance",
  "soql",
  "query-plan"
]
model
inherit
effort
high
compatibility
Designed for Claude Code; query, index, automation, concurrency, and production workload changes require platform and object owner approval

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/salesforce-performance-tuning