platform-sharing-rules-generate

Generate Salesforce sharing rules XML metadata for record-level access control.

Updated Jun 17, 2026
One-click install
npx skills add https://github.com/angryracoon/ARIEF-VISEO-DEV-ORG --skill platform-sharing-rules-generate
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: platform-sharing-rules-generate
Source: https://github.com/angryracoon/ARIEF-VISEO-DEV-ORG/tree/main/.agents/skills/platform-sharing-rules-generate
Command: npx skills add https://github.com/angryracoon/ARIEF-VISEO-DEV-ORG --skill platform-sharing-rules-generate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the manual work and schema guesswork involved in creating Salesforce sharing rules, helping you define record-level access beyond org-wide defaults without deployment errors.

Core Features & Use Cases

  • Criteria-Based Sharing: Generate rules that share records when field conditions match specific business logic.
  • Owner-Based Sharing: Create sharing rules that grant access based on record ownership across roles, subordinates, and groups.
  • Guest User Sharing: Configure Experience Site guest visibility with the correct guest user target and required validation.
  • Use Case: A Salesforce admin can use this Skill to add a new sharing rule for a custom object, append it to an existing object file, and ensure the XML matches platform requirements.

Quick Start

Create a Salesforce sharing rules file for the target object and specify the rule type, shared-to target, and access level.

Frequently Asked Questions about platform-sharing-rules-generate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Salesforce sharing rules metadata for record-level access?▼

To generate Salesforce sharing rules metadata, you specify the target object, rule type, shared-to target, and access level. The Skill then builds the XML file enforcing the one-file-per-object schema and required elements for criteria-based, owner-based, or guest user rules.

Can I append new sharing rules to an existing Salesforce object XML file?▼

Yes, you can append new sharing rules to an existing Salesforce object XML file. The Skill modifies the current metadata file by adding the rule definitions while maintaining the strict one-file-per-object schema required by the platform.

What is the difference between criteria-based and owner-based sharing rules in Salesforce?▼

Criteria-based sharing rules grant record access when field conditions match specific business logic, whereas owner-based sharing rules share records based on record ownership across roles, subordinates, and groups. The Skill generates XML metadata for both types.

How do I configure Experience Cloud guest user sharing rules in Salesforce metadata?▼

To configure Experience Cloud guest user sharing rules, the Skill generates the XML metadata with the correct guest user target and applies guest-user nickname validation. This ensures your Experience Site guest visibility settings meet platform requirements without deployment errors.

What are the limitations when generating Account sharing rules in Salesforce XML metadata?▼

When generating Account sharing rules in Salesforce XML metadata, the Skill enforces specific account settings and required access and shared-to elements. You must provide valid account rule parameters to avoid schema validation errors during deployment.

Do I need to manually validate the XML schema for Salesforce custom object sharing rules?▼

No, you do not need to manually validate the XML schema for Salesforce custom object sharing rules. The Skill automatically enforces the one-file-per-object XML schema, required elements, and specific account settings to ensure platform compliance.