Λογότυπο Huawei Cloud Kunpeng Source Code Migrate

Huawei Cloud Kunpeng Source Code Migrate

Οργανισμός
huaweicloud
huawei-cloud-kunpeng-source-code-migrate

Analyze the migrability of C/C++/ASM/Fortran/Go/Java/Python/Scala source code to Kunpeng (ARM64) platform using Huawei DevKit CLI tool. Connect to the source server via SSH, install DevKit, scan source code, and generate a migration assessment report. If the user does not have a remote server, this skill can automatically provision a Kunpeng ECS instance on Huawei Cloud (Guiyang Region 1) using hcloud CLI. Use this skill when the user wants to: (1) assess source code portability/migrability to Kunpeng ARM platform, (2) scan C/C++/ASM/Fortran/Go/Java/Python/Scala code for migration issues, (3) generate a Kunpeng migration report for their software project, (4) check source code compatibility with ARM64/Kunpeng architecture, (5) provision a Kunpeng server on Huawei Cloud for migration assessment. Trigger: user mentions "鲲鹏移植", "鲲鹏迁移", "Kunpeng migration", "Kunpeng porting", "源码迁移", "源码移植", "ARM64迁移", "ARM移植评估", "DevKit", "可迁移性分析", "migrability", "porting assessment", "migration report", "鲲鹏评估", "购买鲲鹏服务器", "鲲鹏云服务器", "Kunpeng ECS"

Επισκόπηση

Εκδότηςhuaweicloud
Αποθετήριοhuaweicloud-skills
Όνομα δεξιότηταςhuawei-cloud-kunpeng-source-code-migrate
Αστέρια
59
Διακλαδώσεις
24
Συνοδευτικά αρχεία
19
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Συνοδευτικά αρχεία: 19

    Αρχεία script, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό huaweicloud. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Huawei Cloud Kunpeng Source Code Migrate στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/computing/kunpeng/huawei-cloud-kunpeng-source-code-migrate
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

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/computing/kunpeng/huawei-cloud-kunpeng-source-code-migrate .claude/skills/huawei-cloud-kunpeng-source-code-migrate
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Huawei Cloud Kunpeng Source Code Migrate σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Huawei Cloud Kunpeng Source Code Migrate μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Huawei Cloud Kunpeng Source Code Migrate δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

Kunpeng Source Code Migration Assessment

Analyze the migrability of C/C++/ASM/Fortran/Go/Java/Python/Scala source code to Kunpeng (ARM64) platform using Huawei DevKit CLI tool.

Overview

This skill assesses source code migrability to the Kunpeng (ARM64) platform using Huawei DevKit CLI. It connects to a source server via SSH (or installs locally), installs DevKit, scans source code, and generates a migration assessment report. If the user has no remote server, it can automatically provision a Kunpeng ECS instance on Huawei Cloud (Guiyang Region 1) via hcloud CLI.

⚠️ Analysis depth varies by language (DevKit limitation): C/C++/ASM = deep analysis; Fortran = shallow; Go/Java/Python/Scala = file-level stats only (architecture-dependent code like JNI/CGo/ctypes/unsafe will NOT be detected — manual review required). See Supported Languages for details.

Architecture: Local detection + remote execution + SFTP transfer. All SSH operations use the unified scripts/ssh_client.py (paramiko + password env var), cross-platform consistent.

Applicable scenarios: Assess source code portability to Kunpeng ARM; scan C/C++/ASM/Fortran/Go/Java/Python/Scala code; generate a migration report; check ARM64 compatibility; provision a Kunpeng server on Huawei Cloud.

Report save path: Windows → C:\devkit-report\, Linux/macOS → ~/devkit-report/ (resolved from current user's home, NOT hardcoded /home/).

Prerequisites

CLI version requirements:

ToolVersionPurpose
Python3.xRun ssh_client.py, detect_os.py, paramiko dependency
paramikolatest stableSSH connection (pip install paramiko)
hcloud (KooCLI)>= 3.2.0Only needed for provisioning path (Step 3d)
DevKit CLIauto-installed by install_devkit.shSource code migration scan

Authentication:

  • Root access required (default install path): install_devkit.sh installs to /usr/local and creates a /usr/local/bin/devkit symlink, which requires root. Non-root users MUST use the --no-sudo flag (installs to $HOME/.local/devkit) and add DevKit to PATH manually: export PATH=$HOME/.local/devkit:$PATH. If system dependencies (python3, pip3, curl) are missing and --no-sudo is set, the script will error out — install them first or run as root.
  • SSH user: The default SSH user is root (see KUNPENG_SERVER_USER). Non-root SSH users are supported, but the remote install path and report download path will be under that user's home directory (see --no-sudo above).
  • SSH credentials (existing server, Step 3c): User must set env vars KUNPENG_SERVER_HOST, KUNPENG_SERVER_PORT (default 22), KUNPENG_SERVER_USER (default root), MIGRATE_SSH_PASS in their own terminal. AI must NEVER ask for or echo these values.
  • Huawei Cloud AK/SK (provisioning path, Step 3d): User must run hcloud configure set --cli-region=cn-southwest-2 --cli-access-key=<your-ak> --cli-secret-key=<your-sk> in their own terminal. AI must NEVER ask for AK/SK.

IAM permissions (Step 3d only): Required for provisioning a Kunpeng ECS on Huawei Cloud. Minimum set: ECS create/list/delete, VPC create/get/delete, Subnet, SecurityGroup, EIP create/delete, IMS list, IAM projects list. See references/iam-policies.md for the full policy JSON and setup instructions.

OS support: DevKit local install supports openEuler/CentOS/Ubuntu/Kylin/UOS/EulerOS/Debian/SUSE/NeoKylin. Windows and macOS are NOT supported for local install — must use a remote Linux server.

Core Commands

1. Local OS detection:

bash
python <skill_dir>/scripts/detect_os.py

2. SSH connection & remote execution (unified paramiko client):

bash
python <skill_dir>/scripts/ssh_client.py test                              # Test SSH connection
python <skill_dir>/scripts/ssh_client.py exec "uname -a" 30                # Execute remote command
python <skill_dir>/scripts/ssh_client.py put <local> <remote>              # SFTP upload single file
python <skill_dir>/scripts/ssh_client.py put-dir <local_dir> <remote_dir>  # SFTP upload directory
python <skill_dir>/scripts/ssh_client.py get-report                        # Download migration report

3. DevKit installation:

bash
bash <skill_dir>/scripts/install_devkit.sh --yes

4. Source code migration scan (DevKit CLI):

bash
# C/C++ project (with build command):
devkit porting src-mig -i /home/project -s 'c, c++, asm' -b make -c 'make all' -p gcc9.3.0 -o /tmp/devkit-report -r all

# Java/Python project (no build command):
devkit porting src-mig -i /home/project -s 'java, python' -o /tmp/devkit-report -r all

5. Kunpeng ECS auto-provisioning (Step 3d only):

bash
bash <skill_dir>/scripts/provision_kunpeng_server.sh --confirm

6. hcloud CLI install & configure (Step 3d only):

bash
curl -LO "https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/latest/huaweicloud-cli-linux-amd64.tar.gz"
tar -xzf huaweicloud-cli-linux-amd64.tar.gz && chmod +x hcloud && sudo mv hcloud /usr/local/bin/
hcloud configure set --cli-region=cn-southwest-2 --cli-access-key=<your-ak> --cli-secret-key=<your-sk>
hcloud version   # Expected: >= 3.2.0

Parameter Confirmation

AI must confirm the following parameters with the user before execution.

SSH connection parameters (env vars, set by user in their own terminal):

ParameterEnv VarRequiredDefaultDescription
Server addressKUNPENG_SERVER_HOSTYes-Remote server IP/hostname
SSH portKUNPENG_SERVER_PORTNo22SSH port
SSH usernameKUNPENG_SERVER_USERNorootSSH login user
SSH passwordMIGRATE_SSH_PASSYes-Read by paramiko, never in argv, wiped from os.environ after each connection

DevKit scan parameters (confirm with user before scanning):

ParameterCLI optionRequiredDefaultDescription
Source path-iYes-Source code directory (MUST ask user first)
Output dir-oYes/tmp/devkit-reportReport output dir (must exist)
Languages-sYes-c, c++, asm, fortran, go, java, python, scala (lowercase, comma-separated)
Build command-cNoNonee.g. 'make all'
Build tool-bNoNonemake/cmake/automake/go/bazel/blade
Compiler version-pNoNonee.g. gcc9.3.0
Report format-rNoallall/json/html/csv
Target OS-tNoauto-detecte.g. openEuler22.03
Concurrency-npNo1Concurrent processes

⚠️ AI MUST ask the user for the source code path before scanning. Do NOT scan or upload local files without user confirmation.

⛔ Prohibited Operations

Prohibited OperationReason
❌ Ask user to input SSH credentials in conversationCredentials must only be read from environment variables
❌ Echo/print SSH password or any credentialsPrevent credential leakage
❌ Store credentials in plain text filesCredentials must only exist in environment variables
❌ Execute destructive commands on remote server (rm -rf, format, etc.)Prevent irreversible damage
❌ Modify source code without user confirmationMigration assessment is read-only
❌ Install packages outside DevKit scopeOnly DevKit and its dependencies may be installed
❌ Scan without asking the user for the source code pathMust always ask where the source code is
❌ Delete any cloud resources without explicit user confirmationResource deletion is irreversible and HIGH-RISK
❌ Execute any hcloud ... Delete* command autonomouslyAll delete operations require explicit user confirmation

🚫 Not Supported (Capability Boundary)

The following operations are outside this skill's scope. If a user requests any of them, refuse and suggest the alternative.

Not Supported OperationReasonAlternative
❌ Binary migration assessment (.so/.dll/.exe/.o/.a)DevKit CLI only analyzes source code, not compiled binariesUse Huawei Kunpeng binary migration tools separately
❌ Database migration assessmentDevKit CLI does not analyze database schemas/SQL portabilityUse Huawei Cloud DRS (Data Replication Service) or UGO (Database and Application Migration)
❌ Performance tuning / optimization recommendationsThis skill focuses on migration assessment only; the report contains fix suggestions, not performance analysisUse DevKit performance analysis tools (separate from src-mig)
❌ Languages outside C/C++/ASM/Fortran/Go/Java/Python/Scala (e.g. Rust, C#, Ruby, Node.js)DevKit CLI does not support these languagesUse architecture-specific compilers and manual review for Rust etc.
❌ DevKit GUI / desktop version installationThis skill only installs and uses the DevKit CLI versionDownload DevKit GUI separately from Huawei Kunpeng community
❌ Container/Docker image migration assessmentDevKit CLI analyzes source code, not container imagesRebuild container images on Kunpeng ARM64 base images
❌ OS-level migration assessment (kernel, drivers, system libraries)DevKit CLI focuses on application source codeUse Huawei Cloud migration tools for OS-level assessment

If a user requests a prohibited operation, refuse and inform: "Per security constraints, this skill does not allow [specific operation]. Please perform this operation manually if needed."

If a user requests a not-supported operation, refuse and inform: "This skill does not support [specific operation]. [Reason]. Please use [alternative] instead."

Architecture

Kunpeng Source Code Migration Assessment
├── DetectLocalOS     (Detect agent OS → determine DevKit install path)
├── PrepareServer     (Determine where to install DevKit and run scan)
│   ├── LocalInstall  (Install DevKit locally — only if OS is supported)
│   ├── RemoteInstall (Install DevKit on remote server via SSH)
│   │   ├── HasServer (Configure SSH via ssh_client.py: paramiko + password env var)
│   │   └── NoServer  (Install hcloud CLI → Provision Kunpeng ECS → Configure SSH)
│   └── NotSupported  (Local OS not supported → must use remote server)
├── ConnectServer     (SSH connect via paramiko + MIGRATE_SSH_PASS env var)
├── InstallDevKit     (Detect OS and install DevKit CLI tool)
└── ScanSourceCode    (Scan source code → generate report → save to fixed local path)
    └── ReportSave    (Windows: C:\devkit-report\ | Linux/macOS: ~/devkit-report/)

⚠️ Task 0 (DetectLocalOS + PrepareServer) MUST be executed first — it determines the entire workflow path.

SSH Connection Strategy

All SSH operations use the unified scripts/ssh_client.py (paramiko + password from env var). No ssh/scp commands, no ControlMaster, no key injection, no Huawei Cloud region dependency. Works identically on Windows, Linux, and macOS.

⚠️ SSH remote execution limitation: DevKit's src-mig scan may differ between interactive and non-interactive SSH sessions. ssh_client.py exec requests a PTY (get_pty=True) to mitigate this. If scan results look suspicious (0 issues for code with known x86 dependencies), re-run locally via interactive SSH and compare. For critical migrations, validate by compiling on Kunpeng.

Environment variables (set by user in their own terminal; AI never sees values):

VariableDescriptionDefault
KUNPENG_SERVER_HOSTRemote server IP/hostname(required)
KUNPENG_SERVER_PORTSSH port22
KUNPENG_SERVER_USERSSH usernameroot
MIGRATE_SSH_PASSSSH password (read by paramiko, never in argv, wiped after each connection)(required)

Set env vars: Linux/macOS export KUNPENG_SERVER_HOST='<ip>' etc.; Windows PS $env:KUNPENG_SERVER_HOST='<ip>' etc. See references/scripts-guide.md for full setup.

Credential resolution priority (first match wins): (1) current process env vars → (2) /tmp/kunpeng_server_env.sh or %TEMP%/kunpeng_server_env.sh → (3) Windows user-level registry (winreg) → (4) default.

ssh_client.py subcommands:

SubcommandDescription
testVerify SSH connection (echo SSH_OK && uname -a)
exec "<cmd>" [timeout]Execute a shell command on the remote server (uses get_pty=True)
put <local> <remote>Upload a single file via SFTP
put-dir <local_dir> <remote_dir>Upload a directory recursively via SFTP
get <remote> <local>Download a single file via SFTP
get-dir <remote_dir> <local_dir>Download a directory recursively via SFTP
get-report [remote_dir] [local_dir]Download DevKit report (filtered by Code_Porting_*.{html,json,csv,txt}). Defaults: remote=/tmp/devkit-report, local=C:\devkit-report (Win) or ~/devkit-report (Linux)
save-envSave connection info (host/port/user) to a temp env file (no password)

📦 SFTP-First File Transfer (Critical for Windows + MSYS2)

⚠️ On Windows + MSYS2/Git Bash, the shell converts Unix paths to Windows paths before Python sees them (e.g., /tmp/foo → C:/Users/.../Temp/2/foo). For file transfer, use paramiko SFTP API directly from Python, not ssh_client.py CLI subcommands. See references/scripts-guide.md#sftp-first-file-transfer for the code example and references/troubleshooting.md#7-msys2-path-conversion-error-windows-only.

AI agent workflow: (1) File transfer → paramiko SFTP API directly; (2) Command execution → ssh_client.py exec "<cmd>"; (3) Script execution → upload via SFTP, then exec "bash /tmp/script.sh".

Built-in Scripts

AI MUST use these scripts instead of manually executing step-by-step commands.

📄 Detailed guide → references/scripts-guide.md

ScriptDescription
detect_os.pyLocal OS detection (outputs os_type/arch/local_install_supported)
ssh_client.pyUnified cross-platform SSH client (paramiko + env vars). Subcommands: test, exec, put, put-dir, get, get-dir, get-report, save-env
install_devkit.shDevKit CLI installation (auto-detect OS/arch, download, install, verify)
provision_kunpeng_server.shKunpeng ECS provisioning (Huawei Cloud Guiyang Region 1)

Supported Languages

LanguageFile ExtensionsAnalysis DepthMigration Concerns
C.c, .hDeepInline assembly, platform-specific headers, byte order, pointer size
C++.cpp, .cc, .cxx, .hppDeepSame as C, plus name mangling, ABI compatibility
Assembly (ASM).s, .S, .asmDeepArchitecture-specific instructions, registers, calling conventions
Fortran.f, .f90, .f95, .f03ShallowCompiler intrinsics, MPI library compatibility. Only partial detection.
Go.goFile-level statsCGO calls, assembly files, architecture-specific build tags NOT detected. Manual review required.
Java.javaFile-level statsJNI native libraries, architecture-specific dependencies NOT detected. Manual review required.
Python.pyFile-level statsC extensions (Cython, CFFI), native bindings NOT detected. Manual review required.
Scala.scalaFile-level statsJNI calls, native library dependencies NOT detected. Manual review required.

⚠️ For Go/Java/Python/Scala projects: DevKit only performs file-level statistics, not deep code analysis. A "Do Not Need Migrated" result does NOT mean the code is architecture-safe. If your project uses JNI, CGo, ctypes, unsafe, sun.misc.Unsafe, native C extensions, or architecture-specific build tags, you MUST manually review those code paths. For reliable migration assessment of such code, consider converting the native/FFI parts to C/C++ and scanning them separately with DevKit.


Core Workflows

Task 0: Detect Local OS and Prepare Environment

This is the FIRST task. It detects the agent's local OS and determines the DevKit installation path.

Step 1: Detect local OS:

bash
python <skill_dir>/scripts/detect_os.py

Outputs os_type, os_name, os_version, arch, local_install_supported as key=value pairs. Works on all platforms without external dependencies.

⚠️ AI MUST use detect_os.py instead of manually running uname -m, cat /etc/os-release, PowerShell, etc.

DevKit-supported local OS list:

OSMinimum VersionNotes
openEuler20.03 LTSRecommended for Kunpeng
CentOS7.6Also supports 8.0
Ubuntu18.04Also supports 20.04, 22.04
KylinV10Domestic OS
UOS20Domestic OS
EulerOS2.8Also supports 2.9
Debian10Also supports 11
SUSE12
NeoKylinV7Domestic OS

Windows and macOS are NOT supported for local DevKit installation. DevKit must be installed on a remote Linux server.

Step 2: Ask user where to install DevKit

  • If local OS IS supported (LOCAL_INSTALL_SUPPORTED=true): Ask "local install" or "remote server install"
    • "local install" → Step 3a
    • "remote server install" → Step 3b
  • If local OS is NOT supported: Ask "existing remote Linux server" or "provision Kunpeng server on Huawei Cloud"
    • "existing remote Linux server" → Step 3c
    • "provision Kunpeng server" → Step 3d

Step 3a: Local Install

  1. Install DevKit: bash <skill_dir>/scripts/install_devkit.sh --yes
    • Root user (default): Installs to /usr/local/devkit, creates /usr/local/bin/devkit symlink.
    • Non-root user: Use bash <skill_dir>/scripts/install_devkit.sh --yes --no-sudo → installs to $HOME/.local/devkit. Then add to PATH: export PATH=$HOME/.local/devkit:$PATH. Requires system deps (python3, pip3, curl) already present; if missing, install them first or use --skip-deps after manual install.
    • --skip-deps: Skip dependency installation (use when python3/pip3/curl are already installed).
  2. Ask user for local source code path
  3. Run DevKit scan locally (no SSH needed)
  4. Skip Task 1 — proceed directly to Task 3 with local paths

📄 Details → references/task-local-devkit.md

Step 3b: Remote Install — Ask about remote server

Ask "existing remote Linux server" or "provision Kunpeng server" → Step 3c or 3d.

Step 3c: User has remote server — Configure SSH

User sets KUNPENG_SERVER_HOST/PORT/USER and MIGRATE_SSH_PASS in their terminal (AI never sees values). Verify:

bash
python <skill_dir>/scripts/ssh_client.py test

⚠️ No region dependency: Remote server can be on any cloud or on-premises. No hcloud CLI needed for SSH.

After verification succeeds, proceed to Task 1.

Step 3d: User has no server — Provision Kunpeng ECS on Huawei Cloud

⛔ CRITICAL: AI MUST use provision_kunpeng_server.sh to create ALL cloud resources. NEVER manually call hcloud APIs individually.

Default ECS spec:

  • Flavor: kc1.2xlarge.2 (Kunpeng ARM64 8C16G). Flavor inventory is dynamic — if the default is out of stock, override via --flavor (e.g., --flavor kc1.large.2 for 2C4G, --flavor kc1.xlarge.2 for 4C8G). The script will detect flavor-related errors and suggest this option.
  • Image: Huawei Cloud EulerOS 2.0 Standard 64 bit for ARM
  • Disk: 40GB GPSSD
  • Region: cn-southwest-2 (Guiyang 1)
  1. Check hcloud CLI installation and authentication
  2. Confirm provisioning with user (present spec and estimated cost)
  3. Execute: bash <skill_dir>/scripts/provision_kunpeng_server.sh --confirm
    • Creates VPC → Subnet → Security Group + SSH rule → EIP → ECS
    • Generates random root password, saves to /tmp/kunpeng_server_env.sh as MIGRATE_SSH_PASS (chmod 600)
    • To override flavor: bash <skill_dir>/scripts/provision_kunpeng_server.sh --confirm --flavor kc1.large.2
  4. Load env: source /tmp/kunpeng_server_env.sh
  5. Verify SSH: python <skill_dir>/scripts/ssh_client.py test
  6. Proceed to Task 1
  7. After scan completes (Task 3): Present Resource Cleanup Reminder

📄 Details → references/task-prepare-server.md

Task 1: Connect to Source Code Server via SSH

Verify connection using python <skill_dir>/scripts/ssh_client.py test. All subsequent operations use ssh_client.py subcommands (see SSH Connection Strategy above).

📄 Details → references/task-connect-server.md

Task 2: Install DevKit CLI Tool

Install DevKit CLI on the target machine using scripts/install_devkit.sh. The script auto-detects OS/architecture, installs dependencies, downloads the correct package, and verifies installation.

⚠️ AI MUST use scripts/install_devkit.sh instead of manually running step-by-step commands.

📄 Details → references/task-install-devkit.md

Task 3: Scan Source Code and Generate Migration Report

⚠️ CRITICAL RULES:

  1. MUST ask user for the source code path before scanning. Do NOT scan without user confirmation.
  2. MUST NOT scan local source code without permission.
  3. MUST NOT upload local files to remote server without permission.
  4. CAN list available source code directories on remote server to help user choose.

Report save path (local download):

Agent OSLocal Report Save Path
WindowsC:\devkit-report
Linux / macOS~/devkit-report (current user's home)

The skill MUST create the directory if it does not exist. Report files (HTML, JSON, CSV) MUST be saved directly under <save_path>/ (no project_name subdirectory). This path is fixed unless user explicitly requests a different location. On Linux/macOS the path is resolved via os.path.expanduser('~') so it works for any user (root → /root/devkit-report, other users → /home/<user>/devkit-report).

Downloading the report:

bash
# Download with defaults (remote=/tmp/devkit-report, local=C:\devkit-report on Windows):
python <skill_dir>/scripts/ssh_client.py get-report

# Or specify custom paths:
python <skill_dir>/scripts/ssh_client.py get-report /tmp/devkit-report /home/devkit-report

⚠️ AI MUST use get-report (or paramiko SFTP API) to download the report. Do NOT use exec with base64/cat to download files.

📄 Details → references/task-scan-source-code.md


DevKit CLI Command Reference

The primary tool is Kunpeng DevKit CLI (devkit command).

bash
devkit porting src-mig -i <source_path> -o <output_path> -s '<language_list>' [options]

Required: -i (source dir), -o (output dir, must exist), -s (languages, comma-separated: c, c++, asm, fortran, go, java, python, scala).

Optional: -c (build cmd, e.g. 'make all'), -b (build tool: make/cmake/automake/go/bazel/blade), -p (compiler, e.g. gcc9.3.0), -f (Fortran compiler), -t (target OS, auto-detect), -r (report format: all/json/html/csv, default all), -l (log level 0-3), -np (concurrency), --ignore/--ignore-path (exclude rules/paths), --kp-compatibility (cross-gen check).

Compiler versions (-p): gcc4.8.5, gcc7.3.0, gcc9.3.0, gcc10.3.0, gcc12.3.0, bisheng compiler3.0.0/4.0.0, gcc for openeuler3.0.3, etc.

⚠️ The devkit binary must be run from its installation directory (e.g., cd /usr/local/devkit && ./devkit), or the directory must be in PATH. The output directory (-o) must already exist.

📄 Full CLI reference → references/devkit-cli-reference.md


References

DocumentDescription
scripts-guide.mdBuilt-in scripts: SSH client, provisioning, DevKit installation
prerequisites.mdPrerequisites and authentication
iam-policies.mdIAM permission policies for ECS provisioning (Step 3d)
cli-installation-guide.mdhcloud (KooCLI) installation guide
task-prepare-server.mdTask 0: Detect OS, prepare environment
task-local-devkit.mdTask 0a: Local DevKit install
task-connect-server.mdTask 1: SSH connect to server
task-install-devkit.mdTask 2: Install DevKit CLI
task-scan-source-code.mdTask 3: Scan source code
devkit-cli-reference.mdDevKit CLI command reference
devkit-installation-guide.mdDevKit installation guide
migration-report-guide.mdMigration report interpretation
troubleshooting.mdTroubleshooting and common issues
acceptance-criteria.mdAcceptance criteria
verification-method.mdVerification methods

Resource Cleanup Reminder

⚠️ After the scan completes and the report is presented, AI MUST remind the user to clean up provisioned resources (Step 3d only). Present as TEXT ONLY — never execute delete commands. Include a table of created resources (ECS, VPC, Subnet, EIP, Security Group) with their IDs, and remind: "Deletion is IRREVERSIBLE. AI will NOT execute these commands. Please run them manually."

For Step 3c (existing server) and Step 3a (local install): No cleanup reminder needed.

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Huawei Cloud Kunpeng Source Code Migrate;

Analyze the migrability of C/C++/ASM/Fortran/Go/Java/Python/Scala source code to Kunpeng (ARM64) platform using Huawei DevKit CLI tool. Connect to the source server via SSH, install DevKit, scan source code, and generate a migration assessment report. If the user does not have a remote server, this skill can automatically provision a Kunpeng ECS instance on Huawei Cloud (Guiyang Region 1) using hcloud CLI. Use this skill when the user wants to: (1) assess source code portability/migrability to Kunpeng ARM platform, (2) scan C/C++/ASM/Fortran/Go/Java/Python/Scala code for migration issues, (...

Γιατί να χρησιμοποιήσετε τη δεξιότητα Huawei Cloud Kunpeng Source Code Migrate στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Huawei Cloud Kunpeng Source Code Migrate είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Huawei Cloud Kunpeng Source Code Migrate στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/computing/kunpeng/huawei-cloud-kunpeng-source-code-migrate. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Huawei Cloud Kunpeng Source Code Migrate;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Huawei Cloud Kunpeng Source Code Migrate;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Huawei Cloud Kunpeng Source Code Migrate με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Huawei Cloud Kunpeng Source Code Migrate;

Ναι. Δημοσιεύεται στο GitHub από τον λογαριασμό huaweicloud με την άδεια χρήσης MIT. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων
Λογότυπο openclaw

Openclaw Test Performance

openclaw
ΟργανισμόςΔημοφιλής

Συγκρίνετε επιδόσεις, διαγνώστε και βελτιστοποιήστε τον χρόνο εκτέλεσης των δοκιμών και των plugin suites του OpenClaw, τα σημεία συμφόρησης στις εισαγωγές, τη χρήση CPU/RSS, την αύξηση του heap και τις αργές διαδρομές κάλυψης κώδικα.

82.2K
391K
Αρχεία: 1
Προβολή
Λογότυπο openclaw

Openclaw Testing

openclaw
ΟργανισμόςΔημοφιλής

Επιλέξτε αναλογικές δοκιμές και ελέγχους για το OpenClaw, διαγνώστε αποτυχίες και αναθέστε στον αρμόδιο τις εργασίες που εξαρτώνται από το περιβάλλον ή απαιτούν αποδεικτικά στοιχεία για την έκδοση.

82.2K
391K
Αρχεία: 2
Προβολή
Λογότυπο openclaw

Release Openclaw Ci

openclaw
ΟργανισμόςΔημοφιλής

Εκτελέστε, παρακολουθήστε, αποσφαλματώστε και συνοψίστε το πλήρες CI κυκλοφορίας του OpenClaw, τους ελέγχους κυκλοφορίας, τις πύλες ζωντανών παρόχων, τις επαληθεύσεις εγκατάστασης/ενημέρωσης και τους προκαταρκτικούς ελέγχους μυστικών κυκλοφορίας.

82.2K
391K
Αρχεία: 3
Προβολή
Λογότυπο openclaw

Release Openclaw Mac

openclaw
ΟργανισμόςΔημοφιλής

Εκτελέστε ή αποκαταστήστε την υπογραφή κυκλοφορίας macOS του OpenClaw, τη συμβολαιογράφηση, το appcast και την προώθηση στοιχείων.

82.2K
391K
Οδηγίες
Προβολή

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇