huaweicloud-devkit 1.0.2-dev.9 → 1.0.2-next.10
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 +20 -20
- package/LICENSE +201 -201
- package/README.md +178 -138
- package/README.zh-CN.md +176 -138
- package/bin/setup.cjs +10 -8
- package/integrations/opencode/commands/huaweicloud-doctor.md +14 -14
- package/integrations/opencode/opencode.json +11 -14
- package/integrations/opencode/skills/huaweicloud-core/SKILL.md +32 -32
- package/package.json +60 -44
- package/plugins/huaweicloud-core/.claude-plugin/plugin.json +31 -44
- package/plugins/huaweicloud-core/.codex-plugin/plugin.json +30 -43
- package/plugins/huaweicloud-core/.cursor-plugin/plugin.json +31 -44
- package/plugins/huaweicloud-core/.mcp.json +13 -15
- package/plugins/huaweicloud-core/.workbuddy-plugin/plugin.json +31 -44
- package/plugins/huaweicloud-core/hooks/hooks.json +26 -26
- package/plugins/huaweicloud-core/hooks/huaweicloud-safety.py +136 -136
- package/plugins/huaweicloud-core/safety/policy.json +76 -100
- package/plugins/huaweicloud-core/safety/rules/cloud-risk-rules.json +227 -199
- package/plugins/huaweicloud-core/skills/huawei-apig/SKILL.md +164 -164
- package/plugins/huaweicloud-core/skills/huawei-billing/SKILL.md +48 -48
- package/plugins/huaweicloud-core/skills/huawei-cbr/SKILL.md +50 -50
- package/plugins/huaweicloud-core/skills/huawei-cce/SKILL.md +103 -101
- package/plugins/huaweicloud-core/skills/huawei-cloud-eye/SKILL.md +90 -90
- package/plugins/huaweicloud-core/skills/huawei-cloud-find-skills/SKILL.md +191 -190
- package/plugins/huaweicloud-core/skills/huawei-cloud-find-skills/scripts/search-skills.mjs +171 -124
- package/plugins/huaweicloud-core/skills/huawei-cts/SKILL.md +55 -55
- package/plugins/huaweicloud-core/skills/huawei-dds-dcs/SKILL.md +70 -70
- package/plugins/huaweicloud-core/skills/huawei-deployment/SKILL.md +57 -56
- package/plugins/huaweicloud-core/skills/huawei-dew/SKILL.md +106 -97
- package/plugins/huaweicloud-core/skills/huawei-dew/references/csms-usage.md +36 -29
- package/plugins/huaweicloud-core/skills/huawei-dew/references/kms-usage.md +29 -23
- package/plugins/huaweicloud-core/skills/huawei-ecs/SKILL.md +188 -185
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/create-instance.md +144 -133
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/evs.md +31 -31
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/flavors.md +57 -55
- package/plugins/huaweicloud-core/skills/huawei-ecs/references/troubleshooting.md +52 -52
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/SKILL.md +132 -131
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/apig-event-format.md +60 -58
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/create-function.md +72 -71
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/deploy-workflow.md +119 -119
- package/plugins/huaweicloud-core/skills/huawei-functiongraph/references/triggers.md +142 -142
- package/plugins/huaweicloud-core/skills/huawei-gaussdb/SKILL.md +56 -56
- package/plugins/huaweicloud-core/skills/huawei-getting-started/SKILL.md +69 -65
- package/plugins/huaweicloud-core/skills/huawei-iam/SKILL.md +111 -111
- package/plugins/huaweicloud-core/skills/huawei-iam/references/policy-examples.md +148 -122
- package/plugins/huaweicloud-core/skills/huawei-iam/references/quick-ref.md +56 -56
- package/plugins/huaweicloud-core/skills/huawei-modelarts/SKILL.md +65 -65
- package/plugins/huaweicloud-core/skills/huawei-obs/SKILL.md +134 -127
- package/plugins/huaweicloud-core/skills/huawei-obs/references/bucket-create.md +49 -49
- package/plugins/huaweicloud-core/skills/huawei-obs/references/bucket-lifecycle.md +31 -26
- package/plugins/huaweicloud-core/skills/huawei-obs/references/common-pitfalls.md +101 -100
- package/plugins/huaweicloud-core/skills/huawei-obs/references/single-file-share.md +40 -40
- package/plugins/huaweicloud-core/skills/huawei-obs/references/static-website.md +56 -56
- package/plugins/huaweicloud-core/skills/huawei-rds/SKILL.md +229 -224
- package/plugins/huaweicloud-core/skills/huawei-sandbox/SKILL.md +173 -134
- package/plugins/huaweicloud-core/skills/huawei-smn-dms/SKILL.md +69 -69
- package/plugins/huaweicloud-core/skills/huawei-vpc/SKILL.md +84 -84
- package/plugins/huaweicloud-core/skills/huawei-vpc/references/network.md +77 -76
- package/plugins/huaweicloud-core/skills/huawei-vpc/references/security-group.md +60 -59
- package/plugins/huaweicloud-core/skills/huawei-vpc/references/subnet.md +50 -50
- package/plugins/huaweicloud-core/skills/huawei-waf-aad/SKILL.md +63 -63
- package/plugins/huaweicloud-core/skills/huaweicloud-api-and-sdk/SKILL.md +56 -56
- package/plugins/huaweicloud-core/skills/huaweicloud-api-and-sdk/agents/openai.yaml +4 -4
- package/plugins/huaweicloud-core/skills/huaweicloud-capability-discovery/SKILL.md +56 -47
- package/plugins/huaweicloud-core/skills/huaweicloud-capability-discovery/agents/openai.yaml +4 -4
- package/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/SKILL.md +138 -128
- package/plugins/huaweicloud-core/skills/huaweicloud-cli-and-auth/agents/openai.yaml +4 -4
- package/plugins/huaweicloud-core/skills/huaweicloud-core/SKILL.md +111 -96
- package/plugins/huaweicloud-core/skills/huaweicloud-core/agents/openai.yaml +4 -4
- package/plugins/huaweicloud-core/skills/huaweicloud-core/references/report-issue.md +20 -20
- package/plugins/huaweicloud-core/skills/huaweicloud-core/references/select.md +30 -28
- package/plugins/huaweicloud-core/skills/huaweicloud-safety/SKILL.md +59 -60
- package/plugins/huaweicloud-core/skills/huaweicloud-safety/agents/openai.yaml +4 -4
- package/plugins/huaweicloud-core/skills/huaweicloud-troubleshooting/SKILL.md +83 -83
- package/plugins/huaweicloud-core/skills/huaweicloud-troubleshooting/agents/openai.yaml +4 -4
- package/plugins/huaweicloud-core/src/auth/agent-registration.mjs +54 -1
- package/plugins/huaweicloud-core/src/auth/credentials.mjs +103 -95
- package/plugins/huaweicloud-core/src/auth/service.mjs +63 -63
- package/plugins/huaweicloud-core/src/data/icons-manifest.v1.json +3517 -0
- package/plugins/huaweicloud-core/src/hcloud-cli.mjs +283 -265
- package/plugins/huaweicloud-core/src/icon-library.mjs +171 -0
- package/plugins/huaweicloud-core/src/mcp-server.mjs +130 -129
- package/plugins/huaweicloud-core/src/proxy/proxy-agent.mjs +68 -0
- package/plugins/huaweicloud-core/src/proxy/proxy-config.mjs +94 -0
- package/plugins/huaweicloud-core/src/risk-rule-engine.mjs +140 -137
- package/plugins/huaweicloud-core/src/safety-policy.mjs +356 -302
- package/plugins/huaweicloud-core/src/sandbox/hdkitservice-api.mjs +86 -87
- package/plugins/huaweicloud-core/src/sandbox/hwlink-api.mjs +150 -153
- package/plugins/huaweicloud-core/src/sandbox/session-manager.mjs +196 -105
- package/plugins/huaweicloud-core/src/search-market.mjs +208 -169
- package/plugins/huaweicloud-core/src/setup-cli.mjs +2622 -1594
- package/plugins/huaweicloud-core/src/tools.mjs +463 -111
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-exec-client.js +447 -427
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-fair-queue.js +128 -132
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-multiplexer.js +215 -227
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-packet.js +189 -202
- package/plugins/huaweicloud-core/src/ws-exec/hwlink-terminal-channel.js +164 -158
- package/plugins/huaweicloud-core/src/ws-exec/index.js +19 -19
- package/plugins/huaweicloud-core/src/ws-exec/ws-exec-client.js +338 -338
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: huawei-waf-aad
|
|
3
|
-
description:
|
|
4
|
-
version: 1
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Huawei Cloud WAF / AAD
|
|
8
|
-
|
|
9
|
-
**STOP - Do not answer from general knowledge.** Follow the procedure below.
|
|
10
|
-
|
|
11
|
-
Always run `hcloud WAF <Operation> --help` before constructing commands to discover exact parameter names and requirements. For AAD operations, use `hcloud AAD --help`.
|
|
12
|
-
|
|
13
|
-
## Overview
|
|
14
|
-
|
|
15
|
-
Domain expertise for WAF and Anti-DDoS. Covers WAF policy/rules, AAD protection, IP whitelist/blacklist, and rate limiting.
|
|
16
|
-
|
|
17
|
-
## Critical Warnings
|
|
18
|
-
|
|
19
|
-
| Trap
|
|
20
|
-
|
|
21
|
-
| WAF needs CNAME redirect
|
|
22
|
-
| Premium instance required
|
|
23
|
-
| AAD Standard vs Enterprise | Standard protects single IP. Enterprise protects entire IP ranges |
|
|
24
|
-
| Rule order matters
|
|
25
|
-
|
|
26
|
-
## Common Workflows
|
|
27
|
-
|
|
28
|
-
### WAF
|
|
29
|
-
|
|
30
|
-
| Task
|
|
31
|
-
|
|
32
|
-
| List WAF instances
|
|
33
|
-
| List policies
|
|
34
|
-
| Create custom rule
|
|
35
|
-
| Create IP blacklist | `BatchCreateWhiteblackipRule --cli-region=<r> --project_id=<p>` |
|
|
36
|
-
| Create CC rule
|
|
37
|
-
| Create geo rule
|
|
38
|
-
|
|
39
|
-
### AAD
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
hcloud AAD ListInstances --cli-region=<r> --project_id=<p>
|
|
43
|
-
hcloud AAD CreateInstance --cli-region=<r> --project_id=<p>
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## Troubleshooting
|
|
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
|
|
53
|
-
|
|
54
|
-
## Security
|
|
55
|
-
|
|
56
|
-
- MUST use WAF for all public-facing web applications
|
|
57
|
-
- SHOULD enable AAD for DDoS protection
|
|
58
|
-
- MUST test WAF rules in report-only mode before blocking
|
|
59
|
-
|
|
60
|
-
## Cross-Skill References
|
|
61
|
-
|
|
62
|
-
- **EIP**: See `huawei-vpc` for elastic IP binding
|
|
63
|
-
- **DNS/CNAME**: Configure via your DNS provider
|
|
1
|
+
---
|
|
2
|
+
name: huawei-waf-aad
|
|
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
|
+
version: 1
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Huawei Cloud WAF / AAD
|
|
8
|
+
|
|
9
|
+
**STOP - Do not answer from general knowledge.** Follow the procedure below.
|
|
10
|
+
|
|
11
|
+
Always run `hcloud WAF <Operation> --help` before constructing commands to discover exact parameter names and requirements. For AAD operations, use `hcloud AAD --help`.
|
|
12
|
+
|
|
13
|
+
## Overview
|
|
14
|
+
|
|
15
|
+
Domain expertise for WAF and Anti-DDoS. Covers WAF policy/rules, AAD protection, IP whitelist/blacklist, and rate limiting.
|
|
16
|
+
|
|
17
|
+
## Critical Warnings
|
|
18
|
+
|
|
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
|
+
| AAD Standard vs Enterprise | Standard protects single IP. Enterprise protects entire IP ranges |
|
|
24
|
+
| Rule order matters | WAF rules evaluated top-to-bottom within a policy |
|
|
25
|
+
|
|
26
|
+
## Common Workflows
|
|
27
|
+
|
|
28
|
+
### WAF
|
|
29
|
+
|
|
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
|
+
| Create IP blacklist | `BatchCreateWhiteblackipRule --cli-region=<r> --project_id=<p>` |
|
|
36
|
+
| Create CC rule | `BatchCreateCcRule --cli-region=<r> --project_id=<p>` |
|
|
37
|
+
| Create geo rule | `BatchCreateGeoIpRule --cli-region=<r> --project_id=<p>` |
|
|
38
|
+
|
|
39
|
+
### AAD
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
hcloud AAD ListInstances --cli-region=<r> --project_id=<p>
|
|
43
|
+
hcloud AAD CreateInstance --cli-region=<r> --project_id=<p>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Troubleshooting
|
|
47
|
+
|
|
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
|
+
|
|
54
|
+
## Security
|
|
55
|
+
|
|
56
|
+
- MUST use WAF for all public-facing web applications
|
|
57
|
+
- SHOULD enable AAD for DDoS protection
|
|
58
|
+
- MUST test WAF rules in report-only mode before blocking
|
|
59
|
+
|
|
60
|
+
## Cross-Skill References
|
|
61
|
+
|
|
62
|
+
- **EIP**: See `huawei-vpc` for elastic IP binding
|
|
63
|
+
- **DNS/CNAME**: Configure via your DNS provider
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: huaweicloud-api-and-sdk
|
|
3
|
-
description: Huawei Cloud API and SDK guidance for application development. Use when writing code that calls Huawei Cloud services, choosing SDKs, building API requests, handling project_id, endpoint, auth, pagination, retries, error codes, or request IDs.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Huawei Cloud API And SDK
|
|
7
|
-
|
|
8
|
-
**STOP - Do not answer from general knowledge.** Follow the procedure below.
|
|
9
|
-
|
|
10
|
-
Use this skill when the deliverable is application code, API integration, or precise request construction.
|
|
11
|
-
|
|
12
|
-
## Critical Warnings
|
|
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
|
|
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
|
-
|
|
22
|
-
## API Workflow
|
|
23
|
-
|
|
24
|
-
1. Identify service, region, endpoint, API version, and whether `project_id` is required in the path.
|
|
25
|
-
2. Verify the exact request body and response schema from official API documentation.
|
|
26
|
-
3. Handle pagination explicitly. Do not assume a single page.
|
|
27
|
-
4. Preserve `request_id` from errors and responses for troubleshooting.
|
|
28
|
-
5. Classify operation risk before running a live call.
|
|
29
|
-
6. For write APIs, produce a dry plan and ask the user before execution.
|
|
30
|
-
|
|
31
|
-
## SDK Workflow
|
|
32
|
-
|
|
33
|
-
1. Pick the SDK that matches the user's application language and existing dependency style.
|
|
34
|
-
2. Use the official SDK client for the target service.
|
|
35
|
-
3. Keep credentials out of source code. Use environment, profile, workload identity, or runtime secret injection.
|
|
36
|
-
4. Add timeout, retry, and pagination handling.
|
|
37
|
-
5. Return typed or structured results instead of unbounded raw logs.
|
|
38
|
-
|
|
39
|
-
## Troubleshooting
|
|
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
|
|
48
|
-
|
|
49
|
-
## Terraform Priority
|
|
50
|
-
|
|
51
|
-
Terraform Provider is low priority in V1. Mention it when the user needs reviewed, repeatable infrastructure changes. Do not default to Terraform for quick discovery or app-level SDK integration.
|
|
52
|
-
|
|
53
|
-
## Cross-Skill References
|
|
54
|
-
|
|
55
|
-
- **CLI setup**: See `huaweicloud-cli-and-auth` for KooCLI credential setup
|
|
56
|
-
- **Safety**: See `huaweicloud-safety` for write operation approval flow
|
|
1
|
+
---
|
|
2
|
+
name: huaweicloud-api-and-sdk
|
|
3
|
+
description: Huawei Cloud API and SDK guidance for application development. Use when writing code that calls Huawei Cloud services, choosing SDKs, building API requests, handling project_id, endpoint, auth, pagination, retries, error codes, or request IDs.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Huawei Cloud API And SDK
|
|
7
|
+
|
|
8
|
+
**STOP - Do not answer from general knowledge.** Follow the procedure below.
|
|
9
|
+
|
|
10
|
+
Use this skill when the deliverable is application code, API integration, or precise request construction.
|
|
11
|
+
|
|
12
|
+
## Critical Warnings
|
|
13
|
+
|
|
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
|
+
| 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
|
+
|
|
22
|
+
## API Workflow
|
|
23
|
+
|
|
24
|
+
1. Identify service, region, endpoint, API version, and whether `project_id` is required in the path.
|
|
25
|
+
2. Verify the exact request body and response schema from official API documentation.
|
|
26
|
+
3. Handle pagination explicitly. Do not assume a single page.
|
|
27
|
+
4. Preserve `request_id` from errors and responses for troubleshooting.
|
|
28
|
+
5. Classify operation risk before running a live call.
|
|
29
|
+
6. For write APIs, produce a dry plan and ask the user before execution.
|
|
30
|
+
|
|
31
|
+
## SDK Workflow
|
|
32
|
+
|
|
33
|
+
1. Pick the SDK that matches the user's application language and existing dependency style.
|
|
34
|
+
2. Use the official SDK client for the target service.
|
|
35
|
+
3. Keep credentials out of source code. Use environment, profile, workload identity, or runtime secret injection.
|
|
36
|
+
4. Add timeout, retry, and pagination handling.
|
|
37
|
+
5. Return typed or structured results instead of unbounded raw logs.
|
|
38
|
+
|
|
39
|
+
## Troubleshooting
|
|
40
|
+
|
|
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
|
+
|
|
49
|
+
## Terraform Priority
|
|
50
|
+
|
|
51
|
+
Terraform Provider is low priority in V1. Mention it when the user needs reviewed, repeatable infrastructure changes. Do not default to Terraform for quick discovery or app-level SDK integration.
|
|
52
|
+
|
|
53
|
+
## Cross-Skill References
|
|
54
|
+
|
|
55
|
+
- **CLI setup**: See `huaweicloud-cli-and-auth` for KooCLI credential setup
|
|
56
|
+
- **Safety**: See `huaweicloud-safety` for write operation approval flow
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface:
|
|
2
|
-
display_name:
|
|
3
|
-
short_description:
|
|
4
|
-
default_prompt:
|
|
1
|
+
interface:
|
|
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.'
|
|
@@ -1,47 +1,56 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: huaweicloud-capability-discovery
|
|
3
|
-
description: Discover Huawei Cloud capabilities for an agent task. Use when the user asks what Huawei Cloud service, Skill, CLI command, API, SDK, or document should be used, or when a request is scenario-shaped and needs capability selection before implementation.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Huawei Cloud Capability Discovery
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
##
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
1
|
+
---
|
|
2
|
+
name: huaweicloud-capability-discovery
|
|
3
|
+
description: Discover Huawei Cloud capabilities for an agent task. Use when the user asks what Huawei Cloud service, Skill, CLI command, API, SDK, or document should be used, or when a request is scenario-shaped and needs capability selection before implementation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Huawei Cloud Capability Discovery
|
|
7
|
+
|
|
8
|
+
**STOP - Do not answer from general knowledge.** Follow the procedure below.
|
|
9
|
+
|
|
10
|
+
Use this skill to turn vague developer intent into a precise Huawei Cloud capability path.
|
|
11
|
+
|
|
12
|
+
## Workflow
|
|
13
|
+
|
|
14
|
+
1. Classify the goal: application hosting, compute, container, serverless, storage, database, network, security, observability, AI, data, migration, cost, or troubleshooting.
|
|
15
|
+
2. Search Huawei Cloud Skills first when the task is scenario-based or operational.
|
|
16
|
+
3. Use official docs for exact service limits, API request/response fields, regions, and pricing-sensitive behavior.
|
|
17
|
+
4. Prefer KooCLI for local read-only discovery after auth is configured.
|
|
18
|
+
5. Before using KooCLI, discover exact operation names with `hcloud <Service> --help`; do not guess from intuition. Examples: list ECS instances with `ECS ListServersDetails`, create ECS with `ECS CreateServers`, inspect images through `IMS GlanceShowImage`.
|
|
19
|
+
6. Prefer SDK docs when the deliverable is application code.
|
|
20
|
+
7. Prefer MCP only when an approved Huawei Cloud MCP tool exists for the needed operation.
|
|
21
|
+
8. Treat Terraform as a secondary V1 path for reviewed IaC, not the default.
|
|
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.
|
|
29
|
+
|
|
30
|
+
## Deployment Target Options
|
|
31
|
+
|
|
32
|
+
When the intent is to **deploy, host, or preview a web app or static website** and the developer has not named a target, do NOT default to OBS or any single service. Present the options and let the developer choose, recommending the sandbox first: ① huawei-sandbox (recommended — temporary runtime, instant preview URL) ② huawei-obs (long-term static hosting/CDN) ③ huawei-ecs ④ huawei-cce. Only follow an explicit target when the developer names one.
|
|
33
|
+
|
|
34
|
+
## Region Intent
|
|
35
|
+
|
|
36
|
+
- Extract region intent from the user's words before querying. Examples: Singapore -> `ap-southeast-3` first, Hong Kong -> `ap-southeast-2`, Beijing -> `cn-north-4`, Shanghai -> `cn-east-3`.
|
|
37
|
+
- Target operation region wins over reference-resource uncertainty. If the user says "buy ECS in Singapore, reference SSY", inspect Singapore first.
|
|
38
|
+
- No blind all-region scans. If the reference resource location is unknown and the target region is not enough, ask the user for the region instead of scanning unrelated regions.
|
|
39
|
+
- For unfamiliar names, check Huawei Cloud API Explorer or official endpoint documentation for the region and service endpoint mapping.
|
|
40
|
+
|
|
41
|
+
## Output Format
|
|
42
|
+
|
|
43
|
+
When routing a task, return:
|
|
44
|
+
|
|
45
|
+
- `intent`: one concise sentence
|
|
46
|
+
- `recommended_path`: Skills, CLI, API, SDK, MCP, or Terraform
|
|
47
|
+
- `why`: why this path is shortest and safest
|
|
48
|
+
- `next_action`: exact next command, document lookup, or code file to inspect
|
|
49
|
+
- `risk`: read-only, write, secret, permission, cost, or public exposure
|
|
50
|
+
|
|
51
|
+
## Avoid
|
|
52
|
+
|
|
53
|
+
- Do not guess a service when Huawei Cloud Skills or official docs should be checked.
|
|
54
|
+
- Do not load many service references. Pick the next one that matches the intent.
|
|
55
|
+
- Do not propose write operations before the user has seen the plan.
|
|
56
|
+
- Do not query every region just to find a reference resource.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface:
|
|
2
|
-
display_name:
|
|
3
|
-
short_description:
|
|
4
|
-
default_prompt:
|
|
1
|
+
interface:
|
|
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.'
|