Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

huawei-cloud-functiongraph-trigger-create

БесплатноЗапускает вложенные скриптыНе проверен

Create FunctionGraph triggers on Huawei Cloud. Supports scheduled TIMER triggers (Quartz Cron expressions or fixed Rate values) and event-driven OBS triggers…

huaweicloudskillот huaweicloudskill574 установки в других каталогах

Об этом скилле

Overview

This skill enables the creation of triggers for Huawei Cloud FunctionGraph functions. Two trigger types are supported:

  • TIMER (scheduled trigger): invokes the function on a schedule described by a Quartz Cron expression or by a fixed Rate value.
  • OBS (event-driven trigger, new): invokes the function when objects are created or deleted in an OBS bucket, which covers real-time processing scenarios such as masking or sanitizing sensitive data as soon as a file is uploaded.

Typical scenarios:

  • Periodic data processing, scheduled backup operations, regular monitoring and health checks, time-based notifications (TIMER).
  • Upload-triggered processing: real-time data masking, thumbnail generation, format conversion, search indexing or malware scanning of newly uploaded objects (OBS).

Supported Trigger Types and Capability Boundaries

Supported trigger types

--trigger-type Trigger Configuration parameters Typical use
TIMER (default) Scheduled trigger --schedule with --schedule-type (Cron or Rate), optional --user-event Periodic function execution
OBS Object storage event trigger --bucket and --events, optional --prefix and --suffix Run the function when an object is created or deleted

Trigger types that are NOT supported

This skill implements only TIMER and OBS. The FunctionGraph service also offers other trigger types, but this skill does not support them and does not document them:

  • APIG, CTS, DDS, DMS, DIS, LTS, SMN, KAFKA, RABBITMQ, DEDICATEDGATEWAY, OPENSOURCEKAFKA, APIC, GAUSSMONGO, EVENTGRID

For those types, use the FunctionGraph console or the KooCLI hcloud FunctionGraph trigger commands.

Capability boundary: create only

This skill only creates triggers. It does not:

  • delete a trigger
  • update or modify an existing trigger
  • disable or enable an existing trigger
  • list or query existing triggers

Triggers that need to be removed, changed or inspected must be handled by the user in the FunctionGraph console (Function details → Triggers) or with the KooCLI hcloud FunctionGraph commands. Every run of this skill creates a new trigger; running it again with the same trigger name for the same function fails with TriggerAlreadyExists instead of updating the existing trigger.

Prerequisites

Before using this skill, ensure the following requirements are met:

  1. Python Environment: Python 3.9+ installed
  2. SDK Installation: Install FunctionGraph SDK: pip install huaweicloudsdkfunctiongraph
  3. Environment Variables: Configure the following environment variables:
    • HUAWEI_AK: Huawei Cloud Access Key
    • HUAWEI_SK: Huawei Cloud Secret Key
    • HUAWEI_REGION: Target region (e.g., cn-north-4)
    • HUAWEI_PROJECT_ID: Project ID
  4. FunctionGraph Function: Target function must already exist in the specified region
  5. OBS Bucket (OBS triggers only): The bucket must already exist in the same region as the function, and the function must be authorized to read from it
  6. Network Access: Stable network connection to Huawei Cloud API endpoints

Workflow

The complete workflow consists of the following steps.

Step 1: Load environment variables and authenticate(加载环境变量/鉴权)

The script reads the following environment variables at startup:

  • HUAWEI_AK: Huawei Cloud Access Key (required)
  • HUAWEI_SK: Huawei Cloud Secret Key (required)
  • HUAWEI_REGION: Target region, defaults to cn-north-4
  • HUAWEI_PROJECT_ID: Project ID

If HUAWEI_AK or HUAWEI_SK is missing, the script prints Config error: Please set environment variables HUAWEI_AK and HUAWEI_SK and exits before any API call.

Step 2: Confirm the target function URN(确认 function_urn)

Pass the target function URN via --function-urn, e.g. urn:fss:cn-north-4:project_id:function:default:my-function:latest. Before creating the trigger, the script verifies that the function exists by calling ShowFunctionConfig. If the function is not found, it returns FunctionNotFound and stops without creating anything.

Step 3: Choose the trigger type(选择触发器类型)

Pass --trigger-type TIMER (the default) or --trigger-type OBS. The type determines which parameters are required in the next step:

  • TIMER requires --schedule; --bucket, --events, --prefix and --suffix are ignored.
  • OBS requires --bucket and --events; --schedule, --schedule-type and --user-event are ignored.

Step 4: Confirm the trigger configuration(确认触发配置)

Verify the trigger parameters (see Parameter Confirmation):

For a TIMER trigger:

  • --name: Trigger name, 1-64 characters
  • --schedule: Quartz Cron expression (6-7 fields) for Cron, or a rate value such as 5m for Rate
  • --schedule-type: Cron (default) or Rate
  • --user-event: Optional additional user event data

For an OBS trigger:

  • `--nam
Полный SKILL.md на ClawHub

Установить huawei-cloud-functiongraph-trigger-create в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл huawei-cloud-functiongraph-trigger-create?

Create FunctionGraph triggers on Huawei Cloud. Supports scheduled TIMER triggers (Quartz Cron expressions or fixed Rate values) and event-driven OBS triggers that run a function when objects are created or deleted in an OBS bucket. Use this skill when users ask to create a trigger, schedule function execution, set up periodic tasks, configure a timer, or run a function as soon as a file is uploaded to OBS. Triggered by keywords like "create trigger", "set up trigger", "schedule function", "periodic task", "timer", "cron", "OBS trigger", "object storage trigger", "event trigger", "event-driven", "trigger on upload", "bucket notification", "FunctionGraph trigger", "创建云函数触发器", "配置云函数触发器", "云函数定时触发", "定时执行", "定时任务", "创建定时器", "OBS触发器", "对象存储触发器", "事件触发器", "上传触发".

Как установить скилл huawei-cloud-functiongraph-trigger-create?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл huawei-cloud-functiongraph-trigger-create запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить huawei-cloud-functiongraph-trigger-create с