← 返回 Skills 市场
onekill0503

Komodo

作者 AlwaysBeDream · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
256
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install komodo-skill
功能描述
Interact with Komodo Core API using this project. Use when the user wants to list, manage, deploy, or execute operations against Komodo resources (servers, s...
使用说明 (SKILL.md)

You are an expert at managing Komodo infrastructure using this project. The openclaw.ts module exports a pre-configured komodo client authenticated via API key and secret from environment variables. All scripts in scripts/ import from it.

Environment Variables

Variable Description
KOMODO_URL Base URL of Komodo Core (e.g. https://komodo.example.com)
KOMODO_API_KEY API key
KOMODO_API_SECRET API secret

Available Scripts

Every script can be run two ways — pick whichever fits the environment:

node scripts/\x3Cscript>.js [args]        # compiled JS, no tooling needed
bun run scripts/\x3Cscript>.ts [args]     # TypeScript source, requires Bun

list — Inspect resources

node scripts/list.js \x3Ctype>
Type Output
servers State, address, region, periphery version, CPU, memory, disk, load average
stacks State, services & images, repo/branch, deployed vs latest commit
deployments State, image, update availability, attached build
builds State, version, last built, repo/branch, built vs latest commit
repos State, last pulled/built, repo/branch, cloned/built/latest commit
procedures State, stage count, last run, next scheduled run
actions State, last run, next scheduled run

create — Create a resource

node scripts/create.js \x3Ctype> \x3Cname> [json-config]

Config is optional — omit to use Komodo defaults.

node scripts/create.js stack my-stack '{"repo":"org/repo","branch":"main"}'
node scripts/create.js deployment my-dep '{"image":"nginx:latest","server_id":"\x3Cid>"}'
node scripts/create.js build my-build '{"repo":"org/repo","branch":"main"}'
node scripts/create.js repo my-repo '{"repo":"org/repo","branch":"main","server_id":"\x3Cid>"}'
node scripts/create.js procedure my-proc
node scripts/create.js action my-action '{"run_at_startup":false}'

Types: stack deployment build repo procedure action


update — Patch resource config

Applies a partial JSON merge — only specified fields change, everything else stays.

node scripts/update.js \x3Ctype> \x3Cname> '\x3Cjson>'
node scripts/update.js stack my-stack '{"branch":"main"}'
node scripts/update.js deployment my-dep '{"image":"nginx:1.27"}'
node scripts/update.js build my-build '{"version":{"major":2,"minor":0,"patch":0}}'
node scripts/update.js repo my-repo '{"branch":"develop"}'
node scripts/update.js procedure my-proc '{"schedule":"0 0 * * *","schedule_enabled":true}'
node scripts/update.js action my-action '{"run_at_startup":false}'

Types: stack deployment build repo procedure action


run — Execute and wait for completion

Runs a procedure, action, or build and blocks until done. Prints update ID, status, duration, and logs.

node scripts/run.js \x3Ctype> \x3Cname>
node scripts/run.js procedure my-proc
node scripts/run.js action my-action
node scripts/run.js build my-build

deploy-stack — Deploy a stack

Deploys a stack and waits for completion. Prints the full update result and logs.

node scripts/deploy-stack.js \x3Cstack-name>

stack-ctrl — Control a stack

node scripts/stack-ctrl.js \x3Caction> \x3Cstack-name>

Actions: start stop restart pull destroy


deployment-ctrl — Control a deployment

node scripts/deployment-ctrl.js \x3Caction> \x3Cdeployment-name>

Actions: deploy start stop restart pull destroy


get-logs — Fetch logs

node scripts/get-logs.js stack \x3Cstack-name> [tail]
node scripts/get-logs.js deployment \x3Cdeployment-name> [tail]
node scripts/get-logs.js container \x3Cserver-name> \x3Ccontainer-name> [tail]

Writing New Scripts

When adding a new script, follow this pattern:

import { komodo } from "../openclaw.ts";
import { printUpdate } from "./print-update.ts"; // for execute_and_poll results

// Read
const items = await komodo.read("ListStacks", {});

// Write (create/update/delete)
await komodo.write("CreateVariable", { name: "KEY", value: "val" });

// Execute and wait for completion
const result = await komodo.execute_and_poll("DeployStack", { stack: "name" });
printUpdate(result);

Key rules:

  • Always import komodo from "../openclaw.ts" — never initialize the client directly
  • Always use execute_and_poll (not execute) when waiting for a task to finish
  • Use printUpdate(result) from ./print-update.ts to display execution results
  • Read args from process.argv — never hardcode resource names or credentials
  • After writing a new .ts script, rebuild with bun run build to produce the .js counterpart

Instructions

When the user provides a request via $ARGUMENTS:

  1. Identify the resource type and operation needed.
  2. Use an existing script first — check the list above before writing new code.
  3. If adapting an existing script, show the exact command to run.
  4. If writing a new script, place it in scripts/, follow the pattern above, and remind the user to rebuild.
  5. Always show both run options: node scripts/\x3Cscript>.js and bun run scripts/\x3Cscript>.ts.
  6. For execution results (deploy, run, ctrl), the output always includes: update ID, status, success, duration, operator, and per-stage logs.

The user's request: $ARGUMENTS

安全使用建议
This skill appears to implement what it claims (a Komodo management toolkit) but the registry metadata incorrectly lists no required environment variables. Before installing: 1) Only provide KOMODO_URL, KOMODO_API_KEY, and KOMODO_API_SECRET if you trust the skill and the Komodo instance; the key/secret are powerful — prefer a least-privilege key and rotate it after testing. 2) Understand that the bundled client supports remote terminal/exec and can start/stop/destroy resources; run the skill in an isolated environment and avoid granting it more than the Komodo credentials it needs. 3) If you rely on the registry metadata for automated checks, update or confirm the skill entry to include the three env vars so you are not surprised at runtime. 4) Review the scripts (they are included) and, if you want to restrict risk, run them manually (node scripts/*.js) rather than enabling autonomous invocation for an agent. 5) If you need higher assurance, ask the publisher for an explicit manifest of required env vars and a rationale for any destructive operations the skill performs.
功能分析
Type: OpenClaw Skill Name: komodo-skill Version: 1.0.0 The komodo-skill bundle is a legitimate integration for managing Komodo infrastructure via its Core API. It provides scripts for resource lifecycle management (list, create, update, deploy, control) and log retrieval. The bundle correctly handles sensitive credentials (KOMODO_API_KEY and KOMODO_API_SECRET) through environment variables and uses them exclusively to authenticate with the user-provided KOMODO_URL. The code logic across files like openclaw.ts and the scripts/ directory is transparent, well-documented, and aligns perfectly with the stated purpose without any signs of malicious intent, data exfiltration, or prompt injection.
能力评估
Purpose & Capability
Name/description match the implementation: the code and scripts call a Komodo client and provide list/create/update/deploy/run/logs operations. However the registry metadata declared no required environment variables while the code (openclaw.ts) and SKILL.md require KOMODO_URL, KOMODO_API_KEY, and KOMODO_API_SECRET — that mismatch is unexpected and misleading.
Instruction Scope
SKILL.md limits runtime actions to calling the Komodo API and running bundled scripts. The instructions do not ask the agent to read unrelated local files or external endpoints outside the Komodo API. Note: the bundled komodo_client exposes terminal/exec and websocket helpers (remote command execution on containers/servers) — this is consistent with the skill's stated purpose but is high-privilege behavior toward the Komodo-managed infrastructure.
Install Mechanism
There is no install spec; package.json lists a dependency on komodo_client and scripts are prebuilt (scripts/*.js include the bundled komodo_client code). No external downloads or obscure URLs are used by the skill bundle itself.
Credentials
The skill legitimately requires KOMODO_URL, KOMODO_API_KEY, and KOMODO_API_SECRET to talk to Komodo Core, and the SKILL.md and openclaw.ts make that explicit — but the registry metadata claims no required env vars. That omission could cause users to enable this skill without realizing it needs sensitive credentials. No other unrelated credentials or config paths are requested.
Persistence & Privilege
always is false and the skill doesn't request system-wide privileges or attempt to modify other skills. It can perform destructive operations (destroy stacks/deployments, execute remote commands) on the Komodo-managed infrastructure, which is expected for this tool but is operationally powerful.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install komodo-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /komodo-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
komodo-skill 1.0.0 - Initial release with scripts for listing, creating, updating, deploying, running, controlling, and logging Komodo resources (servers, stacks, deployments, builds, repos, procedures, actions). - Provides clear environment variable setup for API authentication and URL configuration. - Includes robust instructions for script usage, extension, and best practices for adding new scripts. - Supports both Node.js and Bun execution modes for all scripts. - Standardizes result output for deployment, control, and run operations, including logs and status details.
元数据
Slug komodo-skill
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Komodo 是什么?

Interact with Komodo Core API using this project. Use when the user wants to list, manage, deploy, or execute operations against Komodo resources (servers, s... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 256 次。

如何安装 Komodo?

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

Komodo 是免费的吗?

是的,Komodo 完全免费(开源免费),可自由下载、安装和使用。

Komodo 支持哪些平台?

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

谁开发了 Komodo?

由 AlwaysBeDream(@onekill0503)开发并维护,当前版本 v1.0.0。

💬 留言讨论