Huawei Functiongraphのロゴ

Huawei Functiongraph

組織
huaweicloud
huawei-functiongraph

Use when creating, deploying, or managing serverless functions on FunctionGraph. Covers triggers (APIG/OBS/timer/SMN), cold start, reserved concurrency. Triggers: FunctionGraph, serverless, function, Lambda, trigger. NOT for: CCE containers (use huawei-cce).

概要

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

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

  • どのLLMでも利用可能

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

  • 4個の同梱ファイル

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

  • オープンソース

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

インストール

AIスキルHuawei Functiongraphを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-functiongraph
  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-functiongraph .claude/skills/huawei-functiongraph
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

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

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

スキルの指示

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

Huawei Cloud FunctionGraph

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

Deployment Routing Guard

If this skill was reached via a DEPLOYMENT intent ("部署/搭建/上线一个应用/接口" - the function is part of an application deployment), this is a cloud resource purchase: load huawei-iac first for orchestration (mandatory cost+balance gate, batch approval, session state, ordered destroy), then return here for the exact function/trigger commands. Direct function operations (query/update/debug an existing function) do not need iac.

Overview

Domain expertise for Huawei Cloud FunctionGraph. Covers function lifecycle, code deployment, trigger configuration, and troubleshooting.

How to Use This Skill

  1. This skill tells you the correct service/operation names and non-obvious traps.
  2. Parameters are discovered via --help, not hardcoded. Always run hcloud FunctionGraph <Operation> --help before constructing commands.
  3. Detailed examples are in references/ — load them only when needed.

Critical Warnings

TrapWhy
Service name is FunctionGraphNOT FGS. KooCLI 7.x uses the full service name
CLI requires project_idGet it: hcloud IAM KeystoneListProjects or extract from URN urn:fss:<region>:<project_id>:...
Cold start 100ms-2sReserve concurrency for latency-sensitive workloads
Max execution 900sUse ECS/CCE for long-running tasks
Env vars plaintextUse DEW for secrets
ZIP upload is unreliableCreateFunction --code_type=zip --code_filename=xxx.zip succeeds even with a nonexistent file — the function is created with empty code. Prefer code_type=inline for simple functions. If using zip, verify code_size > placeholder after creation and run InvokeFunction to confirm output.
DeleteFunction strip :latestPassing urn:fss:...:function:xxx:latest causes FSS.0400. Strip :latest suffix (DeleteFunction only — UpdateApiV2 needs the full URN).
DeleteFunctionTrigger does NOT cascadeDeleting a DEDICATEDGATEWAY trigger leaves the API in APIG. Manually clean up: hcloud APIG DeleteApiV2 --instance_id=<id> --api_id=<api-id>.

Prerequisites

bash
hcloud configure list              # confirm a profile exists
hcloud FunctionGraph --help        # confirm service is available

IAM Permissions

If you see FSS.0403 Forbidden, the user needs these permissions:

OperationRequired Permission
Create functionfunctiongraph:function:createFunction
List functionsfunctiongraph:function:list
Delete functionfunctiongraph:function:deleteFunction
Invoke functionfunctiongraph:function:invoke
Create triggerfunctiongraph:trigger:*

Grant via IAM console (FunctionGraph FullAccess role) or ask project admin.

Operations

Always discover parameters with --help before executing. These are the correct operation names:

TaskOperationGotchas
List functionsListFunctions
Show functionShowFunctionConfig
Create functionCreateFunctionreferences/create-function.md
Delete functionDeleteFunctionStrip :latest from URN
Invoke functionInvokeFunctionRequires body param (--name=<value> becomes event body). Use --x_cff_request_version=v0 for raw output, v1 for APIG-wrapped.
Create triggerCreateFunctionTriggerreferences/triggers.md
List triggersListFunctionTriggers
Delete triggerDeleteFunctionTrigger

Discover exact parameters:

bash
hcloud FunctionGraph CreateFunction --help
hcloud FunctionGraph CreateFunctionTrigger --help

Deployment Workflow

Write code → zip → CreateFunction → InvokeFunction → CreateFunctionTrigger

See references/deploy-workflow.md for a step-by-step example with code templates.

Troubleshooting

ErrorRoot Cause -> Fix
不支持的服务名称:FGSUse FunctionGraph, not FGS
不支持的operation:CreateTriggerUse CreateFunctionTrigger
FSS.0403 / ForbiddenMissing IAM permissions — see IAM Permissions above
缺少必填参数:{*} on InvokeAdd body param: --name=<value>
APIG/EOM trigger errortrigger_type_code=APIG deprecated — use DEDICATEDGATEWAY
event_data parse errorUse dotted format: --event_data.key=value, NOT JSON string
FSS.1078 / code upload fails--code_filename is filename-only, no path. cd to zip directory first
DeleteFunction with :latestStrip :latest version suffix from URN
Code too largeInline limit 10KB — use zip/obs code type
Cold start slowSet reserved instances for critical functions
Auth failureRun npx huaweicloud-devkit auth init

Security Considerations

  • MUST use DEW for secrets, never hardcode in environment variables
  • MUST use --app_xrole (agency) for cross-service access
  • SHOULD enable CTS audit logging for function invocations
  • MUST NOT expose AK/SK in function code

MCP Tools

  • huaweicloud_list_operations service=FunctionGraph
  • huaweicloud_run_readonly_command for discovery
  • huaweicloud_run_approved_command for writes

Without MCP

Fall back to hcloud CLI. State: "MCP unavailable, using local hcloud CLI."

Cross-Skill References

  • APIG trigger setup: See huawei-cloud-apig-instance-management for API group creation and publishing
  • OBS trigger setup: See huawei-obs for bucket and object event configuration
  • DEW secrets: See huawei-cloud-dew-key-management for managing function secrets
  • SMN notifications: See huawei-cloud-smn-dms-message for notification topics
  • VPC configuration: See huawei-vpc for network settings

References

  • FunctionGraph Docs: https://support.huaweicloud.com/functiongraph/
  • Create function: references/create-function.md
  • Triggers: references/triggers.md
  • Deploy workflow: references/deploy-workflow.md
  • APIG event format: references/apig-event-format.md

同梱ファイル

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

よくある質問

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

Use when creating, deploying, or managing serverless functions on FunctionGraph. Covers triggers (APIG/OBS/timer/SMN), cold start, reserved concurrency. Triggers: FunctionGraph, serverless, function, Lambda, trigger. NOT for: CCE containers (use huawei-cce).

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

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

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

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

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

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

Huawei Functiongraphは何個のAIモデルで使えますか?

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

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

はい。huaweicloudがGitHubでApache-2.0ライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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