Soql Lib Query Builder
beyond-the-cloud-dev/soql-lib
Builds Salesforce SOQL queries using the SOQL Lib fluent builder API (SOQL.cls).
A skill your agent uses when users get, create, edit, delete, or retrieve Salesforce Sharing Rules metadata for record-level access.
$ npx skills add forcedotcom/sf-skills --skill platform-sharing-rules-generate -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install forcedotcom/sf-skills platform-sharing-rules-generate --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/platform-sharing-rules-generate .claude/skills/platform-sharing-rules-generate && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "platform-sharing-rules-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-sharing-rules-generate into .claude/skills/platform-sharing-rules-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-sharing-rules-generate", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-sharing-rules-generateType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add forcedotcom/sf-skills --skill platform-sharing-rules-generate -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install forcedotcom/sf-skills platform-sharing-rules-generate --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/platform-sharing-rules-generate .agents/skills/platform-sharing-rules-generate && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "platform-sharing-rules-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-sharing-rules-generate into .agents/skills/platform-sharing-rules-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-sharing-rules-generate", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add forcedotcom/sf-skills --skill platform-sharing-rules-generate -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install forcedotcom/sf-skills platform-sharing-rules-generate --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/platform-sharing-rules-generate .cursor/skills/platform-sharing-rules-generate && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "platform-sharing-rules-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-sharing-rules-generate into .cursor/skills/platform-sharing-rules-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-sharing-rules-generate", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/forcedotcom/sf-skills.git --path skills/platform-sharing-rules-generate--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add forcedotcom/sf-skills --skill platform-sharing-rules-generate -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install forcedotcom/sf-skills platform-sharing-rules-generate --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/platform-sharing-rules-generate .gemini/skills/platform-sharing-rules-generate && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "platform-sharing-rules-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-sharing-rules-generate into .gemini/skills/platform-sharing-rules-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-sharing-rules-generate", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install forcedotcom/sf-skills platform-sharing-rules-generateInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add forcedotcom/sf-skills --skill platform-sharing-rules-generate -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/platform-sharing-rules-generate .github/skills/platform-sharing-rules-generate && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "platform-sharing-rules-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-sharing-rules-generate into .github/skills/platform-sharing-rules-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-sharing-rules-generate", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add forcedotcom/sf-skills --skill platform-sharing-rules-generate -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install forcedotcom/sf-skills platform-sharing-rules-generate --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/platform-sharing-rules-generate .opencode/skills/platform-sharing-rules-generate && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "platform-sharing-rules-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-sharing-rules-generate into .opencode/skills/platform-sharing-rules-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-sharing-rules-generate", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
platform-sharing-rules-generateA skill your agent uses when users get, create, edit, delete, or retrieve Salesforce Sharing Rules metadata for record-level access.
Platform Sharing Rules Generate is an agent skill from forcedotcom/sf-skills. Use when users get, create, edit, delete, or retrieve Salesforce Sharing Rules metadata for record-level access. TRIGGER on sharing rules, record/criteria-based/role-based/guest-user sharing, sharingCriteriaRules/sharingOwnerRules/sharingGuestRules, .sharingRules-meta.xml files, or sharing records with roles or groups, including viewing or modifying existing rules. DO NOT TRIGGER for permission sets/profiles or object-level (not record-level) security (use platform-permission-set-generate).
Its SKILL.md is about 4.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts and reference files (for example `examples/create-cases.md`, `examples/delete-cases.md` and `examples/edit-cases.md`).
It sits in Sales & Support, covering CRM management and Authorization and RBAC. It works with Salesforce. The repository describes itself as: Salesforce's curated collection of agent skills for building applications. Optimized for Agentforce Vibes, compatible with all AI tools. The licence is Apache-2.0.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 3c15867. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Shell), which the agent can run.
Shell commands in SKILL.md call:
sfFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
soap.sforce.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Platform Sharing Rules Generate loads about 4.1k tokens when it runs, and up to ~5.7k if it reads all its reference files. Until then it costs about 132 tokens; SKILL.md has 1,919 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from forcedotcom/sf-skills at commit 3c15867, republished under its Apache-2.0 licence (© forcedotcom). 1,919 words, ~4,077 tokens.
.claude/skills/platform-sharing-rules-generate/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.Get, create, edit, and delete Salesforce Sharing Rules metadata to control record-level access beyond org-wide defaults. Supports criteria-based rules, role/group-based owner rules, and guest user rules for Experience Sites.
sharingCriteriaRules, sharingOwnerRules, and sharingGuestRules metadata; retrieving existing sharing rules from an org using the Metadata API Retrieve pattern; appending new rules to existing files; modifying rule criteria or access levels; removing rules from metadata files; configuring rules for Guest and Portal profiles.platform-permission-set-generate), territory-based sharing rules.Before proceeding, confirm with the user if not already clear:
sharedTo and sharedFrom cannot be edited in place)Gather or infer before proceeding:
Account, Property__c)sharingCriteriaRules, sharingOwnerRules, or sharingGuestRulesRead or Edit (maps to Read-Only or Read/Write)Defaults unless specified:
ReadincludeRecordsOwnedByAll: true for criteria rulesincludeHVUOwnedRecords: false for guest rulesaccountSettings with all sub-access levels set to NoneSteps are sequential within each phase. Phase 3 branches by operation type — execute only the matching branch. Phase 4 applies to create, edit, and delete only (get operations end at Phase 3).
Resolve the SFDX project path — find the project's sfdx-project.json and identify the package directory for sharingRules/.
Always retrieve the latest sharing rules from the org using the Metadata API Retrieve pattern:
sf project retrieve start --metadata "SharingRules:<ObjectName>" --target-org <org>This ensures the local file reflects the current org state. Never trust a local file that may be stale — edits or deletes against a stale file can recreate rules that were already removed in the org or overwrite changes made by other users.
Read the retrieved file — parse <packageDir>/sharingRules/<ObjectName>.sharingRules-meta.xml to understand existing rules and avoid duplicates.
Identify the operation — determine whether the user wants to get, create, edit, or delete a sharing rule.
Select the rule type based on user intent. Read references/rule-types.md for the complete schema of each type and its required elements.
For Account sharing rules: the accountSettings element is required. Default sub-access levels to None unless the user specifies otherwise.
For Guest rules: the sharedTo must use <guestUser> with the site guest user's community nickname. Never use <role> or <group> for guest rules.
8a. Use the file already retrieved in Phase 1 — the retrieve in step 2 already pulled the latest <ObjectName>.sharingRules-meta.xml from the org. No additional retrieve is needed.
8b. Read and present the retrieved rules — parse the .sharingRules-meta.xml file and present the rules to the user in a readable format showing:
- Rule name (fullName) and label
- Rule type (criteria-based, owner-based, or guest)
- Access level
- Shared-to target
- Criteria (if applicable)
For get operations, skip Phase 4 (no write needed). The retrieve itself writes the metadata file to the local project.8a. Construct the XML following the schema in references/rule-types.md. Key structure:
- One .sharingRules-meta.xml file per object
- All rules for the same object go in the same file
- If appending to an existing file, add the new rule element inside the existing <SharingRules> root
8b. Name the rule — derive <fullName> from the intent (PascalCase, no spaces, descriptive). Generate a matching <label> in Title Case with spaces.
8a. Locate the target rule — find the rule by <fullName> or <label> in the existing .sharingRules-meta.xml file.
8b. Gate unsupported edits — the platform does NOT support in-place modification of <sharedTo> or <sharedFrom> elements. If the user requests a change to the sharing target or source, refuse the edit and instruct them to delete the existing rule and create a new one with the desired target. This is the same pattern used for rule-type changes (see TC-16).
8c. Determine modifications based on rule type:
- Owner-based rules (sharingOwnerRules): only <accessLevel> can be edited. The platform does not support modifying any other element (sharedTo, sharedFrom, label) on owner rules. If the user requests changes beyond access level, refuse and instruct them to delete + create.
- Criteria-based rules (sharingCriteriaRules): supported editable elements are <accessLevel>, <criteriaItems>, <label>, and <booleanFilter>.
- Guest rules (sharingGuestRules): supported editable elements are <accessLevel>, <criteriaItems>, <label>, and <includeHVUOwnedRecords>.
8a. Locate the target rule — find the rule by <fullName> or <label> in the existing .sharingRules-meta.xml file.
8b. Count remaining rules — run scripts/count-remaining-rules.sh <file> to get the total rule count. If the count is 1 (only the rule being deleted), the file must be removed entirely in Phase 4.
8c. Delegate destructive deployment to platform-destructive-deploy — a normal sf project deploy start is additive and will NOT remove a rule from the org. Delegate to the platform-destructive-deploy skill with the following context:
- Metadata type: SharingCriteriaRule, SharingOwnerRule, or SharingGuestRule (depending on the rule type)
- Member: <ObjectName>.<RuleFullName>
- Target org: the user's specified org
Apply the change:
<packageDir>/sharingRules/<ObjectName>.sharingRules-meta.xml.<packageDir>/sharingRules/<ObjectName>.sharingRules-meta.xml entirely.Run the verification checklist below and consult the examples files (examples/create-cases.md, examples/edit-cases.md, examples/delete-cases.md) for scenario-specific expected behaviors before presenting output.
<SharingRules xmlns="http://soap.sforce.com/2006/04/metadata"> root?<fullName> use PascalCase with no spaces?<label> present and human-readable?<accessLevel> one of Read or Edit?<includeRecordsOwnedByAll> present (required boolean)?<criteriaItems> have <field>, <operation>, and <value>?<sharedTo> use <guestUser> (NOT <role> or <group>)?<includeHVUOwnedRecords> present (required boolean)?<includeRecordsOwnedByAll> ABSENT (only for criteria rules, not guest rules)?<sharedFrom> and <sharedTo> elements?<role>, <roleAndSubordinates>, or <group> targets?accessLevelaccessLevel, criteriaItems, label, booleanFilteraccessLevel, criteriaItems, label, includeHVUOwnedRecordssharedTo/sharedFrom left unchanged? (if user requested that change, refuse and advise delete + create)<fullName>)?<SharingRules> root?platform-destructive-deploy delegated to with the correct metadata type (SharingCriteriaRule, SharingOwnerRule, or SharingGuestRule)?<accountSettings> present with all three sub-elements?<caseAccessLevel>, <contactAccessLevel>, <opportunityAccessLevel> all set?| Constraint | Rationale |
|---|---|
One .sharingRules-meta.xml file per object | Platform requirement — multiple files cause deployment errors |
Guest rules must use <guestUser> in sharedTo | Using <role> or <group> causes: "Specify a guest user's nickname for the guestUser field" |
Account rules require <accountSettings> | Without it: "AccountSettings is required for account sharing rules" |
includeRecordsOwnedByAll is required on criteria rules | Missing it causes: "Required field is missing: sharingCriteriaRules" |
includeHVUOwnedRecords is required on guest rules | Missing it causes deployment failure |
| Criteria field values must exist as picklist values on the org | Invalid values cause: "Picklist value does not exist" |
Never hardcode file paths — resolve from sfdx-project.json | Customer projects use custom package directories |
For managed package custom objects, use the full API name including namespace prefix (e.g., ns__Object__c) | Namespace-prefixed objects store sharing rules under the prefixed name |
sharedTo and sharedFrom cannot be edited in place | Platform does not support modifying sharing targets — deploy will fail. Delete the rule and create a new one instead |
Owner-based rules only support editing accessLevel | No other field (label, sharedTo, sharedFrom) can be modified on owner rules — delete and recreate instead |
| Always retrieve from the org before edit or delete | Local files may be stale; editing a stale file can recreate deleted rules or overwrite concurrent changes |
| Deleting a rule requires a destructive deployment | A normal deploy is additive — it will not remove rules from the org. Delegate to platform-destructive-deploy |
| Edit must preserve unmodified elements | Changing only accessLevel must not alter criteriaItems or other fields |
| Delete must remove the entire rule block | Partial deletion leaves invalid XML and causes deployment failures |
| Delete last rule removes the file | An empty <SharingRules> root with no children is invalid metadata |
| Issue | Resolution |
|---|---|
Guest rule uses <role> instead of <guestUser> | Replace with <guestUser>CommunityNickname</guestUser> |
Account rule missing accountSettings | Add <accountSettings> with all three access level sub-elements set to None |
Criteria rule missing includeRecordsOwnedByAll | Add <includeRecordsOwnedByAll>true</includeRecordsOwnedByAll> |
| Picklist value mismatch | Query the org for valid values before generating criteria |
| Appending duplicates existing rule name | Check existing <fullName> values before writing |
| Guest user nickname not found | Query: SELECT CommunityNickname FROM User WHERE UserType='Guest' AND IsActive=true |
User requests edit to sharedTo or sharedFrom | Not supported — refuse the edit and instruct user to delete + create a new rule |
User requests edit to owner rule beyond accessLevel | Not supported — owner rules only allow accessLevel edits. Refuse and instruct user to delete + create |
| Editing changes rule type (e.g., criteria → owner) | Not supported — delete the old rule and create a new one instead |
| Local file is stale (rule deleted/changed in org) | Always retrieve fresh from org before edit or delete to avoid recreating removed rules |
| Delete deployed with normal deploy (no destructive manifest) | Rule remains in the org — delegate to platform-destructive-deploy for proper removal |
| Deleting a rule referenced by other automation | Warn the user about potential downstream impact |
| Delete leaves malformed XML | Ensure proper XML structure after removal; validate the file is well-formed |
Deliverables:
<packageDir>/sharingRules/<ObjectName>.sharingRules-meta.xml — retrieved sharing rules file from the org, plus a formatted summary of all rules found<packageDir>/sharingRules/<ObjectName>.sharingRules-meta.xml — complete sharing rules file for the target object| Need | Delegate to |
|---|---|
| Permission set configuration | platform-permission-set-generate skill |
| Custom object creation (if target object doesn't exist) | platform-custom-object-generate skill |
| Destructive deployment (rule deletion from org) | platform-destructive-deploy skill |
| File | When to read |
|---|---|
references/rule-types.md | Phase 2 — before generating any rule, to get the complete XML schema for each rule type |
scripts/count-remaining-rules.sh | Phase 3, step 8b (Delete) — count sharing rule elements to determine if file should be removed |
examples/create-cases.md | Phase 4, step 10 — expected behavior for create and append scenarios |
examples/edit-cases.md | Phase 4, step 10 — expected behavior for edit scenarios |
examples/delete-cases.md | Phase 4, step 10 — expected behavior for delete scenarios |
© forcedotcom, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files (scripts, references) in skills/platform-sharing-rules-generate of forcedotcom/sf-skills.
Open the folder on GitHubat commit 3c15867
Platform Sharing Rules Generate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Platform Sharing Rules Generate this skillforcedotcom/sf-skills | 1.1k | — | ~4.1k | Automated safety check: Pass | Apache-2.0 | |
| Soql Lib Query Builderbeyond-the-cloud-dev/soql-lib | 154 | — | ~4.3k | Automated safety check: Pass | MIT | |
| Sf DatacloudJaganpro/sf-skills | 424 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Soql Lib Selectorbeyond-the-cloud-dev/soql-lib | 154 | — | ~2k | Automated safety check: Pass | MIT | |
| Dev SetupPortwood-Global-Solutions/Portwood | 125 | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Sf FlowJaganpro/sf-skills | 424 | — | ~1.8k | Automated safety check: Pass | MIT |
beyond-the-cloud-dev/soql-lib
Builds Salesforce SOQL queries using the SOQL Lib fluent builder API (SOQL.cls).
Jaganpro/sf-skills
Salesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows.
beyond-the-cloud-dev/soql-lib
Creates Salesforce Apex selector classes using the SOQL Lib selector pattern.
Portwood-Global-Solutions/Portwood
Get from a fresh clone of Portwood to a working, fully-tested Salesforce org.
Jaganpro/sf-skills
Creates and validates Salesforce Flows with 110-point scoring.
gmapsscraper/google-maps-agent-skills
Export Google Maps business data to CSV, JSON, or CRM format (HubSpot, Pipedrive, Salesforce).
forcedotcom/sf-skills
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins.
forcedotcom/sf-skills
Data Cloud 360° view of a single Agentforce session. An agent skill from forcedotcom/sf-skills.
forcedotcom/sf-skills
Apply a Salesforce sandbox post-copy automation JSON config against a target org.
forcedotcom/sf-skills
Apply a Salesforce sandbox post-copy automation JSON config against a target org.
forcedotcom/sf-skills
Apply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons.
forcedotcom/sf-skills
Lightning Web Components with PICKLES methodology and 165-point scoring.
Works with
Categories
A skill your agent uses when users get, create, edit, delete, or retrieve Salesforce Sharing Rules metadata for record-level access. Platform Sharing Rules Generate is an agent skill from forcedotcom/sf-skills. Use when users get, create, edit, delete, or retrieve Salesforce Sharing Rules metadata for record-level access.
Platform Sharing Rules Generate fits situations like: retrieve Salesforce Sharing Rules metadata for record-level access; record/criteria-based/role-based/guest-user sharing; sharingCriteriaRules/sharingOwnerRules/sharingGuestRules; .sharingRules-meta.xml files.
Run `npx skills add forcedotcom/sf-skills --skill platform-sharing-rules-generate -a claude-code`. Or copy the skill folder (skills/platform-sharing-rules-generate in forcedotcom/sf-skills) into .claude/skills/platform-sharing-rules-generate in your project. Claude Code loads it when a task matches its description.
Run `npx skills add forcedotcom/sf-skills --skill platform-sharing-rules-generate -a codex`. Or copy the skill folder (skills/platform-sharing-rules-generate in forcedotcom/sf-skills) into .agents/skills/platform-sharing-rules-generate in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add forcedotcom/sf-skills --skill platform-sharing-rules-generate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/platform-sharing-rules-generate, .gemini/skills/platform-sharing-rules-generate, .github/skills/platform-sharing-rules-generate and .opencode/skills/platform-sharing-rules-generate in your project.
Going by SKILL.md and its folder, Platform Sharing Rules Generate needs a shell for the scripts in its folder and the command-line tools its instructions call (sf). Our summary lists: A Bash shell.
SKILL.md names 1 domain. In commands or code: soap.sforce.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Platform Sharing Rules Generate is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.1k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.6k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Platform Sharing Rules Generate: Soql Lib Query Builder (beyond-the-cloud-dev/soql-lib, 154 stars), Sf Datacloud (Jaganpro/sf-skills, 424 stars), Soql Lib Selector (beyond-the-cloud-dev/soql-lib, 154 stars) and Dev Setup (Portwood-Global-Solutions/Portwood, 125 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
forcedotcom (a GitHub organization) maintains it in forcedotcom/sf-skills, which has 1,058 GitHub stars. The repository holds 248 skills in this directory. The repository was last updated on October 3, 2026.
Source: forcedotcom/sf-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.