安全

huawei-cloud-skill-creator

试用

1. Six-phase pipeline for creating Huawei Cloud skills — Socratic requirements gathering, CLI→SDK→API research, MD generation, test preparation, detailed testing, and final cleanup & compliance check 2. Phase-chained dependency: each phase builds on the previous phase's output, no phase may be skipped 3. Supports CLI, SDK, and REST API execution modes with automatic fallback detection 4. Generates complete skill directory structure with SKILL.md, references/, scripts/, templates/ 5. Validates against the Huawei Cloud Skill Specification (华为云Skill检查规范) Triggers include: "创建华为云Skill","新建华为云Skill","华为云skill创建器","创建 Skill","新建 Skill","skill 创建器","create skill","build skill","new skill","skill creator","scaffold a Huawei Cloud skill","wrap CLI or OpenAPI into a skill","package cloud operations into a skill","帮我创建华为云Skill","帮我新建一个Skill","封装华为云CLI为Skill","华为云Skill脚手架","帮我创建一个skill","我需要一个skill","建一个skill","生成skill","帮我建一个华为云skill".

它能做什么

1. Six-phase pipeline for creating Huawei Cloud skills — Socratic requirements gathering, CLI→SDK→API research, MD generation, test preparation, detailed testing, and final cleanup & compliance check 2. Phase-chained dependency: each phase builds on the previous phase's output, no phase may be skipped 3. Supports CLI, SDK, and REST API execution modes with automatic fallback detection 4. Generates complete skill directory structure with SKILL.md, references/, scripts/, templates/ 5. Validates against the Huawei Cloud Skill Specification (华为云Skill检查规范) Triggers include: "创建华为云Skill","新建华为云Skill","华为云skill创建器","创建 Skill","新建 Skill","skill 创建器","create skill","build skill","new skill","skill creator","scaffold a Huawei Cloud skill","wrap CLI or OpenAPI into a skill","package cloud operations into a skill","帮我创建华为云Skill","帮我新建一个Skill","封装华为云CLI为Skill","华为云Skill脚手架","帮我创建一个skill","我需要一个skill","建一个skill","生成skill","帮我建一个华为云skill".

技能文档

Huawei Cloud Skill Creator v2

Six-Phase Strict Pipeline — Each phase depends on the previous phase's output and cannot be skipped. If any phase is missing, restart from the missing phase.


Overview

The Huawei Cloud Skill Creator v2 is based on a six-phase strict pipeline: starting with Socratic Q&A requirements analysis, followed by technical research (CLI→SDK→API three-level fallback), document generation, test preparation, detailed testing, resource cleanup and compliance check, ultimately generating a complete skill package that conforms to the Huawei Cloud Skill Specification.


Prerequisites

  1. hcloud CLI installed and authenticated — Reference: https://support.huaweicloud.com/qs-hcli/hcli_02_003.html
  2. Python 3.8+ with huaweicloudsdk packages available — SDK Reference: https://console.huaweicloud.com/apiexplorer/#/sdkcenter
  3. Node.js + npx available
  4. Huawei Cloud AK/SK — 自动扫描所有以 HUAWEI / HW / HWC 开头的环境变量,匹配其中含 ACCESS_KEY / _AK / SECRET_KEY / _SK 的键值对
  5. API Reference: https://console.huaweicloud.com/apiexplorer/#/openapi

Workflow — Six-Phase Strict Pipeline

Phase 1 (Q&A) → Phase 2 (Tech Research) → Phase 3 (Generate MD)
    → Phase 4 (Test Prep) → Phase 5 (Detailed Testing) → Phase 6 (Cleanup & Report)

Strict Rules:

  • Each phase must output a phase summary (phase-N-summary)
  • Before starting each phase, must verify that the previous phase's summary file exists
  • After all 6 phases are completed, perform a final check for any missing phases. If any are missing, restart from the missing phase
  • Skipping any phase is strictly prohibited

Phase 1: Requirements Analysis (Socratic Q&A)

Goal: Clarify user requirements through question-by-question dialogue.

  • Ask one question at a time, wait for the user's response
  • Cover the following dimensions:
    1. Target Service — Which Huawei Cloud service? (ECS, VPC, OBS, RDS, BSS, etc.)
    2. Feature Scope — What should the Skill do? (Query, Diagnose, Deploy, Monitor, Manage)
    3. Execution Mode — Prefer CLI / SDK / API?
    4. CLI Operations — Which operations are involved? (List, Show, Create, Delete, Update)
    5. Trigger Scenarios — When would an Agent invoke this? (Daily inspection, troubleshooting, auto-scaling)
  • After every 5 questions or covering all dimensions → Display requirements summary table → Wait for user confirmation
  • 🛑 Do NOT proceed to Phase 2 until the user has explicitly confirmed

Output: phase-1-summary.json — User-confirmed requirements description


Phase 2: Technical Research (CLI→SDK→API Three-Level Fallback)

Dependency: Phase 1 requirements analysis completed (phase-1-summary.json exists)

For each feature point confirmed in Phase 1, research availability in the following order:

PriorityResearch MethodVerification CommandSuccess Criteria
1stCLI — hcloud commandhcloud --cli-region=cn-north-4 --helpCommand exists and parameters are valid
2ndSDK — huaweicloudsdkpython3 -c "from huaweicloudsdk{service}.v2 import ..."SDK package installed and class importable
3rdAPIOnly from the following two sourcesSee rules belowEndpoint from a trusted source, not inferred

Core Rule: API Endpoint Forensics (No Guessing)

API endpoints are only allowed from the following two sources. Strictly prohibited from inferring through naming patterns:

Trusted SourceMethod
SDK source _http_info resource_pathgrep -A8 "_http_info" {service}_client.py → Read resource_path value
Huawei Cloud API Explorer (api-explorer.huaweicloud.com)User searches and confirms on that website

❌ Strictly prohibited actions:

  • Inferring new endpoints based on other API path patterns (e.g., inferring claim-vouchers endpoint from coupons endpoint)
  • Constructing URIs yourself based on documentation descriptions
  • Using "common naming patterns" to guess API paths
  • If the SDK is available but the corresponding function has no method in _http_info → Mark ⛔, do not infer

Execution Rules:

Research feature point N
  ├── CLI available → Record as CLI mode, record specific command
  ├── CLI unavailable → Check SDK
  │    ├── SDK available → Record as SDK mode
  │    │    ├── Read all _http_info methods from SDK source to obtain real REST paths
  │    │    │    grep "resource_path" /{service}_client.py
  │    │    └── Feature point's corresponding method has _http_info in SDK → Record real API endpoint
  │    │         Feature point's corresponding method has no _http_info in SDK → Mark ⛔, do not infer
  │    ├── SDK unavailable → Ask user to confirm endpoint from API Explorer
  │    │    ├── User finds endpoint from API Explorer → Record as API mode, note the source
  │    │    ├── User provides endpoint (other source) → Record as API mode, mark ⚠ user-provided
  │    │    └── User cannot provide → Mark ⛔
  │    └── SDK partially available (some methods missing and no corresponding _http_info) → Mark missing features as ⛔
  └── Generate feature point research result (including execution mode + real API path if available)

🛑 Agent is strictly forbidden from guessing/fabricating API paths on its own. If neither the SDK source nor API Explorer has the endpoint, mark it ⛔ — it doesn't exist.

Tips for finding SDK client source paths:

# Method 1: Find package installation path
python3 -c "import huaweicloudsdk{service}.v2 as m; import os; print(os.path.dirname(m.__file__))"

# Method 2: Find all _http_info methods (show all API endpoints)
grep "_http_info" /{service}_client.py

# Method 3: View API path for a specific method
grep -A8 "_{method}_http_info" /{service}_client.py
# The "resource_path" key in output is the real REST endpoint

Output: phase-2-summary.json — Execution mode (CLI/SDK/API/⛔) and corresponding command/code/API path for each feature point


Phase 3: Document Generation

Dependency: Phase 2 technical research completed (phase-2-summary.json exists)

Generate Skill files based on Phase 2 conclusions:

  1. Name the Skillhuawei-cloud-{product}-{function} format

  2. Language — Generate SKILL.md in English by default. Chinese documentation may be added in references/ as supplementary. The main SKILL.md must use English for frontmatter description, section titles, command examples, and all explanatory content.

  3. Create directory structure:

    skills/{category}/{skill-name}/
    ├── SKILL.md
    ├── references/
    │   ├── iam-policies.md          (Required)
    │   ├── verification-method.md     (Recommended)
    │   ├── dataflow-diagram.md        (Recommended)
    │   └── acceptance-criteria.md     (Recommended)
    ├── scripts/
    │   └── test-cli-commands.sh
    ├── templates/
    │   └── test-vars.json
    
  4. SKILL.md content generation rules:

    Execution ModeCommand Format in SKILL.md
    CLIhcloud --cli-region={region} [--params]
    SDKPython script example (python3 -c "...")
    APIcurl command + user-provided endpoint (mark ⚠ user-provided)
    Mark requires manual verification, do not generate specific commands
  5. Required sections in SKILL.md (per specification):

    SectionSeverityDescription
    YAML FrontmatterCriticalname + description (including Triggers include:) + tags
    OverviewHighFeature overview, architecture, applicable scenarios
    PrerequisitesHighCLI version, authentication config, IAM permissions
    WorkflowHighPhase 1-6 process steps
    KooCLI Command Format StandardHighGeneral CLI command format specification (service name/operation name/parameter syntax)
    Core CommandsHighCommand examples grouped by function
    Parameter ConfirmationHighUser-configurable parameter table
    Reference DocumentsCriticalLinks to documents under references/
    IAM PermissionsCriticalreferences/iam-policies.md
  6. Generate Mermaid data flow diagramreferences/dataflow-diagram.md

  7. Generate IAM policiesreferences/iam-policies.md (principle of least privilege)

  8. Generate reference materials: If Phase 2 discovered API paths through SDK source, organize them into references/api-paths.md

  9. File size constraint: Total skill directory size must not exceed 40 MB. Run du -sh {skill-dir} to verify after generation.

  10. File extension constraint: All generated files must use one of the following allowed extensions: .md, .sh, .bash, .ps1, .py, .json, .yaml, .yml, .toml, .txt, .png, .jpg, .jpeg, .svg, .css, .js, .lock, .gitkeep, .pdf, .drawio. Any file with an extension not in this list must be removed or renamed before the skill is considered complete.

  11. File count constraint: Total number of files in the skill directory must not exceed 30 (including SKILL.md, all files under references/, scripts/, templates/, and any other subdirectories). Count with find {skill-dir} -type f | wc -l.

🛑 Strictly prohibited from generating hallucinated URIs / fabricated API paths. Feature points not verified in Phase 2 must not have specific commands written.

Output: phase-3-summary.json — List of generated files and structure validation results


Phase 4: Test Preparation

Dependency: Phase 3 document generation completed (phase-3-summary.json exists)

  1. Generate test cases — Split test cases based on Phase 2/3 feature points

    Case TypeCoverage RequirementExample
    CLI casesOne case per hcloud commandhcloud ECS ListServers --limit=1
    SDK casesOne case per SDK calllist_sub_customer_coupons(limit=1)
    API casesOne case per user-provided endpointcurl -X GET {endpoint}
  2. Save test cases as JSONtemplates/test-vars.json

    {
      "test_cases": [
        {"id": "TC-01", "name": "...", "command": "...", "expected": "..."},
        ...
      ]
    }
    
  3. Show all test cases to the user for confirmation

  4. Run tests:

    • Read AK/SK from environment variables: 自动扫描所有以 HUAWEI / HW / HWC 开头的环境变量,匹配其中含 ACCESS_KEY / _AK / SECRET_KEY / _SK 的键值对
    • If not found, must prompt the user to provide AK/SK; if the user does not provide, terminate the process. Strictly prohibited from skipping
    • Execute test cases one by one
    • Before executing mutating commands (Create/Update/Delete), must prompt the user and wait for confirmation
  5. Test verification flow:

    Each case → Try CLI execution
      ├── ✅ Success → Record PASS
      └── ❌ Failure → Check syntax issues
           ├── ✅ Syntax issue → Fix and retry
           └── ❌ Non-syntax issue → Fallback to SDK
                ├── ✅ Success → Record PASS (SDK)
                └── ❌ Failure → Fallback to API (user-provided endpoint)
                     ├── ✅ Success → Record PASS (API)
                     └── ❌ Failure → Record FAIL ⛔ requires manual verification
    

Output: phase-4-summary.json — Test case list + per-case execution results


Phase 5: Detailed Testing

Dependency: Phase 4 test preparation completed (phase-4-summary.json exists)

  1. Full regression: Execute all test cases generated in Phase 4

  2. Resource lifecycle testing (applicable to Skills involving resource creation/modification/deletion):

    • Create resource → Verify creation succeeded (query to confirm)
    • Runtime query → Verify resource status is correct
    • Destroy resource → Verify resource release
    • Test report outputs information on created/modified/deleted resources
    • Prompt the user and wait for confirmation before each step
  3. Management-type Skills:

    • If CRUD operations are involved → End-to-end full testing
    • If query-only → Output query results to test report
  4. Report generation:

    • Test results aggregated by case
    • Detailed record of resource changes
    • Detailed error information for failed cases

Output: phase-5-summary.json — Detailed test results + resource operation records


Phase 6: Resource Cleanup and Compliance Check

Dependency: Phase 5 detailed testing completed (phase-5-summary.json exists)

  1. Resource Cleanup:

    • Check whether all resources created in Phase 5 have been released
    • Unreleased resources → Prompt user and attempt cleanup
    • Record cleanup results
  2. Huawei Cloud Skill Specification Compliance Check (against 华为云Skill检查规范):

    Check ItemLevelVerification Method
    SKILL.md existsCriticalFile existence check
    Skill directory under skills/LowPath format: skills/{category}/{subcategory}/{skill-name}/
    Skill package naming conventionHighDirectory name matches huawei-cloud-{product}-{function}
    One PR submits only one SkillCriticalgit diff checks that PR changes only affect a single Skill directory
    YAML Frontmatter existsCriticalgrep '^---$'
    name field existsCriticalFrontmatter name field exists and matches directory name
    description field existsCriticalFrontmatter description field exists and contains feature summary + trigger words
    description includes trigger wordsMediumgrep 'Triggers include:'
    Should not contain version fieldLowNo version field in frontmatter
    Overview sectionHighgrep '##.*概述'
    Prerequisites sectionHighgrep '##.*前置条件'
    Workflow sectionHighgrep '##.*工作流'
    Core Commands sectionHighgrep '##.*核心命令'
    Parameter Confirmation sectionHighgrep '##.*参数确认'
    Reference Documents sectionCriticalgrep '##.*参考文档'
    KooCLI Command Format Standard sectionLowRequired when CLI is involved, grep '##.*KooCLI.*命令格式'
    references/cli-installation-guide.mdHighRequired when CLI is involved, file existence
    references/iam-policies.mdCriticalFile existence
    references/verification-method.mdMediumRecommended file existence
    references/acceptance-criteria.mdLowRecommended file existence
    Reference document kebab-case namingLowFile names under references/ are all lowercase kebab-case
    Credential hardcodingCriticalgrep for credential hardcoding patterns and CLI credential config
    Cross-Skill direct callsCriticalgrep other Skill names
    CLI write operations require confirmationLowCheck whether user confirmation is prompted
    Service name requirementMediumhcloud service names follow KooCLI Services (uppercase/title case)
    Operation name PascalCaseMediumOperation names use PascalCase
    Includes --cli-regionMediumWhether CLI commands include --cli-region parameter
    1. Security Audit (skill-targeted-audit five checks + specification security scan four items):

    Run skill_audit.py on the generated Skill, performing the following five security and quality checks:

    #ToolCheck ContentSeverityInstallation
    1skillcheckSKILL.md agentskills.io specification validation (frontmatter fields, description quality, reference safety)WARNING/ERRORpip install skillcheck
    2markdownlint-cli2Markdown style consistency (line length, duplicate headings, code block formatting, etc.)ERRORnpm install -g markdownlint-cli2
    3cisco-ai-skill-scannerAI security scan: command injection, reverse shell, credential leakage, dangerous functions, prompt injectionCRITICAL/HIGHpip install cisco-ai-skill-scanner (CLI: skill-scanner)
    4hwcloud-specHuawei Cloud SKILL.md specification check: frontmatter required fields, section structure, file sizeERROR/WARNINGBuilt-in (hwcloud_spec_check.py)
    5gitleaksCredential leak scan: detects hardcoded API keys, passwords, private keys, tokens, and 800+ other patternsERRORDownload from GitHub Releases

    Specification Security Scan Four Checks (Huawei Cloud Skill Specification Part 2):

    #Specification CheckLevelCoverage ToolCoverage Description
    1Secret leak detectionCriticalgitleaks + skill-scannerAK/SK hardcoding, CLI credential config, report output masking
    2Vulnerability pattern detectionCriticalskill-scannerKnown vulnerability code pattern matching (command injection, reverse shell, etc.)
    3Dependency security detectionCritical⚠️ Requires additional toolsKnown unsafe dependency version detection, recommended to integrate pip audit or safety check
    4Insecure configuration detectionCriticalskill-scannerInsecure protocols, weak password configuration, etc.

    Execution method:

    python3 scripts/skill_audit.py --target {skill-path}
    

    Security audit flow:

    Run skill_audit.py → Generate skill-gate-report-.txt
      ├── Gate Verdict: PASS → ✅ Audit passed, proceed to next step
      └── Gate Verdict: FAIL → Fix issues item by item per Report Section 4
           ├── skillcheck issues → Fix frontmatter/description/references
           ├── markdownlint issues → First run markdownlint-cli2 --fix for auto-fix
           │                       → Then manually fix non-auto-fixable items (MD036/MD040, etc.)
           ├── skill-scanner issues → Command injection/reverse shell → Move to scripts/ reference
           │                        → Credential leakage → Replace with environment variable reference
           ├── hwcloud-spec issues → Add missing sections/fields
           ├── gitleaks issues → Replace hardcoded credentials with environment variables
           ├── Dependency security detection → Run pip audit / safety check, fix unsafe dependency versions
           └── After fixing, rerun skill_audit.py → Until PASS
    

    Security audit result handling:

    Audit ResultAction
    PASS (0 issues)Record in phase-6-summary.json, proceed to step 4
    PASS (WARNINGs only)Record WARNINGs in phase-6-summary.json, prompt user to confirm acceptance, proceed to step 4
    FAIL (has ERROR/CRITICAL)Must fix and re-audit, cannot skip

    🛑 When the security audit does not pass, declaring the Skill creation complete is strictly prohibited. CRITICAL/ERROR level issues must be fixed.

  3. Final report:

    • Merge Phase 1-6 phase summaries
    • Include key conclusions from the security audit report (skill-gate-report)
    • Output complete creation report
    • Mark all incomplete items
  4. Final six-phase completeness check:

    Check phase-1-summary.json exists → If missing, restart from Phase 1
    Check phase-2-summary.json exists → If missing, restart from Phase 2
    Check phase-3-summary.json exists → If missing, restart from Phase 3
    Check phase-4-summary.json exists → If missing, restart from Phase 4
    Check phase-5-summary.json exists → If missing, restart from Phase 5
    Check phase-6-summary.json exists → If missing, restart from Phase 6
    

    All phases complete → Creation done. Missing phases → Restart from the missing phase.

  5. Clean up phase summary files: After completeness check passes, delete all phase-*-summary.json files under the skill directory

     # Execute after final completeness check passes
     # Safety check: ensure skill-path is a legitimate directory under the expected path
     [ -d "{skill-path}" ] && [ -f "{skill-path}/SKILL.md" ] && rm -f {skill-path}/phase-*.json
     echo "✅ phase-1~6-summary.json cleanup complete"
    

    Note: Only perform cleanup after the completeness check fully passes. If there are missing phases, do not clean up; restart from the missing phase.

Output: phase-6-summary.json — Final creation report + compliance check results + security audit conclusion


KooCLI Command Format Standard

hcloud   --cli-region= [--key=value ...]
FeatureDescriptionExample
Service nameUppercase PascalCaseECS, VPC, IAM
Operation namePascalCaseListServers, ShowServer
Region parameter--cli-region=--cli-region=cn-north-4
Simple parameter--key=value--server_id=xxx
Indexed parameter--key.1=value1--servers.1.id=xxx

Core Commands

CommandPurpose
bash scripts/validate-skill.sh {path}Phase 3/6: Structure validation + spec check + security audit
bash scripts/test-cli-commands.sh {path} --executor {cli|sdk|api}Phase 4/5: Functional testing
python3 scripts/skill_audit.py --target {path}Phase 6: Five-item security audit (skillcheck+markdownlint+skill-scanner+hwcloud-spec+gitleaks)

Parameter Confirmation

ParameterRequiredDescriptionExample
{skill-path}YesTarget Skill directory pathe.g., huawei-cloud-ecs-manage
{region}NoHuawei Cloud regioncn-north-4
{executor}NoExecution mode (cli/sdk/api)cli

Edge Cases

ScenarioHandling
User skips questions and says "start" directlyRemind: requirements analysis must be completed first, start from Phase 1 questions
AK/SK environment variables not setPrompt user to provide AK/SK; if user does not provide, terminate process, strictly prohibited from skipping
Target service not supported by hcloud CLIPhase 2 fallback to SDK → Read SDK source _http_info → If still not found, mark ⛔
SDK package does not existCheck package name variants, if still not found, inform user, do not infer API
User is unsure of API endpointMark ⛔ requires manual verification, do not fabricate endpoints. If SDK has the method, read _http_info for the real path
SDK has method but _http_info has no resource_pathMark ⛔, this API does not exist in the SDK, do not infer
Attempting to infer API via path pattern (e.g., inferring claim-vouchers from coupons)❌ Strictly prohibited. It doesn't exist
Resource creation test failsAnalyze error cause (permissions/quota/parameters) → Fix and retry
Resource release failsRetry 3 times, if still failing, inform user to clean up manually
User refuses resource lifecycle testingInform user: resource lifecycle testing is a required step and cannot be skipped; if user still refuses, terminate process
Phase 6 finds missing phasesRestart from the missing phase until all 6 phases are complete
SDK has method but actual API path unknownRead SDK source grep _http_info {service}_client.py to get real path
BSS service SDK initialization fails (GlobalCredentials)See references/bss-sdk-notes.md: BSS must use GlobalCredentials + with_endpoints, not BasicCredentials + with_region
list_sub_customer_coupons query returns 400BSS limit parameter maximum is 100, not the default 200
Phase 6 security audit FAILFix issues item by item per skill-gate-report Section 4, rerun skill_audit.py after fixing
skill-scanner false positiveUse <!-- skill-scanner:ignore --> comment annotation, or exclude in .secrets.baseline
gitleaks false positiveAdd to .gitleaksignore file

Verification Method

Specification Compliance Verification

bash scripts/validate-skill.sh {skill-path}
# Check against 华为云Skill检查规范 item by item

Functional Testing

bash scripts/test-cli-commands.sh {skill-path} --executor cli   # CLI priority
bash scripts/test-cli-commands.sh {skill-path} --executor sdk   # SDK fallback
bash scripts/test-cli-commands.sh {skill-path} --executor api   # API fallback

Six-Phase Completeness Check

Final verification: Check whether phase-1-summary.json ~ phase-6-summary.json exist
All exist ✅ → Creation complete
Missing any ❌ → Restart from the missing phase

Security Audit (Phase 6)

# Run five security checks
python3 scripts/skill_audit.py --target {skill-path}

# If FAIL, fix per report and rerun
# Auto-fix markdownlint issues
markdownlint-cli2 "{skill-path}/**/*.md" --config "{skill-path}/.markdownlint.json" --fix

# Re-audit
python3 scripts/skill_audit.py --target {skill-path}

Reference Documents

  • references/cli-installation-guide.md — CLI installation and configuration
  • references/iam-policies.md — Least-privilege IAM policies
  • references/verification-method.md — Verification method details
  • references/dataflow-diagram.md — Mermaid data flow diagram
  • references/acceptance-criteria.md — Acceptance criteria
  • references/related-commands.md — Command quick reference
  • references/api-paths.md — (Optional) REST API paths discovered via SDK source in Phase 2
  • references/bss-sdk-notes.md — BSS service SDK initialization guide (GlobalCredentials + with_endpoints), reference when creating voucher/billing-related Skills
  • references/security-audit-guide.md — Phase 6 security audit guide (usage and fix strategies for the five skill-targeted-audit checks)

Best Practices

  • During Phase 1 requirements analysis, try to cover all functional dimensions to avoid rework in later phases
  • In Phase 2 technical research, prioritize CLI, then SDK, and API last; do not use SDK when CLI is available
  • In Phase 2, read SDK _http_info to get real API paths; strictly prohibited from inferring
  • In Phase 4/5 testing, mutating operations (Create/Update/Delete) must be confirmed by the user before execution
  • If Phase 6 compliance check fails, fix the issues first, then re-verify; do not skip

Notes

  • Six-phase pipeline strictly follows sequential order; no phase may be skipped
  • API endpoints are only allowed from SDK source _http_info or Huawei Cloud API Explorer; strictly prohibited from inferring via naming patterns
  • Credentials (AK/SK) are read from environment variables; hardcoding in scripts or documents is prohibited
  • If AK/SK is not set, must prompt the user to provide them; if the user does not provide, terminate the process. Strictly prohibited from skipping any step that requires credentials
  • BSS service SDK must use GlobalCredentials + with_endpoints; BasicCredentials must not be used
  • Resources created during resource lifecycle testing must be cleaned up in Phase 6 to avoid leftovers
  • When Phase 6 security audit (skill-targeted-audit) FAILs, CRITICAL/ERROR level issues must be fixed and cannot be skipped
  • skill-scanner only detects known cloud API key formats; common passwords/Chinese keyword credentials require gitleaks supplementary detection
  • The skillPath in skills-lock.json is: skills/devtools/common/huawei-cloud-skill-creator/SKILL.md

Design Principles

  • Six-Phase Strict Pipeline — Phases are chain-dependent and cannot be skipped
  • Phase 2 No API Inference — API endpoints only from SDK source _http_info or Huawei Cloud API Explorer; strictly prohibited from guessing via naming patterns
  • Phase 3 Generate Based on Facts — CLI commands / SDK scripts / API endpoints generated per Phase 2 conclusions; no endpoint → mark ⛔
  • Phase 4/5 Real Execution — Every command must be actually executed and verified; if it fails, fallback or mark
  • Phase 6 Double Check — Resource cleanup + specification compliance + six-phase completeness
  • Credential Security — No hardcoded AK/SK, read from environment variables, write operations require user confirmation
  • Credentials Mandatory — If AK/SK is missing, must prompt the user to provide; if not provided, terminate process. Strictly prohibited from skipping
  • Least Privilege — iam-policies.md provides least-privilege policy JSON

相关技能

End-to-end functional testing framework for Huawei Cloud skills — three-tier pipeline covering single-skill unit testing, multi-skill orchestration, and end-to-end full flow testing. Each phase produces structured JSON output with chain verification. Supports skill installation validation, functional analysis, CLI→SDK→API feasibility research, test case generation, real-environment execution with resource lifecycle, resource cleanup, multi-skill scenario orchestration, trigger-conflict detection, and consolidated reporting. Triggers include: 测试技能, 执行技能测试, 跑测试流程, 技能回归测试, skill test, run skill tests, test huawei cloud skill, verify skill, 测试华为云skill, 全流程测试, 编排测试, 技能完整性检查, skill-tester, 跑测试, 回归测试, 组合测试, 多skill编排, verification, e2e.

作者 huaweicloud-skills-team

按关键词或类目检索华为云技能目录,并安装匹配的技能。

作者 huaweicloud-skills-team

Generate Huawei Cloud Terraform configurations and execute deployment with user-guided approval. Use this skill when users want to create Huawei Cloud infras...

1 次安装

Audit Huawei Cloud skills for quality, security, and compliance using a two-check pipeline: skillspector (AI security) and gitleaks (credential leak). Generates structured reports with issue details and fix strategies. Triggers include: "审计技能","技能审计","检查技能质量","扫描技能问题","技能安全审计", "audit skill","check skill quality","scan skills for issues","skill audit", "华为云技能审计","技能合规检查","skill gate","质量门禁","技能检查", "audit huawei cloud skill","verify skill compliance","技能质量检查","跑审计","安全扫描".

2 次安装

Provides guidance for Huawei Cloud KooCLI command-line tool operations. Covers KooCLI installation, IAM authentication configuration, access credential confi...

作者 huaweicloud-skills-team1 次安装

Skill specialized for creating buckets on Huawei Cloud OBS. Use this skill when users need to create OBS buckets, set bucket properties, configure access per...

作者 huaweicloud-skills-team1 次安装

huaweicloud-skills-team 的更多技能

浏览全部技能

用自然语言控制华为昇腾 NPU,本地或 SSH 远程执行 npu-smi 命令。

作者 huaweicloud-skills-team7 次安装

在华为云昇腾 910B DevServer 上按单机或双机(16 卡)拓扑部署并测试 LLM、VL、Embedding、Rerank 模型。

作者 huaweicloud-skills-team7 次安装

面向华为云资源的只读查询能力,用于资源清点、核对与参数发现。

作者 huaweicloud-skills-team6 次安装

通过本地 Python SDK 只读查询华为云 IAM 资源(用户、用户组、策略、委托、AK/SK、MFA、安全设置)。

作者 huaweicloud-skills-team6 次安装