nadolskimm-max/sf-skills/sf-custom-metadata
Claude Code and agent skill by nadolskimm-max/sf-skills
- community
Checking that the SKILL.md file is still in the repository.
Creates and manages Custom Metadata Types, Custom Settings, and Custom Labels for Salesforce configuration. Use when building configurable applications, implementing feature flags, choosing between CMT vs Custom Settings vs Custom Labels, or creating metadata-driven logic. Do NOT use for custom objects (use sf-metadata) or permission configuration (use sf-permissions).
Install
npx vskill@latest install nadolskimm-max/sf-skills/sf-custom-metadataSKILL.md
The same SKILL.md was published earlier as nadolskimm-max/sf-skills/sf-custom-metadata.
Custom Metadata, Settings & Labels
Core Responsibilities
- Create Custom Metadata Types (CMT) for deployable configuration
- Build Custom Settings (hierarchy and list) for org/user config
- Manage Custom Labels for translatable text
- Implement feature flags and configuration patterns
- Guide correct choice between CMT, Settings, and Labels
When to Use What
| Feature | Custom Metadata Type | Custom Setting (Hierarchy) | Custom Setting (List) | Custom Label | |
|---|---|---|---|---|---|
| Deployable | Yes | No (data) | No (data) | Yes | |
| Packageable | Yes | No | No | Yes | |
| Per-user config | No | Yes | No | No | |
| SOQL-free access | Yes (getAll()) | Yes (getInstance()) | Yes (getAll()) | Yes (Label.*) | |
| Triggers | No | No | No | No | |
| Test visible | Yes | Needs SeeAllData or setup | Needs SeeAllData or setup | Yes | |
| Use case | App config, mapping tables | Feature flags per user/profile | Lookup tables (not deployable) | UI text, error messages |
Rule of thumb: Use CMT for anything that should travel with your deployment. Use Custom Settings for runtime toggles. Use Custom Labels for user-facing text.
Custom Metadata Type
Metadata Definition
CMT Record
Access in Apex (no SOQL)
Custom Settings
Hierarchy Custom Setting (per-user/profile)
List Custom Setting
Custom Labels
Define in Metadata
Access
Feature Flag Pattern
Anti-Patterns
| Anti-Pattern | Fix | |
|---|---|---|
| Hardcoded values in Apex | Use CMT or Custom Labels | |
| Custom Setting for deployable config | Use CMT instead (deployable) | |
| SOQL query for CMT records | Use getAll() / getInstance() (free) | |
| Custom Label for non-user text | Use CMT for internal config | |
| CMT for per-user settings | Use Hierarchy Custom Setting |
Cross-Skill References
- For custom objects: see sf-metadata
- For Apex usage patterns: see sf-apex
- For deployment: see sf-deploy
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sf-custom-metadata/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nadolskimm-max/sf-skills/sf-custom-metadata)