跳到主内容
智客 ZICQ

技能库 智客分类:Agent 工作流 data360-schema-get

Data360 Schema Get

利用REST APIs从 Salesforce Data Cloud 获取数据湖对象(DLO)和数据模型对象(DMO)的计划信息. 当您需要检查 DLO 或 DMO 字段定义、 数据类型或元数据时使用此技能 。 取org别名和可选 DLO/DMO 名称作为参数.

4842 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

利用REST APIs从 Salesforce Data Cloud 获取数据湖对象(DLO)和数据模型对象(DMO)的计划信息. 当您需要检查 DLO 或 DMO 字段定义、 数据类型或元数据时使用此技能 。 取org别名和可选 DLO/DMO 名称作为参数.

何时用

- 用户想要在数据云中看到所有 DLO 或 DMOs

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:data360-schema-get Skill、Overview、When to Use、Prerequisites、Skill Execution、Parameters。 其中含规范建议的小节:分步指令。

文件分析

文件分析:除 SKILL.md 外,正文引用了 scripts/get_dlo_schema.py、scripts/get_dmo_schema.py,属于带资源的技能包,这些文件按需再读。

官方 description(原文)

Retrieve Data Lake Object (DLO) and Data Model Object (DMO) schema information from Salesforce Data Cloud using REST APIs. Use this skill when you need to inspect DLO or DMO field definitions, data types, or metadata. Takes org alias and optional DLO/DMO name as parameters.

data360-schema-get SkillOverviewWhen to UsePrerequisitesSkill ExecutionParametersStep 1: Discover Connected OrgStep 2: Validate SF CLI AuthenticationStep 3a: Execute DLO Schema ScriptStep 3b: Execute DMO Schema ScriptStep 4: Present ResultsStep 5: Offer Next Steps

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
data360-schema-get
description
Retrieve Data Lake Object (DLO) and Data Model Object (DMO) schema information from Salesforce Data Cloud using REST APIs. Use this skill when you need to inspect DLO or DMO field definitions, data types, or metadata. Takes org alias and optional DLO/DMO name as parameters.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。
指令中引用的文件 · 2
  • scripts/get_dlo_schema.py
  • scripts/get_dmo_schema.py

以下路径提取自原文;文件是否齐全请以来源仓库中的完整目录为准。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

该技能引用了附属文件,请从来源获取完整目录;仅复制 SKILL.md 可能缺少依赖。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「data360-schema-get」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-cf631046bcedec5a-%E6%95%B0%E6%8D%AE360-Schema-%E8%8E%B7%E5%8F%96.html
请存为 .cursor/skills/data360-schema-get/SKILL.md 或 .claude/skills/data360-schema-get/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
该技能还带 scripts/、references/、assets/ 等文件,请从 https://github.com/forcedotcom/sf-skills 取完整目录,不要只建一个 SKILL.md。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/forcedotcom/sf-skills' --list

npx skills add 'https://github.com/forcedotcom/sf-skills' --skill 'data360-schema-get'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: data360-schema-get description: "Retrieve Data Lake Object (DLO) and Data Model Object (DMO) schema information from Salesforce Data Cloud using REST APIs. Use this skill when you need to inspect DLO or DMO field definitions, data types, or metadata. Takes org alias and optional DLO/DMO name as parameters." metadata: cliTools: - tool: ["pip"] semver: ">=23.0.0" - tool: ["python3"] semver: ">=3.10.0" - tool: ["sf"] semver: ">=2.0.0" version: "1.0" domains: ["Data 360"] --- # data360-schema-get Skill ## Overview This skill retrieves Data Lake Object (DLO) and Data Model Object (DMO) schema information from Salesforce Data Cloud using the SSOT REST API. It can list all DLOs or DMOs in an org, or retrieve detailed schema for a specific DLO or DMO. ## When to Use - User wants to see all DLOs or DMOs in a Data Cloud org - User needs field schema for a specific DLO or DMO - User is exploring Data Cloud data structures - User needs to understand DLO or DMO field types and metadata ## Prerequisites - SF CLI installed and authenticated to target org - Org has Data Cloud enabled - User has appropriate Data Cloud permissions ## Skill Execution ### Parameters 1. **org_alias** (required): The SF CLI org alias (e.g., 'afvibe', 'myorg') 2. **dlo_name** (optional): Specific DLO developer name (e.g., 'Employee__dll') 3. **dmo_name** (optional): Specific DMO developer name (e.g., 'Individual__dlm') ### Step 1: Discover Connected Org First, run `sf org list` to find out which org is connected and extract the alias to use for all subsequent calls: ```bash sf org list ``` Example output: ```text ┌────┬───────┬──────────────────────────┬────────────────────┬───────────┐ │ │ Alias │ Username │ Org Id │ Status │ ├────┼───────┼──────────────────────────┼────────────────────┼───────────┤ │ 🍁 │ myorg │ [email protected] │ 00DKZ00000b80NT2AY │ Connected │ └────┴───────┴──────────────────────────┴────────────────────┴───────────┘ ``` Extract the **Alias** value (e.g., `myorg`) from the output and use it as the `` for all subsequent calls. Use `--all` to see expired and deleted scratch orgs as well. ### Step 2: Validate SF CLI Authentication Before making API calls, verify the org is connected: ```bash sf org display --target-org --json ``` If not connected, inform user to run: ```bash sf org login web --alias ``` ### Step 3a: Execute DLO Schema Script The Python scripts are bundled with this skill in the `scripts/` subdirectory. **To list all DLOs:** ```bash python3 ./scripts/get_dlo_schema.py ``` **To get specific DLO schema:** ```bash python3 ./scripts/get_dlo_schema.py ``` ### Step 3b: Execute DMO Schema Script **To list all DMOs:** ```bash python3 ./scripts/get_dmo_schema.py ``` **To get specific DMO schema:** ```bash python3 ./scripts/get_dmo_schema.py ``` ### Step 4: Present Results Parse and present the results in a user-friendly format: **For DLO List:** - Show DLO name, label, category, and ID - Indicate total count - Highlight DLOs with data (totalRecords > 0) **For DLO Schema:** - Show basic info (name, label, category, status) - List all fields with: - Field name - Data type - Primary key indicator - Nullable status - Highlight custom fields (exclude system fields like DataSource__c, cdp_sys_*) - Show record count if available **For DMO List:** - Show DMO name, label, category, and ID - Indicate total count **For DMO Schema:** - Show basic info (name, label, category, description) - List all fields with: - Field name - Data type - Primary key indicator - Nullable status - Show dataspace information if available ### Step 5: Offer Next Steps After displaying results, suggest relevant follow-up actions: - Query data from the DLO - Create calculated insights - Build segments - Set up data streams - Create DMO mappings ## API Endpoints Used ### List All DLOs ```text GET /services/data/v64.0/ssot/data-lake-objects ``` Response structure: ```json { "dataLakeObjects": [ { "name": "Employee__dll", "label": "Employee", "category": "Profile", "id": "1dlXXXXXXXXXXXXXXX", "status": "ACTIVE", "totalRecords": 12, "fields": [...] } ], "totalSize": 5 } ``` ### Get DLO Schema ```text GET /services/data/v64.0/ssot/data-lake-objects/{dlo_name} ``` Response structure (same as individual object in list response, but wrapped in paginated format). ### List All DMOs ```text GET /services/data/v64.0/ssot/data-model-objects ``` Response structure: ```json { "dataModelObjects": [ { "name": "Individual__dlm", "label": "Individual", "category": "Profile", "id": "0dmXXXXXXXXXXXXXXX", "fields": [...] } ], "totalSize": 10 } ``` ### Get DMO Schema ```text GET /services/data/v64.0/ssot/data-model-objects/{dmo_name} ``` Response structure (same as individual object in list response, but wrapped in paginated format). ## Error Handling **Common Issues:** 1. **Org not connected** - Message: "Org not connected" - Solution: Ask user to authenticate via SF CLI 2. **DLO not found** - Message: "DLO 'XYZ__dll' not found" - Solution: List all DLOs first to verify name 5. **DMO not found** - Message: "DMO 'XYZ__dlm' not found" - Solution: List all DMOs first to verify name 3. **Permission issues** - Message: HTTP 403 errors - Solution: Verify user has Data Cloud permissions 4. **API version mismatch** - Current: v64.0 - Solution: Script can be updated for newer API versions ## Example Usage **Example 1: List all DLOs** ```text User: "Show me all DLOs in afvibe org" Response: 1. Run sf org list to discover connected org alias 2. Authenticate to afvibe 3. Run: python3 ./scripts/get_dlo_schema.py afvibe 4. Display formatted list of DLOs ``` **Example 2: Get specific DLO schema** ```text User: "Get the schema for Employee__dll in afvibe" Response: 1. Run sf org list to discover connected org alias 2. Authenticate to afvibe 3. Run: python3 ./scripts/get_dlo_schema.py afvibe Employee__dll 4. Display field schema with types and metadata ``` **Example 3: Explore DLOs then get schema** ```text User: "What DLOs exist in myorg and show me the schema for the Employee one" Response: 1. Run sf org list to discover connected org alias 2. List all DLOs in myorg 3. Identify Employee__dll 4. Get detailed schema for Employee__dll 5. Present both results ``` **Example 4: List all DMOs** ```text User: "Show me all DMOs in afvibe org" Response: 1. Run sf org list to discover connected org alias 2. Authenticate to afvibe 3. Run: python3 ./scripts/get_dmo_schema.py afvibe 4. Display formatted list of DMOs ``` **Example 5: Get specific DMO schema** ```text User: "Get the schema for Individual__dlm in afvibe" Response: 1. Run sf org list to discover connected org alias 2. Authenticate to afvibe 3. Run: python3 ./scripts/get_dmo_schema.py afvibe Individual__dlm 4. Display field schema with types and metadata ``` **Example 6: Explore DMOs then get schema** ```text User: "What DMOs exist in myorg and show me the schema for the Individual one" Response: 1. Run sf org list to discover connected org alias 2. List all DMOs in myorg 3. Identify Individual__dlm 4. Get detailed schema for Individual__dlm 5. Present both results ``` ## Output Format ### DLO List Output ```text Found 5 DLOs in org 'afvibe': 1. DataCustomCodeLogs__dll Label: DataCustomCodeLogs Category: Engagement Records: 233 2. Employee__dll Label: Employee Category: Profile Records: 12 [...] ``` ### DLO Schema Output ```yaml DLO: Employee__dll Label: Employee Category: Profile Status: ACTIVE Records: 12 Custom Fields: • id__c (Text) - Primary Key • name__c (Text) • position__c (Text) • manager_id__c (Number) System Fields: • DataSource__c (Text) • InternalOrganization__c (Text) • cdp_sys_SourceVersion__c (Text) Next steps: - Query data: SELECT * FROM Employee__dll LIMIT 10 - Create segment based on position field - Set up data stream for real-time updates ``` ### DMO List Output ```text Found 10 DMOs in org 'afvibe': 1. Individual__dlm Label: Individual Category: Profile 2. ContactPointEmail__dlm Label: Contact Point Email Category: Profile [...] ``` ### DMO Schema Output ```yaml DMO: Individual__dlm Label: Individual Category: Profile Description: Represents an individual person Fields: • Id__c (Text) - Primary Key • FirstName__c (Text) • LastName__c (Text) • BirthDate__c (DateTime) Next steps: - Query data: SELECT * FROM Individual__dlm LIMIT 10 - View DLO mappings to this DMO - Create calculated insights ``` ## Notes - DLO names always end with `__dll` suffix - DMO names always end with `__dlm` suffix - Field names always end with `__c` suffix - System fields (DataSource__c, KQ_*, cdp_sys_*) are automatically added - Primary key fields are required for DLO and DMO queries - API supports pagination (limit/offset) for large result sets ## Related Skills - **datakit_workflow**: For DMO mapping operations - **datakit_validation**: For validating datakit configurations - Use this skill before creating DMO mappings to understand source DLO structure

相关技能

Agent 工作流

Skill Creator

创造有效技能指南。 当用户想创造出新的技能(或更新现有的技能),以专业知识,工作流程,或工具集成来扩展克洛德的能力时,应该使用这种技能.

Agent 工作流

Clawdhub

使用ClawdHub CLI搜索,安装,更新并发布从taladhub.com的代理技能. 需要获取苍蝇上的新技能时使用,将安装的技能同步到最新版本或特定版本,或者发布 npm-instainddhub CLI 的新/更新的技能文件夹.

Agent 工作流

Agent Team Orchestration

管弦乐团多代理团队,任务设定周期,交接协议,审查工作流程. 使用时间: (1)建立2+特派员队伍,具有不同专业,(2)确定任务路线和生命周期(收录框_ spec_建设_审查_完成),(3)在特派员之间制定交接协议,(4)建立审查和质量关口,(5)管理特派员之间的交流和文物共享.

Agent 工作流

Superpowers

Spec-first,TDD,子代理驱动的软件开发工作流程. 当:(1)构建任何新功能或应用——触发脑暴_计划_子代理执行回路,(2)调试出一个bug或测试失败——触发系统性的根起过程,(3)用户说"让我们构建","帮助我计划","我想添加X",或"这个被打破",(4)完成一个功…