Huawei Cloud FunctionGraph Function Skill: Create and Run
Lets an agent create a Huawei Cloud FunctionGraph function from your code, with VPC and variables, and invoke it.
- Installs
- 17.5K
- on skills.sh
- Stars
- 59
- on GitHub
- Files
- 5
- besides SKILL.md
- Updated
- Oct 2026
- last repo commit
This is Huawei Cloud's own skill for FunctionGraph, its serverless function service. The agent runs the bundled create_function.py with a name, runtime, handler and your code file to create a function, and runs it again to invoke the function synchronously or asynchronously. Optional flags add a VPC, memory, timeout and environment variables.
You need Python 3.9+, the huaweicloudsdkfunctiongraph package and four environment variables for your key and project. SKILL.md tells the agent never to take your key in the conversation. Creating a function puts a real resource in your Huawei Cloud account.
Good for
- Developers who want a serverless function deployed without clicking through the console
- Teams creating several functions with VPC or environment variable settings
- Anyone who wants to invoke a deployed function with a test payload
Install huawei-cloud-functiongraph-function-create
Claude Code
- 1
Copy this prompt.
Install the huawei-cloud-functiongraph-function-create skill in Claude Code. Run this command: npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-functiongraph-function-create Then check that it loaded and tell me how to use it.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires Node.js.
SKILL.md needs Python 3.9+ and the SDK package, then HUAWEI_AK, HUAWEI_SK, HUAWEI_REGION and HUAWEI_PROJECT_ID exported in your shell. Run the script from the skill's scripts folder. The repo has no plugin manifest, so there is no plugin route.
Built from the package data we hold. Not yet tested by us. Source.
What's in the skill
When it loads
Create and invoke FunctionGraph functions on Huawei Cloud. Supports VPC configuration, environment variables, synchronous and asynchronous function invocation. Use this skill when users ask to create, deploy, upload, or invoke cloud functions, serverless functions, or FunctionGraph functions. Triggered by keywords like "create function", "deploy function", "upload function", "invoke function", "create cloud function", "创建函数", "部署函数", "上传函数", "调用函数", "创建云函数", "FunctionGraph function", "serverless function", "function invocation".
Sections in SKILL.md
- Overview
- Prerequisites
- 1. Python Environment
- 2. SDK Installation
- 3. Authentication Configuration
- 4. IAM Permission Requirements
- Workflow
- Usage
- Create a Function
- Invoke a Function
- Parameter Confirmation
- Create Parameters
- Invoke Parameters
- Runtime Options
- Verification Method
- Quick Verification
Key facts
- License
- MIT (LICENSE file and README badge; the LICENSE copyright line still reads "[year] [fullname]")
- Installs on skills.sh
- 17,512 (Nov 2, 2026)
- skills.sh audits
- Gen Agent Trust Hub pass, Socket pass, Snyk pass (Nov 2, 2026)
- Last repo commit
- Oct 31, 2026
What it includes
Creates a function from your code file
Reads your code file and creates a FunctionGraph function with --name, --runtime, --handler and --code. Optional --memory, --timeout, --description, --vpc-id with --subnet-id and --security-group-id, and --env-vars JSON.
Try: “Create a Python3.9 function named my_handler from main.py with handler index.handler.”
Runs code ·
create_function.py createRuns a function by URN and returns the result
Calls a function by its URN with --body as the event, sync by default or async with --invocation-type, and --log-type tail for the last 4KB of log.
Try: “Invoke the function I just created with the body {"key1":"value1"}.”
Runs code ·
create_function.py invokeReads the key and region from environment variables
The script reads HUAWEI_AK, HUAWEI_SK, HUAWEI_REGION and HUAWEI_PROJECT_ID, and stops with an error if the key is missing.
Read ·
Environment checkPython3.9, Node.js14.18, Java8 and Go1.x handler formats
SKILL.md lists the runtime names and the handler format for each one.
Read ·
Runtime options
From the official docs
Permissions
Medium risk
It creates a function in your cloud account from code you name and can run it with your key. Test in a development project and use an IAM user limited to FunctionGraph.
What it can do
- Read your data
- Create and change things
- Delete things
- Read-only mode
Watch out for
It creates and runs cloud code in your account
create runs your code file as a new function, and invoke executes it with the payload you pass. Review the code before it is deployed and test in a development project. github.com
Environment variables go into the function settings
--env-vars sends a JSON string of variables to the function configuration. Keep real secrets out of it. github.com
It needs a pip package and your key in the environment
SKILL.md says to run pip install huaweicloudsdkfunctiongraph and to export the key variables. Use an IAM user limited to FunctionGraph. github.com
Security advisories
No published security advisories as of Nov 2, 2026.
Technical details
| Turning on read-only | No read-only mode. The skill creates functions. |
|---|---|
| Talks to | Huawei Cloud FunctionGraph API through the Python SDK |
| Sign-in and keys | The script reads the key from environment variables. SKILL.md says never to expose it in code or logs. |
| Scopes |
|
Questions
What does huawei-cloud-functiongraph-function-create do?
It makes an agent create a FunctionGraph function from your code file with a Python script, optionally with a VPC and environment variables, and invoke it with a test payload.
Does it need an API key?
Yes. SKILL.md has you set HUAWEI_AK and HUAWEI_SK as environment variables (plus region and project ID) and tells the agent never to take the key in the conversation. It recommends an IAM user instead of the main account. Our advice: grant only the function create, get, list and invoke permissions that SKILL.md names.
Is huawei-cloud-functiongraph-function-create official?
It is in Huawei Cloud's own huaweicloud/huaweicloud-skills repo, which the README calls officially maintained Huawei Cloud Agent Skills.
Is it safe to run?
It creates a function in your cloud account from code you name and can run it. Invoking a function runs that code with the payload you give it. Environment variables you pass with --env-vars are stored in the function settings, so do not put secrets there unless you mean to.
Does it work in Claude Code, Codex or the Claude app?
The install box has Claude Code, Codex and standalone tabs. Huawei says only that the skills are compatible with mainstream AI Agents and names none, and it documents no Claude app upload. This skill runs command-line tools on your machine, so the box has no Claude app tab.
How is it different from the FunctionGraph trigger skill?
This one creates and invokes functions. The huawei-cloud-functiongraph-trigger-create skill adds a scheduled timer trigger to a function that already exists.
Information
updated Nov 2, 2026
- Repository
- huaweicloud/huaweicloud-skills
- Folder
skills/computing/functiongraph/huawei-cloud-functiongraph-function-create
Sources
Docs, issue trackers and discussions this page is built from.
Show all 4Hide
- huawei-cloud-functiongraph-function-create SKILL.md · github.com
- huaweicloud-skills README · github.com
- huaweicloud-skills LICENSE · github.com
- create_function.py · github.com