Loading...
Loading...
Compare original and translation side by side
aliyunCMS Workspace + Dataset (Schema + Fields) + ExecuteQueryaliyunCMS Workspace + Dataset (Schema + Fields) + ExecuteQueryaliyun version3.3.3aliyun version3.3.3[MUST] runto enable automatic plugin installation. [MUST] runaliyun configure set --auto-plugin-install trueto ensure that any existing plugins are always up-to-date.aliyun plugin update
[必须] 运行以启用自动插件安装。 [必须] 运行aliyun configure set --auto-plugin-install true以确保所有现有插件始终保持最新。aliyun plugin update
At the start of the Core Workflow (before any CLI invocation): [MUST] Enable AI-Mode — AI-mode is required for Agent Skill execution.bashaliyun configure ai-mode enable aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-cms-dataset"
[MUST] Disable AI-Mode at EVERY exit point — Before delivering the final response for ANY reason, always disable AI-mode first. This applies to ALL exit paths: workflow success, workflow failure, error/exception, user cancellation, session end, or any other scenario where no further CLI commands will be executed.bashaliyun configure ai-mode disable
在核心工作流开始时(执行任何CLI调用之前): [必须] 启用AI模式——AI模式是Agent Skill执行的必要条件。bashaliyun configure ai-mode enable aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-cms-dataset"
[必须] 在所有退出点禁用AI模式——无论出于何种原因交付最终响应之前,始终先禁用AI模式。这适用于所有退出路径:工作流成功、工作流失败、错误/异常、用户取消、会话结束,或任何其他不再执行CLI命令的场景。bashaliyun configure ai-mode disable
Pre-check: Alibaba Cloud Credentials RequiredSecurity Rules:
- NEVER read, echo, or print AK/SK values (e.g.,
is FORBIDDEN)echo $ALIBABA_CLOUD_ACCESS_KEY_ID- NEVER ask the user to input AK/SK directly in the conversation or command line
- NEVER use
with literal credential valuesaliyun configure set- ONLY use
to check credential statusaliyun configure listbashaliyun configure listCheck the output for a valid profile (AK, STS, or OAuth identity).If no valid profile exists, STOP here.
- Obtain credentials from Alibaba Cloud Console
- Configure credentials outside of this session (via
in terminal or environment variables in shell profile)aliyun configure- Return and re-run after
shows a valid profilealiyun configure list
预检查:需要阿里云凭证安全规则:
- 绝对不要读取、回显或打印AK/SK值(例如,
是被禁止的)echo $ALIBABA_CLOUD_ACCESS_KEY_ID- 绝对不要要求用户在对话或命令行中直接输入AK/SK
- 绝对不要使用
并传入明文凭证值aliyun configure set- 仅允许使用
检查凭证状态aliyun configure listbashaliyun configure list检查输出中是否有有效的配置文件(AK、STS或OAuth身份)。如果没有有效配置文件,请在此处停止。
- 从阿里云控制台获取凭证
- 在本次会话之外配置凭证(通过终端中的
或Shell配置文件中的环境变量)aliyun configure- 当
显示有效配置文件后,返回并重新运行aliyun configure list
cms:ListDatasetscms:GetDatasetcms:CreateDatasetcms:UpdateDatasetcms:DeleteDatasetcms:ExecuteQuery[MUST] Permission Failure Handling: When any command or API call fails due to permission errors at any point during execution, follow this process:
- Read
to get the full list of permissions required by this SKILLreferences/ram-policies.md- Use
skill to guide the user through requesting the necessary permissionsram-permission-diagnose- Pause and wait until the user confirms that the required permissions have been granted
cms:ListDatasetscms:GetDatasetcms:CreateDatasetcms:UpdateDatasetcms:DeleteDatasetcms:ExecuteQuery[必须] 权限失败处理:如果在执行过程中的任何阶段,因权限错误导致命令或API调用失败,请遵循以下流程:
- 阅读
获取此SKILL所需的完整权限列表references/ram-policies.md- 使用
技能引导用户申请必要的权限ram-permission-diagnose- 暂停并等待用户确认所需权限已被授予
IMPORTANT: Parameter Confirmation — Before executing any command or API call, ALL user-customizable parameters (e.g., RegionId, instance names, CIDR blocks, passwords, domain names, resource specifications, etc.) MUST be confirmed with the user. Do NOT assume or use default values without explicit user approval.
| Parameter | Required/Optional | Description | Default Value |
|---|---|---|---|
| Required | CMS workspace ID | — |
| Required (except ListDatasets) | Dataset name (4-63 chars) | — |
| Optional | Region ID | CLI profile region |
| Required (CreateDataset) | Schema JSON object | — |
| Optional | Dataset description | — |
| Required (ExecuteQuery) | Query text | — |
| Auto-filled (ExecuteQuery) | Query type placeholder. Always | |
| Optional (ListDatasets) | Max results per page | — |
| Optional (ListDatasets) | Pagination token for next page | — |
重要提示:参数确认——在执行任何命令或API调用之前, 所有用户可自定义的参数(例如RegionId、实例名称、CIDR块、 密码、域名、资源规格等)必须与用户确认。未经用户明确批准,请勿假设或使用默认值。
| 参数 | 必填/可选 | 描述 | 默认值 |
|---|---|---|---|
| 必填 | CMS工作区ID | — |
| 必填(ListDatasets除外) | 数据集名称(4-63字符) | — |
| 可选 | 地域ID | CLI配置文件地域 |
| 必填(CreateDataset) | Schema JSON对象 | — |
| 可选 | 数据集描述 | — |
| 必填(ExecuteQuery) | 查询文本 | — |
| 自动填充(ExecuteQuery) | 查询类型占位符。始终为 | |
| 可选(ListDatasets) | 每页最大结果数 | — |
| 可选(ListDatasets) | 下一页的分页令牌 | — |
^[a-z](?!.*__)[a-z0-9_]{2,61}[a-z0-9]$^[a-z](?!.*__)[a-z0-9_]{2,61}[a-z0-9]$[CRITICAL] Product Binding: All dataset operations in this skill use theproduct ONLY. The correct command pattern iscms. DO NOT use any other product for dataset operations —aliyun cms <action> --api-version 2024-03-30,dataworks,adb,sls,maxcompute,opensearch,pai, or any other service are WRONG for this scenario. If a command fails, check parameters and permissions — do NOT switch to a different product.dashvector
--api-version 2024-03-30--endpoint--region--region-id[关键] 产品绑定:本技能中的所有数据集操作仅使用**产品**。 正确的命令格式为cms。 请勿使用任何其他产品进行数据集操作——aliyun cms <action> --api-version 2024-03-30、dataworks、adb、sls、maxcompute、opensearch、pai或任何其他服务在此场景下都是错误的。 如果命令失败,请检查参数和权限——不要切换到其他产品。dashvector
--api-version 2024-03-30--endpoint--region--region-id[MUST] Before executing any dataset operation, callto verify the workspace exists. Do NOT skip this step or use ListDatasets to infer workspace existence.get-workspace
aliyun cms get-workspace --api-version 2024-03-30 \
--workspace <workspace>put-workspacealiyun cms put-workspace --api-version 2024-03-30 \
--workspace-name <workspace> \
--sls-project <sls-project>--sls-project[必须] 在执行任何数据集操作之前,调用验证工作区是否存在。请勿跳过此步骤或使用ListDatasets推断工作区是否存在。get-workspace
aliyun cms get-workspace --api-version 2024-03-30 \
--workspace <workspace>put-workspacealiyun cms put-workspace --api-version 2024-03-30 \
--workspace-name <workspace> \
--sls-project <sls-project>--sls-projectaliyun cms list-datasets --api-version 2024-03-30 \
--workspace <workspace> \
[--dataset-name <filter>] \
[--max-results <n>] \
[--next-token <token>]aliyun cms list-datasets --api-version 2024-03-30 \
--workspace <workspace> \
[--dataset-name <filter>] \
[--max-results <n>] \
[--next-token <token>]aliyun cms get-dataset --api-version 2024-03-30 \
--workspace <workspace> \
--dataset-name <dataset-name>aliyun cms get-dataset --api-version 2024-03-30 \
--workspace <workspace> \
--dataset-name <dataset-name>aliyun cms create-dataset --api-version 2024-03-30 \
--workspace <workspace> \
--dataset-name <dataset-name> \
--schema '{"message_text":{"type":"text","chn":true,"embedding":"text-embedding-v4"},"service_name":{"type":"text","chn":false}}' \
[--description "<description>"]--schematypechnembeddingjsonKeystype: "text"embeddingjsonKeystypechnembedding{
"event_data": {
"type": "text",
"chn": false,
"jsonKeys": {
"source": {
"type": "text",
"chn": false
},
"message": {
"type": "text",
"chn": true
}
}
}
}aliyun cms create-dataset --api-version 2024-03-30 \
--workspace <workspace> \
--dataset-name <dataset-name> \
--schema '{"message_text":{"type":"text","chn":true,"embedding":"text-embedding-v4"},"service_name":{"type":"text","chn":false}}' \
[--description "<description>"]--schematypechnembeddingjsonKeystype: "text"embeddingjsonKeystypechnembedding{
"event_data": {
"type": "text",
"chn": false,
"jsonKeys": {
"source": {
"type": "text",
"chn": false
},
"message": {
"type": "text",
"chn": true
}
}
}
}undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedaliyun cms execute-query --api-version 2024-03-30 \
--workspace <workspace> \
--dataset-name <dataset-name> \
--type SQL \
--query '<query>'--typeSQLaliyun cms execute-query --api-version 2024-03-30 \
--workspace <workspace> \
--dataset-name <dataset-name> \
--type SQL \
--query '<query>'--typeSQLaliyun cms delete-dataset --api-version 2024-03-30 \
--workspace <workspace> \
--dataset-name <dataset-name>aliyun cms delete-dataset --api-version 2024-03-30 \
--workspace <workspace> \
--dataset-name <dataset-name>| Command | Description |
|---|---|
| Verify workspace exists |
| Create or update a workspace |
| List datasets in a workspace |
| Get dataset details and schema |
| Create a new dataset with schema |
| Update dataset description |
| Delete a dataset |
| Execute a query against a dataset |
| 命令 | 描述 |
|---|---|
| 验证工作区是否存在 |
| 创建或更新工作区 |
| 列出工作区中的数据集 |
| 获取数据集详情和Schema |
| 创建带Schema的新数据集 |
| 更新数据集描述 |
| 删除数据集 |
| 对数据集执行查询 |
--api-version 2024-03-302019-01-01--region--region-id--endpointcms.<region>.aliyuncs.com--type SQL--schemacmsdataworksadbslsmaxcompute--read-timeout 30 --connect-timeout 10--read-timeout 120 --connect-timeout 10--api-version 2024-03-302019-01-01--region--region-id--endpointcms.<region>.aliyuncs.com--type SQL--schemacmsdataworksadbslsmaxcompute--read-timeout 30 --connect-timeout 10--read-timeout 120 --connect-timeout 10| Reference | Description |
|---|---|
| references/ram-policies.md | RAM permission requirements |
| references/related-commands.md | Full CLI command reference |
| references/verification-method.md | Success verification steps |
| references/acceptance-criteria.md | Correct/incorrect pattern examples |
| references/cli-installation-guide.md | CLI installation guide |
| 参考文档 | 描述 |
|---|---|
| references/ram-policies.md | RAM权限要求 |
| references/related-commands.md | 完整CLI命令参考 |
| references/verification-method.md | 成功验证步骤 |
| references/acceptance-criteria.md | 正确/错误模式示例 |
| references/cli-installation-guide.md | CLI安装指南 |