Huawei Obsのロゴ

Huawei Obs

組織
huaweicloud
huawei-obs

Use when creating, configuring, or managing OBS buckets and objects on Huawei Cloud. Covers bucket creation, lifecycle policies, versioning, static website hosting, CORS, access control (IAM/bucket policy/ACL), cross-region replication, event notifications, and presigned URLs. Triggers on: OBS, bucket, object storage, lifecycle, versioning, static website, CORS, presigned, replication, 浏览器直传, browser direct upload, 预签名上传, 直传 OBS. NOT for: EVS block storage (use huawei-ecs), SFS file storage, CBR backup (use huawei-cbr).

Add to TypingMind

概要

公開者huaweicloud
リポジトリhuaweicloud-devkit
スキル名huawei-obs
スター
70
フォーク
12
同梱ファイル
5
ライセンスApache-2.0
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 5個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Huawei Cloud OBS

STOP - Do not answer from general knowledge. Follow the procedure below.

Routing Guard: Deploy vs Store

  • If the developer's goal is to deploy, host, or preview a web app / static website (temporary hosting, quick preview), do NOT default to OBS. You MUST present deployment-target options via the question tool with the sandbox first: ① huawei-sandbox (recommended), ② OBS static hosting (需提前准备好自定义域名 — the default OBS endpoint does not support HTTPS for static hosting), ③ ECS (需搭配弹性公网IP/EIP 才能公网访问), ④ CCE. Ask: "建议优先部署到沙箱(临时运行环境,可预览访问),也可选 OBS 静态托管(需提前准备好自定义域名)、ECS(需搭配弹性公网IP/EIP)或 CCE,你想部署到哪里?"
  • Proceed with OBS only when the developer explicitly names OBS, or selects OBS through the question gate after being asked. Long-term static hosting / CDN / file storage intent alone is NOT a named target and cannot bypass the gate — still present the options via the question tool first. NEVER infer or default the target when it is unstated. Deployment intent proceeding on OBS is a resource purchase: load huawei-iac for orchestration (cost+balance gate, batch approval, state tracking, ordered destroy) - this skill then supplies the bucket/object commands. Sandbox choice (huawei-sandbox) bypasses iac - no purchase involved.
  • OBS is a storage service; it is not a general web-hosting default.

Critical: OBS Command Syntax

KooCLI OBS uses obsutil-style commands, NOT API-style operations. Always run hcloud OBS help (no --) before constructing commands:

bash
hcloud OBS help           # NOT --help
hcloud OBS help <command> # e.g. hcloud OBS help mb
Wrong (API-style)Correct (obsutil-style)
OBS CreateBucketOBS mb obs://<bucket>
OBS PutObjectOBS cp <file> obs://<bucket>/
OBS DeleteBucketOBS rm obs://<bucket> -r

Overview

Domain expertise for Huawei Cloud Object Storage Service (OBS). Covers bucket/object lifecycle, access control, static website hosting, and presigned URLs.

Critical Warnings

TrapWhy
Bucket name is globalAll users share bucket namespace. Always use a unique name: {prefix}-{timestamp} (e.g. mybucket-20260810155048)
Three-layer permissionsIAM > Bucket Policy > ACL. Most restrictive wins
Versioning is irreversibleOnce enabled, cannot be disabled, only suspended
OBS uses AK/SK directlyNOT IAM tokens. Auth errors mean check AK/SK validity
Static website via CLI missingKooCLI OBS lacks website config. Use huaweicloud_obs_set_website_config MCP tool (handles AWS4 signing internally) or console
OBS needs separate cred confighcloud configure is NOT enough for OBS. Before any OBS operation, call huaweicloud_setup_obs_config to sync credentials from hcloud profile.
obsutil interactive promptscp/rm without -f causes "Please input (y/n)" → Agent hangs (TIMEOUT). Always use -f for non-interactive.
Directory upload adds prefixcp <dir>/ obs://<bucket>/ -r puts files under bucket/<dir>/.... Use -flat for root-level files (static sites). Preview with -dryRun first.

OBS Credential Setup (Required Before First Use)

KooCLI OBS uses a separate config file (~/.obsutilconfig), NOT ~/.hcloud/config.json. All OBS commands fail with credential errors until this is configured.

In-session bootstrap (recommended): Call huaweicloud_setup_obs_config — it syncs AK/SK from the active hcloud profile automatically. No manual key entry needed. Run this once per session before any OBS command.

CLI fallback (if MCP tools unavailable):

bash
hcloud OBS config -e=<endpoint> -i=<AK> -k=<SK> -t=token

huaweicloud_setup_obs_config should be called at the start of every OBS task — never assume credentials are pre-configured from a previous session.

Common Workflows

TaskCommand
Create buckethcloud OBS mb obs://<bucket> -location=<region>
List buckets/objectshcloud OBS ls [obs://<bucket>]
Upload filehcloud OBS cp <file> obs://<bucket>/<key>
Upload directory (recursive)hcloud OBS cp <dir>/ obs://<bucket>/ -r -f -flat
Download objecthcloud OBS cp obs://<bucket>/<key> <local-path>
Set bucket ACLhcloud OBS chattri obs://<bucket> -acl=public-read
Set object ACLhcloud OBS chattri obs://<bucket>/<key> -acl=public-read
Set lifecyclehcloud OBS lifecycle obs://<bucket> -method=put -localfile=<json>
Set bucket policyhcloud OBS bucketpolicy obs://<bucket> -method=put -localfile=<json>
Set CORShuaweicloud_obs_set_cors (set/get/delete) — KooCLI OBS has no cors subcommand; the tool does AWS4-signed PUT /?cors internally. allowedMethod MUST include HEAD
Delete buckethcloud OBS rm obs://<bucket> -r (must be empty)
Presigned URLhcloud OBS sign obs://<bucket>/<key> -e=<seconds>
Object metadatahcloud OBS stat obs://<bucket>/<key>

Static Website Deployment Workflow

See references/static-website.md for the full end-to-end workflow: Build → Create bucket → Upload → Set bucket ACL → Set object ACL → Configure website (REST API/console)

KooCLI OBS does NOT support SetBucketWebsite. Use the huaweicloud_obs_set_website_config MCP tool (handles AWS4 signing internally, no manual signature needed) or the Huawei Cloud console.

Single-File Quick Share

See references/single-file-share.md for the full workflow to host one file and get a shareable link in seconds:

  • Private, time-limited: hcloud OBS sign obs://<bucket>/<key> -e=<seconds> (max 7 days)
  • Public, permanent: hcloud OBS cp <file> obs://<bucket>/<key> -f + hcloud OBS chattri obs://<bucket>/<key> -acl=public-read, then share https://<bucket>.obs.<region>.myhuaweicloud.com/<key>

Storage Classes

ClassUse CaseMin StorageRetrieval Fee
STANDARDFrequently accessedNoneNo
STANDARD_IAInfrequent access30 daysYes
ARCHIVELong-term archive90 daysYes (hours)

Troubleshooting

ErrorRoot Cause -> Fix
AccessDenied on bucketIAM/bucket policy/ACL conflict -> Check all three layers
BucketAlreadyExistsName taken globally -> Generate unique name with timestamp suffix: {prefix}-{yyyymmddHHMMSS}
NoSuchKeyObject doesn't exist or wrong region -> Verify key and region
InvalidAccessKeyIdOBS uses AK/SK directly -> Verify AK/SK validity, OBS endpoint, OBS permissions
EntityTooLargeSingle PUT limit 5GB -> Use multipart upload
OBS --help failsKooCLI OBS uses help not --help -> Run hcloud OBS help
Configuration file is not well-formed~/.obsutilconfig was generated by a non-standard path (CRLF line endings or field-order differences). Even hcloud OBS --help fails. Rebuild it with hcloud OBS config -e=<endpoint> -i=<AK> -k=<SK> (or huaweicloud_setup_obs_config) -> retry

Security Considerations

  • MUST block public access by default
  • MUST use HTTPS-only for buckets
  • SHOULD enable access logging for audit
  • SHOULD rotate presigned URL expiry (max 7 days)
  • MUST NOT store AK/SK in bucket policies

Cross-Skill References

  • EIP: See huawei-vpc for public network access
  • DEW: See huawei-cloud-dew-key-management for secret management

References

  • OBS Docs: https://support.huaweicloud.com/obs/
  • Static website: references/static-website.md
  • Single-file share: references/single-file-share.md
  • Lifecycle: references/bucket-lifecycle.md
  • Browser direct upload & CORS: references/common-pitfalls.md

同梱ファイル

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

よくある質問

AIスキル「Huawei Obs」では何ができますか?

Use when creating, configuring, or managing OBS buckets and objects on Huawei Cloud. Covers bucket creation, lifecycle policies, versioning, static website hosting, CORS, access control (IAM/bucket policy/ACL), cross-region replication, event notifications, and presigned URLs. Triggers on: OBS, bucket, object storage, lifecycle, versioning, static website, CORS, presigned, replication, 浏览器直传, browser direct upload, 预签名上传, 直传 OBS. NOT for: EVS block storage (use huawei-ecs), SFS file storage, CBR backup (use huawei-cbr).

TypingMindでHuawei Obsを使うメリットは何ですか?

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

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

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

Huawei Obsを使えるAIモデルはどれですか?

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

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

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

AIスキル「Huawei Obs」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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