Huawei Cloud Ecs Sqlbot Deployのロゴ

Huawei Cloud Ecs Sqlbot Deploy

組織
huaweicloud
huawei-cloud-ecs-sqlbot-deploy

Purchase Huawei Cloud X Instance server + one-click deploy SQLBot intelligent query application. Tech stack: Python 3.8+, Huawei Cloud SDK, COC (Cloud Operations Center) deployment. Key capabilities: AK/SK auth, X instance creation, auto security group config, SQLBot auto deployment. Use cases: Users who need to quickly deploy SQLBot intelligent query application on Huawei Cloud X instance servers. Trigger words: "deploy sqlbot", "install sqlbot", "sqlbot deploy", "one-click deploy sqlbot", "x-instance deploy sqlbot", "部署sqlbot", "安装sqlbot", "sqlbot部署", "一键部署sqlbot", "x实例部署sqlbot".

概要

公開者huaweicloud
リポジトリhuaweicloud-skills
スキル名huawei-cloud-ecs-sqlbot-deploy
スター
59
フォーク
24
同梱ファイル
11
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 11個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    huaweicloudがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Huawei Cloud Ecs Sqlbot Deploy」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/computing/flexus-x/huawei-cloud-ecs-sqlbot-deploy
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-skills.git /tmp/huaweicloud-skills
mkdir -p .claude/skills
cp -r /tmp/huaweicloud-skills/skills/computing/flexus-x/huawei-cloud-ecs-sqlbot-deploy .claude/skills/huawei-cloud-ecs-sqlbot-deploy
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでHuawei Cloud Ecs Sqlbot Deployを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にHuawei Cloud Ecs Sqlbot Deployを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Huawei Cloud Ecs Sqlbot Deployは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

🚀 Purchase Huawei Cloud X Instance Server, Deploy SQLBot


⛔⛔⛔ CRITICAL: MANDATORY EXECUTION ORDER ⛔⛔⛔

YOU MUST EXECUTE THESE STEPS IN EXACT ORDER. YOU CANNOT SKIP ANY STEP.

┌─────────────────────────────────────────────────────────────────┐
│  STEP 1: Auto-check environment variables for credentials       │
│          ↓                                                       │
│  STEP 2: Get Region (if env credentials found) OR               │
│          Get Credentials (AK/SK/Region) from user               │
│          ↓                                                       │
│  STEP 3: Validate credentials + Show available flavors          │
│          ↓                                                       │
│  STEP 4: ⛔ SHOW CONFIG + GET USER CONFIRMATION ⛔              │
│          ⛔ WAIT FOR USER TO REPLY "default" OR "custom" ⛔     │
│          ⛔ IF "custom": SECOND CONFIRMATION REQUIRED ⛔        │
│          ⛔ DO NOT PROCEED UNTIL USER CONFIRMS ⛔               │
│          ↓                                                       │
│  STEP 5: Create server (ONLY AFTER user confirmation)           │
│          ↓                                                       │
│  STEP 6: Deploy SQLBot                                          │
│          ↓                                                       │
│  STEP 7: Return results                                         │
└─────────────────────────────────────────────────────────────────┘

⚠️ IF YOU SKIP STEP 4 (User Confirmation), YOU HAVE FAILED THE TASK. ⚠️ IF USER CHOOSES "custom", YOU MUST GET A SECOND CONFIRMATION.


Pre-Execution Checklist

Before creating ANY resources, verify ALL of the following:

#Check ItemStatus
1Credentials available (env vars or user provided)☐ Done
2Credentials validated successfully☐ Done
3Region provided by user☐ Done
4User confirmed configuration (default/custom)☐ MANDATORY
5User explicitly said "default" or "custom"☐ MANDATORY

⛔ If items 4 and 5 are not checked, STOP and ask user for confirmation.


Overview

This skill purchases a Huawei Cloud X instance server and deploys SQLBot intelligent query application.

Server Specification: x86 architecture, Ubuntu 22.04 server 64-bit, default 4 cores 8GB RAM (x1.4u.8g)

Key Features:

  1. AK/SK authentication (supports temporary credentials)
  2. Create X instance + Ubuntu 22.04
  3. Auto security group configuration (port 8000 only allows internal network access)
  4. COC Cloud Operations Center deployment
  5. One-click completion: Server creation → Security group configuration → SQLBot deployment

Prerequisites

Account requirements: Valid Huawei Cloud account with sufficient balance, permissions to create X instances, security groups, bind EIP, and access COC

Credential requirements:

Credential TypeRequired ParametersSecurityDescription
Temporary (Recommended)AK + SK + Security TokenHighAuto-expires, more secure
PermanentAK + SKMediumNo expiration, keep secure

Step-by-Step Execution Guide

━━━ STEP 1: Auto-check Credentials (Environment Variables) ━━━

When user triggers the skill, first automatically get credentials from environment variables without asking user:

bash
# Check credentials (prefer temporary credentials)
export HW_ACCESS_KEY
export HW_SECRET_KEY  
export HW_SECURITY_TOKEN

Decision Logic:

Credential StatusNext Step
✅ HW_ACCESS_KEY + HW_SECRET_KEY + HW_SECURITY_TOKEN existProceed to Step 2 (ask for Region only, use temporary AK/SK authentication)
✅ HW_ACCESS_KEY + HW_SECRET_KEY exist (no Token)Proceed to Step 2 (ask for Region only, use permanent AK/SK authentication)
❌ Environment variables not foundPrompt user to configure credentials (prefer environment variables), proceed to Step 2
❌ Authentication failedPrompt user to check or reconfigure credentials, proceed to Step 2

⚠️ Security Recommendations:

  1. Prefer temporary credentials: Higher security level, credentials auto-expire
  2. Environment variable configuration: Credentials should be configured via environment variables (HW_ACCESS_KEY, HW_SECRET_KEY, HW_SECURITY_TOKEN)
  3. Sensitive information protection: AK/SK are sensitive information, do NOT input or leak in conversations

━━━ STEP 2: Get Region or Credentials ━━━

Case A: Environment credentials DETECTED

OK! I will help you deploy SQLBot on Huawei Cloud X instance.

📋 Process Overview:
1. ✅ Environment credentials detected → User only needs to provide region
2. ⛔ Confirm configuration with you ⛔
3. Create server
4. Deploy SQLBot

⏱️ Estimated time: 10-15 minutes

Please provide:
- **Region**: Optional, default cn-north-4 (Beijing 4)
  ⚠️ If not provided, will use default region: cn-north-4

Case B: Environment credentials NOT DETECTED

❌ Environment credentials not detected

Please configure Huawei Cloud credentials (see "How to Get AK/SK" section).

📋 Process Overview:
1. ❌ Environment credentials not detected → User needs to provide credentials + region
2. ⛔ Confirm configuration with you ⛔
3. Create server
4. Deploy SQLBot

⏱️ Estimated time: 10-15 minutes

Please provide:
- **Access Key (AK)**: Required
- **Secret Key (SK)**: Required
- **Security Token**: Required for temporary credentials, not needed for permanent
- **Region**: Optional, default cn-north-4 (Beijing 4)

Note: We prioritize getting credentials from environment variables and NEVER ask users to input AK/SK directly. However, if users actively provide credentials through other means (e.g., conversation input, configuration file), we still support parsing.

Include the regions table and AK/SK instructions (see below).

Then WAIT for user to provide information.


━━━ STEP 3: Validate Credentials ━━━

After receiving region/credentials:

  1. Validate credentials authentication
  2. Display configuration to user

Display the following note:

💡 Note: Server flavor availability varies by region.
🔗 For details, see: https://www.huaweicloud.com/pricing/calculator.html#/hecs

After successful validation, proceed to Step 4: User Confirmation.


━━━ STEP 4: USER CONFIRMATION (⛔ MANDATORY) ━━━

⛔ THIS STEP IS MANDATORY. YOU CANNOT SKIP IT. ⛔

Display the configuration and ask for confirmation (see "Parameter Confirmation" section):

⚠️ Note: Must display the server name so user knows what name will be used for the server.

⛔ STOP AND WAIT for user to reply "default" or "custom".

⛔ DO NOT proceed to Step 5 until user confirms.

⛔ DO NOT create any resources before user confirmation.

If user says "custom":

  1. Ask which items they want to customize
  2. Update configuration based on user input
  3. ⛔ SECOND CONFIRMATION REQUIRED ⛔ - Display the updated configuration and ask user to confirm again (see "Parameter Confirmation" section)
  4. Wait for user to reply "confirm" or "modify"
  5. Only after second confirmation, proceed to Step 5

If user says "default": Proceed to Step 5.


━━━ STEP 5: Create Server ━━━

Only execute this step AFTER user confirms configuration.

Notify user: "⏳ Creating server..."

  1. Create security group sg-sqlbot-YYYYMMDDHHMM
  2. Create X instance with confirmed configuration
  3. Bind EIP
  4. Wait for server to be ready

Notify user: "✅ Server created!"


━━━ STEP 6: Deploy SQLBot ━━━

Notify user: "⏳ Deploying SQLBot via COC..."

  1. Create installation script in Cloud Operations Center (COC)
  2. Execute script on target instance via COC
  3. Wait for deployment to complete and verify results

Notify user: "✅ SQLBot deployed via COC!"


━━━ STEP 7: Return Results ━━━

MUST provide ALL of the following:

🎉 SQLBot Deployment Complete!

📋 Server Information:
- Name: x-SQLBot-YYYYMMDDHHMM
- Public IP: X.X.X.X
- Private IP: 192.168.X.X

🔐 Access Information:
- Server Password: Test@123456 ⚠️ Change immediately!
- SQLBot URL: http://X.X.X.X:8000 (Note: Please allow your accessing machine IP to access port 8000 in the security group before accessing)
- SQLBot Username: admin
- SQLBot Password: SQLBot@123456

🔗 Huawei Cloud Console: https://console.huaweicloud.com/console/?region={region}#/ecs/manager/vmList

⚠️ Security Reminders:
1. Change server password immediately after login
2. Change SQLBot admin password after login
3. Release server when done to save costs

Supported Regions (19 regions)

Region NameRegion Code
North China - Beijing 4cn-north-4
East China - Shanghai 1cn-east-3
South China - Guangzhoucn-south-1
Southwest China - Guiyang 1cn-southwest-2
East China 2cn-east-4
East China - Qingdaocn-east-5
North China - Ulanqab 1cn-north-9
China - Hong Kongap-southeast-1
Asia Pacific - Bangkokap-southeast-2
Asia Pacific - Singaporeap-southeast-3
Asia Pacific - Jakartaap-southeast-4
Asia Pacific - Manilaap-southeast-5
Africa - Cairoaf-north-1
Africa - Johannesburgaf-south-1
Latin America - Mexico City 2la-north-2
Latin America - Santiagola-south-2
Latin America - Sao Paulo 1sa-brazil-1
Middle East - Riyadhme-east-1
Turkey - Istanbultr-west-1

How to Get AK/SK

Method 1: Temporary Credentials (Recommended 🔒)

Pros:

  • ✅ Auto-expires, higher security
  • ✅ Suitable for temporary deployment tasks
  • ✅ Limited impact even if leaked

Steps:

  1. Login to Huawei Cloud API Explorer: https://console.huaweicloud.com/apiexplorer/#/openapi/IAM/debug?api=CreateTemporaryAccessKeyByToken&version=v3
  2. Click "Show Required Fields Only" → Fill in "Token" in the body
  3. Click "Debug" to get credentials
  4. Copy AK, SK and Security Token

⚠️ Note: Temporary credentials have expiration time (default 15 minutes to 1 hour), use promptly.


Method 2: Permanent Credentials

Pros:

  • ✅ Long-term valid, no frequent refresh needed
  • ✅ Suitable for automation scripts and CI/CD

Steps:

  1. Login to Huawei Cloud Console: https://console.huaweicloud.com/
  2. Click avatar (top right) → My Credentials
  3. Select Access Keys from left menu
  4. Click Create Access Key
  5. Download CSV file (contains AK and SK)

⚠️ Note: Permanent credentials never expire, keep secure! Do not upload CSV file to code repositories.


Credential Type Comparison

TypeParametersSecurityValidityUse Cases
TemporaryAK + SK + Security TokenHighAuto-expiresTemporary deployment, one-time tasks
PermanentAK + SKMediumNever expiresAutomation scripts, CI/CD

Security Recommendation: Prefer temporary credentials for deployment tasks.


Default Configuration

ItemDefault Value
Server Namex-SQLBot-YYYYMMDDHHMM
Flavorx1.4u.8g (4U8G, x86_64)
ImageUbuntu 22.04 Server 64-bit
System Disk80GB High IO
Billing ModeOn-demand
Security Groupsg-sqlbot-YYYYMMDDHHMM (newly created)
EIP Bandwidth300M
EIP BillingPay by traffic
Server PasswordTest@123456
SQLBot Usernameadmin
SQLBot PasswordSQLBot@123456
Open Ports8000 (internal network only)

Cost Reference

Default config (4U8G, on-demand):

  • Server: ~0.47 CNY/hour
  • Traffic: ~0.8 CNY/GB

Price Calculator: https://www.huaweicloud.com/pricing/calculator.html#/hecs


Core Commands

Command/OptionFunctionDescription
(no option)DeployPurchase X instance and deploy SQLBot intelligent query application
--list-regions / -lShow available regionsDisplay all supported regions and X instance types
--testTest connectionValidate AK/SK credentials

Common Parameters: --ak, --sk, --region, --flavor, --charging-mode

Default Values: See "Default Configuration" section


Parameter Confirmation

⛔ MANDATORY: User confirmation is required before deployment. No resources can be created without confirmation.

Confirmation Flow

  1. Display configuration: List server name, region, flavor, image, system disk, billing mode, EIP, etc.
  2. Wait for user response: User must explicitly reply "default" (use default config) or "custom" (customize config)
  3. Second confirmation (if needed): If user chooses "custom", display updated config and request confirmation again

Parameters to Confirm

Customizable parameters: Server Name, Region, Flavor, Image, System Disk, Billing Mode, EIP Bandwidth (default values see "Default Configuration" section)

Confirmation Template

📋 Server Configuration:

| Item | Value |
|------|-------|
| Server Name | x-SQLBot-YYYYMMDDHHMM (auto-generated) |
| Region | {user-provided region} |
| Flavor | x1.4u.8g (4 cores 8GB) |
| Image | Ubuntu 22.04 Server 64-bit |
| System Disk | 80GB |
| Billing Mode | On-demand (pay-as-you-go) |
| EIP | 300M bandwidth, pay-by-traffic |

💰 Price Calculator: https://www.huaweicloud.com/pricing/calculator.html#/hecs

⛔ Please confirm: Use "default" configuration or "custom" configuration?

Second Confirmation for Custom Configuration

If user chooses "custom", display updated configuration and request second confirmation:

📋 Updated Server Configuration:

| Item | Value |
|------|-------|
| Server Name | {custom name} |
| Region | {custom region} |
| Flavor | {custom flavor} |
| Image | {custom image} |
| System Disk | {custom size}GB |
| Billing Mode | {custom mode} |
| EIP | {custom bandwidth}M bandwidth, pay-by-traffic |

⛔ Please confirm: Is the above configuration correct? Reply "confirm" to proceed or "modify" to change.

Script Usage

Option 1: Using command line parameters

bash
python3 scripts/deploy_sqlbot.py \
  --ak YOUR_AK \
  --sk YOUR_SK \
  --security-token YOUR_SECURITY_TOKEN \
  --region cn-north-4 \
  --notify-user-id <feishu_user_id>

Option 2: Using environment variables (Recommended for temporary credentials)

bash
export HW_ACCESS_KEY="your-temp-ak"
export HW_SECRET_KEY="your-temp-sk"
export HW_SECURITY_TOKEN="your-security-token"

python3 scripts/deploy_sqlbot.py --region cn-north-4  --notify-user-id <feishu_user_id>

Parameters:

  • --ak: Access Key (can also be set via HW_ACCESS_KEY environment variable)
  • --sk: Secret Key (can also be set via HW_SECRET_KEY environment variable)
  • --security-token: Security Token for temporary credentials (can also be set via HW_SECURITY_TOKEN environment variable)
  • --region: Region code (default: cn-north-4, Beijing 4)
  • --flavor: Server flavor (default: x1.4u.8g)
  • --volume-size: System disk size (default: 80GB)
  • --bandwidth: EIP bandwidth (default: 300M)
  • --charging-mode: postPaid (on-demand) or prePaid (monthly)

⚠️ Common Mistakes to Avoid

MistakeCorrect Behavior
Creating server without user confirmationALWAYS get confirmation first
Assuming user wants default configASK explicitly: "default" or "custom"?
Skipping the confirmation stepThis step is MANDATORY, not optional
Proceeding after showing configWAIT for user to reply before proceeding

References

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Huawei Cloud Ecs Sqlbot Deploy」では何ができますか?

Purchase Huawei Cloud X Instance server + one-click deploy SQLBot intelligent query application. Tech stack: Python 3.8+, Huawei Cloud SDK, COC (Cloud Operations Center) deployment. Key capabilities: AK/SK auth, X instance creation, auto security group config, SQLBot auto deployment. Use cases: Users who need to quickly deploy SQLBot intelligent query application on Huawei Cloud X instance servers. Trigger words: "deploy sqlbot", "install sqlbot", "sqlbot deploy", "one-click deploy sqlbot", "x-instance deploy sqlbot", "部署sqlbot", "安装sqlbot", "sqlbot部署", "一键部署sqlbot", "x实例部署sqlbot".

TypingMindでHuawei Cloud Ecs Sqlbot Deployを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Huawei Cloud Ecs Sqlbot Deployはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにHuawei Cloud Ecs Sqlbot Deployをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/huaweicloud/huaweicloud-skills/tree/master/skills/computing/flexus-x/huawei-cloud-ecs-sqlbot-deployを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Huawei Cloud Ecs Sqlbot Deployを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Huawei Cloud Ecs Sqlbot Deployで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもHuawei Cloud Ecs Sqlbot Deployを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Huawei Cloud Ecs Sqlbot Deploy」は無料ですか?

はい。huaweicloudがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇