sf-metadata

sf-metadata is a skill for Claude Code, Codex from Jaganpro/sf-skills. It costs 79 tokens per session (1,436 once invoked), scanned A, original, MIT.

A tool for creating and querying Salesforce metadata, the configuration that defines items such as objects, fields, validation rules, layouts, profiles, and permission sets. It works with Salesforce metadata files and can inspect an org’s schema.

In plain words
What is it for?
Use it to generate metadata XML, inspect objects and fields, query an org’s schema, and prepare related field-level access settings for new objects or fields.
Why use it?
It helps turn requirements into correctly structured configuration and makes it easier to understand an org before writing code or building automation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to generate metadata XML, inspect objects and fields, query an org’s schema, and prepare related field-level access settings for new objects or fields.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jaganpro/sf-skills/sf-metadata
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Jaganpro/sf-skills --skill sf-metadata
Clone the repo
git clone --depth 1 https://github.com/Jaganpro/sf-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sf-metadata

README.md
[![agentmods](https://agentmods.dev/badge/skills/jaganpro/sf-skills/sf-metadata/github.svg)](https://agentmods.dev/skills/jaganpro/sf-skills/sf-metadata)
Your own site
<a href="https://agentmods.dev/skills/jaganpro/sf-skills/sf-metadata"><img src="https://agentmods.dev/badge/skills/jaganpro/sf-skills/sf-metadata/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sf-metadata

Your own site · 80×15
<a href="https://agentmods.dev/skills/jaganpro/sf-skills/sf-metadata"><img src="https://agentmods.dev/badge/skills/jaganpro/sf-skills/sf-metadata.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,436 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 14 Sept 2026
  • Snyk pass 14 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.01436
Opus 5.5 $0.00032 $0.00574
Sonnet 5.5 $0.00016 $0.00287
Haiku 4.5 $0.00008 $0.00144

Measured 3mo ago against content hash c7b6b6ad829e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sf-metadata scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (hooks/scripts/generate_permission_set.py, hooks/scripts/run_validation.sh, hooks/scripts/validate_metadata.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/sf-metadata/SKILL.md · 166 lines

How it starts

The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:


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 new custom objects or fields should also include permission-set / FLS generation

Unless the user explicitly opts out, assume new custom objects or fields need permission-set follow-up.


1. Choose the mode

Mode Use when
generation the user wants new or updated metadata XML
querying the 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.

Recent SDR/CLI support worth knowing when reading older examples: CnfgItemSourceDefinition, ExtlClntAppOauthSecuritySettings, and UIBundle are now source-supported under their current names. See references/metadata-types-reference.md.

Read the full file on GitHub · 166 lines

Files

What ships with it

39 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 166 lines · 79 tokens per session scan A c7b6b6ad829e

Subscribe to this mod's changes

sf-metadata is a skill published in the GitHub repository Jaganpro/sf-skills (420 stars, last pushed 7mo ago), licensed MIT. It adds 79 tokens to every session and 1,436 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

sf-metadata compared with skills from other repositories

sf-metadata next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sf-metadataJaganpro/sf-skillsSkill4207mo agoMITA79Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k2d agoApache-2.0A217Claude Code, Codex
tao-run-inference-serviceNVIDIA/skillsSkill4.4kyesterdayApache-2.0A92Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3k2d agoMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.3k2d agoMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.1ktodayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill7094d agoMITA105Claude Code, Codex