sf-metadata
Salesforce metadata generation and querying with 120-point scoring. TRIGGER when: user creates custom objects, fields, validation rules, or touches .object-meta.xml, .field-meta.xml, .profile-meta.xml files. DO NOT TRIGGER when: permission set analysis (use sf-permissions), deploying metadata (use sf-deploy), or Flow XML (use sf-flow).
What this skill does
# 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](../sf-permissions/SKILL.md) - deploying metadata → [sf-deploy](../sf-deploy/SKILL.md) - editing Flow XML → [sf-flow](../sf-flow/SKILL.md) --- ## 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. --- ## Recommended Workflow ### 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](references/metadata-types-reference.md). ### 3. Validate metadata quality Check: - naming conventions - structural correctness - field-type fit - security / FLS implications - downstream deployment dependencies ### 4. Plan permission impact by default When new custom fields or objects are created: - default to generating or updating a Permission Set unless the user opts out - include `fieldPermissions` for **eligible custom fields** - note any metadata categories that are excluded because Salesforce treats them as system-managed or always-available - remember that object CRUD alone does **not** make custom fields visible ### 5. Hand off deployment Use [sf-deploy](../sf-deploy/SKILL.md) when the user needs the metadata rolled out. --- ## High-Signal Rules - field-level security is often the hidden blocker after deployment - **object permissions ≠ field permissions** - prefer permission sets over profile-centric access patterns - generate Permission Set follow-up by default for new custom objects and fields - include `fieldPermissions` for eligible custom fields instead of leaving FLS as a manual afterthought - 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: ```text 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 | Need | Delegate to | Reason | |---|---|---| | deploy metadata | [sf-deploy](../sf-deploy/SKILL.md) | rollout and validation | | build Flows on new schema | [sf-flow](../sf-flow/SKILL.md) | declarative automation | | build Apex on new schema | [sf-apex](../sf-apex/SKILL.md) | code against metadata | | analyze permission access after creation | [sf-permissions](../sf-permissions/SKILL.md) | access auditing | | seed data after deploy | [sf-data](../sf-data/SKILL.md) | test data creation | --- ## Reference Map ### Start here - [references/field-and-cli-reference.md](references/field-and-cli-reference.md) - [references/metadata-types-reference.md](references/metadata-types-reference.md) - [references/naming-conventions.md](references/naming-conventions.md) - [references/orchestration.md](references/orchestration.md) ### Security / scoring / examples - [references/fls-best-practices.md](references/fls-best-practices.md) - [references/permset-auto-generation.md](references/permset-auto-generation.md) - [references/best-practices-scoring.md](references/best-practices-scoring.md) - [references/field-types-guide.md](references/field-types-guide.md) - [references/field-types-example.md](references/field-types-example.md) - [references/custom-object-example.md](references/custom-object-example.md) - [references/permission-set-example.md](references/permission-set-example.md) - [references/profile-permission-guide.md](references/profile-permission-guide.md) - [references/sf-cli-commands.md](references/sf-cli-commands.md) - [assets/](assets/) --- ## Score Guide | Score | Meaning | |---|---| | 108+ | strong production-ready metadata | | 96–107 | good metadata with minor review items | | 84–95 | acceptable but validate carefully | | < 84 | block deployment until corrected |
Related in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.