← 返回 Skills 市场
sdk-team

Alibabacloud Flink Instance Manage

作者 alibabacloud-skills-team · GitHub ↗ · v0.0.2 · MIT-0
cross-platform ⚠ suspicious
109
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install alibabacloud-flink-instance-manage
功能描述
Manage Alibaba Cloud Flink VVP instances and namespaces through create/query operations only. Use when user asks to create or query Flink instances, namespac...
使用说明 (SKILL.md)

Alibaba Cloud Flink Instance Manage

Operate Alibaba Cloud Flink VVP resources with a strict create/query scope through one wrapper script.

Scope and Entrypoint

  • Always run operations through:
    python scripts/instance_ops.py \x3Ccommand> [options]
    
  • Allowed commands: create, create_namespace, describe, describe_regions, describe_zones, describe_namespaces, list_tags
  • Out of scope: update/delete, Flink SQL/job runtime operations, and non-Flink services

Trigger Rules

Use this skill when prompts are about Flink instance/namespace lifecycle operations.

  • Positive intent examples:
    • "Create a Flink instance in cn-beijing"
    • "List Flink instances and status"
    • "Describe namespaces for instance f-cn-xxx"
    • "查询 Flink 实例标签"
    • "Flink 可用区有哪些"
  • Negative intent examples:
    • ECS/Kafka/OSS/DataWorks operations
    • Generic questions (weather, translation, etc.)
    • Flink SQL / Flink job authoring or runtime tuning
  • Ambiguous prompts:
    • Ask one clarification question: instance/namespace management vs SQL/job operations.

Intent to Command Mapping

User intent Command
Query all instances in a region describe --region_id \x3CREGION>
Create instance create ... --confirm
Query namespaces under an instance describe_namespaces --region_id \x3CREGION> --instance_id \x3CID>
Create namespace create_namespace ... --confirm
Query supported regions/zones describe_regions / describe_zones --region_id \x3CREGION>
Query tags list_tags --region_id \x3CREGION> --resource_type \x3CTYPE> [--resource_ids ...]

Operating Rules

  1. Confirmation is mandatory for create commands
    • create and create_namespace must include --confirm.
  2. Verify create results with read-back
    • Do not conclude success from create response alone.
  3. Retry policy is strict
    • Maximum 2 attempts for the same command (initial + one corrected retry).
  4. No automatic operation switching
    • If an operation fails, do not switch to a different operation without user approval.
  5. Lifecycle target lock
    • In create -> create_namespace flow, namespace must target the same newly created InstanceId unless user approves fallback.
  6. Namespace pre-check is required
    • Before create_namespace, check instance status/resources and existing namespace allocation.
  7. No secret exposure
    • Do not output or request plaintext AK/SK. Use default credential chain guidance.
  8. Do not invent parameters
    • Never fabricate VPC/VSwitch/instance IDs.
  9. Keep auditable confirmation evidence
    • Lifecycle outputs must contain SafetyCheckRequired or explicit --confirm evidence.
  10. No partial-completion claims for lifecycle flows
  • For flows requiring both create and create_namespace, overall status can be completed only when both create operations succeed.
  1. No automatic capacity scaling
  • If create_namespace fails due to insufficient resources, report it clearly and ask user to manually scale resources outside this skill scope.

Execution Protocol

Step 1: Classify request

  • In-scope create/query for Flink instance/namespace/tag/region/zone -> continue.
  • Out-of-scope or non-Flink -> reject or route with explanation.

Step 2: Validate parameters

  • Apply references/parameter-validation.md.
  • If required parameters are missing, ask user or return clear remediation.

Step 3: Execute command

  • Query commands: run once unless transient query error.
  • Create commands: construct final command string and verify --confirm is present before execution.

Step 4: Verify create outcomes

  • For create: verify with describe --region_id \x3CREGION>.
  • For create_namespace: verify with describe_namespaces --region_id \x3CREGION> --instance_id \x3CID>.
  • Use up to 3 read checks with short backoff before concluding the create is not reflected yet.
  • For chained create -> create_namespace:
    • poll describe --region_id \x3CREGION> on the same InstanceId every 30 seconds
    • max wait: 10 minutes
    • if still not RUNNING, stop and provide next action (wait/retry later)
    • do not switch to another instance without explicit user approval
    • if namespace create fails, mark lifecycle chain as failed/not_ready, not completed
    • for InsufficientResources, ask user to manually scale the instance and retry later

Key References

  • Start here:
    • references/README.md
    • references/quick-start.md
    • references/trigger-recognition-guide.md
    • references/core-execution-flow.md
    • references/command-templates.md
Document Purpose
references/parameter-validation.md Pre-execution validation checklist
references/e2e-playbooks.md Complete execution sequences
references/common-failures.md Typical mistakes and fixes
references/required-confirmation-model.md Confirmation gate rules
references/instance-state-management.md Instance state and readiness checks
references/output-handling.md Output parsing and retry policy
references/verification-method.md Verification patterns after create/query
references/acceptance-criteria.md Completion checklist for normal operations
references/python-environment-setup.md Python dependency and auth setup
references/cli-installation-guide.md Aliyun CLI diagnostics setup
references/ram-policies.md Required RAM permissions
references/related-apis.md API and command mapping

Output Format

All commands return JSON:

{
  "success": true,
  "operation": "\x3Ccommand>",
  "confirmation_check": {
    "required_flag": "--confirm",
    "provided": true,
    "status": "passed"
  },
  "data": {},
  "request_id": "..."
}

confirmation_check appears on create operations and is used for auditable safety evidence.

Exit codes: 0 = success, 1 = error.

安全使用建议
This skill appears to implement what it claims (Flink instance create/query) but the package metadata is incomplete and that creates risk. Before installing or running: 1) Review the Python scripts (especially scripts/instance_ops.py) to confirm there are no unexpected network endpoints, telemetry, or file exfiltration. 2) Expect to supply Alibaba Cloud credentials: prefer temporary STS tokens or an ECS RAM role with least-privilege policies, not long-lived root keys. 3) Do not run pip install blindly — inspect assets/requirements.txt and vet the SDK packages. 4) Run the tool in an isolated environment (or sandbox) the first time and avoid exposing your main credential store; consider creating a dedicated RAM user with minimal permissions for testing. 5) Ask the publisher to correct the skill metadata to declare required env vars/primary credential and to provide a clear install spec. If you cannot review the scripts, treat this skill as risky and avoid providing production credentials.
功能分析
Type: OpenClaw Skill Name: alibabacloud-flink-instance-manage Version: 0.0.2 The skill bundle is a legitimate tool for managing Alibaba Cloud Flink VVP instances and namespaces. The core logic in `scripts/instance_ops.py` uses official Alibaba Cloud SDKs and follows the standard credential chain for authentication. It implements robust safety features, including mandatory confirmation flags (`--confirm`) for cost-incurring operations and resource availability checks before namespace creation. The documentation in `SKILL.md` and the `references/` directory provides clear, safety-oriented instructions for the AI agent, emphasizing the rejection of out-of-scope operations and the protection of credentials.
能力评估
Purpose & Capability
The skill claims to manage Alibaba Cloud Flink instances (create/query) which legitimately requires Alibaba Cloud credentials and the Alibaba Cloud SDK; however the registry metadata declares no required environment variables or primary credential. The code bundle includes Alibaba Cloud SDKs in assets/requirements.txt and Python scripts that will call the OpenAPI, so the declared requirements are incomplete and inconsistent with the actual capability.
Instruction Scope
Runtime instructions require running python scripts (scripts/instance_ops.py) and explicitly require valid Alibaba Cloud credentials and network access to Flink OpenAPI. The docs also reference using the default credential chain and ~/.aliyun/config.json and environment variables (ALIBABA_CLOUD_*). The manifest did not declare these config/credential accesses. While the SKILL.md prohibits outputting plaintext AK/SK, the instructions inherently depend on credentials and config files that contain secrets.
Install Mechanism
There is no formal install spec in the registry (instruction-only), but SKILL.md and python-environment docs instruct installing dependencies with pip using assets/requirements.txt (alibabacloud SDK packages from PyPI). Installing third-party packages is expected for this SDK-based tool but is a non-trivial action (networked package installation). The lack of an explicit install step in the manifest is an omission and increases the chance operators will miss the dependency/permission impact.
Credentials
The skill will need Alibaba Cloud credentials (AK/SK, STS token, or ECS RAM role) and may read credential sources such as environment variables or ~/.aliyun/config.json, but the registry declares no required env vars or primary credential. That is disproportionate/inconsistent. The docs provide many examples showing credential use and CLI configuration — sensitive data will be accessed unless you use a RAM role or temporary credentials. The skill requests no unrelated third-party secrets, but it does implicitly require access to credential stores that contain secrets.
Persistence & Privilege
The skill does not request always:true and is user-invocable only. There is no evidence it modifies other skills or requests persistent system-wide privileges. Its runtime behavior appears limited to calling Alibaba Cloud OpenAPI via provided scripts.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install alibabacloud-flink-instance-manage
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /alibabacloud-flink-instance-manage 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.0.2
**Major update: The skill is now strictly limited to create and query operations for Alibaba Cloud Flink VVP instances and namespaces, rejecting update/delete and unrelated tasks.** - Restricted all operations to run only via `scripts/instance_ops.py` with a limited set of commands: create, create_namespace, describe, describe_regions, describe_zones, describe_namespaces, and list_tags. - Significantly tightened scope—exclude all update/delete actions, Flink SQL/job execution, and other cloud services (ECS, Kafka, OSS, DataWorks, etc.). - Enforced mandatory confirmation (`--confirm`) for create commands, plus evidence requirements in outputs. No secret exposure, no parameter invention, no partial lifecycle completions allowed. - Introduced stricter intent detection, clear parameter validation steps, and robust output/result verification requirements. - Added or updated extensive reference documents for validation, typical failures, output handling, and command templates. - Split execution protocol into simple, auditable steps with strict retry policy, lifecycle chain locking, and clear failure guidance.
v0.0.1
- Initial release of alibabacloud-flink-instance-manage skill for managing Alibaba Cloud Real-Time Compute for Apache Flink instances. - Supports full lifecycle operations including create, query, scale, renew, convert, namespace management, tagging, cleanup, and batch execution. - All resource operations must be performed via scripts/instance_ops.py with strict confirmation and verification steps. - Triggered only for explicit Flink instance operations; will not activate for unrelated or ambiguous prompts. - Enforces strong safety, consistency, and idempotency protocols with gated command execution and detailed verification/reporting.
元数据
Slug alibabacloud-flink-instance-manage
版本 0.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Alibabacloud Flink Instance Manage 是什么?

Manage Alibaba Cloud Flink VVP instances and namespaces through create/query operations only. Use when user asks to create or query Flink instances, namespac... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 109 次。

如何安装 Alibabacloud Flink Instance Manage?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install alibabacloud-flink-instance-manage」即可一键安装,无需额外配置。

Alibabacloud Flink Instance Manage 是免费的吗?

是的,Alibabacloud Flink Instance Manage 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Alibabacloud Flink Instance Manage 支持哪些平台?

Alibabacloud Flink Instance Manage 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Alibabacloud Flink Instance Manage?

由 alibabacloud-skills-team(@sdk-team)开发并维护,当前版本 v0.0.2。

💬 留言讨论