Logo Huawei Cloud Swr Image Automation

Huawei Cloud Swr Image Automation

Tổ chức
huaweicloud
huawei-cloud-swr-image-automation

Huawei Cloud SWR (Software Repository for Container) image automation and operations skill using hcloud CLI. Use this skill when the user wants to: (1) configure cross-region image sync (auto or manual), (2) manage SWR triggers for auto-deploy to CCE/CCI, (3) query available sync target regions, (4) check sync job status, (5) create/update/delete trigger configurations. Trigger: user mentions "SWR automation", "SWR 自动化", "镜像同步", "SWR sync", "跨区域同步", "cross-region sync", "触发器", "SWR trigger", "自动部署", "auto deploy", "镜像复制", "image replication", "SWR 触发器"

Tổng quan

Nhà phát hànhhuaweicloud
Kho mãhuaweicloud-skills
Tên kỹ nănghuawei-cloud-swr-image-automation
Sao
59
Bản fork
24
Tệp đi kèm
8
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 8 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được huaweicloud công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Huawei Cloud Swr Image Automation trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/container/swr/huawei-cloud-swr-image-automation
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-skills.git /tmp/huaweicloud-skills
mkdir -p .claude/skills
cp -r /tmp/huaweicloud-skills/skills/container/swr/huawei-cloud-swr-image-automation .claude/skills/huawei-cloud-swr-image-automation
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Huawei Cloud Swr Image Automation trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Huawei Cloud Swr Image Automation ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Huawei Cloud Swr Image Automation với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Huawei Cloud SWR Image Automation

Overview

This skill provides image automation capabilities for Huawei Cloud SWR (Software Repository for Container) using the hcloud CLI, including cross-region image sync and trigger-based auto-deployment.

Architecture: hcloud CLI → SWR Service API → SyncRepo/Trigger/SyncJob/SyncRegion resources

Related Skills:

  • huawei-cloud-swr-image-management - Image lifecycle management (namespaces, repos, tags, auth, quotas). Image push and authentication (CreateAuthorizationToken, docker login, docker push) are required to verify triggers end-to-end. If not installed, install it first:

    bash
    npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-swr-image-management -y

    For the complete image push and authentication flow, refer to the official SWR Quick Start guide: https://support.huaweicloud.com/qs-swr/index.html

  • huawei-cloud-swr-image-governance - Image governance (permissions, retention, sharing, tags, immutable rules)

  • huawei-cloud-swr-enterprise-instance - Enterprise instance management

  • Configure auto-sync to replicate images across regions on push

  • Manually sync specific image tags to target regions

  • List available sync target regions

  • Check sync job execution status

  • Create and manage triggers for auto-deploy to CCE/CCI workloads

  • Enable/disable triggers and update trigger configurations

Typical Use Cases:

  • "Set up auto-sync for my image repository to cn-east-3"
  • "Manually sync image tags v1.0 and v2.0 to another region"
  • "List available regions for image sync"
  • "Check the status of my image sync job"
  • "Create a trigger to auto-update my CCE deployment when a new image is pushed"
  • "List all triggers for a repository"
  • "Disable a trigger temporarily"
  • "Delete an old trigger configuration"
  • "Configure image replication across multiple regions"

参数确认

All write operations (Create, Update, Delete) require explicit user confirmation before execution.

Before executing any write operation, the skill must:

  1. Display the exact hcloud command to be executed
  2. Show the target resource (namespace, repository, remote region, etc.)
  3. Show the change to be applied (sync config, trigger settings, override status)
  4. Wait for user confirmation ("yes" / "confirm") before proceeding
  5. If user declines, abort the operation and return to step 1

Write operations requiring confirmation:

OperationCommandRisk LevelDescription
Create auto-sync configCreateImageSyncRepo🟠 HighCreates cross-region image replication. If override=true, overwrites existing images in target region — existing images are unrecoverable. Warn user before proceeding
Delete auto-sync configDeleteImageSyncRepo🟡 MediumRemoves auto-sync configuration. New pushes will no longer auto-replicate to target region. Already-synced images are preserved
Manual sync tagsCreateManualImageSyncRepo🟡 MediumOne-time sync of specific tags. If override=true, overwrites existing images in target region
Create triggerCreateTrigger🟡 MediumSets up auto-deploy to CCE/CCI. New image pushes will automatically update the target workload — verify trigger condition to avoid unintended deployments
Update triggerUpdateTrigger🟡 MediumModifies trigger configuration. Enabling/disabling changes auto-deploy behavior immediately
Delete triggerDeleteTrigger🟡 MediumRemoves auto-deploy trigger. Target workload will no longer auto-update on new image pushes

Prerequisites

1. hcloud CLI Requirements (MANDATORY)

  • hcloud CLI installed (version >= 7.2.2)
  • Run hcloud version to verify installation
  • First-time usage: printf "y\n" | hcloud version to accept privacy statement

2. Credential Configuration

hcloud CLI supports two credential modes via environment variables, automatically detected at runtime:

Mode A — Long-term AK/SK (permanent access):

bash
export HUAWEI_CLOUD_AK=<your-ak>
export HUAWEI_CLOUD_SK=<your-sk>
export HUAWEI_CLOUD_REGION=cn-north-4

Mode B — Temporary AK/SK + SecurityToken (recommended for temporary or delegated access):

bash
export HUAWEI_CLOUD_AK=<your-temp-ak>
export HUAWEI_CLOUD_SK=<your-temp-sk>
export HUAWEI_CLOUD_SECURITY_TOKEN=<your-security-token>
export HUAWEI_CLOUD_REGION=cn-north-4

When HUAWEI_CLOUD_SECURITY_TOKEN is present, hcloud CLI automatically uses temporary credential authentication. When only AK/SK are set, it uses long-term credential authentication.

  • Security Rules:
    • 🚫 Never expose AK/SK/SecurityToken values in code, conversation, or commands
    • 🚫 Never use echo $HUAWEI_CLOUD_AK or echo $HUAWEI_CLOUD_SK to check credentials
    • ✅ Use environment variables: HUAWEI_CLOUD_AK, HUAWEI_CLOUD_SK, HUAWEI_CLOUD_REGION, HUAWEI_CLOUD_SECURITY_TOKEN
    • ✅ Prefer IAM users over root account for cloud operations
    • ✅ Enable MFA for sensitive operations

⚠️ Important Security Notes:

  • Never commit credentials to version control
  • Use IAM users with minimal required permissions
  • Enable MFA for sensitive operations
  • Rotate AK/SK regularly

3. IAM Permission Requirements

API ActionPermissionPurpose
swr:sync:createCreate sync repoConfigure cross-region image sync
swr:sync:deleteDelete sync repoRemove sync configuration
swr:sync:listList sync reposQuery auto-sync configurations
swr:syncmanual:createManual syncTrigger manual image sync
swr:syncregion:listList sync regionsQuery available sync target regions
swr:syncjob:getGet sync job statusCheck sync execution status
swr:trigger:createCreate triggerSet up auto-deploy trigger
swr:trigger:listList triggersQuery trigger configurations
swr:trigger:getGet triggerView specific trigger details
swr:trigger:updateUpdate triggerModify trigger configuration
swr:trigger:deleteDelete triggerRemove trigger configuration

See IAM Permission Policies for complete policy JSON.

Permission Failure Handling:

  1. When any command fails due to permission errors, read references/iam-policies.md
  2. Display the required permission list and policy JSON to the user
  3. Guide the user to create a custom policy in the IAM console and grant authorization
  4. Pause execution and wait for user confirmation that permissions have been granted

工作流

  1. ⚠️ Billing Confirmation (MANDATORY) — Before executing any operation, inform the user of potential billing implications and obtain explicit consent:
    • Cross-region sync: Image sync between regions incurs cross-region traffic fees. Auto-sync (syncAuto=true) continuously replicates images, generating ongoing traffic costs.
    • Trigger execution: Triggers that deploy to CCE/CCI may incur compute costs on the target clusters.
    • Storage costs: Synced images consume storage in both source and target regions.
    • Ask the user to confirm: "Do you understand the billing implications and wish to proceed? (yes/no)"
    • Only proceed if the user explicitly confirms. If the user declines, stop and do not execute any operations.
  2. Confirm parameters — Review the confirmation table above; confirm the risk level and key parameters with the user before any write operation
  3. Query sync regions — ListSyncRegions to retrieve available cross-region sync targets
  4. Configure sync — CreateImageSyncRepo (auto-sync) or CreateManualImageSyncRepo (one-time manual sync)
  5. Manage triggers — CreateTrigger / UpdateTrigger / DeleteTrigger to configure auto-deploy to CCE/CCI
  6. Query status — ListImageAutoSyncReposDetails / ShowTrigger / ListSyncJobsDetails to check sync and trigger status
  7. Cleanup — DeleteImageSyncRepo to stop sync, DeleteTrigger to remove trigger

KooCLI Command Format Standard

All commands follow the standard hcloud KooCLI format:

bash
hcloud SWR <Operation> --param1=value1 --param2=value2 --cli-region=<region>

Key conventions:

  • Service name: SWR (uppercase, matches KooCLI Services listing)
  • Operation name: PascalCase (e.g., CreateImageSyncRepo, ListSyncRegions, CreateTrigger)
  • Region parameter: --cli-region=<value> (default: cn-north-4, or HUAWEI_CLOUD_REGION env var)
  • Output format: --cli-output=json (for agent processing)
  • JMESPath filtering: --cli-query="<expression>" (to reduce output)
  • Array-style parameters: --imageTag.1=v1 --imageTag.2=v2 (index starts from 1, not 0)

Example — read operation:

bash
hcloud SWR ListSyncRegions --cli-region=cn-north-4 --cli-output=json

Example — write operation (requires user confirmation):

bash
# Step 1: Display command and parameters for user confirmation
# Step 2: After user confirms, execute:
hcloud SWR CreateImageSyncRepo --namespace=pancake --repository=openclaw-sandbox \
  --remoteRegionId=cn-east-3 --remoteNamespace=pancake --syncAuto=true --override=false \
  --cli-region=cn-north-4

Core Commands

1. Auto Sync (Cross-region Image Replication)

See Task: Image Sync for detailed workflows.

bash
# List available sync target regions
hcloud SWR ListSyncRegions --cli-region=cn-north-4

# Configure auto-sync for a repository to target region
hcloud SWR CreateImageSyncRepo --namespace=group-dev --repository=my-app --remoteRegionId=cn-east-3 --remoteNamespace=group-dev --override=false --syncAuto=true --cli-region=cn-north-4

# List auto-sync configurations for a repository
hcloud SWR ListImageAutoSyncReposDetails --namespace=group-dev --repository=my-app --cli-region=cn-north-4

# Delete auto-sync configuration
hcloud SWR DeleteImageSyncRepo --namespace=group-dev --repository=my-app --remoteRegionId=cn-east-3 --remoteNamespace=group-dev --cli-region=cn-north-4

Auto Sync Behavior: When syncAuto=true, every new image push to the source repository automatically triggers a sync to the target region. When syncAuto=false, sync only occurs on manual trigger.

⚠️ Query Limitation: ListImageAutoSyncReposDetails only returns syncAuto=true configurations. syncAuto=false configs will not appear in query results — their absence does not indicate creation failure.

2. Manual Sync

bash
# Manually sync specific image tags to target region
hcloud SWR CreateManualImageSyncRepo --namespace=group-dev --repository=my-app --remoteRegionId=cn-east-3 --remoteNamespace=group-dev --imageTag.1=v1.0 --imageTag.2=v2.0 --override=false --cli-region=cn-north-4

⚠️ Important: --imageTag uses indexed array format, NOT plain value format:

  • ✅ CORRECT: --imageTag.1=v1.0 --imageTag.2=v2.0
  • ❌ WRONG: --imageTag=v1.0 (missing index)
  • ❌ WRONG: --imageTag=v1.0,v2.0 (comma-separated not supported)

3. Sync Regions

bash
# List all regions available as sync targets
hcloud SWR ListSyncRegions --cli-region=cn-north-4

Response Format (verified against actual API):

json
[
  {
    "regionID": "cn-north-4"
  }

Returns all regions where you can sync images. Use the regionID field value as the --remoteRegionId parameter.

4. Sync Job Status

bash
# Check sync job status (--filter is REQUIRED with limit and offset)
hcloud SWR ShowSyncJob --namespace=group-dev --repository=my-app --filter="limit::10|offset::0" --cli-region=cn-north-4

⚠️ Important: --filter is required and must include both limit::N and offset::N (e.g., "limit::10|offset::0"). Without it, the command returns a missing parameter error.

Response format (verified against actual API): Returns a flat JSON array. Returns [] when no sync jobs exist.

5. Trigger Management (Auto-deploy to CCE/CCI)

See Task: Trigger Management for detailed workflows.

bash
# Create a trigger for auto-deploy to CCE
hcloud SWR CreateTrigger --namespace=group-dev --repository=my-app --name=deploy-trigger --trigger_type=all --condition=".*" --action=update --app_type=deployments --application=my-deployment --cluster_ns=default --enable=true --trigger_mode=cce --cluster_id=<cluster-id> --cluster_name=<cluster-name> --cli-region=cn-north-4

# List all triggers for a repository
hcloud SWR ListTriggersDetails --namespace=group-dev --repository=my-app --cli-region=cn-north-4

# Show trigger details
hcloud SWR ShowTrigger --namespace=group-dev --repository=my-app --trigger=deploy-trigger --cli-region=cn-north-4

# Update a trigger (enable/disable or modify configuration)
hcloud SWR UpdateTrigger --namespace=group-dev --repository=my-app --trigger=deploy-trigger --enable=false --cli-region=cn-north-4

# Delete a trigger
hcloud SWR DeleteTrigger --namespace=group-dev --repository=my-app --trigger=deploy-trigger --cli-region=cn-north-4

Trigger Types:

  • all: Trigger on any image push (condition=".*")
  • tag: Trigger on specific tag push (condition=tag-name)
  • regular: Trigger on tag matching regex (condition=regex-pattern)

Trigger Modes:

  • cce: Deploy to CCE (Cloud Container Engine) cluster — requires --cluster_id
  • cci: Deploy to CCI (Cloud Container Instance) — no cluster ID needed

Parameter Reference

Common Parameters

ParameterRequired/OptionalDescriptionDefault
--cli-regionRequiredHuawei Cloud region IDConfig value or HUAWEI_CLOUD_REGION
--namespaceContext-dependentSWR namespace (organization)N/A
--repositoryContext-dependentImage repository nameN/A

Auto Sync Parameters

ParameterRequiredDescriptionConstraints
--namespaceYesSource namespaceExisting namespace name
--repositoryYesSource repositoryExisting repository name
--remoteRegionIdYesTarget region IDMust be from ListSyncRegions result
--remoteNamespaceYesTarget namespaceNamespace name in target region
--overrideNoOverwrite existing imagestrue or false (default false)
--syncAutoNoAuto sync on pushtrue or false (default false)

Manual Sync Parameters

ParameterRequiredDescriptionConstraints
--namespaceYesSource namespaceExisting namespace name
--repositoryYesSource repositoryExisting repository name
--remoteRegionIdYesTarget region IDMust be from ListSyncRegions result
--remoteNamespaceYesTarget namespaceNamespace name in target region
--imageTag.[N]YesTag list (indexed array)--imageTag.1=v1.0 --imageTag.2=v2.0
--overrideNoOverwrite existing imagestrue or false (default false)

Trigger Parameters

ParameterRequiredDescriptionConstraints
--namespaceYesSWR namespaceExisting namespace name
--repositoryYesImage repositoryExisting repository name
--nameYesTrigger nameUnique within repository
--trigger_typeYesTrigger typeall, tag, regular
--conditionYesMatch condition.* for all, tag name for tag, regex for regular
--actionYesTrigger actionupdate
--app_typeYesApplication typedeployments or statefulsets
--applicationYesCCE/CCI application nameExisting deployment name
--cluster_nsYesApplication namespaceKubernetes namespace (e.g., default)
--enableYesEnable triggertrue or false
--trigger_modeNoDeploy targetcce (default) or cci
--cluster_idCCE onlyCCE cluster IDRequired for cce mode, empty for cci
--cluster_nameNoCCE cluster nameOptional cluster name
--containerNoTarget containerSpecific container name (default: all)

Output Format

ListSyncRegions (verified)

Response is a flat JSON array of region objects:

json
[
  {
    "regionID": "cn-north-4",
    "region_name": "north-1"
  }
]

Note: Returns all available sync target regions. Use region_id as --remoteRegionId.

ListImageAutoSyncReposDetails

Response format to be verified — returns list of sync repo configurations when they exist. Returns empty when no auto sync configured.

⚠️ Limitation: Only returns configurations where syncAuto=true (auto-sync). Configurations with syncAuto=false (manual sync only) will not appear in results. See Task: Image Sync W3 for workaround.

ListTriggersDetails

Response format to be verified — returns list of trigger objects when they exist. Returns empty when no triggers configured.

ShowTrigger

Response format to be verified. Use --namespace, --repository, --trigger (trigger name) as parameters.

ShowSyncJob (verified)

Response is a flat JSON array. Returns [] when no sync jobs exist:

json
[]

Note: Requires --filter="limit::N|offset::N" parameter. See Sync Job Status for usage.

Verification

See Verification Method for step-by-step verification.

Common Region IDs

Region NameRegion ID
North China - Beijing 4cn-north-4
North China - Beijing 1cn-north-1
East China - Shanghai 1cn-east-3
East China - Shanghai 2cn-east-2
South China - Guangzhoucn-south-1
South China - Shenzhencn-south-4
Southwest China - Guiyang 1cn-southwest-2
Asia Pacific - Bangkokap-southeast-2
Asia Pacific - Singaporeap-southeast-1
Asia Pacific - Hong Kongap-southeast-3
Europe - Pariseu-west-0

Best Practices

  1. Auto-sync for production repos: Set syncAuto=true for production repositories to ensure images are automatically replicated to target regions
  2. Manual sync for selective replication: Use CreateManualImageSyncRepo when you only need to sync specific tags (e.g., production releases)
  3. Override caution: Only set override=true when you intentionally want to overwrite existing images in the target region
  4. Trigger naming: Use descriptive trigger names (e.g., prod-deploy-trigger, staging-update-trigger)
  5. Trigger condition design: Use trigger_type=regular with regex for flexible matching (e.g., v\d+\.\d+\.\d+ for semver tags)
  6. Disable before delete: Disable a trigger (enable=false) before deleting to avoid unintended deployments during cleanup
  7. Verify target namespace: Ensure the target namespace exists in the target region before creating sync configurations
  8. Regional namespace alignment: Use identical namespace names across regions for easier cross-region management
  9. Check sync regions first: Always run ListSyncRegions before creating sync configurations to verify the target region is available

Reference Documents

DocumentDescription
SWR Automation API Guidehcloud SWR automation API reference
IAM Permission PoliciesRequired permissions and policy JSON
Verification MethodStep-by-step verification
Common PitfallsTroubleshooting guides
Task: Image SyncAuto/manual sync workflows
Task: Trigger ManagementTrigger workflows
CLI Installation GuideKooCLI setup and credential config
Acceptance CriteriaCorrect/error pattern comparison

Notes

  • Auto-sync is persistent — once configured, it automatically triggers on every new push until deleted
  • Manual sync is one-time — each CreateManualImageSyncRepo invocation syncs specified tags once
  • --imageTag.[N] uses indexed array format — NOT plain value or comma-separated
  • Sync target namespace must exist — create the namespace in the target region before syncing
  • AK/SK must never be hardcoded — credentials should only be obtained via environment variables
  • hcloud CLI is the only supported method — all operations use hcloud SWR <Operation> format
  • Trigger requires CCE/CCI cluster — triggers only work with existing CCE clusters or CCI instances
  • Response formats pending verification — ListImageAutoSyncReposDetails, ListTriggersDetails, ShowTrigger response formats need live verification
  • CLI exit code limitation — hcloud CLI (KooCLI 7.2.2) may return exit code 0 even when the SWR API returns an error. In automation scripts, do NOT rely solely on exit code; check output for error_code or error_msg fields to determine success/failure
  • Pre-validation required — SWR APIs do not validate target namespace existence, tag existence, or region validity at request time. Always run pre-validation checks (ShowNamespace, ListRepositoryTags, ListSyncRegions) before creating sync configs or manual sync jobs
  • CCI authorization prerequisite — before creating a trigger_mode=cci trigger, verify CCI service is authorized via hcloud CCI ListNamespaces. Unauthorized CCI returns a misleading "Server internal error" instead of an authorization hint

Common Pitfalls

See Common Pitfalls & Solutions for detailed troubleshooting guides.

Quick Reference:

PitfallSymptomQuick Fix
--imageTag wrong formatManual sync failsUse indexed: --imageTag.1=v1.0
Target namespace missingSync creation failsCreate namespace in target region first
Invalid remoteRegionIdSync creation failsCheck with ListSyncRegions
CCE cluster not foundTrigger creation failsVerify cluster_id with CCE console
Trigger already exists409 ConflictUse ShowTrigger to check first
CCI not authorized"Server internal error"Authorize CCI at console first
"Invalid param" on CreateTriggerGeneric error, multiple causesPre-check name/cluster/app existence
API error but exit code 0Script thinks successCheck output for error_code, not exit code
syncAuto=false not in listConfig seems missingListImageAutoSyncReposDetails only shows true
Sync to non-existent namespaceSilent success, invalid configVerify namespace with ShowNamespace first
Auto-sync unwantedImages sync unexpectedlySet syncAuto=false or delete sync config

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Huawei Cloud Swr Image Automation làm được gì?

Huawei Cloud SWR (Software Repository for Container) image automation and operations skill using hcloud CLI. Use this skill when the user wants to: (1) configure cross-region image sync (auto or manual), (2) manage SWR triggers for auto-deploy to CCE/CCI, (3) query available sync target regions, (4) check sync job status, (5) create/update/delete trigger configurations. Trigger: user mentions "SWR automation", "SWR 自动化", "镜像同步", "SWR sync", "跨区域同步", "cross-region sync", "触发器", "SWR trigger", "自动部署", "auto deploy", "镜像复制", "image replication", "SWR 触发器"

Vì sao nên dùng Huawei Cloud Swr Image Automation trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Huawei Cloud Swr Image Automation là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Huawei Cloud Swr Image Automation trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/container/swr/huawei-cloud-swr-image-automation. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Huawei Cloud Swr Image Automation?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Huawei Cloud Swr Image Automation với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Huawei Cloud Swr Image Automation với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Huawei Cloud Swr Image Automation có miễn phí không?

Có. Kỹ năng này được huaweicloud phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇