create-maxcompute-data-source
FreeNo executable scriptsNot checked创建 MaxCompute 类型数据源并验证连通性——将 MaxCompute 项目接入 Dataphin 作为数据源。 支持 Basic 和 DEV-PROD 两种项目模式。 触发场景: - 新接入 MaxCompute 数据仓库到 Dataphin - 为 Dataphin 项目配置 MaxCompute…
by aliyun★ 303 GitHub starsAbout this skill
创建 MaxCompute 数据源并验证连通性
1. Scenario Description
将 MaxCompute 项目接入 Dataphin 作为数据源,使下游数据开发任务可以读写该 MaxCompute 项目中的数据。
Architecture:Dataphin Tenant → DataSource (MAX_COMPUTE) → MaxCompute Project
支持两种项目模式:
- Basic 项目:仅创建生产环境数据源
- DEV-PROD 项目(开发-生产分离):先创建生产环境数据源,再创建开发环境数据源并关联
2. Installation
aliyun plugin install --names aliyun-cli-dataphin-public
(详见 references/cli-installation-guide.md)
3. Environment Variables
凭证与环境变量由父 skill
alibabacloud-dataphin-skills统一声明并预检(父 §3 + §4 Authentication + §8 Step 0,先于路由到本 skill 执行);本 skill 不重复声明。
4. Authentication
Pre-check: Alibaba Cloud Credentials Required
Security Rules:
- NEVER read, echo, or print AK/SK values to terminal or logs
- NEVER ask the user to input AK/SK directly in the conversation or command line
- NEVER use
aliyun configure setwith literal credential values- ONLY use
aliyun configure listto check credential statusaliyun 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
aliyun configurein terminal or environment variables in shell profile)- Return and re-run after
aliyun configure listshows a valid profile
Pre-check: Aliyun CLI >= 3.4.8 required
Run
aliyun versionto verify >= 3.4.8. If not installed or version too low, install/update from https://aliyuncli.alicdn.com (seereferences/cli-installation-guide.mdfor the OS-specific script), or seereferences/cli-installation-guide.mdfor installation instructions.
Pre-check: Aliyun CLI plugin update required
[MUST] run
aliyun configure set --auto-plugin-install trueto enable automatic plugin installation. [MUST] runaliyun plugin updateto ensure that any existing plugins are always up-to-date.
5. RAM Policy
最小权限策略详见 ../../ram-policies.md。
[MUST] Permission Failure Handling: When any command or API call fails due to permission errors at any point during execution, follow this process:
- Read
../../ram-policies.mdto get the full list of permissions required by this SKILL- Use
ram-permission-diagnoseskill to guide the user through requesting the necessary permissions- Pause and wait until the user confirms that the required permissions have been granted
6. Parameter Confirmation
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.
| 参数 | 必填 | 描述 | 默认值 |
|---|---|---|---|
TENANT_ID |
是 | 租户 ID(19 位 snowflake,字符串传) | — |
DS_NAME |
是 | 数据源名称(英文、数字、下划线,不超过 64 字符) | — |
DS_DESCRIPTION |
否 | 数据源描述 | 空 |
PROJECT_MODE |
是 | 项目模式:BASIC 或 DEV_PROD |
— |
MC_ENDPOINT |
是 | MaxCompute Endpoint | — |
MC_PROJECT |
是 | MaxCompute 项目名称(生产环境) | — |
MC_PROJECT_DEV |
DEV_PROD 时必填 | MaxCompute 项目名称(开发环境,可与生产相同) | 同 MC_PROJECT |
MC_ACCESS_ID |
是 | MaxCompute 访问 AccessKey ID | — |
MC_ACCESS_KEY |
是 | MaxCompute 访问 AccessKey Secret | — |
Endpoint 参考:
http://service.<region>.maxcompute.aliyun.com/api,常见 region 如cn-hangzhou、cn-shanghai、cn-beijing。
7. Observability (MUST follow for every aliyun command)
版本 {version}(Shell 变量 SKILL_VERSION)来自套件 references/manifest.json 的 version 字段,与 session-id 一同继承父技能 §7。直接加载本子技能时先完成父层初始化;所有 CLI / SDK 调用使用父技能名称与同一版本,跨 Shell 调用须重新注入这些值。
session-id 由父 skill alibabacloud-dataphin-skills 在套件入口加载时生成(32-char 小写 hex),本子 skill 加载时直接继承同一 session-id,不再重新生成。
Rule: Every aliyun CLI command that calls a cloud API MUST include the --user-agent flag.
Local utility commands (e.g. configure, plugin, version) do not support this flag and should be excluded.
--user-agent "AlibabaCloud-Agent-Skills/alibabacloud-dataphin-skills/{session-id} skill-version/{version}"
Example (assuming session-id is a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6):
aliyun dataphin-public list-data-source-with-config --op-tenant-id "1234567890123456789" \
--list-query '{"TypeList":["MAX_COMPUTE"],"Page":1,"PageSize":20}' \
--user-agent "AlibabaCloud-Agent-Skills/alibabacloud-dataphin-skills/a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6 skill-version/{version}"
Do not skip, alter the format, or omit --user-agent on any aliyun API command invocation.
8. Core Workflow
TENANT_ID="<19位租户ID>"
SESSION_ID="<inherited from alibabacloud-dataphin-skills>"
UA="AlibabaCloud-Agent-Skills/alibabacloud-dataphin-skills/$SESSION_ID skill-version/$SKILL_VER
Install create-maxcompute-data-source in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the create-maxcompute-data-source skill do?
创建 MaxCompute 类型数据源并验证连通性——将 MaxCompute 项目接入 Dataphin 作为数据源。 支持 Basic 和 DEV-PROD 两种项目模式。 触发场景: - 新接入 MaxCompute 数据仓库到 Dataphin - 为 Dataphin 项目配置 MaxCompute 数据源 - 验证 MaxCompute 数据源连通性 触发词:创建 MaxCompute 数据源、接入 MaxCompute、新建 MC 数据源、MaxCompute datasource、配置 MaxCompute。 关键限制:Type 固定 MAX_COMPUTE;DEV-PROD 项目需分两步创建(先生产后开发);19 位 ID 必须字符串传参。
How do I install the create-maxcompute-data-source skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the create-maxcompute-data-source skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic