sf-metadata

Generate and query Salesforce metadata using sf CLI v2.

423|97|Updated Nov 30, 2025
One-click install
npx skills add https://github.com/Jaganpro/sf-skills --skill sf-metadata
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-metadata
Source: https://github.com/Jaganpro/sf-skills/tree/main/sf-metadata/skills/sf-metadata
Command: npx skills add https://github.com/Jaganpro/sf-skills --skill sf-metadata

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sf-cli, python, and includes scripts (resource) components.

What problem does it solve?

Manually creating and managing Salesforce metadata (objects, fields, profiles, permission sets, validation rules) is repetitive, error-prone, and time-consuming. This Skill automates metadata generation and querying, ensuring best practices and Field-Level Security (FLS) compliance.

Core Features & Use Cases

  • Metadata Generation: Create custom objects, fields, permission sets, validation rules, record types, and page layouts with built-in best practices.
  • Org Querying: Describe objects, list fields, and query metadata directly from your Salesforce org using sf CLI v2.
  • FLS Auto-Generation: Automatically generate Permission Sets for new custom fields, preventing visibility issues and streamlining security configuration.
  • Use Case: Generate a new custom object called 'Project' with auto-numbering, add several custom fields (e.g., 'Status', 'Budget'), and automatically create a Permission Set to grant access to these new fields.

Quick Start

Use the sf-metadata skill to create a custom object called 'Invoice' with an auto-number name field and a currency field 'Total Amount'.

Frequently Asked Questions about sf-metadata

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Salesforce custom object and field creation?

Automate custom object and field creation using sf-metadata to generate objects, fields, and permission sets with built-in best practices, FLS compliance, and naming conventions—eliminating manual, error-prone workflows in development and QA environments.

Can I automatically generate permission sets for new Salesforce fields?

Yes, sf-metadata auto-generates permission sets for custom fields, preventing Field-Level Security gaps and streamlining security configuration without manual setup for each new field.

How do I query metadata directly from my Salesforce org?

Use sf-metadata with sf CLI v2 to describe objects, list fields, and query org metadata programmatically, replacing manual navigation and enabling metadata inspection in deployment and QA workflows.

What's the best way to create validation rules and record types consistently?

sf-metadata applies template-driven generation with a 120-point scoring system across naming conventions, documentation, and best practices, ensuring consistent validation rules and record types across objects.

Does sf-metadata integrate with Salesforce deployment workflows?

Yes, sf-metadata orchestrates with sf-flow and sf-deploy, enabling generated metadata to flow directly into deployment pipelines for development, QA, and production environments.

What do I need before using sf-metadata?

Set up sf CLI v2 and Python as dependencies, then use sf-metadata scripts to generate or query metadata—no additional configuration needed beyond these prerequisites.