Skip to content
Skills Library
Programming · Analysis

salesforce-advanced-troubleshooting

/salesforce-advanced-troubleshooting

Analyze complex Salesforce integration failures across request traces, metadata, query plans, automation, locks, jobs, events, and limits. Use when basic triage stalls. Trigger with "deep diagnose Salesforce".

Licence
MIT
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Analyze complex Salesforce integration failures across request traces, metadata, query plans, automation, locks, jobs, events, and limits. Use when basic triage stalls. Trigger with "deep diagnose Salesforce".

Triggers from the description

deep diagnose Salesforce

Arguments

/salesforce-advanced-troubleshooting [incident-id] [request-or-job-id]
Original author description

Analyze complex Salesforce integration failures across request traces, metadata, query plans, automation, locks, jobs, events, and limits. Use when basic triage stalls. Trigger with "deep diagnose Salesforce".

How it works

  1. Overview
  2. Prerequisites
  3. Tool Discipline
  4. Current Contract
  5. Authentication
  6. Instructions
  7. Approval Boundaries
  8. Output
  9. Error Handling
  10. Example
Original SKILL.md headings · 67 lines, 486 words
SKILL.md preview
---
name: salesforce-advanced-troubleshooting
description: 'Analyze complex Salesforce integration failures across request traces, metadata, query plans, automation, locks, jobs, events, and limits. Use when basic triage stalls. Trigger with "deep diagnose Salesforce".'
argument-hint: "[incident-id] [request-or-job-id]"
allowed-tools: Read, Glob, Grep, WebFetch, Write, Edit
version: 1.8.0
author: Jeremy Longshore <jeremy@intentsolutions.io>
license: MIT
tags: [saas, salesforce, troubleshooting, query-plan, automation]
model: inherit
effort: high
compatibility: Designed for Claude Code; deep logs, trace flags, query feedback, job access, and production reproduction require support and data-owner approval
---
# Salesforce Advanced Integration Troubleshooting

## Overview

Build and falsify layered hypotheses with minimum evidence rather than changing several org, query, permission, or retry variables at once.

## Prerequisites

- Basic triage record, exact time window, environment, release, principal, request or job IDs, and current symptom
- Architecture, API and event contracts, object metadata, automation map, limits, deployments, and prior baselines
- Incident commander, application, Salesforce platform, security, data, and vendor support owners

## 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 diagnostic behavior spans versioned REST responses, debug logs, query feedback, async jobs, event usage, and org configuration. REST query explain is Beta and must be corroborated; diagnostic surface availability varies by entitlement and permission.

## Authentication

Use the narrowest diagnostic principal and time window. Never enable broad logging or collect unredacted queries, records, tokens, sessions, org identifiers, or user data without explicit authorization.

## Instructions

1. Restate the invariant, symptom, first failure, blast radius, changes, retry history, and what basic triage already ruled out.
2. Construct hypotheses across client, network, OAuth, permission, sharing, metadata, query, automation, lock, limit, async, event, and downstream layers.
3. Collect one discriminating redacted signal per hypothesis using request IDs, logs, limits, job results, metadata fingerprints, and deployment IDs.
4. Use query explain or plan evidence only under its documented status and compare it with representative measured execution.
5. Reproduce with synthetic data or read-only requests, then change one variable at a time under a defined stop condition.
6. Confirm root cause by restoring the invariant with the smallest reversible fix and disproving leading alternatives.
7. Remove trace settings, reconcile affected data or events, publish evidence and uncertainty, and create prevention tests and alerts.

## Approval Boundaries

Do not broaden tracing, query sensitive data, change indexes or automation, increase limits, replay work, or reproduce writes in production without owners.

## Output

Return the hypothesis table, evidence and timeline, reproduced condition, root cause and confidence, approved fix, reconciliation, cleanup, and prevention work.

## Error Handling

| Condition | Response |
|---|---|
| Evidence supports multiple causes | Report uncertainty and design the next discriminating test instead of declaring a root cause. |
| Diagnostic surface is unavailable | Record the entitlement or permission boundary and use an approved alternative or Salesforce Support. |
| Trace collection changes system behavior | Stop, remove the trace, and use less invasive evidence. |

## Example

A redacted completion receipt might look like this:

```text
incident=SF-311; hypotheses=7; disproved=6; root=lock-order; fix=ordered-batches; canary=pass; traces=removed
```

## Resources

- [REST query performance feedback](https://developer.salesforce.com/docs/platform/api-rest/guide/dome-query-explain.html)
- [Apex debug logs](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_debugging_debug_log.htm)

## 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.

Versions

The database has no other skills named salesforce-advanced-troubleshooting.

Identical content appears in 1 other GitHub folders. We show one copy with the highest score.

Database snapshot: 13.11.2026 · package version fe1f13646824 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100salesforce-common-errors
    Analyze Salesforce authorization, permission, schema, validation, locking, limit, async-job, and event-delivery failures from evidence. Use when triaging an integration. Trigger with "diagnose a Salesforce error".
  • 100salesforce-reference-architecture
    Design a governed Salesforce integration architecture with explicit authority, identity, API, event, data, evidence, limit, and recovery boundaries. Use when conducting architecture reviews. Trigger with "design Salesforce architecture".
  • 100specialized-salesforce-architect
    Use when Codex should act as the Salesforce Architect specialist from Agency Agents. Solution architecture for Salesforce platform — multi-cloud design, integration patterns, governor limits, deployment strategy, and data model governance for enterprise-scale orgs
  • 90salesforce-architecture
    Use for org-level Salesforce architecture work — capacity planning, security/sharing review, integration patterns, multi-org strategy, tech-debt assessment.
  • 100salesforce-apex-log-analyzer-skill
    Retrieves and analyzes Apex debug logs from a connected Salesforce org to identify governor-limit hits, SOQL N+1 patterns, unhandled exceptions, and async job failures. T1 read-only runtime — retrieves logs only, never executes code or mutates data. TRIGGER when: user asks to…
  • 100salesforce-developer
    Use when building, modifying, or deploying any Salesforce platform solution — Apex classes, Lightning Web Components, SOQL queries, Flows, Metadata API deployments, scratch org configuration, Salesforce CLI automation, or Agentforce DX agent metadata. Invoke for any core…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.