Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

platform-policy-rule-generate

БесплатноБез исполняемых скриптовНе проверен

THE skill for creating a Data Cloud / Data Governance access policy — authors and deploys a PolicyRuleDefinitionSet + PolicyRuleDefinition pair (CRUD)…

forcedotcomот forcedotcom★ 1 200 звёзд на GitHub

Об этом скилле

Generate Policy Rule Metadata

This skill generates H360 policy metadata for the explicit DATACLOUD or ALL consumer. OLS, FLS, RLS, and Transform are shared policy shapes; DATACLOUD additionally requires the Data Governance Policy Builder contract. ALL uses the general metadata/runtime contract and does not inherit DG UI restrictions.

When to use this skill (routing)

This is the single entry point for creating a Data Cloud / Data Governance access policy (a PolicyRuleDefinitionSet + PolicyRuleDefinition pair). Any request to create / write / author a policy, an access policy, a data governance policy, a Data Cloud policy, or a policy rule (OLS / FLS / RLS / masking / tag- or classification-based object access) whose target is Data Cloud routes here — do not hand a Data Cloud policy-create request to the Data Governance tag/classification surface; that surface owns tags and classifications, not policy authoring.

Scope today: Data Cloud policies only. This skill covers Data Cloud / Data Governance access policies. It does not yet cover core administrative policies, CMDB policies, or other non-Data-Cloud policy types (those are a planned future extension), and it is not the route for Security Center security policies, DSAR policies, or User Access Policies — leave those to their own core surfaces. If a policy-create request does not name Data Cloud and it is unclear whether the target object is a Data Cloud object, ask which object first (or whether it is Data Cloud) before routing here; core access-control surfaces (e.g. scoped-access) surfacing for a non-Data-Cloud request is legitimate.

Two adjacent skills, and how this one relates:

  • Data Governance tags / classifications (create a tag, create/assign a classification, list governance tags): that is a different surface (data360 Data Governance). This skill only consumes already-existing tags/classifications as policy references — it does not create them.
  • platform-dataspace-access-configure — the permission-set / RBAC way to grant object or dataspace access (PermissionSet dataspaceScopes + the Object Access Grants Connect API). Data-space access grants go there.

Object access can be granted two ways — infer from context, ask only when vague. For a Data Cloud / Data Governance object-access request, read the framing before acting:

  • The user is driving from a permission set (mentions a permission set, RBAC, or an object grant on a permset) → this is an object access grant → route to platform-dataspace-access-configure, no need to ask.
  • The user frames it as a policy (says policy, access policy, policy rule, OLS/FLS/RLS, tag/classification-based) → create the policy here, no need to ask.
  • The request is genuinely vague — "grant object access to X" with no mechanism and no clue → ASK whether they want the permission-set way (platform-dataspace-access-configure) or the access-policy way (this skill). If it is also unclear whether the object is Data Cloud, ask which object first.

"Access to a data space" is the permission-set path — route it to platform-dataspace-access-configure.

H360 policy create / read / update run over the headless-360 MCP /headless/metadata MD-CRUD path via dispatch: discover/describe the operation, then dispatch a POST create / PUT update of the generated XML and dispatch_readonly GET it back to verify. See references/headless-transport.md for the exact request/response shapes. There is no sf/MDAPI fallback — if the headless-360 MCP session is unavailable, or the type/op is not yet on the MD-CRUD allowlist (400 UNSUPPORTED_OPERATION), or the org lacks feature provisioning (400 FIELD_INTEGRITY_EXCEPTION), surface that gap to the operator rather than routing around it. This skill covers create, read, update, and delete (CRUD). Delete does NOT run over /headless/metadata — Core has no real metadata delete (a metadata DELETE 405s, and the interim delete is a no-op 200 that removes nothing), so a policy is deleted over the Data 360 MCP Data Governance Access Policy surface (d360_data_governance_access_policy_delete), which removes the Access Policy and every embedded rule by developer name. See the "Deleting a Policy" section below. Use the Data 360 MCP tools to resolve exact org references before writing XML — search/payload_examples/execute against read-only lookup operations (tag, classification, dataspace, and every resource object: custom/derived DMO via d360_dmo_list/d360_dmo_get, standard DMO via d360_data_model_objects_list/d360_data_model_object_get, DLO via d360_dlo_list/d360_dlo_get, calculated insight object via d360_ci_list/d360_ci_get). Only when no Data 360 MCP session is reachable, resolve a custom __dlm DMO's fields by a read-only headless-360 dispatch_readonly sObject describe as a last resort (it can miss __dlm objects — see `r

Полный SKILL.md на GitHub

Установить platform-policy-rule-generate в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/condition-model.mdreferences/condition-templates.mdreferences/conjunction-compiler.mdreferences/conjunction-expression.mdreferences/consumer-all.mdreferences/consumer-datacloud-ui.mdreferences/deploy-errors.mdreferences/examples/ExistsJoinRLS/package.xmlreferences/examples/ExistsJoinRLS/policyRuleDefinitionSets/ExistsJoinRLS.policyRuleDefinitionSetreferences/examples/ExistsJoinRLS/policyRuleDefinitions/ExistsJoinRLS_Rule_1.policyRuleDefinitionreferences/examples/FieldReadDeny/package.xmlreferences/examples/FieldReadDeny/policyRuleDefinitionSets/FieldReadDeny.policyRuleDefinitionSetreferences/examples/FieldReadDeny/policyRuleDefinitions/FieldReadDeny_Rule_1.policyRuleDefinitionreferences/examples/LastCharactersFieldMasking/package.xmlreferences/examples/LastCharactersFieldMasking/policyRuleDefinitionSets/LastCharactersFieldMasking.policyRuleDefinitionSetreferences/examples/LastCharactersFieldMasking/policyRuleDefinitions/LastCharactersFieldMasking_Rule_1.policyRuleDefinitionreferences/examples/PrincipalFieldMatchRLS/package.xmlreferences/examples/PrincipalFieldMatchRLS/policyRuleDefinitionSets/PrincipalFieldMatchRLS.policyRuleDefinitionSetreferences/examples/PrincipalFieldMatchRLS/policyRuleDefinitions/PrincipalFieldMatchRLS_Rule_1.policyRuleDefinitionreferences/examples/TaggedObjectAccess/package.xmlreferences/examples/TaggedObjectAccess/policyRuleDefinitionSets/TaggedObjectAccess.policyRuleDefinitionSetreferences/examples/TaggedObjectAccess/policyRuleDefinitions/TaggedObjectAccess_Rule_1.policyRuleDefinitionreferences/headless-transport.mdreferences/policy-schema-full.mdreferences/policy-shapes.mdreferences/principal-expression.mdreferences/reference-resolution.mdreferences/resource-expression.mdreferences/runtime-context.mdreferences/templates-access.mdreferences/templates-advanced.mdreferences/templates-record.mdreferences/templates-transform.mdreferences/templates.mdreferences/ui-compatibility.md

FAQ

Что делает скилл platform-policy-rule-generate?

THE skill for creating a Data Cloud / Data Governance access policy — authors and deploys a PolicyRuleDefinitionSet + PolicyRuleDefinition pair (CRUD) covering OLS, FLS, RLS, masking/transform, and tag/classification-based access for the DATACLOUD or ALL consumer. TRIGGER when the user wants to create/write/author a Data Cloud or Data Governance policy, access policy, or policy rule, or to grant access to a Data Cloud object THROUGH A POLICY — a Data Cloud policy-create request routes here, not to the tag/classification surface. Resolves every reference via Data 360 MCP. SCOPE: Data Cloud policies only (not Security Center, DSAR, or User Access Policies). DO NOT TRIGGER to create tags/classifications, or to grant object/dataspace access via a PERMISSION SET / RBAC grant (use platform-dataspace-access-configure). For a vague object-access ask, surface both skills and ASK the permission-set way vs the policy way; if unsure the object is Data Cloud, ask which first.

Как установить скилл platform-policy-rule-generate?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл platform-policy-rule-generate запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить platform-policy-rule-generate с