• Projects
  • Service
  • About
  • branding.bz
  • Podcast
  • Tips
  • FAQ
  • Recruit
  • Download
  • Contact
  • branding.bz(ブランド構築SaaS)
  • DESIGN NOW(デザインメディア)
  • X
  • LinkedIn
  • Spotify
  • Facebook

213-0011 神奈川県川崎市高津区久本3-6-7-303

© 2026 ID INC. All rights reserved

claude-skills/スキル
SKILLOfficialdevelopment

platform-sharing-rules-generate

プラグイン
salesforce-development
ソース
GitHub で見る ↗
説明

このスキルは、ユーザーが Salesforce の共有ルール(レコード共有に関する設定)のメタデータ(データについての情報)を取得・作成・編集・削除・管理する必要がある場合に使用します。 **以下の場合に使用してください:** - ユーザーが共有ルール、レコード共有、条件ベース共有、役職ベース共有、ゲストユーザーの共有、sharingRules、sharingCriteriaRules、sharingGuestRules、sharingOwnerRules、.sharingRules-meta.xml ファイルについて言及した場合 - 特定の役職やグループとレコードを共有するよう求められた場合 - 組織内の既存の共有ルールを取得・確認したい場合 - 既存の共有ルールを変更・削除したい場合 - 共有ルールの条件やアクセスレベルを更新したい場合 **このスキルを使用しないでください:** - ユーザーが権限セット(アクセス権設定)またはプロファイル(ユーザー権限の集合)が必要な場合は、platform-permission-set-generate を使用してください - オブジェクトレベルセキュリティ(データ全体へのアクセス制御)が必要な場合は、platform-permission-set-generate を使用してください

原文を表示

Use this skill when users need to get, create, edit, delete, or manage Salesforce Sharing Rules metadata. TRIGGER when: users mention sharing rules, record sharing, criteria-based sharing, role-based sharing, guest user sharing, sharingRules, sharingCriteriaRules, sharingGuestRules, sharingOwnerRules, .sharingRules-meta.xml files, or ask to share records with specific roles or groups. Also trigger when users want to retrieve or view existing sharing rules from an org, modify or remove existing sharing rules, or update sharing rule criteria or access levels. DO NOT TRIGGER when user needs permission sets or profiles (use platform-permission-set-generate), or needs object-level security rather than record-level sharing (use platform-permission-set-generate).

ユースケース
  • 共有ルールのメタデータを取得・確認したい
  • 特定の役職やグループとレコードを共有する
  • 既存の共有ルールを変更・削除する
  • 共有ルールの条件やアクセスレベルを更新する
本文(日本語訳)

共有ルールジェネレーター

Salesforceの共有ルール(アクセス権限)の作成、編集、削除を行い、組織全体の既定設定を超えたレコードレベルのアクセス制御を実現します。条件ベースのルール、ロール/グループベースのオーナールール、Experience Sites向けのゲストユーザールールに対応しています。

対応範囲

対応する機能:

  • sharingCriteriaRules(条件ベースのルール)、sharingOwnerRules(ロール/グループベースのルール)、sharingGuestRules(ゲストユーザールール)メタデータの作成、編集、削除
  • 組織内の既存共有ルールの取得
  • 既存ファイルへの新規ルール追加
  • ルールの条件、アクセスレベル、共有先の変更
  • メタデータファイルからのルール削除
  • ゲスト及びポータルプロファイル向けのルール設定

非対応の機能:

  • 組織全体の既定設定(OWD)の変更
  • Experience Sitesの作成
  • 権限セットやプロファイルの設定(platform-permission-set-generateスキルを使用してください)
  • テリトリーベースの共有ルール

事前確認事項

作業を進める前に、不明な点は以下の内容をユーザーに確認してください。

新規作成時:

  • どのオブジェクトにルールを適用するか?(標準オブジェクト名またはカスタムオブジェクトのAPI名)
  • ルールのタイプは?(条件ベース、ロール/グループベースのオーナールール、ゲストユーザールール)
  • レコードは誰と共有するか?(ロール名、グループ、ポータルロール、ゲストユーザーのニックネーム)
  • アクセスレベルは?(閲覧のみまたは閲覧・編集)
  • 条件ベースのルールの場合:どのフィールドの条件を満たす必要があるか?

編集時:

  • どの既存ルールを変更するか?(ルールの完全名またはラベル)
  • 何を変更するか?(アクセスレベル、共有先、条件、ラベル)

削除時:

  • どのルールを削除するか?(ルールの完全名またはラベル)
  • そのルールが属するオブジェクトを確認してください

必須入力情報

作業を開始する前に以下の情報を確認または推測してください。

  • オブジェクトのAPI名: ルールが対象とするsObject(例:Account、Property__c)
  • ルールタイプ: sharingCriteriaRules、sharingOwnerRules、sharingGuestRulesのいずれか
  • 共有先: ロール、グループ、ポータルロール、またはゲストユーザーのコミュニティニックネーム
  • アクセスレベル: Read(閲覧のみ)またはEdit(読取/書込)
  • 条件(条件ベース・ゲストルールの場合): 各フィルター項目のフィールド名、操作、値

指定がない場合のデフォルト値:

  • アクセスレベル: Read
  • includeRecordsOwnedByAll: 条件ベースルールの場合はtrue
  • includeHVUOwnedRecords: ゲストルールの場合はfalse
  • 取引先共有ルールには全サブアクセスレベルをNoneに設定したaccountSettingsを含める

作業フロー

各フェーズ内のステップは順序立てて実行します。フェーズ3は操作タイプごとに分岐します。該当する部分だけを実行してください。

フェーズ1 — 情報の確認

  1. SFDXプロジェクトパスの確認 — プロジェクトのsfdx-project.jsonを探し、sharingRules/ディレクトリのパッケージディレクトリを特定してください。

  2. 既存共有ルールの確認 — <packageDir>/sharingRules/<ObjectName>.sharingRules-meta.xmlが存在するか確認してください。存在する場合は読み込んで、既存ルールの内容を把握し、重複を避けてください。

  3. ローカルファイルが存在しない場合は、組織から取得してください: sf project retrieve start --metadata "SharingRules:<ObjectName>" --target-org <org>

フェーズ2 — 操作内容とルールタイプの判定

  1. 操作内容の識別 — ユーザーが共有ルールの作成、編集、または削除のどれを望んでいるか判定してください。

  2. ユーザーの意図に基づいてルールタイプを選択してください。各タイプの完全なスキーマと必須要素については、references/rule-types.mdを読んでください。

  3. 取引先共有ルールの場合: accountSettings要素が必須です。ユーザーが別の指定をしていない限り、サブアクセスレベルはすべてNoneに設定してください。

  4. ゲストルールの場合: sharedToは、そのサイトのゲストユーザーのコミュニティニックネームを使って<guestUser>を使用する必要があります。ゲストルールに<role>や<group>を使用しないでください。

フェーズ3 — 操作の実行

新規作成の場合:

8a. XMLを構築してください — references/rule-types.mdのスキーマに従います。重要な構造: - オブジェクトごとに1つの.sharingRules-meta.xmlファイル - 同じオブジェクトのすべてのルールは同じファイルに格納 - 既存ファイルに追加する場合は、既存の<SharingRules>ルート要素内に新しいルール要素を追加してください

8b. ルール名を付けてください — 意図に基づいて<fullName>を導出します(パスカルケース、スペースなし、説明的な名前)。対応する<label>をタイトルケース(単語の最初を大文字)でスペースを含めて生成してください。

編集の場合:

8a. 対象ルールを特定してください — 既存の.sharingRules-meta.xmlファイルで<fullName>または<label>によってルールを探します。

8b. 変更内容を判定してください — 変更する要素(例:<accessLevel>、<sharedTo>、<criteriaItems>、<label>)と新しい値を特定してください。この時点では書き込まないでください。すべてのディスク書き込みはフェーズ5でユーザーの確認後に行います。

削除の場合:

8a. 対象ルールを特定してください — 既存の.sharingRules-meta.xmlファイルで<fullName>または<label>によってルールを探します。

8b. 残存ルール数を確認してください — grep -c '<sharingCriteriaRules>\|<sharingOwnerRules>\|<sharingGuestRules>' <file>を実行してルール総数を取得します。数が1の場合(削除対象のみ)は、ファイル全体をフェーズ5で削除する必要があります。この時点では書き込まないでください。すべてのディスク書き込みはフェーズ5でユーザーの確認後に行います。

フェーズ4 — ユーザーへの確認 【重要】

  1. ディスクに書き込む前に、変更内容のサマリーを提示してください。ユーザーの確認を待つために必ず停止してください。サマリーは以下の形式でフォーマットしてください。

    操作: 作成 / 編集 / 削除 オブジェクト: <ObjectName> ルール: <fullName>(<label>) 変更内容: (作成/変更/削除する内容を説明)

    実行しますか? (yes / no / edit)

    ユーザーが明示的に確認するまで、ファイル変更を書き込まないでください。 ユーザーが「no」と言った場合は中止してください。ユーザーが「edit」と言った場合は、フィードバックを反映して再度提示してください。

フェーズ5 — 書き込みと検証

  1. ユーザーが確認した後にのみ変更を適用してください:

    • 作成: ファイルを<packageDir>/sharingRules/<ObjectName>.sharingRules-meta.xmlに書き込んでください。
    • 編集: ステップ8bで特定した要素のみを更新してください。その他のすべての要素は元のままにしてください。
    • 削除(ルールが残る場合): 対象ルールを削除した更新済みファイルを書き込んでください。
    • 削除(最後のルール): ファイル<packageDir>/sharingRules/<ObjectName>.sharingRules-meta.xml全体を削除してください。
  2. 以下の検証チェックリストを実行し、出力を提示する前に、シナリオ別の予期される動作についてサンプルファイル(examples/create-cases.md、examples/edit-cases.md、examples/delete-cases.md)を確認してください。


検証チェックリスト

全ルール共通の確認項目

  • [ ] ファイルにXML宣言と<SharingRules xmlns="http://soap.sforce.com/2006/04/metadata">ルート要素がありますか?
  • [ ] オブジェクトごとに正確に1つのファイルがあり、すべてのルールがその中に含まれていますか?
  • [ ] <fullName>がパスカルケースでスペースなしですか?
  • [ ] <label>が存在し、人間が読める形式ですか?
  • [ ] <accessLevel>がReadまたはEditのいずれかですか?

条件ベースルールの確認項目

  • [ ] <includeRecordsOwnedByAll>が存在しますか(必須のブール値)?
  • [ ] 各<criteriaItems>に<field>、<operation>、<value>がありますか?
  • [ ] ピックリスト値は対象組織で有効ですか?

ゲストルールの確認項目 【重要】

  • [ ] <sharedTo>が<guestUser>を使用していますか(<role>や<group>ではなく)?
  • [ ] <includeHVUOwnedRecords>が存在しますか(必須のブール値)?
  • [ ] <includeRecordsOwnedByAll>が存在していませんか(条件ベースルールのみで、ゲストルールには不要)?

オーナールールの確認項目

  • [ ] ルールに<sharedFrom>と<sharedTo>の両要素がありますか?
  • [ ] どちらも有効な<role>、<roleAndSubordinates>、または<group>ターゲットを使用していますか?

編集操作の確認項目

  • [ ] 意図した要素のみが変更されましたか?
  • [ ] 編集後もすべての必須要素が存在していますか?
  • [ ] 変更されたルールは上記の共通チェックをパスしていますか?
  • [ ] 書き込み前にユーザーの確認が取得されましたか?

削除操作の確認項目

  • [ ] 正しいルール(<fullName>で一致)が削除されましたか?
  • [ ] 残りのXMLが適切な<SharingRules>ルート要素を持つ整形済み状態ですか?
  • [ ] ルールが残らない場合、ファイルは完全に削除されましたか?
  • [ ] 書き込み前にユーザーの確認が取得されましたか?

取引先固有の確認項目 【重要】

  • [ ] オブジェクトが取引先の場合、<accountSettings>が3つすべてのサブ要素を含めて存在しますか?
  • [ ] <caseAccessLevel>、<contactAccessLevel>、<opportunityAccessLevel>がすべて設定されていますか?

ルール / 制約事項

制約 理由
オブジェクトごとに1つの.sharingRules-meta.xmlファイル プラットフォームの要件 — 複数ファイルはデプロイエラーの原因
ゲストルールはsharedToに<guestUser>を使用する必須 <role>や<group>を使用すると「Specify a guest user's nickname for the guestUser field」エラーが発生
取引先ルールは<accountSettings>を必須とする なければ「AccountSettings is required for account sharing rules」エラーが発生
includeRecordsOwnedByAllは条件ベースルールで必須 なければ「Required field is missing: sharingCriteriaRules」エラーが発生
includeHVUOwnedRecordsはゲストルールで必須 なければデプロイエラーが発生
条件フィールド値は組織内のピ
原文(English)を表示

Sharing Rules Generator

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.

Scope

  • In scope: Creating, editing, deleting, and retrieving (getting) 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.
  • Out of scope: Changing org-wide defaults (OWD/sharing model), creating Experience Sites, configuring permission sets or profiles (use platform-permission-set-generate), territory-based sharing rules.

Clarifying Questions

Before proceeding, confirm with the user if not already clear:

For Get operations:

  • Which object's sharing rules should be retrieved? (standard or custom object API name, or all objects)
  • Which target org should the rules be retrieved from? (org alias or default)

For Create operations:

  • Which object should the sharing rule apply to? (standard or custom object API name)
  • What type of rule? (criteria-based, role/group-based owner rule, or guest user rule)
  • Who should records be shared with? (role name, group, portal role, or guest user nickname)
  • What access level? (Read or Read/Write)
  • For criteria-based rules: what field conditions should match?

For Edit operations:

  • Which existing rule should be modified? (rule fullName or label)
  • What should change? (access level, criteria, label — note: sharedTo and sharedFrom cannot be edited in place)

For Delete operations:

  • Which rule(s) should be removed? (rule fullName or label)
  • Confirm the object the rule belongs to

Required Inputs

Gather or infer before proceeding:

  • Object API name: The sObject the rule targets (e.g., Account, Property__c)
  • Rule type: One of sharingCriteriaRules, sharingOwnerRules, or sharingGuestRules
  • Shared-to target: Role, group, portal role, or guest user community nickname
  • Access level: Read or Edit (maps to Read-Only or Read/Write)
  • Criteria (for criteria/guest rules): Field name, operation, and value for each filter item

Defaults unless specified:

  • Access level: Read
  • includeRecordsOwnedByAll: true for criteria rules
  • includeHVUOwnedRecords: false for guest rules
  • Account sharing rules include accountSettings with all sub-access levels set to None

Workflow

Steps 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).

Phase 1 — Discover

  1. Resolve the SFDX project path — find the project's sfdx-project.json and identify the package directory for sharingRules/.

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

  3. Read the retrieved file — parse <packageDir>/sharingRules/<ObjectName>.sharingRules-meta.xml to understand existing rules and avoid duplicates.

Phase 2 — Determine Operation and Rule Type

  1. Identify the operation — determine whether the user wants to get, create, edit, or delete a sharing rule.

  2. Select the rule type based on user intent. Read references/rule-types.md for the complete schema of each type and its required elements.

  3. For Account sharing rules: the accountSettings element is required. Default sub-access levels to None unless the user specifies otherwise.

  4. For Guest rules: the sharedTo must use <guestUser> with the site guest user's community nickname. Never use <role> or <group> for guest rules.

Phase 3 — Execute Operation

For Get:

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.

For Create:

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.

For Edit:

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

For Delete:

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

Phase 4 — Write and Verify

  1. Apply the change:

    • Create: Write the file to <packageDir>/sharingRules/<ObjectName>.sharingRules-meta.xml.
    • Edit: Update only the elements identified in step 8b; preserve all other elements exactly as they were.
    • Delete (rules remain): Write the updated file with the target rule removed.
    • Delete (last rule): Remove the file <packageDir>/sharingRules/<ObjectName>.sharingRules-meta.xml entirely.
  2. 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.


Verification Checklist

Universal Checks

  • [ ] Does the file have the XML declaration and <SharingRules xmlns="http://soap.sforce.com/2006/04/metadata"> root?
  • [ ] Is there exactly one file per object with all rules inside it?
  • [ ] Does <fullName> use PascalCase with no spaces?
  • [ ] Is <label> present and human-readable?
  • [ ] Is <accessLevel> one of Read or Edit?

Criteria Rule Checks

  • [ ] Is <includeRecordsOwnedByAll> present (required boolean)?
  • [ ] Does each <criteriaItems> have <field>, <operation>, and <value>?
  • [ ] Are picklist values valid for the target org?

Guest Rule Checks CRITICAL

  • [ ] Does <sharedTo> use <guestUser> (NOT <role> or <group>)?
  • [ ] Is <includeHVUOwnedRecords> present (required boolean)?
  • [ ] Is <includeRecordsOwnedByAll> ABSENT (only for criteria rules, not guest rules)?

Owner Rule Checks

  • [ ] Does the rule have both <sharedFrom> and <sharedTo> elements?
  • [ ] Do both use valid <role>, <roleAndSubordinates>, or <group> targets?

Edit Operation Checks

  • [ ] Was the edit against a freshly retrieved file (not a stale local copy)?
  • [ ] Is the edit limited to supported fields for the rule type?
    • Owner rules: only accessLevel
    • Criteria rules: accessLevel, criteriaItems, label, booleanFilter
    • Guest rules: accessLevel, criteriaItems, label, includeHVUOwnedRecords
  • [ ] Was sharedTo/sharedFrom left unchanged? (if user requested that change, refuse and advise delete + create)
  • [ ] Was only the intended element modified?
  • [ ] Are all required elements still present after the edit?
  • [ ] Does the modified rule still pass the universal checks above?

Delete Operation Checks

  • [ ] Was the correct rule removed (matched by <fullName>)?
  • [ ] Is the remaining XML well-formed with proper <SharingRules> root?
  • [ ] If no rules remain, was the file removed entirely?
  • [ ] Was platform-destructive-deploy delegated to with the correct metadata type (SharingCriteriaRule, SharingOwnerRule, or SharingGuestRule)?

Account-Specific Checks CRITICAL

  • [ ] If object is Account, is <accountSettings> present with all three sub-elements?
  • [ ] Are <caseAccessLevel>, <contactAccessLevel>, <opportunityAccessLevel> all set?

Rules / Constraints

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

Gotchas

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

Output Expectations

Deliverables:

  • For get operations: <packageDir>/sharingRules/<ObjectName>.sharingRules-meta.xml — retrieved sharing rules file from the org, plus a formatted summary of all rules found
  • For create/edit/delete operations: <packageDir>/sharingRules/<ObjectName>.sharingRules-meta.xml — complete sharing rules file for the target object

Cross-Skill Integration

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

Reference File Index

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

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。