Huawei Functiongraph logo

Huawei Functiongraph

Organization
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).

Overview

Publisherhuaweicloud
Repositoryhuaweicloud-devkit
Skill namehuawei-functiongraph
Stars
70
Forks
12
Bundled files
4
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by huaweicloud on GitHub. Read the source before you install it.

Installation

Install the Huawei Functiongraph AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/huaweicloud/huaweicloud-devkit/tree/main/plugins/huaweicloud-core/skills/huawei-functiongraph
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Huawei Functiongraph in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Huawei Functiongraph on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Huawei Functiongraph is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Huawei Functiongraph AI skill do?

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).

Why use Huawei Functiongraph on TypingMind?

Because you install it once and use it with any model. Huawei Functiongraph is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Huawei Functiongraph in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/huaweicloud/huaweicloud-devkit/tree/main/plugins/huaweicloud-core/skills/huawei-functiongraph. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Huawei Functiongraph?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Huawei Functiongraph?

As many as you like. As long as a model supports skills, you can use Huawei Functiongraph with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Huawei Functiongraph AI skill free?

Yes. It is published on GitHub by huaweicloud under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇