Skip to content

forcedotcom/sf-skills / plugins/builder/platform-trust-security/skills/platform-encryption-configure

platform-encryption-configure

Verified

Configure Salesforce Shield Platform Encryption — generate deployable encryption settings and encrypted-field metadata, and answer key-model and lifecycle questions. TRIGGER when: user wants to turn on deterministic encryption, encrypt a field, set up Cache-Only Keys, External Key Management, or replay detection, or mentions Shield Platform Encryption, encryption at rest, deterministic vs probabilistic encryption, encryptionScheme, PlatformEncryptionSettings, EncryptionKeySettings, BYOK, BYOKMS, tenant secrets, key rotation, or .settings-meta.xml / .field-meta.xml for encryption — even when they don't say 'Shield'. SKIP when: user needs a generic custom field with no encryption (use platform-custom-field-generate), needs the raw Metadata API type reference (use platform-metadata-api-context-get), or asks about Classic Encryption (encrypted text fields), which is a different feature. Use this skill for any Platform Encryption configuration, field-encryption, or key-model question.

assets/encrypted-field.field-meta.xml

View on GitHub
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>{FIELD_API_NAME}__c</fullName>
    <label>{FIELD_LABEL}</label>
    <type>{FIELD_TYPE}</type>
    <length>{LENGTH}</length>
    <encryptionScheme>ProbabilisticEncryption</encryptionScheme>
</CustomField>
<!--
  TEMPLATE NOTES — delete this comment block before delivering the file.

  <type>:   Text for string fields up to 255 chars; LongTextArea only for 256+.
            "long text up to 255 characters" is Text, NOT LongTextArea.
  <encryptionScheme> must be exactly one of:
    ProbabilisticEncryption                strongest; NOT filterable/sortable/groupable
    CaseSensitiveDeterministicEncryption   filterable; exact-case equality
    CaseInsensitiveDeterministicEncryption filterable; case-normalized equality
    None                                   removes encryption
  Only deterministic schemes support filter / sort / group. A query that filters
  a probabilistically-encrypted field is REJECTED with INVALID_FIELD.
-->

rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall