Skip to content

kugamon/salesforce-core-skills / plugins/salesforce-core/skills/sf-metadata

sf-metadata

Verified

Salesforce metadata operations expert. Use when creating custom objects, fields, validation rules, record types, permission sets, or querying org metadata structures via a Salesforce MCP server. Do NOT use for comparing metadata across two orgs (use sf-orgdiff), Named or External Credentials and Platform Events (use sf-integration), or querying and loading records (use sf- data). Usage: /sf-metadata [create|update|delete|describe] {ObjectName|FieldName|type} ...

FileKindSize
CREDITS.mdmarkdown2.3 KB
LICENSEother1.1 KB
README.mdmarkdown3.5 KB
SKILL.mdskill md33.8 KB
assets/fields/checkbox-field.xmlconfig971 B
assets/fields/currency-field.xmlconfig1.3 KB
assets/fields/date-field.xmlconfig1.0 KB
assets/fields/email-field.xmlconfig1.1 KB
assets/fields/formula-field.xmlconfig2.3 KB
assets/fields/lookup-field.xmlconfig2.1 KB
assets/fields/master-detail-field.xmlconfig1.8 KB
assets/fields/multi-select-picklist.xmlconfig2.0 KB
assets/fields/number-field.xmlconfig1.4 KB
assets/fields/phone-field.xmlconfig1.0 KB
assets/fields/picklist-field.xmlconfig2.1 KB
assets/fields/rollup-summary-field.xmlconfig2.7 KB
assets/fields/text-field.xmlconfig1.2 KB
assets/fields/textarea-field.xmlconfig1.1 KB
assets/fields/url-field.xmlconfig940 B
assets/layouts/page-layout.xmlconfig6.5 KB
assets/objects/custom-object.xmlconfig2.4 KB
assets/permission-sets/permission-set.xmlconfig5.7 KB
assets/profiles/profile.xmlconfig5.2 KB
assets/record-types/record-type.xmlconfig3.7 KB
assets/validation-rules/validation-rule.xmlconfig5.1 KB
references/best-practices-scoring.mdmarkdown3.6 KB
references/customfield-metadata-schema.jsonconfig16.1 KB
references/customobject-metadata-schema.jsonconfig49.9 KB
references/execution-modes.mdmarkdown7.0 KB
references/field-types-guide.mdmarkdown8.8 KB
references/flexipage-metadata-schema.jsonconfig11.6 KB
references/fls-best-practices.mdmarkdown7.8 KB
references/layout-metadata-schema.jsonconfig17.8 KB
references/mcp-pagination.mdmarkdown3.1 KB
references/metadata-types-reference.mdmarkdown8.5 KB
references/naming-conventions.mdmarkdown5.6 KB
references/permset-auto-generation.mdmarkdown2.8 KB
references/quickaction-metadata-schema.jsonconfig6.9 KB
references/recordtype-metadata-schema.jsonconfig2.9 KB
references/validationrule-metadata-schema.jsonconfig1.2 KB
scripts/mcp_validator.pyscript4.5 KB
scripts/pre-mcp-validate.pyscript4.3 KB
scripts/validate_metadata_operation.pyscript13.9 KB

references/flexipage-metadata-schema.json

View on GitHub
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "/schemas/salesforce-flexipage-metadata.json",
  "title": "Salesforce FlexiPage Metadata",
  "description": "JSON Schema for Salesforce FlexiPage metadata (API v66.0). Auto-generated from the org's metadata WSDL by pull_schema.py.",
  "type": "object",
  "$defs": {
    "ComponentInstance": {
      "type": "object",
      "properties": {
        "componentInstanceProperties": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ComponentInstanceProperty"
          }
        },
        "componentName": {
          "type": "string"
        },
        "identifier": {
          "type": "string"
        },
        "visibilityRule": {
          "$ref": "#/$defs/UiFormulaRule"
        }
      },
      "additionalProperties": true,
      "required": ["componentName"]
    },
    "ComponentInstanceProperty": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": ["decorator"]
        },
        "value": {
          "type": "string"
        },
        "valueList": {
          "$ref": "#/$defs/ComponentInstancePropertyList"
        }
      },
      "additionalProperties": true
    },
    "ComponentInstancePropertyList": {
      "type": "object",
      "properties": {
        "valueListItems": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ComponentInstancePropertyListItem"
          }
        }
      },
      "additionalProperties": true
    },
    "ComponentInstancePropertyListItem": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string"
        },
        "visibilityRule": {
          "$ref": "#/$defs/UiFormulaRule"
        }
      },
      "additionalProperties": true
    },
    "FieldInstance": {
      "type": "object",
      "properties": {
        "fieldInstanceProperties": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FieldInstanceProperty"
          }
        },
        "fieldItem": {
          "type": "string"
        },
        "identifier": {
          "type": "string"
        },
        "visibilityRule": {
          "$ref": "#/$defs/UiFormulaRule"
        }
      },
      "additionalProperties": true,
      "required": ["fieldItem"]
    },
    "FieldInstanceProperty": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "FlexiPage": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "events": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FlexiPageEvent"
          }
        },
        "flexiPageRegions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FlexiPageRegion"
          }
        },
        "masterLabel": {
          "type": "string"
        },
        "parentFlexiPage": {
          "type": "string"
        },
        "platformActionlist": {
          "$ref": "#/$defs/PlatformActionList"
        },
        "quickActionList": {
          "$ref": "#/$defs/QuickActionList"
        },
        "sobjectType": {
          "type": "string"
        },
        "template": {
          "$ref": "#/$defs/FlexiPageTemplateInstance"
        },
        "type": {
          "type": "string",
          "enum": [
            "AppPage",
            "ObjectPage",
            "RecordPage",
            "HomePage",
            "ForecastingPage",
            "MailAppAppPage",
            "CommAppPage",
            "CommForgotPasswordPage",
            "CommLoginPage",
            "CommObjectPage",
            "CommQuickActionCreatePage",
            "CommRecordPage",
            "CommRelatedListPage",
            "CommSearchResultPage",
            "CommGlobalSearchResultPage",
            "CommSelfRegisterPage",
            "CommThemeLayoutPage",
            "UtilityBar",
            "RecordPreview",
            "EmbeddedServicePage",
            "CommCheckoutPage",
            "CommOrderConfirmationPage",
            "CommFlowPage",
            "EmailTemplatePage",
            "ApplicationLayout",
            "CommNoSearchResultsPage",
            "CommElectronicSignaturePage",
            "CommContractDocumentsPage",
            "CommContractDetailViewPage",
            "EmailContentPage",
            "ServiceDocument",
            "LandingPage",
            "CdpRecordPage",
            "SlackAppHome",
            "SlackMessage",
            "SlackModal",
            "SlackNotification",
            "EasyHomePage",
            "CardPage",
            "VoiceExtension",
            "ConfiguratorAppPage",
            "OmniSupervisorPage",
            "MobileAppPage"
          ]
        }
      },
      "additionalProperties": true,
      "required": ["masterLabel", "template", "type"]
    },
    "FlexiPageEvent": {
      "type": "object",
      "properties": {
        "sourceName": {
          "type": "string"
        },
        "sourceProperties": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FlexiPageEventSourceProperty"
          }
        },
        "sourceType": {
          "type": "string",
          "enum": ["Component"]
        },
        "targets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FlexiPageEventTarget"
          }
        }
      },
      "additionalProperties": true,
      "required": ["sourceName", "sourceType"]
    },
    "FlexiPageEventPropertyMapping": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "additionalProperties": true,
      "required": ["name"]
    },
    "FlexiPageEventSourceProperty": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "additionalProperties": true,
      "required": ["name", "value"]
    },
    "FlexiPageEventTarget": {
      "type": "object",
      "properties": {
        "mappings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FlexiPageEventPropertyMapping"
          }
        },
        "method": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "properties": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FlexiPageEventTargetProperty"
          }
        },
        "type": {
          "type": "string",
          "enum": [
            "FlexipageServices",
            "LwcServices",
            "InvocableApexServices",
            "InvocableExternalServices",
            "ActionServices",
            "ViewServices"
          ]
        }
      },
      "additionalProperties": true,
      "required": ["method", "name", "type"]
    },
    "FlexiPageEventTargetProperty": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "additionalProperties": true,
      "required": ["name", "value"]
    },
    "FlexiPageRegion": {
      "type": "object",
      "properties": {
        "appendable": {
          "type": "string",
          "enum": ["disabled", "enabled"]
        },
        "itemInstances": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ItemInstance"
          }
        },
        "mode": {
          "type": "string",
          "enum": ["Append", "Prepend", "Replace"]
        },
        "name": {
          "type": "string"
        },
        "prependable": {
          "type": "string",
          "enum": ["disabled", "enabled"]
        },
        "replaceable": {
          "type": "string",
          "enum": ["disabled", "enabled"]
        },
        "type": {
          "type": "string",
          "enum": ["Region", "Facet", "Background"]
        }
      },
      "additionalProperties": true,
      "required": ["name", "type"]
    },
    "FlexiPageTemplateInstance": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "properties": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ComponentInstanceProperty"
          }
        }
      },
      "additionalProperties": true,
      "required": ["name"]
    },
    "ItemInstance": {
      "type": "object",
      "properties": {
        "componentInstance": {
          "$ref": "#/$defs/ComponentInstance"
        },
        "fieldInstance": {
          "$ref": "#/$defs/FieldInstance"
        }
      },
      "additionalProperties": true
    },
    "PlatformActionList": {
      "type": "object",
      "properties": {
        "actionListContext": {
          "type": "string",
          "enum": [
            "ListView",
            "RelatedList",
            "ListViewRecord",
            "RelatedListRecord",
            "Record",
            "FeedElement",
            "Chatter",
            "Global",
            "Flexipage",
            "MruList",
            "MruRow",
            "RecordEdit",
            "Photo",
            "BannerPhoto",
            "ObjectHomeChart",
            "ListViewDefinition",
            "Dockable",
            "Lookup",
            "Assistant"
          ]
        },
        "platformActionListItems": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PlatformActionListItem"
          }
        },
        "relatedSourceEntity": {
          "type": "string"
        }
      },
      "additionalProperties": true,
      "required": ["actionListContext"]
    },
    "PlatformActionListItem": {
      "type": "object",
      "properties": {
        "actionName": {
          "type": "string"
        },
        "actionType": {
          "type": "string",
          "enum": [
            "QuickAction",
            "StandardButton",
            "CustomButton",
            "ProductivityAction",
            "ActionLink",
            "InvocableAction"
          ]
        },
        "sortOrder": {
          "type": "integer"
        },
        "subtype": {
          "type": "string"
        }
      },
      "additionalProperties": true,
      "required": ["actionName", "actionType", "sortOrder"]
    },
    "QuickActionList": {
      "type": "object",
      "properties": {
        "quickActionListItems": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QuickActionListItem"
          }
        }
      },
      "additionalProperties": true
    },
    "QuickActionListItem": {
      "type": "object",
      "properties": {
        "quickActionName": {
          "type": "string"
        }
      },
      "additionalProperties": true,
      "required": ["quickActionName"]
    },
    "UiFormulaCriterion": {
      "type": "object",
      "properties": {
        "leftValue": {
          "type": "string"
        },
        "operator": {
          "type": "string"
        },
        "rightValue": {
          "type": "string"
        }
      },
      "additionalProperties": true,
      "required": ["leftValue", "operator"]
    },
    "UiFormulaRule": {
      "type": "object",
      "properties": {
        "booleanFilter": {
          "type": "string"
        },
        "criteria": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/UiFormulaCriterion"
          }
        }
      },
      "additionalProperties": true
    }
  },
  "x-salesforce-api-version": "66.0",
  "$ref": "#/$defs/FlexiPage"
}
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall