huaweicloud-devkit 1.0.2-next.7 → 1.0.2-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/plugins/marketplace.json +18 -18
- package/bin/setup.cjs +5 -3
- package/integrations/opencode/opencode.json +1 -4
- package/package.json +13 -3
- package/plugins/huaweicloud-core/.claude-plugin/plugin.json +1 -1
- package/plugins/huaweicloud-core/.codex-plugin/plugin.json +1 -1
- package/plugins/huaweicloud-core/.cursor-plugin/plugin.json +1 -1
- package/plugins/huaweicloud-core/.mcp.json +1 -3
- package/plugins/huaweicloud-core/.workbuddy-plugin/plugin.json +1 -1
- package/plugins/huaweicloud-core/safety/policy.json +75 -100
- package/plugins/huaweicloud-core/safety/rules/cloud-risk-rules.json +41 -13
- package/plugins/huaweicloud-core/skills/huawei-apig/SKILL.md +34 -34
- package/plugins/huaweicloud-core/skills/huawei-billing/SKILL.md +18 -18
- package/plugins/huaweicloud-core/skills/huawei-cbr/SKILL.md +19 -19
- package/plugins/huaweicloud-core/skills/huawei-cce/SKILL.md +32 -32
- package/plugins/huaweicloud-core/skills/huawei-cloud-eye/SKILL.md +30 -30
- package/plugins/huaweicloud-core/skills/huawei-cloud-find-skills/SKILL.md +12 -11
- package/plugins/huaweicloud-core/skills/huawei-cloud-find-skills/scripts/search-skills.mjs +64 -17
- package/plugins/huaweicloud-core/skills/huawei-cts/SKILL.md +20 -20
- package/plugins/huaweicloud-core/skills/huawei-dds-dcs/SKILL.md +31 -31
- package/plugins/huaweicloud-core/skills/huawei-deployment/SKILL.md +20 -20
- package/plugins/huaweicloud-core/skills/huawei-dew/SKILL.md +39 -30
- package/plugins/huaweicloud-core/skills/huawei-dew/references/csms-usage.md +8 -1
- package/plugins/huaweicloud-core/skills/huawei-dew/references/kms-usage.md +6 -0
- package/plugins/huaweicloud-core/skills/huawei-ecs/SKILL.md +39 -36
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/create-instance.md +15 -4
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/flavors.md +11 -9
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/troubleshooting.md +13 -13
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/SKILL.md +40 -39
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/apig-event-format.md +12 -10
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/create-function.md +21 -20
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/triggers.md +19 -19
- package/plugins/huaweicloud-core/skills/huawei-gaussdb/SKILL.md +20 -20
- package/plugins/huaweicloud-core/skills/huawei-getting-started/SKILL.md +27 -23
- package/plugins/huaweicloud-core/skills/huawei-iam/SKILL.md +27 -27
- package/plugins/huaweicloud-core/skills/huawei-iam/references/policy-examples.md +65 -39
- package/plugins/huaweicloud-core/skills/huawei-iam/references/quick-ref.md +9 -9
- package/plugins/huaweicloud-core/skills/huawei-modelarts/SKILL.md +25 -25
- package/plugins/huaweicloud-core/skills/huawei-obs/SKILL.md +44 -44
- package/plugins/huaweicloud-core/skills/huawei-obs/references/bucket-create.md +19 -19
- package/plugins/huaweicloud-core/skills/huawei-obs/references/bucket-lifecycle.md +12 -7
- package/plugins/huaweicloud-core/skills/huawei-obs/references/common-pitfalls.md +13 -12
- package/plugins/huaweicloud-core/skills/huawei-obs/references/single-file-share.md +4 -4
- package/plugins/huaweicloud-core/skills/huawei-rds/SKILL.md +63 -58
- package/plugins/huaweicloud-core/skills/huawei-sandbox/SKILL.md +39 -39
- package/plugins/huaweicloud-core/skills/huawei-smn-dms/SKILL.md +26 -26
- package/plugins/huaweicloud-core/skills/huawei-vpc/SKILL.md +39 -39
- package/plugins/huaweicloud-core/skills/huawei-vpc/references/network.md +13 -12
- package/plugins/huaweicloud-core/skills/huawei-vpc/references/security-group.md +20 -19
- package/plugins/huaweicloud-core/skills/huawei-vpc/references/subnet.md +15 -15
- package/plugins/huaweicloud-core/skills/huawei-waf-aad/SKILL.md +18 -18
- package/plugins/huaweicloud-core/skills/huaweicloud-api-and-sdk/SKILL.md +13 -13
- package/plugins/huaweicloud-core/skills/huaweicloud-api-and-sdk/agents/openai.yaml +3 -3
- package/plugins/huaweicloud-core/skills/huaweicloud-capability-discovery/SKILL.md +6 -1
- package/plugins/huaweicloud-core/skills/huaweicloud-capability-discovery/agents/openai.yaml +3 -3
- package/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/SKILL.md +11 -1
- package/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/agents/openai.yaml +3 -3
- package/plugins/huaweicloud-core/skills/huaweicloud-core/SKILL.md +53 -53
- package/plugins/huaweicloud-core/skills/huaweicloud-core/agents/openai.yaml +3 -3
- package/plugins/huaweicloud-core/skills/huaweicloud-core/references/report-issue.md +6 -6
- package/plugins/huaweicloud-core/skills/huaweicloud-core/references/select.md +3 -1
- package/plugins/huaweicloud-core/skills/huaweicloud-safety/SKILL.md +0 -1
- package/plugins/huaweicloud-core/skills/huaweicloud-safety/agents/openai.yaml +3 -3
- package/plugins/huaweicloud-core/skills/huaweicloud-troubleshooting/SKILL.md +33 -33
- package/plugins/huaweicloud-core/skills/huaweicloud-troubleshooting/agents/openai.yaml +3 -3
- package/plugins/huaweicloud-core/src/auth/agent-registration.mjs +5 -3
- package/plugins/huaweicloud-core/src/auth/credentials.mjs +12 -4
- package/plugins/huaweicloud-core/src/auth/service.mjs +1 -1
- package/plugins/huaweicloud-core/src/data/icons-manifest.v1.json +3517 -0
- package/plugins/huaweicloud-core/src/hcloud-cli.mjs +16 -7
- package/plugins/huaweicloud-core/src/icon-library.mjs +171 -0
- package/plugins/huaweicloud-core/src/mcp-server.mjs +0 -1
- package/plugins/huaweicloud-core/src/proxy/proxy-agent.mjs +1 -2
- package/plugins/huaweicloud-core/src/proxy/proxy-config.mjs +4 -1
- package/plugins/huaweicloud-core/src/risk-rule-engine.mjs +4 -1
- package/plugins/huaweicloud-core/src/safety-policy.mjs +122 -68
- package/plugins/huaweicloud-core/src/sandbox/hdkitservice-api.mjs +2 -7
- package/plugins/huaweicloud-core/src/sandbox/hwlink-api.mjs +10 -22
- package/plugins/huaweicloud-core/src/sandbox/session-manager.mjs +30 -9
- package/plugins/huaweicloud-core/src/search-market.mjs +46 -12
- package/plugins/huaweicloud-core/src/setup-cli.mjs +435 -167
- package/plugins/huaweicloud-core/src/tools.mjs +407 -114
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-exec-client.js +54 -34
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-fair-queue.js +1 -5
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-multiplexer.js +3 -15
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-packet.js +3 -16
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-terminal-channel.js +37 -31
|
@@ -19,6 +19,7 @@ Security group params use `--security_group.` prefix. Rules use `--security_grou
|
|
|
19
19
|
## Create Security Group Rule
|
|
20
20
|
|
|
21
21
|
Complete example with nested prefix:
|
|
22
|
+
|
|
22
23
|
```bash
|
|
23
24
|
hcloud VPC CreateSecurityGroupRule \
|
|
24
25
|
--security_group_rule.security_group_id=<sg-id> \
|
|
@@ -32,28 +33,28 @@ hcloud VPC CreateSecurityGroupRule \
|
|
|
32
33
|
|
|
33
34
|
## Stateful vs Stateless
|
|
34
35
|
|
|
35
|
-
| Feature
|
|
36
|
-
|
|
37
|
-
| Stateful?
|
|
38
|
-
| Applied to | ECS instance NIC
|
|
39
|
-
| Rules
|
|
40
|
-
| Default
|
|
36
|
+
| Feature | Security Group | Network ACL |
|
|
37
|
+
| ---------- | ------------------------------------ | ------------------------------- |
|
|
38
|
+
| Stateful? | Yes — return traffic auto-allowed | No — must allow both directions |
|
|
39
|
+
| Applied to | ECS instance NIC | Subnet |
|
|
40
|
+
| Rules | Allow only | Allow and Deny |
|
|
41
|
+
| Default | Deny all inbound, allow all outbound | Allow all |
|
|
41
42
|
|
|
42
43
|
## Common Rules Reference
|
|
43
44
|
|
|
44
|
-
| Direction | Protocol | Port | Source
|
|
45
|
-
|
|
46
|
-
| Ingress
|
|
47
|
-
| Ingress
|
|
48
|
-
| Ingress
|
|
49
|
-
| Ingress
|
|
50
|
-
| Ingress
|
|
51
|
-
| Egress
|
|
45
|
+
| Direction | Protocol | Port | Source | Purpose |
|
|
46
|
+
| --------- | -------- | ---- | -------------- | ---------------- |
|
|
47
|
+
| Ingress | TCP | 22 | <office-ip>/32 | SSH |
|
|
48
|
+
| Ingress | TCP | 80 | 0.0.0.0/0 | HTTP |
|
|
49
|
+
| Ingress | TCP | 443 | 0.0.0.0/0 | HTTPS |
|
|
50
|
+
| Ingress | TCP | 3306 | <sg-app-id> | MySQL from app |
|
|
51
|
+
| Ingress | TCP | 6379 | <sg-app-id> | Redis from app |
|
|
52
|
+
| Egress | ALL | ALL | 0.0.0.0/0 | Outbound default |
|
|
52
53
|
|
|
53
54
|
## Common Errors
|
|
54
55
|
|
|
55
|
-
| Error
|
|
56
|
-
|
|
57
|
-
| Cannot SSH
|
|
58
|
-
| Rule not effective
|
|
59
|
-
| `[USE_ERROR]不正确的参数:vpc_id` | Security groups don't need vpc_id. Remove it
|
|
56
|
+
| Error | Root Cause -> Fix |
|
|
57
|
+
| -------------------------------- | ---------------------------------------------------- |
|
|
58
|
+
| Cannot SSH | Default SG denies all inbound. Add port 22 rule |
|
|
59
|
+
| Rule not effective | SG assigned to wrong instance. Verify NIC attachment |
|
|
60
|
+
| `[USE_ERROR]不正确的参数:vpc_id` | Security groups don't need vpc_id. Remove it |
|
|
@@ -26,25 +26,25 @@ hcloud VPC CreateSubnet --vpc_id=xxx
|
|
|
26
26
|
|
|
27
27
|
## Key Constraints
|
|
28
28
|
|
|
29
|
-
| Constraint
|
|
30
|
-
|
|
29
|
+
| Constraint | Detail |
|
|
30
|
+
| ------------------------- | -------------------------------------------------------------- |
|
|
31
31
|
| Subnet bound to single AZ | Cross-AZ needs multiple subnets. AZ code format: `cn-south-1a` |
|
|
32
|
-
| CIDR must not overlap
|
|
33
|
-
| Gateway IP auto-assigned
|
|
34
|
-
| 5 IPs reserved per subnet | First 4 + broadcast reserved by platform
|
|
32
|
+
| CIDR must not overlap | Cannot overlap with other subnets in same VPC |
|
|
33
|
+
| Gateway IP auto-assigned | Default is first IP in CIDR range (e.g., 192.168.1.1 for /24) |
|
|
34
|
+
| 5 IPs reserved per subnet | First 4 + broadcast reserved by platform |
|
|
35
35
|
|
|
36
36
|
## Common Errors
|
|
37
37
|
|
|
38
|
-
| Error
|
|
39
|
-
|
|
40
|
-
| `[USE_ERROR]不正确的参数:name` | Missing nested prefix. Use `--vpc.name=` or `--subnet.name=`
|
|
41
|
-
| CIDR overlap
|
|
42
|
-
| AZ not found
|
|
38
|
+
| Error | Root Cause -> Fix |
|
|
39
|
+
| ------------------------------ | ---------------------------------------------------------------------------------- |
|
|
40
|
+
| `[USE_ERROR]不正确的参数:name` | Missing nested prefix. Use `--vpc.name=` or `--subnet.name=` |
|
|
41
|
+
| CIDR overlap | Subnet CIDR must be within VPC CIDR and not overlap others |
|
|
42
|
+
| AZ not found | Use `hcloud ECS NovaListAvailabilityZones --cli-region=<r>` to list valid AZ codes |
|
|
43
43
|
|
|
44
44
|
## CIDR Planning Reference
|
|
45
45
|
|
|
46
|
-
| Environment | VPC CIDR
|
|
47
|
-
|
|
48
|
-
| Dev
|
|
49
|
-
| Staging
|
|
50
|
-
| Production
|
|
46
|
+
| Environment | VPC CIDR | Subnet CIDR |
|
|
47
|
+
| ----------- | -------------- | ------------------------------------------------ |
|
|
48
|
+
| Dev | 192.168.0.0/16 | 192.168.1.0/24 |
|
|
49
|
+
| Staging | 10.0.0.0/16 | 10.0.1.0/24 |
|
|
50
|
+
| Production | 172.16.0.0/16 | 172.16.1.0/24 (public) + 172.16.2.0/24 (private) |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: huawei-waf-aad
|
|
3
|
-
description:
|
|
3
|
+
description: 'Use when configuring Web Application Firewall (WAF) policies/rules, or Anti-DDoS (AAD) protection on Huawei Cloud. Triggers: WAF, AAD, firewall, DDoS, web protection, IP blacklist, rate limiting, CC attack. NOT for: security groups (use huawei-vpc), CTS audit (use huawei-cts).'
|
|
4
4
|
version: 1
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -16,25 +16,25 @@ Domain expertise for WAF and Anti-DDoS. Covers WAF policy/rules, AAD protection,
|
|
|
16
16
|
|
|
17
17
|
## Critical Warnings
|
|
18
18
|
|
|
19
|
-
| Trap
|
|
20
|
-
|
|
21
|
-
| WAF needs CNAME redirect
|
|
22
|
-
| Premium instance required
|
|
19
|
+
| Trap | Why |
|
|
20
|
+
| -------------------------- | ----------------------------------------------------------------- |
|
|
21
|
+
| WAF needs CNAME redirect | DNS must point to WAF endpoint, not server IP |
|
|
22
|
+
| Premium instance required | Cloud WAF needs a dedicated/premium WAF instance |
|
|
23
23
|
| AAD Standard vs Enterprise | Standard protects single IP. Enterprise protects entire IP ranges |
|
|
24
|
-
| Rule order matters
|
|
24
|
+
| Rule order matters | WAF rules evaluated top-to-bottom within a policy |
|
|
25
25
|
|
|
26
26
|
## Common Workflows
|
|
27
27
|
|
|
28
28
|
### WAF
|
|
29
29
|
|
|
30
|
-
| Task
|
|
31
|
-
|
|
32
|
-
| List WAF instances
|
|
33
|
-
| List policies
|
|
34
|
-
| Create custom rule
|
|
30
|
+
| Task | Operation |
|
|
31
|
+
| ------------------- | --------------------------------------------------------------- |
|
|
32
|
+
| List WAF instances | `ListInstances --cli-region=<r> --project_id=<p>` |
|
|
33
|
+
| List policies | `ListPolicies --cli-region=<r> --project_id=<p>` |
|
|
34
|
+
| Create custom rule | `BatchCreateCustomRule --cli-region=<r> --project_id=<p>` |
|
|
35
35
|
| Create IP blacklist | `BatchCreateWhiteblackipRule --cli-region=<r> --project_id=<p>` |
|
|
36
|
-
| Create CC rule
|
|
37
|
-
| Create geo rule
|
|
36
|
+
| Create CC rule | `BatchCreateCcRule --cli-region=<r> --project_id=<p>` |
|
|
37
|
+
| Create geo rule | `BatchCreateGeoIpRule --cli-region=<r> --project_id=<p>` |
|
|
38
38
|
|
|
39
39
|
### AAD
|
|
40
40
|
|
|
@@ -45,11 +45,11 @@ hcloud AAD CreateInstance --cli-region=<r> --project_id=<p>
|
|
|
45
45
|
|
|
46
46
|
## Troubleshooting
|
|
47
47
|
|
|
48
|
-
| Error
|
|
49
|
-
|
|
50
|
-
| Website unreachable after WAF
|
|
51
|
-
| WAF blocking legitimate traffic | Check rules order, adjust false positive settings
|
|
52
|
-
| AAD not responding
|
|
48
|
+
| Error | Fix |
|
|
49
|
+
| ------------------------------- | -------------------------------------------------------- |
|
|
50
|
+
| Website unreachable after WAF | Check CNAME record points to WAF endpoint |
|
|
51
|
+
| WAF blocking legitimate traffic | Check rules order, adjust false positive settings |
|
|
52
|
+
| AAD not responding | Standard AAD only protects single EIP. Check EIP binding |
|
|
53
53
|
|
|
54
54
|
## Security
|
|
55
55
|
|
|
@@ -11,12 +11,12 @@ Use this skill when the deliverable is application code, API integration, or pre
|
|
|
11
11
|
|
|
12
12
|
## Critical Warnings
|
|
13
13
|
|
|
14
|
-
| Trap
|
|
15
|
-
|
|
16
|
-
| `project_id` in path for most services
|
|
17
|
-
| Pagination is not automatic
|
|
18
|
-
| AK/SK signing algorithm
|
|
19
|
-
| Endpoint varies by service and region
|
|
14
|
+
| Trap | Why |
|
|
15
|
+
| ---------------------------------------- | --------------------------------------------------------------------------------------------------------- |
|
|
16
|
+
| `project_id` in path for most services | Many Huawei Cloud APIs require `project_id` in the URL path. Get it from IAM or KooCLI profile |
|
|
17
|
+
| Pagination is not automatic | APIs return paginated results. Always check for `next_marker` or `page_info` to avoid partial data |
|
|
18
|
+
| AK/SK signing algorithm | Huawei Cloud uses HMAC-SHA256 signing with specific header ordering. Use SDK, don't implement manually |
|
|
19
|
+
| Endpoint varies by service and region | Always verify at https://developer.huaweicloud.com/endpoint |
|
|
20
20
|
| Error response in `body` not HTTP status | Many errors return HTTP 200 with error details in the JSON body. Check `error_code` or `error_msg` fields |
|
|
21
21
|
|
|
22
22
|
## API Workflow
|
|
@@ -38,13 +38,13 @@ Use this skill when the deliverable is application code, API integration, or pre
|
|
|
38
38
|
|
|
39
39
|
## Troubleshooting
|
|
40
40
|
|
|
41
|
-
| Error
|
|
42
|
-
|
|
43
|
-
| Invalid project_id
|
|
44
|
-
| 401/AuthFailure
|
|
45
|
-
| 403/Forbidden
|
|
46
|
-
| Empty results
|
|
47
|
-
| Endpoint not reachable | Wrong region/service endpoint. Verify at developer.huaweicloud.com/endpoint
|
|
41
|
+
| Error | Root Cause -> Fix |
|
|
42
|
+
| ---------------------- | ------------------------------------------------------------------------------------------------ |
|
|
43
|
+
| Invalid project_id | Wrong or missing project_id in URL path. Use `hcloud IAM KeystoneListProjects` or KooCLI profile |
|
|
44
|
+
| 401/AuthFailure | Expired AK/SK or wrong signing algorithm. Regenerate AK/SK or check SDK version |
|
|
45
|
+
| 403/Forbidden | IAM permission missing. Check user/role has required action permissions |
|
|
46
|
+
| Empty results | Pagination missing — add `limit` and check `marker` |
|
|
47
|
+
| Endpoint not reachable | Wrong region/service endpoint. Verify at developer.huaweicloud.com/endpoint |
|
|
48
48
|
|
|
49
49
|
## Terraform Priority
|
|
50
50
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
|
-
display_name:
|
|
3
|
-
short_description:
|
|
4
|
-
default_prompt:
|
|
2
|
+
display_name: 'Huawei Cloud API And SDK'
|
|
3
|
+
short_description: 'Build correct Huawei Cloud API requests and SDK integrations.'
|
|
4
|
+
default_prompt: 'Use $huaweicloud-api-and-sdk to plan this Huawei Cloud API or SDK integration.'
|
|
@@ -5,7 +5,6 @@ description: Discover Huawei Cloud capabilities for an agent task. Use when the
|
|
|
5
5
|
|
|
6
6
|
# Huawei Cloud Capability Discovery
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
**STOP - Do not answer from general knowledge.** Follow the procedure below.
|
|
10
9
|
|
|
11
10
|
Use this skill to turn vague developer intent into a precise Huawei Cloud capability path.
|
|
@@ -21,6 +20,12 @@ Use this skill to turn vague developer intent into a precise Huawei Cloud capabi
|
|
|
21
20
|
7. Prefer MCP only when an approved Huawei Cloud MCP tool exists for the needed operation.
|
|
22
21
|
8. Treat Terraform as a secondary V1 path for reviewed IaC, not the default.
|
|
23
22
|
9. When no built-in devkit skill matches, browse the community skill marketplace at https://github.com/huaweicloud/huaweicloud-skills. Fetch the index from https://raw.githubusercontent.com/huaweicloud/huaweicloud-skills/master/skills-index/index.json.
|
|
23
|
+
10. When the deliverable is a PPT, architecture diagram (draw.io), or frontend page that needs official Huawei Cloud service logos, use the `huaweicloud_get_service_icon` MCP tool to get logo URLs from the official Icons library instead of guessing or hotlinking unofficial images.
|
|
24
|
+
|
|
25
|
+
## Official Service Logos
|
|
26
|
+
|
|
27
|
+
- Use `huaweicloud_get_service_icon` with the service name, alias, or Chinese name (e.g. `ecs`, `obs`, `modelarts`, `对象存储`). It returns the official CDN logo URL (`logo.source_url`), category, and product page link from https://open.huaweicloud.com/openplatform/icons.html.
|
|
28
|
+
- Prefer `logo.source_url` for web deliverables and the Icons library search page for browsing; do not scrape logos from third-party sites.
|
|
24
29
|
|
|
25
30
|
## Deployment Target Options
|
|
26
31
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
|
-
display_name:
|
|
3
|
-
short_description:
|
|
4
|
-
default_prompt:
|
|
2
|
+
display_name: 'Huawei Cloud Capability Discovery'
|
|
3
|
+
short_description: 'Find the right Huawei Cloud capability path for a developer task.'
|
|
4
|
+
default_prompt: 'Use $huaweicloud-capability-discovery to route this scenario to Huawei Cloud capabilities.'
|
|
@@ -5,7 +5,6 @@ description: Safe Huawei Cloud KooCLI usage and authentication guidance. Use whe
|
|
|
5
5
|
|
|
6
6
|
# Huawei Cloud CLI And Auth
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
**STOP - Do not answer from general knowledge.** Follow the procedure below.
|
|
10
9
|
|
|
11
10
|
Use KooCLI `hcloud` for local inspection and reviewed operations. Never ask the user to paste AK/SK, SK, tokens, passwords, or credential files into chat.
|
|
@@ -15,16 +14,21 @@ Use KooCLI `hcloud` for local inspection and reviewed operations. Never ask the
|
|
|
15
14
|
Official guide: `https://support.huaweicloud.com/qs-hcli/hcli_02_003.html`.
|
|
16
15
|
|
|
17
16
|
### Windows
|
|
17
|
+
|
|
18
18
|
1. Download and unzip: `https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/latest/huaweicloud-cli-windows-amd64.zip`
|
|
19
19
|
2. Extract to `%USERPROFILE%\hcloud`, add to user `PATH`
|
|
20
20
|
3. Verify: `hcloud version`
|
|
21
21
|
|
|
22
22
|
### Linux (amd64 / arm64)
|
|
23
|
+
|
|
23
24
|
One-liner (recommended):
|
|
25
|
+
|
|
24
26
|
```bash
|
|
25
27
|
curl -sSL https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/latest/hcloud_install.sh -o ./hcloud_install.sh && bash ./hcloud_install.sh -y
|
|
26
28
|
```
|
|
29
|
+
|
|
27
30
|
Or manual download:
|
|
31
|
+
|
|
28
32
|
```bash
|
|
29
33
|
# amd64
|
|
30
34
|
curl -LO "https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/latest/huaweicloud-cli-linux-amd64.tar.gz"
|
|
@@ -33,15 +37,20 @@ tar -zxvf huaweicloud-cli-linux-amd64.tar.gz
|
|
|
33
37
|
curl -LO "https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/latest/huaweicloud-cli-linux-arm64.tar.gz"
|
|
34
38
|
tar -zxvf huaweicloud-cli-linux-arm64.tar.gz
|
|
35
39
|
```
|
|
40
|
+
|
|
36
41
|
Move to PATH: `mv $(pwd)/hcloud ~/.local/bin/`
|
|
37
42
|
Verify: `hcloud version`
|
|
38
43
|
|
|
39
44
|
### macOS (amd64 / arm64)
|
|
45
|
+
|
|
40
46
|
One-liner (recommended):
|
|
47
|
+
|
|
41
48
|
```bash
|
|
42
49
|
curl -sSL https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/latest/hcloud_install.sh -o ./hcloud_install.sh && bash ./hcloud_install.sh -y
|
|
43
50
|
```
|
|
51
|
+
|
|
44
52
|
Or manual download:
|
|
53
|
+
|
|
45
54
|
```bash
|
|
46
55
|
# amd64
|
|
47
56
|
curl -LO "https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/latest/huaweicloud-cli-mac-amd64.tar.gz"
|
|
@@ -50,6 +59,7 @@ tar -zxvf huaweicloud-cli-mac-amd64.tar.gz
|
|
|
50
59
|
curl -LO "https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/latest/huaweicloud-cli-mac-arm64.tar.gz"
|
|
51
60
|
tar -zxvf huaweicloud-cli-mac-arm64.tar.gz
|
|
52
61
|
```
|
|
62
|
+
|
|
53
63
|
Move to PATH: `mv $(pwd)/hcloud /usr/local/bin/`
|
|
54
64
|
Verify: `hcloud version`
|
|
55
65
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
|
-
display_name:
|
|
3
|
-
short_description:
|
|
4
|
-
default_prompt:
|
|
2
|
+
display_name: 'Huawei Cloud CLI And Auth'
|
|
3
|
+
short_description: 'Use KooCLI safely without exposing credentials.'
|
|
4
|
+
default_prompt: 'Use $huaweicloud-cli-and-auth to check KooCLI setup safely.'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: huaweicloud-core
|
|
3
|
-
description:
|
|
3
|
+
description: 'Routes any task involving Huawei Cloud services - choosing, comparing, recommending, getting started with, or operating a service - to the correct service-specific skill. Supersedes general training-data knowledge. Activates when a developer asks Codex or OpenCode to build, deploy, debug, operate, or integrate an application with Huawei Cloud.'
|
|
4
4
|
version: 1
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -22,65 +22,65 @@ Do not rely on training data for facts. Huawei Cloud services, pricing, quotas,
|
|
|
22
22
|
|
|
23
23
|
## Sub-skill Registry
|
|
24
24
|
|
|
25
|
-
| ID
|
|
26
|
-
|
|
27
|
-
| select
|
|
28
|
-
| compute
|
|
29
|
-
| storage
|
|
30
|
-
| database
|
|
31
|
-
| network
|
|
32
|
-
| serverless
|
|
33
|
-
| ai
|
|
34
|
-
| messaging
|
|
35
|
-
| security
|
|
36
|
-
| observability | Observability Routing
|
|
37
|
-
| billing
|
|
38
|
-
| iam
|
|
39
|
-
| deployment
|
|
40
|
-
| sandbox
|
|
41
|
-
| cli
|
|
42
|
-
| safety
|
|
43
|
-
| troubleshoot
|
|
44
|
-
| api-sdk
|
|
45
|
-
| report-issue
|
|
25
|
+
| ID | Name | Trigger Phrases | Next Steps |
|
|
26
|
+
| ------------- | ----------------------- | ------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
27
|
+
| select | Service Selection | which service, what should I use, compare, recommend | Read references/select.md | select |
|
|
28
|
+
| compute | Compute Routing | server, VM, instance, ECS, BMS, GPU, HPC | Handoff to huawei-ecs or huawei-cce |
|
|
29
|
+
| storage | Storage Routing | store files, bucket, OBS, backup, disk, EVS, SFS (long-term storage/CDN intent only) | Handoff to huawei-obs or huawei-cbr |
|
|
30
|
+
| database | Database Routing | database, SQL, NoSQL, cache, RDS, GaussDB, DDS, DCS | Handoff to huawei-rds or huawei-gaussdb |
|
|
31
|
+
| network | Network Routing | VPC, subnet, security group, EIP, NAT, VPN | Handoff to huawei-vpc |
|
|
32
|
+
| serverless | Serverless Routing | function, Lambda, serverless, FunctionGraph, API gateway | Handoff to huawei-functiongraph or huawei-apig |
|
|
33
|
+
| ai | AI/ML Routing | AI, model, LLM, Pangu, training, inference, RAG | Handoff to huawei-modelarts |
|
|
34
|
+
| messaging | Messaging Routing | message queue, notification, Kafka, RabbitMQ, event, SMN | Handoff to huawei-smn-dms |
|
|
35
|
+
| security | Security Routing | secret, credential, encrypt, KMS, WAF, firewall, DDoS | Handoff to huawei-dew or huawei-waf-aad |
|
|
36
|
+
| observability | Observability Routing | monitor, alarm, log, audit, trace, Cloud Eye | Handoff to huawei-cloud-eye or huawei-cts |
|
|
37
|
+
| billing | Billing Routing | cost, bill, budget, spending, invoice | Handoff to huawei-billing |
|
|
38
|
+
| iam | IAM Routing | permission, policy, role, user, group, AK/SK | Handoff to huawei-iam |
|
|
39
|
+
| deployment | Deployment Routing | deploy, host, publish, CI/CD, pipeline, release | CI/CD pipeline -> huawei-deployment; deploy/host/preview a web app or static website (no CI/CD target) -> present deployment-target options first, see "Deployment Target Options" below |
|
|
40
|
+
| sandbox | Sandbox Routing | sandbox, DevStation, workspace, terminal, preview, temporary runtime | Handoff to huawei-sandbox |
|
|
41
|
+
| cli | CLI and Auth Routing | install hcloud, configure KooCLI, AK/SK setup | Handoff to huaweicloud-cli-and-auth |
|
|
42
|
+
| safety | Safety Routing | is this safe, approve command, risk review | Handoff to huaweicloud-safety |
|
|
43
|
+
| troubleshoot | Troubleshooting Routing | error, bug, failed, AccessDenied, quota | Handoff to huaweicloud-troubleshooting |
|
|
44
|
+
| api-sdk | API/SDK Routing | API call, SDK, REST, integration, code example | Handoff to huaweicloud-api-and-sdk |
|
|
45
|
+
| report-issue | Issue Reporting | wrong service, you picked wrong, incorrect | Read references/report-issue.md |
|
|
46
46
|
|
|
47
47
|
## Service Map
|
|
48
48
|
|
|
49
|
-
| Workload
|
|
50
|
-
|
|
51
|
-
| Web application hosting
|
|
52
|
-
| Containerized microservices
|
|
53
|
-
| Static file storage / CDN (long-term) | OBS
|
|
54
|
-
| Relational database (MySQL/PG)
|
|
55
|
-
| Distributed SQL database
|
|
56
|
-
| Document database (MongoDB API)
|
|
57
|
-
| In-memory cache
|
|
58
|
-
| Serverless functions
|
|
59
|
-
| API management
|
|
60
|
-
| AI model training/inference
|
|
61
|
-
| Message queuing
|
|
62
|
-
| Push notifications
|
|
63
|
-
| Secret management
|
|
64
|
-
| Key management
|
|
65
|
-
| DDoS protection
|
|
66
|
-
| Web firewall
|
|
67
|
-
| Monitoring dashboards
|
|
68
|
-
| Audit trails
|
|
69
|
-
| Backup / disaster recovery
|
|
70
|
-
| CI/CD pipeline
|
|
71
|
-
| Temporary runtime / web app preview
|
|
72
|
-
| Getting started
|
|
49
|
+
| Workload | Primary Service | Skill |
|
|
50
|
+
| ------------------------------------- | -------------------- | ------------------------ |
|
|
51
|
+
| Web application hosting | ECS | huawei-ecs |
|
|
52
|
+
| Containerized microservices | CCE | huawei-cce |
|
|
53
|
+
| Static file storage / CDN (long-term) | OBS | huawei-obs |
|
|
54
|
+
| Relational database (MySQL/PG) | RDS | huawei-rds |
|
|
55
|
+
| Distributed SQL database | GaussDB | huawei-gaussdb |
|
|
56
|
+
| Document database (MongoDB API) | DDS | huawei-dds-dcs |
|
|
57
|
+
| In-memory cache | DCS (Redis) | huawei-dds-dcs |
|
|
58
|
+
| Serverless functions | FunctionGraph | huawei-functiongraph |
|
|
59
|
+
| API management | APIG | huawei-apig |
|
|
60
|
+
| AI model training/inference | ModelArts | huawei-modelarts |
|
|
61
|
+
| Message queuing | DMS (Kafka/RabbitMQ) | huawei-smn-dms |
|
|
62
|
+
| Push notifications | SMN | huawei-smn-dms |
|
|
63
|
+
| Secret management | DEW (CSMS) | huawei-dew |
|
|
64
|
+
| Key management | DEW (KMS) | huawei-dew |
|
|
65
|
+
| DDoS protection | AAD | huawei-waf-aad |
|
|
66
|
+
| Web firewall | WAF | huawei-waf-aad |
|
|
67
|
+
| Monitoring dashboards | Cloud Eye (CES) | huawei-cloud-eye |
|
|
68
|
+
| Audit trails | CTS | huawei-cts |
|
|
69
|
+
| Backup / disaster recovery | CBR | huawei-cbr |
|
|
70
|
+
| CI/CD pipeline | CloudDeploy | huawei-deployment |
|
|
71
|
+
| Temporary runtime / web app preview | Sandbox (DevStation) | huawei-sandbox |
|
|
72
|
+
| Getting started | Account setup | huaweicloud-cli-and-auth |
|
|
73
73
|
|
|
74
74
|
## Deployment Target Options
|
|
75
75
|
|
|
76
76
|
When the intent is to **deploy, host, or preview a web app or static website** (no explicit target named), NEVER default to a single service such as OBS. Ask the developer to choose a target and present the options in this order:
|
|
77
77
|
|
|
78
|
-
| #
|
|
79
|
-
|
|
80
|
-
| 1
|
|
81
|
-
| 2
|
|
82
|
-
| 3
|
|
83
|
-
| 4
|
|
78
|
+
| # | Option | When to choose | Skill |
|
|
79
|
+
| --- | -------------------------------------- | ---------------------------------------------------------- | -------------- |
|
|
80
|
+
| 1 | **Sandbox (DevStation) — recommended** | Temporary runtime, quick preview, demo; instant public URL | huawei-sandbox |
|
|
81
|
+
| 2 | OBS static website hosting | Long-term static hosting / CDN, no backend | huawei-obs |
|
|
82
|
+
| 3 | ECS | Needs a server runtime (backend, custom server) | huawei-ecs |
|
|
83
|
+
| 4 | CCE | Containerized workloads, scaling | huawei-cce |
|
|
84
84
|
|
|
85
85
|
- Recommended prompt: "这个项目是 Web 应用/静态网站,建议优先部署到沙箱(临时运行环境,立即可预览)。也可选择 OBS 静态托管、ECS 或 CCE,你想部署到哪里?"
|
|
86
86
|
- If the developer explicitly names a target (e.g. "deploy to OBS"), follow that target and hand off to the corresponding service skill.
|
|
@@ -108,4 +108,4 @@ When the intent is to **deploy, host, or preview a web app or static website** (
|
|
|
108
108
|
|
|
109
109
|
## Quality Bar
|
|
110
110
|
|
|
111
|
-
Prefer short, precise instructions with commands the developer can run. Give source names and exact fields to verify. Avoid inventing service behavior. When uncertain, route to Huawei Cloud Skills or official API/SDK documentation.
|
|
111
|
+
Prefer short, precise instructions with commands the developer can run. Give source names and exact fields to verify. Avoid inventing service behavior. When uncertain, route to Huawei Cloud Skills or official API/SDK documentation.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
|
-
display_name:
|
|
3
|
-
short_description:
|
|
4
|
-
default_prompt:
|
|
2
|
+
display_name: 'Huawei Cloud Core'
|
|
3
|
+
short_description: 'Route Huawei Cloud tasks to Skills, CLI, API, SDK, MCP, or Terraform.'
|
|
4
|
+
default_prompt: 'Use $huaweicloud-core to choose the right Huawei Cloud capability path.'
|
|
@@ -12,9 +12,9 @@ Use when the user reports an issue with a previous routing decision.
|
|
|
12
12
|
|
|
13
13
|
## Common Corrections
|
|
14
14
|
|
|
15
|
-
| Wrong Routing
|
|
16
|
-
|
|
17
|
-
| ECS for containers
|
|
18
|
-
| OBS for block storage
|
|
19
|
-
| RDS for cache
|
|
20
|
-
| FunctionGraph for long-running tasks | ECS or CCE
|
|
15
|
+
| Wrong Routing | Likely Correct |
|
|
16
|
+
| ------------------------------------ | ------------------------ |
|
|
17
|
+
| ECS for containers | CCE |
|
|
18
|
+
| OBS for block storage | EVS (via huawei-ecs) |
|
|
19
|
+
| RDS for cache | DCS (via huawei-dds-dcs) |
|
|
20
|
+
| FunctionGraph for long-running tasks | ECS or CCE |
|
|
@@ -17,12 +17,14 @@ Use when the user asks which service to use or compares services.
|
|
|
17
17
|
## Example: I need a database
|
|
18
18
|
|
|
19
19
|
Ask:
|
|
20
|
+
|
|
20
21
|
- What type of data? Structured (tables) or flexible (documents)?
|
|
21
22
|
- What scale? Small app or enterprise?
|
|
22
23
|
- Do you need SQL queries?
|
|
23
24
|
|
|
24
25
|
Route based on answers:
|
|
26
|
+
|
|
25
27
|
- SQL + standard scale -> huawei-rds
|
|
26
28
|
- SQL + massive scale / distributed -> huawei-gaussdb
|
|
27
29
|
- Document model (MongoDB-compatible) -> huawei-dds-dcs
|
|
28
|
-
- Cache / key-value -> huawei-dds-dcs (DCS)
|
|
30
|
+
- Cache / key-value -> huawei-dds-dcs (DCS)
|
|
@@ -5,7 +5,6 @@ description: Huawei Cloud safety policy for agents. Use when handling credential
|
|
|
5
5
|
|
|
6
6
|
# Huawei Cloud Safety
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
**STOP - Do not answer from general knowledge.** Follow the procedure below.
|
|
10
9
|
|
|
11
10
|
Use this skill before any Huawei Cloud action that may expose secrets, change resources, affect cost, change IAM, or expose a network endpoint.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
|
-
display_name:
|
|
3
|
-
short_description:
|
|
4
|
-
default_prompt:
|
|
2
|
+
display_name: 'Huawei Cloud Safety'
|
|
3
|
+
short_description: 'Keep Huawei Cloud agent operations safe and redacted.'
|
|
4
|
+
default_prompt: 'Use $huaweicloud-safety to review this Huawei Cloud operation.'
|