DB 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"
Analyze the migrability of C/C++/ASM/Fortran/Go/Java/Python/Scala source code to Kunpeng (ARM64) platform using Huawei DevKit CLI tool.
As a process B 73/100 · Nearly there — weak spots: result and completion
What is at stake
Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The skill contains commands that delete files, rewrite disks or execute code fetched from the network. The agent may run them without asking if it believes the instructions require it.
Replace destructive commands with safe equivalents that ask for confirmation, scope them to one folder, and stop piping curl into a shell: pin a version and a checksum.
How to improve
- Shorten the description to 1024 characters.
- The SKILL.md body is over 5,000 tokens: move reference detail into references/ and load it when needed.
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 13
✓ No critical or high findings
Medium and low: 13
-
medium Dangerous commands
cmd-privilegereferences/cli-installation-guide.md:35Privilege escalation / world-writable permissionssudo mv hcloud /usr/local/bin/
-
medium Dangerous commands
cmd-privilegereferences/cli-installation-guide.md:44Privilege escalation / world-writable permissionssudo mv hcloud /usr/local/bin/
-
medium Dangerous commands
cmd-privilegereferences/cli-installation-guide.md:57Privilege escalation / world-writable permissionssudo mv hcloud /usr/local/bin/
-
medium Dangerous commands
cmd-shell-rcreferences/prerequisites.md:113Writes to a shell startup fileecho "export MIGRATE_SSH_PASS='<your-password>'" >> ~/.bashrc
-
medium Dangerous commands
cmd-shell-rcreferences/prerequisites.md:114Writes to a shell startup fileecho "export KUNPENG_SERVER_HOST='<your-server-ip>'" >> ~/.bashrc
-
medium Dangerous commands
cmd-shell-rcreferences/prerequisites.md:115Writes to a shell startup fileecho "export KUNPENG_SERVER_PORT='22'" >> ~/.bashrc
-
medium Dangerous commands
cmd-shell-rcreferences/prerequisites.md:116Writes to a shell startup fileecho "export KUNPENG_SERVER_USER='root'" >> ~/.bashrc
-
medium Dangerous commands
cmd-privilegereferences/troubleshooting.md:125Privilege escalation / world-writable permissionssudo chmod -R o+r <source_path>
-
medium Dangerous commands
cmd-shell-rcreferences/troubleshooting.md:229Writes to a shell startup fileecho 'export KUNPENG_SERVER_HOST=<your-server-ip>' >> ~/.bashrc
-
medium Dangerous commands
cmd-privilegereferences/troubleshooting.md:391Privilege escalation / world-writable permissionssudo mv hcloud /usr/local/bin/
-
medium Dangerous commands
cmd-privilegescripts/install_devkit.sh:310Privilege escalation / world-writable permissions$SUDO cp -a "${EXTRACTED_DIR}." "$INSTALL_DIR/" -
medium Dangerous commands
cmd-privilegescripts/install_devkit.sh:319Privilege escalation / world-writable permissions$SUDO chmod +x "${INSTALL_DIR}/devkit" -
medium Dangerous commands
cmd-privilegeSKILL.md:86Privilege escalation / world-writable permissionstar -xzf huaw….gz && chmod +x hcloud && sudo mv hcloud /usr/local/bin/
Files scanned: 21. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- error
description-longdescription is 1043 chars, limit 1024 - warning
body-longSKILL.md body ≈ 6023 tokens (recommended < 5000); move details to references/
Process rating: all ten parameters 73/100
- 40Result and completion. Does not say what the result is
- 60Tools and files. Uses tools (bash, python) that frontmatter does not declare
- 60Steps. 37 steps, 4 vague phrases
- 70Inputs and preconditions. Inputs and preconditions are listed
- 70Execution cost. Instruction body is 6023 tokens
- 100When it triggers. States when to use and when not to
- 100Failures and branches. 1 branches, has a failure section
- 100Consistency. Name and required fields are in place
- 100Running it twice. Mutating operations check current state
- 100Progress reporting. Reports progress
- medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
- low 13 top-level sections: this looks like several domains in one skill
- low The response is described with custom markup (17 tags): a typed call is more reliable
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +4Description does not say when NOT to use the skill (false activations)
- +3Description length 1042: 120–800 characters recommended
- +3Output format is not stated: the model decides each time
- -4Absolute local paths (C:\Users, /home/…): not portable
- -229 emoji in the instructions: noise for the model
- +1No license
- +2Single-language instructions
- +5Description quotes 12 example trigger phrases
- +4Structure: 19 headings
- +3Step-by-step instructions: 37 items
- +4Has examples (15 code blocks)
- +4Reference files are cited in the instructions (15 of 15)
- +3All 4 scripts are documented
Quality base 70; lint remarks subtract, signals add up to 100. Result: 52.