Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
Instruções da origem · Visualização somente leitura
name
alibabacloud-odps-project-manage
description
Alibaba Cloud MaxCompute Project Management Skill. Use for creating, querying, and listing MaxCompute projects.
Triggers: "maxcompute project", "odps project", "create maxcompute project", "manage maxcompute project", "list maxcompute project".
MaxCompute Project Management
Manage Alibaba Cloud MaxCompute (ODPS) Projects including creation, querying, and listing operations.
Prerequisites
Pre-check: Aliyun CLI >= 3.3.3 required
Run aliyun version to verify >= 3.3.3. If not installed or version too low,
run curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash to update,
or see references/cli-installation-guide.md for installation instructions.
Then [MUST] run aliyun plugin update to ensure that any existing plugins on your local machine are always up-to-date.
[MUST] CLI User-Agent — Every aliyun CLI command invocation must include:
--user-agent AlibabaCloud-Agent-Skills/alibabacloud-odps-project-manage
[MUST] AI-Mode Commands — When using aliyun CLI, declare AI-Mode lifecycle:
Parse the JSON response - look for data.name, data.status, data.owner
Present project details to user in a clear format
Confirm task completion to user
For CREATE Project:
Ask user: "Which region to create in? (e.g., cn-hangzhou)"
Ask user: "What is the project name?"
MANDATORY VALIDATION: If project name is empty or whitespace, STOP and ask user again: "Project name cannot be empty. Please provide a valid project name."
CRITICAL: Store the user's exact project name - do NOT use placeholder text
MUST call list-quotas: Execute: aliyun maxcompute list-quotas --billing-type ALL --region {REGION_ID} --user-agent AlibabaCloud-Agent-Skills/alibabacloud-odps-project-manage
Wait for command output
Parse list-quotas response: Find a quota with nickName and its secondary quotas (look in data.quotas[].subQuotas or similar)
STRICT VALIDATION: Select a secondary quota's nickName from the list-quotas response (NOT the primary quota)
TRIM WHITESPACE: Remove any leading/trailing spaces from the quota nickName. If nickName contains internal spaces, trim them or select a different quota
PRE-FLIGHT CHECK: Verify you have actual values for REGION_ID, PROJECT_NAME, and SECONDARY_QUOTA_NICKNAME (trimmed, no spaces)
Respond: "Project deletion is not supported by this skill. Please use the Alibaba Cloud Console or contact your administrator."
Common Errors & Solutions
Error
Cause
Solution
ProjectNotFound
Project doesn't exist
Check project name spelling and region
ProjectAlreadyExist
Name taken
Ask user for a different project name
get project default quota error
No valid quota
Run list-quotas first, ensure quota exists
InvalidProjectName
Bad naming format
Use only lowercase, numbers, underscores (3-28 chars)
NoPermission or 403 Access Denied
RAM permission issue
Inform user: "You need odps permissions for list-quotas, create-project and get-project. Please contact your administrator."
RegionId required
Missing --region
Always add --region {REGION_ID} to commands
ODPS-0420095: Access Denied
Missing read privilege
Inform user about required permissions and stop
Forbidden Actions
CRITICAL: Never do these:
NEVER read/echo AK/SK values (e.g., echo $ALIBABA_CLOUD_ACCESS_KEY_ID)
NEVER use hardcoded values — always ask user for parameters, then use their ACTUAL answer (not placeholder text)
NEVER use aliyun configure set with literal credential values
NEVER run aliyun ram commands
NEVER execute ANY command without --user-agent AlibabaCloud-Agent-Skills/alibabacloud-odps-project-manage
NEVER skip asking for RegionId — this is ALWAYS required
NEVER assume a default region — always ask the user
NEVER use uppercase API action format as CLI commands — ALWAYS use plugin format with lowercase and hyphens (e.g., create-project)
NEVER execute aliyun maxcompute delete-project — project deletion is NOT supported by this skill
Negative Examples
❌ WRONG
✅ CORRECT
Using uppercase API action names as CLI commands
aliyun maxcompute create-project (plugin format, lowercase with hyphens)
'{"name":"{PROJECT_NAME}"}' (placeholder)
'{"name":"actual-name"}' (actual value)
--region cn-hangzhou (hardcoded)
Ask user first, then use their answer
Missing --user-agent
Must include --user-agent AlibabaCloud-Agent-Skills/alibabacloud-odps-project-manage
echo $ALIBABA_CLOUD_ACCESS_KEY_ID
Never read/display credentials
aliyun ram ... commands
RAM commands are outside scope
aliyun maxcompute delete-project
Project deletion is NOT supported
Verify different project on failure
Report failure, don't substitute
Architecture
MaxCompute Service
└── Project (Workspace)
├── defaultQuota (Compute Resource - MUST exist before project creation)
├── productType (payasyougo/subscription)
└── typeSystem ("1", "2", or "hive"; default: "2")
Dependencies
Prerequisite: Quota must exist before creating a project.
Every MaxCompute project requires a compute quota (defaultQuota). The quota must already exist in your account — if it does not, the create-project call will fail with get project default quota error.
Use the alibabacloud-odps-quota-manage skill to create or query quotas:
Subscription: See alibabacloud-odps-quota-manage skill for full parameters (partNickName, CU, ord_time, etc.)
List existing quotas: aliyun maxcompute list-quotas --billing-type ALL --region <region> --user-agent AlibabaCloud-Agent-Skills/alibabacloud-odps-project-manage
After creating or confirming a quota exists, use its nickName as the defaultQuota parameter when creating a project.
Installation
Pre-check: Aliyun CLI >= 3.3.3 required
Run aliyun version to verify >= 3.3.3. If not installed or version too low,
run curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash to update,
or see references/cli-installation-guide.md for installation instructions.
Pre-check: Aliyun CLI plugin update required
[MUST] run aliyun configure set --auto-plugin-install true to enable automatic plugin installation.
[MUST] run aliyun plugin update to ensure that any existing plugins are always up-to-date.
# Install/Update Alibaba Cloud CLI
curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash
# Verify version (must be >= 3.3.3)
aliyun version
# Enable auto plugin installation
aliyun configure set --auto-plugin-install true# Update plugins
aliyun plugin update
Environment Variables
No additional environment variables required beyond standard Alibaba Cloud credentials.
Authentication
CRITICAL: You MUST check credentials before ANY operation.
Allowed Credential Check (ONLY this command):
aliyun configure list
What to look for:
Output shows at least one profile with mode: AK or mode: StsToken
Profile shows access_key_id: ******** (masked is OK)
If NO valid profile:
Tell user: "Please run aliyun configure to set up credentials first."
STOP - Do not proceed with any MaxCompute commands
FORBIDDEN - NEVER do these:
❌ echo $ALIBABA_CLOUD_ACCESS_KEY_ID
❌ echo $ALIBABA_CLOUD_ACCESS_KEY_SECRET
❌ aliyun configure get | grep access-key
❌ Any command that displays actual credential values
RAM Policy
[MUST] RAM Permission Pre-check: Before executing the workflow, verify that the current user has the required permissions.
Note: You do NOT need to verify RAM permissions via CLI commands. The permissions listed in ram-policies.md are for user reference only. Proceed with the workflow assuming the user has configured appropriate permissions.
Parameters
Always ask user for these values — never assume defaults:
MUST verify the project name in response matches the requested project
MUST verify status is AVAILABLE
If verification fails due to permissions (403), inform user and stop
If project not found or wrong project returned, report failure
If verification succeeds (status=AVAILABLE), confirm success to user
If user requests deletion, inform them to use Alibaba Cloud Console
Final Skill Pass Check:
Before responding to user, verify:
□ I followed the correct workflow for the operation type
□ I asked for ALL required parameters from user
□ I used user's actual values in commands (not placeholders or defaults)
□ I included --user-agent AlibabaCloud-Agent-Skills/alibabacloud-odps-project-manage in EVERY command
□ I did NOT perform any forbidden actions
□ I reported the final result to user
If ALL checks pass → Skill execution is SUCCESSFUL
If ANY check fails → Skill execution is INCOMPLETE
Final Verification (Before Marking Task Complete)
You MUST verify ALL of these before telling user the task is done:
For LIST:
I asked for RegionId and got user's answer
I executed list-projects with --region {USER_ANSWER} and --user-agent AlibabaCloud-Agent-Skills/alibabacloud-odps-project-manage
I presented the results to user clearly
For GET:
I asked for RegionId and got user's answer
I asked for projectName and got user's answer
I executed get-project with user's values and --user-agent AlibabaCloud-Agent-Skills/alibabacloud-odps-project-manage
I presented project details to user clearly
For CREATE:
I asked for RegionId and got user's answer
I asked for projectName and got user's answer
I executed list-quotas to get a valid quota
I executed create-project with user's values and --user-agent AlibabaCloud-Agent-Skills/alibabacloud-odps-project-manage
I verified creation by calling get-project
I confirmed success to user
For DELETE:
Inform user that deletion is not supported and suggest using Alibaba Cloud Console
If ANY check fails, the task is NOT complete.
Best Practices
Naming Convention: Use lowercase letters, numbers, and underscores for project names
Quota Selection: Choose appropriate quota based on workload requirements
Product Type: Use payasyougo for development/testing, subscription for production with predictable workloads
Type System: Use 2 (MaxCompute) for new projects unless Hive compatibility is required
Resource Cleanup: Always clean up test projects to avoid unnecessary costs