aliyun/alibabacloud-aiops-skills13 files

Alibabacloud Tech Solution Animation Creation Auto Deploy

|

Specification
Skill ID
aliyun/alibabacloud-aiops-skills/alibabacloud-tech-solution-animation-creation-auto-deploy
Publisher
aliyun
Repository
alibabacloud-aiops-skills
Installs
0
Files
13
Synced
Sep 23, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

aliyun/alibabacloud-aiops-skills/alibabacloud-tech-solution-animation-creation-auto-deployInstalls these files
  • SKILL.md
  • references/acceptance-criteria.md
  • references/cli-installation-guide.md
  • references/ram-policies.md
  • references/related-commands.md
  • references/verification-method.md
  • scripts/attach-policies.sh
  • scripts/create-api-key.sh
  • scripts/create-custom-domain.sh
  • scripts/deploy-environment.sh
  • scripts/poll-deploy-status.sh
  • scripts/render-and-update.sh
  • scripts/setup-role.sh

What this skill tells the agent

Build AI Animation Story Creation App — Auto Deploy

Automatically deploy the Alibaba Cloud "Build AI Animation Story Creation App" solution. Deployment stops once the application is accessible — the hands-on experience is left to the user.

Architecture: OSS Bucket + DashScope (Bailian API Key) + FC App (ComfyUI + WebUI — two functions deployed via Devs template) ---

Installation

Prerequisites (scripts/ runtime dependencies): | Dependency | Min Version | Check Command | Purpose | |-----------|-------------|---------------|---------| | bash | 4.0+ | bash --version | Script runtime | | aliyun CLI | >= 3.3.7 | aliyun version | Alibaba Cloud resource operations (3.3.7+ required for ai-mode subcommand) | | python3 | 3.6+ | python3 --version | JSON parsing | | curl | any | curl --version | HTTP API calls | If Aliyun CLI is not installed or version too low, see references/cli-installation-guide.md for installation instructions. Then [MUST] run aliyun configure set --auto-plugin-install true to enable automatic plugin installation.

CLI Initialization (MUST run before Core Workflow)

Enable AI-Mode, set the dedicated User-Agent, and update plugins so all subsequent CLI calls are tagged correctly and run on the latest plugin versions:

aliyun configure ai-mode enable
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-tech-solution-animation-creation-auto-deploy"
aliyun plugin update

Authentication

Pre-check: Alibaba Cloud Credentials Required Security Rules: - NEVER read, echo, or print AK/SK values - NEVER ask the user to input AK/SK directly in the conversation or command line - NEVER use aliyun configure set with literal credential values - ONLY use aliyun configure list to check credential status ``bash aliyun configure list ` Check the output for a valid profile (AK, STS, or OAuth identity). **If no valid profile exists, STOP here.** 1. Obtain credentials from [Alibaba Cloud Console](https://ram.console.aliyun.com/manage/ak) 2. Configure credentials **outside of this session** 3. Return and re-run after aliyun configure list` shows a valid profile

RAM Policy

See references/ram-policies.md for full permission list.

Required system policies: AliyunFCFullAccess, AliyunOSSFullAccess

Additional permissions: Devs-related permissions (devs:CreateProject, devs:RenderServicesByTemplate, devs:UpdateEnvironment, devs:DeployEnvironment, devs:ListEnvironments, devs:GetEnvironment)

Before the Core Workflow, automatically check and attach required policies:

bash scripts/attach-policies.sh
[MUST] Permission Failure Handling: When any command or API call fails due to permission errors at any point during execution, follow this process: 1. Read references/ram-policies.md to get the full list of permissions required by this SKILL 2. Use ram-permission-diagnose skill to guide the user through requesting the necessary permissions 3. Pause and wait until the user confirms that the required permissions have been granted

Parameter Confirmation

IMPORTANT: Parameter Confirmation — Before executing any command or API call, all parameters are either fixed values or auto-generated/created — no manual user input required.
ParameterRequiredDescriptionValue
RegionIdYesDeployment region (FC and OSS in the same region)Fixed `cn-hangzhou`
BUCKET_NAMEYesOSS Bucket nameAuto-generated animation-story-<6 random lowercase letters>
API_KEYYesBailian (DashScope) API KeyAuto-created via aliyun modelstudio create-api-key
PROJECT_NAMEYesDevs project nameAuto-generated animation-creation-<6 random lowercase letters>

Before starting the Core Workflow, set the following variables in the shell (all subsequent commands reference them directly):

# Generate random names
BUCKET_NAME="animation-story-$(cat /dev/urandom | LC_ALL=C tr -dc 'a-z' | head -c 6)"
PROJECT_NAME="animation-creation-$(cat /dev/urandom | LC_ALL=C tr -dc 'a-z' | head -c 6)"
echo "BUCKET_NAME=$BUCKET_NAME, PROJECT_NAME=$PROJECT_NAME"

Core Workflow

Step 1: Create Bailian API Key (CLI)

Automatically obtain the workspace and create an API Key via aliyun modelstudio CLI:

source scripts/create-api-key.sh
Note: Use source to ensure the API_KEY variable is exported to the current shell. The script automatically fetches the default workspace (or creates one if none exists), creates an API Key, and prints the full value.

Step 2: Enable OSS Service and Create Bucket (CLI)

Note: The OSS CLI plugin uses the --ua flag (not --user-agent) to set the User-Agent.

First enable OSS service (returns ORDER.OPEND if already enabled — can be ignored):

aliyun ossadmin open-oss-service --endpoint oss-admin.aliyuncs.com --force --user-agent AlibabaCloud-Agent-Skills/alibabacloud-tech-solution-animation-creation-auto-deploy 2>&1 || true

Create Bucket:

aliyun oss mb "oss://$BUCKET_NAME" --region cn-hangzhou --ua AlibabaCloud-Agent-Skills/alibabacloud-tech-solution-animation-creation-auto-deploy

Verify:

aliyun oss stat "oss://$BUCKET_NAME" --ua AlibabaCloud-Agent-Skills/alibabacloud-tech-solution-animation-creation-auto-deploy

Step 3: Create Devs Project (CLI)

Use the CreateProject API to create a project. Specify the template name and parameters via templateConfig — Devs will automatically create a production environment.

Note: CreateProject only creates the project and an empty environment — it does NOT trigger deployment automatically. You must follow up with RenderServicesByTemplate + UpdateEnvironment + DeployEnvironment to complete deployment.
aliyun devs create-project --body "{
  \"name\": \"$PROJECT_NAME\",
  \"spec\": {
    \"templateConfig\": {
      \"templateName\": \"animation-creation\",
      \"parameters\": {
        \"region\": \"cn-hangzhou\",
        \"bailian_api_key\": \"$API_KEY\",
        \"ossBucket\": \"$BUCKET_NAME\"
      }
    }
  }
}" --user-agent AlibabaCloud-Agent-Skills/alibabacloud-tech-solution-animation-creation-auto-deploy
Template parameter notes (confirmed — do not modify): - region: Fixed cn-hangzhou - bailian_api_key: Bailian API Key auto-created in Step 1 - ossBucket: OSS Bucket name created in Step 2 (without oss:// prefix) - All parameters are passed via parameters, not variableValues

Step 4: Render Template and Configure Environment (CLI)

All commands in this step use shell variables `MY_UID`, `PROJECT_NAME`, `BUCKET_NAME`, `API_KEY` — make sure Step 1 and Parameter Confirmation have been executed.

First obtain the current user UID and check the role trust policy:

source scripts/setup-role.sh
Note: Use source to ensure the MY_UID variable is exported to the current shell. The script automatically checks whether the role exists and creates it if not. This role is the standard Devs role, typically auto-created when using the FC console's application feature for the first time.
4a. Render Template → Build JSON → Update Environment (all-in-one script)
The following script automatically: renders the template → filters out custom-domain → adds roleArn → calls UpdateEnvironment. The agent does not need to handle JSON manually.
bash scripts/render-and-update.sh
Key notes (built into the script — no manual handling needed): - custom-domain service is automatically filtered out (causes "Unknown service type" error) - roleArn is automatically added - Uses --body to pass data (--spec cannot correctly pass deeply nested JSON)

Use this skill in a project

Open any RiverX project, search the Skills panel for aliyun/alibabacloud-aiops-skills/alibabacloud-tech-solution-animation-creation-auto-deploy, and install it in one click.

Use this skill