Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
jaganpro avatar

Sf Metadata

  • 35 installs
  • 423 repo stars
  • Updated April 27, 2026
  • jaganpro/claude-code-sfskills

Generate and query Salesforce metadata such as custom objects, fields, validation rules, record types, layouts, and permission sets with the sf CLI.

About

This skill handles Salesforce metadata definition and org discovery for objects, fields, validation rules, and permission sets. A developer uses it to generate metadata XML from requirements or inspect org schema before coding or Flow work.

  • Generation and querying of object/field/validation-rule metadata
  • 120-point scoring across 6 categories with sf CLI schema inspection

Sf Metadata by the numbers

  • 35 all-time installs (skills.sh)
  • Ranked #3,328 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/jaganpro/claude-code-sfskills --skill sf-metadata

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs35
repo stars423
Last updatedApril 27, 2026
Repositoryjaganpro/claude-code-sfskills

What it does

Generate and query Salesforce metadata such as custom objects, fields, validation rules, record types, layouts, and permission sets with the sf CLI.

Files

SKILL.mdMarkdownGitHub ↗

sf-metadata: Salesforce Metadata Generation and Org Querying

Use this skill when the user needs metadata definition or org metadata discovery: custom objects, fields, validation rules, record types, page layouts, permission sets, or schema inspection with sf CLI.

When This Skill Owns the Task

Use sf-metadata when the work involves:

  • object, field, validation rule, record type, layout, profile, or permission-set metadata
  • .object-meta.xml, .field-meta.xml, .profile-meta.xml, and related metadata files
  • describing schema before coding or Flow work
  • generating metadata XML from requirements

Delegate elsewhere when the user is:

  • analyzing permission access rather than defining metadata → sf-permissions
  • deploying metadata → sf-deploy
  • editing Flow XML → sf-flow

---

Required Context to Gather First

Ask for or infer:

  • whether the user wants generation or querying
  • metadata type(s) involved
  • target object / field / package directory
  • target org alias if querying is required
  • whether permission-set or FLS follow-up will be needed

---

Recommended Workflow

1. Choose the mode

ModeUse when
generationthe user wants new or updated metadata XML
queryingthe user needs object / field / metadata discovery

2. Start from templates or CLI describe data

For generation, use the assets under:

  • assets/objects/
  • assets/fields/
  • assets/permission-sets/
  • assets/profiles/
  • assets/record-types/
  • assets/validation-rules/
  • assets/layouts/

For querying, prefer sf metadata and sobject describe commands.

3. Validate metadata quality

Check:

  • naming conventions
  • structural correctness
  • field-type fit
  • security / FLS implications
  • downstream deployment dependencies

4. Plan permission impact

When new fields or objects are created, account for permission-set follow-up and layout visibility.

5. Hand off deployment

Use sf-deploy when the user needs the metadata rolled out.

---

High-Signal Rules

  • field-level security is often the hidden blocker after deployment
  • prefer permission sets over profile-centric access patterns
  • avoid hardcoded IDs in formulas or metadata logic
  • validation rules should have intentional bypass strategy when operationally necessary
  • create metadata before attempting Flow or data tasks that depend on it

---

Output Format

When finishing, report in this order: 1. Metadata created or queried 2. Files created or updated 3. Key schema/security decisions 4. Permission / layout follow-ups 5. Deploy next step

Suggested shape:

Metadata task: <generate / query>
Items: <objects, fields, rules, layouts, permsets>
Files: <paths>
Notes: <naming, field types, security, dependencies>
Next step: <deploy, assign permset, or verify in Setup>

---

Cross-Skill Integration

NeedDelegate toReason
deploy metadatasf-deployrollout and validation
build Flows on new schemasf-flowdeclarative automation
build Apex on new schemasf-apexcode against metadata
analyze permission access after creationsf-permissionsaccess auditing
seed data after deploysf-datatest data creation

---

Reference Map

Start here

  • references/field-and-cli-reference.md
  • references/metadata-types-reference.md
  • references/naming-conventions.md
  • references/orchestration.md

Security / scoring / examples

  • references/fls-best-practices.md
  • references/permset-auto-generation.md
  • references/best-practices-scoring.md
  • references/field-types-guide.md
  • references/field-types-example.md
  • references/custom-object-example.md
  • references/permission-set-example.md
  • references/profile-permission-guide.md
  • references/sf-cli-commands.md
  • assets/

---

Score Guide

ScoreMeaning
108+strong production-ready metadata
96–107good metadata with minor review items
84–95acceptable but validate carefully
< 84block deployment until corrected

Related skills

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.