create-maxcompute-compute-source
БесплатноБез исполняемых скриптовНе проверен创建 MaxCompute 类型计算源——将 MaxCompute 项目接入 Dataphin 作为数据开发任务的计算底座。 计算源是项目运行离线任务的引擎,必须先建计算源才能在项目上绑定。 触发场景: - 为 Dataphin 项目准备 MaxCompute 计算资源(dev / prod) - 新建…
от aliyun★ 303 звезды на GitHubОб этом скилле
创建 MaxCompute 计算源
1. Scenario Description
将 MaxCompute 项目接入 Dataphin 作为计算源,使项目下的离线数据开发任务(MaxCompute_SQL 等)可以在该 MaxCompute 引擎上运行。
Architecture:Dataphin Tenant → ComputeSource (MAX_COMPUTE) → MaxCompute Project
- 计算源是任务的运行底座,与数据源(读写数据)职责不同
- DEV-PROD 项目通常需分别创建 dev / prod 两套计算源(各指向不同 MaxCompute project 实现环境隔离)
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).
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., tenant id, compute source name, MaxCompute endpoint / project, access id, etc.) MUST be confirmed with the user. Do NOT assume or use default values without explicit user approval.
| 参数 | 必填 | 描述 | 默认值 |
|---|---|---|---|
TENANT_ID |
是 | 租户 ID(19 位 snowflake,字符串传;profile 已配置时可省略) | — |
CS_NAME |
是 | 计算源名称(英文、数字、下划线) | — |
CS_DESCRIPTION |
否 | 计算源描述 | 空 |
MC_ENDPOINT |
是 | MaxCompute Endpoint(形如 http://service.<region>.maxcompute.aliyun.com/api) |
— |
MC_PROJECT |
是 | MaxCompute 项目名称(ODPS project 名,需与 MaxCompute 控制台一致) | — |
MC_ACCESS_ID |
是 | MaxCompute 访问 AccessKey ID | — |
MC_ACCESS_KEY |
是 | MaxCompute 访问 AccessKey Secret | — |
💡 术语:ODPS(Open Data Processing Service)是 MaxCompute 的旧名,参数/配置中仍可能出现
odps字样,均指 MaxCompute。
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-compute-sources --op-tenant-id "1234567890123456789" \
--type MAX_COMPUTE --page-size 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_VERSION"
CLI 入参结构说明:
create-compute-source使用扁平 flag(--compute-source-name/--type/--description/--config-list),CLI 会自动序列化为 OpenA
Установить create-maxcompute-compute-source в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл create-maxcompute-compute-source?
创建 MaxCompute 类型计算源——将 MaxCompute 项目接入 Dataphin 作为数据开发任务的计算底座。 计算源是项目运行离线任务的引擎,必须先建计算源才能在项目上绑定。 触发场景: - 为 Dataphin 项目准备 MaxCompute 计算资源(dev / prod) - 新建 MaxCompute 计算引擎 / 绑定 MaxCompute 项目 - 创建计算源前先做连通性预检 触发词:创建计算源、新建计算源、添加计算引擎、MaxCompute 计算源、create-compute-source、ConfigList 怎么填。 关键限制:Type 固定 MAX_COMPUTE(大写下划线,非驼峰);同一 MaxCompute project 只能绑定一个计算源且无解绑 API;19 位 ID 字符串传参。
Как установить скилл create-maxcompute-compute-source?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл create-maxcompute-compute-source запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic