kugamon/salesforce-core-skills / plugins/salesforce-core/skills/sf-metadata
sf-metadata
VerifiedSalesforce 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} ...
assets/fields/formula-field.xml
View on GitHub<?xml version="1.0" encoding="UTF-8"?>
<!--
Formula Field Template
Usage: Calculated field based on other fields
Placeholders:
- {{FIELD_API_NAME}} - API name ending in __c (e.g., "Full_Name__c")
- {{FIELD_LABEL}} - User-friendly label (e.g., "Full Name")
- {{FORMULA_RETURN_TYPE}} - Text, Number, Currency, Date, DateTime, Checkbox
- {{FORMULA}} - The formula expression
- {{PRECISION}} - Total digits (for Number/Currency/Percent)
- {{SCALE}} - Decimal places (for Number/Currency/Percent)
- {{BLANK_AS_ZERO}} - true (treat blank as zero) or false (treat as blank)
- {{DESCRIPTION}} - Field purpose
- {{HELP_TEXT}} - Inline help for users
Return Type Options:
- Text: Returns string value
- Number: Returns numeric value
- Currency: Returns monetary value
- Percent: Returns percentage (0-100 stored, displayed with %)
- Date: Returns date value
- DateTime: Returns date/time value
- Checkbox: Returns true/false
Notes:
- Formula fields are read-only
- Counted against formula character limit (5,000 compiled)
- Can reference fields up to 10 relationships away
- Use TEXT() for picklist values in formulas
-->
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>{{FIELD_API_NAME}}</fullName>
<label>{{FIELD_LABEL}}</label>
<type>{{FORMULA_RETURN_TYPE}}</type>
<!-- Include precision/scale for Number, Currency, Percent types -->
<precision>{{PRECISION}}</precision>
<scale>{{SCALE}}</scale>
<formula>{{FORMULA}}</formula>
<formulaTreatBlanksAs>{{BLANK_AS_ZERO}}</formulaTreatBlanksAs>
<description>{{DESCRIPTION}}</description>
<inlineHelpText>{{HELP_TEXT}}</inlineHelpText>
<trackHistory>false</trackHistory>
<trackTrending>false</trackTrending>
</CustomField>
<!--
Common Formula Examples:
Text concatenation:
FirstName__c & " " & LastName__c
Conditional (IF):
IF(Amount__c > 100000, "Large", IF(Amount__c > 10000, "Medium", "Small"))
Date calculation:
TODAY() - CreatedDate
Picklist reference:
TEXT(Status__c)
Cross-object reference:
Account.Industry
NULL handling:
BLANKVALUE(Phone__c, "No Phone")
CASE statement:
CASE(Status__c,
"New", 1,
"In Progress", 2,
"Completed", 3,
0)
-->
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 472k | Updated | Claude CodeCodex | Verified | Install |
| 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: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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 available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |