data-skew-and-sharing-performance

data-skew-and-sharing-performance is a skill for Claude Code, Codex from BanibrataChatterjee/AwesomeSalesforceSkills. It costs 85 tokens per session (2,717 once invoked), scanned A, original, Apache-2.0.

A guide to diagnosing Salesforce data skew, where too many records belong to one owner or one parent record.

In plain words
What is it for?
Use it to find ownership and parent-child concentrations and choose ways to reduce their performance impact.
Why use it?
Data skew can slow sharing updates and cause record-locking or group-membership errors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find ownership and parent-child concentrations and choose ways to reduce their performance impact.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/banibratachatterjee/awesomesalesforceskills/data-skew-and-sharing-performance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add BanibrataChatterjee/AwesomeSalesforceSkills --skill data-skew-and-sharing-performance
Clone the repo
git clone --depth 1 https://github.com/BanibrataChatterjee/AwesomeSalesforceSkills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-skew-and-sharing-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/banibratachatterjee/awesomesalesforceskills/data-skew-and-sharing-performance/github.svg)](https://agentmods.dev/skills/banibratachatterjee/awesomesalesforceskills/data-skew-and-sharing-performance)
Your own site
<a href="https://agentmods.dev/skills/banibratachatterjee/awesomesalesforceskills/data-skew-and-sharing-performance"><img src="https://agentmods.dev/badge/skills/banibratachatterjee/awesomesalesforceskills/data-skew-and-sharing-performance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for data-skew-and-sharing-performance

Your own site · 80×15
<a href="https://agentmods.dev/skills/banibratachatterjee/awesomesalesforceskills/data-skew-and-sharing-performance"><img src="https://agentmods.dev/badge/skills/banibratachatterjee/awesomesalesforceskills/data-skew-and-sharing-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,717 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.02717
Opus 5 $0.00043 $0.01358
Sonnet 5 $0.00017 $0.00543
Haiku 4.5 $0.00009 $0.00272

Measured 9d ago against content hash ae0e4eab373a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

data-skew-and-sharing-performance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/check_data_skew_and_sharing_performance.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/admin/data-skew-and-sharing-performance/SKILL.md · 187 lines

How it starts

The opening of the file, as written. The whole thing — 187 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Data Skew and Sharing Performance

Use this skill when users report slow sharing recalculations, group membership lock errors, or degraded performance when updating records owned by a small number of users or parented under a single account. This skill diagnoses ownership skew and parent-child skew and recommends targeted mitigations.


Before Starting

Gather this context before working on anything in this domain:

  • Identify which objects are suspected: note API names and approximate record counts.
  • Find the ownership distribution: run a report grouped by Record Owner on the suspect object, sorted descending. Flag any user or queue owning more than 10,000 records of a single object.
  • For parent-child skew: run a report on the child object grouped by parent (Account, Case, etc.). Flag any parent that has more than 10,000 children.
  • Know the current OWD for affected objects: Private OWD combined with a role hierarchy amplifies recalculation cost.
  • Know whether the org uses sharing rules sourced from roles or public groups — these are the triggers for recalculation fan-out.

Core Concepts

Ownership Data Skew

Ownership data skew occurs when a single user or queue owns more than 10,000 records of a single object. This is the most common performance trap for orgs that park records under a catch-all user (e.g., an "Unassigned Leads" queue or a single integration user that owns all migrated records).

Why it causes problems: When a user moves in the role hierarchy — or is added to or removed from a public group that is the source of a sharing rule — Salesforce must update the sharing table entries for every record that user owns. With 50,000 records owned by one user, a single role change triggers 50,000 sharing table recalculations. This can produce long-running background jobs, "Group membership operation already in progress" errors, and lock contention that blocks other sharing operations.

The 10,000-record threshold: Salesforce documents this explicitly in the Designing Record Access for Enterprise Scale guide. Below 10,000 records per owner, most sharing operations complete quickly. Above this threshold, any change that triggers recalculation for that owner becomes a risk.

Read the full file on GitHub · 187 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 187 lines · 85 tokens per session scan A ae0e4eab373a

Subscribe to this mod's changes

data-skew-and-sharing-performance is a skill published in the GitHub repository BanibrataChatterjee/AwesomeSalesforceSkills (3 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 85 tokens to every session and 2,717 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

hotpath_init

Configure hotpath profiling in a Rust project. Adds the hotpath dependency with feature-gated setup, instruments main with hotpath::main, functions with measure/measureall, and wraps channels, mutexes, rwlocks, streams, futures, reqwest clients, axum routers and byte-level I/O with hotpath macros. Use when the user…

pawurb/hotpath-rs · 88 tokens

syncmeta

Sync changes from hotpath and hotpath-macros crates to their meta counterparts (hotpath-meta and hotpath-macros-meta). Use when meta crates need to be updated with recent changes.

pawurb/hotpath-rs · 43 tokens

hotpath_bump

Bump the hotpath version number across the workspace and related files. Updates crate versions in Cargo.toml files (exact patch version) and version references in the backend middleware, hotpathinit skill, and README (major.minor only). Use when the user wants to bump, bump the version, or release a new hotpath…

pawurb/hotpath-rs · 73 tokens

hardwood-cli

Inspect, debug, and convert Apache Parquet files with the hardwood CLI. Use whenever a user is debugging code that reads or writes Parquet (Arrow / Spark / Flink / Java / Python) and the data file itself may be the cause — to check the schema, physical and logical types, repetition, or a row sample. Use it to diagnose…

hardwood-hq/hardwood · 216 tokens

performance

Use when a page or interaction is slow for one user and the fix starts from a measurement — a failing Core Web Vital (LCP, INP, CLS), a heavy JS bundle, wasted re-renders, an over-broad client boundary: profile, attribute the cost to one phase, fix it, re-measure. NOT surviving concurrent load (that is scaling), NOT…

ericrisco/rsc-harness · 91 tokens

tune-performance

Use when the user reports the game is slow, drops framerate, stutters, takes forever to start, or runs poorly on specific hardware. Profiles the running game via summergetdiagnostics, identifies hotspots (rendering / physics / scripting), and proposes specific fixes with before/after metric expectations. Trigger on…

SummerEngine/summer-engine-agent · 94 tokens