← 返回 Skills 市场
hypertextassassinrajith

Awscli

作者 HypertextAssassinRajith · GitHub ↗ · v0.1.2
cross-platform ⚠ suspicious
956
总下载
2
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install awscli
功能描述
Manage AWS Lightsail and EC2 instances using AWS CLI
使用说明 (SKILL.md)

AWS CLI Control Skill

This skill manages AWS Lightsail instances.

Requirements

  • AWS CLI installed on host

  • AWS credentials configured (IAM user or role)

  • Environment variables:

    • AWS_REGION
    • ALLOWED_INSTANCES

    Environment Variables

This skill requires the following environment variables:

  • AWS_REGION (e.g., ap-southeast-1)
  • ALLOWED_INSTANCES (comma-separated list)

Example:

AWS_REGION=ap-southeast-1 ALLOWED_INSTANCES=Ubuntu,Binami

Available Operations

1. List Instances

action: "list"

Example: { "action": "list" }


2. Reboot Instance

action: "reboot"
instance: "\x3Cinstance-name>"

Example: { "action": "reboot", "instance": "Ubuntu-1" }


3. Start Instance

action: "start"
instance: "\x3Cinstance-name>"


4. Stop Instance

action: "stop"
instance: "\x3Cinstance-name>"


Notes

  • Only use structured JSON input.
  • Do NOT generate AWS CLI commands.
  • Instance names must exactly match existing Lightsail instances.
安全使用建议
Do not install blindly. This skill will run the local 'aws' CLI using whatever AWS credentials are configured on the host, but the registry metadata does not declare those credentials — verify before installing. Specific points to consider: - The skill only implements Lightsail commands (not EC2) despite the description mentioning EC2. - SKILL.md and index.js require AWS_REGION and ALLOWED_INSTANCES, but the published metadata shows no required env vars; the skill will fail or behave unexpectedly if those are not set. - index.js uses ALLOWED_INSTANCES without null checks and will throw if the env var is missing; ensure ALLOWED_INSTANCES is set and formatted correctly (the code does not trim values). - package.json sets "type": "commonjs" but index.js uses ES module import/export — this is a runtime mismatch and may cause the skill to fail. - Because the skill executes the 'aws' binary, it will act with whatever IAM permissions the host credentials provide. Only enable this skill in an environment where the AWS credentials are appropriately scoped (least privilege) and test in a safe account before using in production. If you still want this skill: ensure AWS CLI is installed, configure a dedicated IAM principal with minimal Lightsail permissions, set AWS_REGION and ALLOWED_INSTANCES explicitly, and prefer testing in an isolated environment. If you need EC2 control, request clarification or a corrected version that actually implements EC2 and fixes the package/type and input validation issues.
功能分析
Type: OpenClaw Skill Name: awscli Version: 0.1.2 The skill is benign. It securely manages AWS Lightsail instances by using `execFile` with arguments passed as an array, preventing shell injection. User-provided instance names are strictly validated against an `ALLOWED_INSTANCES` environment variable, and the `SKILL.md` explicitly instructs the AI agent 'Do NOT generate AWS CLI commands,' mitigating prompt injection risks. There is no evidence of data exfiltration, persistence, or other malicious intent.
能力评估
Purpose & Capability
The skill's description says 'Lightsail and EC2' but both the SKILL.md and the code only implement AWS Lightsail operations. The registry metadata lists no required env vars or credentials, yet SKILL.md and index.js require AWS_REGION and ALLOWED_INSTANCES and expect AWS CLI credentials/configuration. This is a clear mismatch between claimed purpose and actual requirements.
Instruction Scope
SKILL.md instructs using AWS CLI and requires AWS_REGION and ALLOWED_INSTANCES; the runtime code executes the 'aws' binary via child_process. The SKILL.md says 'Do NOT generate AWS CLI commands' (consistent with the skill executing them), but it does not declare or explain that the host must have AWS credentials configured. The instructions permit the agent to run commands that will use host AWS credentials — a sensitive action not declared in registry metadata.
Install Mechanism
There is no install spec (instruction-only with a small code file). No external downloads or package installs are declared, so nothing is written to disk beyond the included index.js. Risk from install mechanism itself is low.
Credentials
The skill requires AWS_REGION and ALLOWED_INSTANCES (SKILL.md and code) and implicitly requires AWS CLI credentials, but the registry metadata lists no required env vars or primary credential. The code trusts ALLOWED_INSTANCES without null checks and will error if the env var is absent. Asking for host AWS credentials (via configured AWS CLI) is proportionate to managing instances — but the absence of that requirement in metadata and lack of input validation are problematic.
Persistence & Privilege
The skill is not force-installed (always:false) and does not request persistent system-wide privileges or modify other skills. Autonomous invocation is allowed by default (not flagged on its own).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install awscli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /awscli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.2
- Added requirements section specifying AWS CLI installation, credentials, and environment variables needed. - Documented new mandatory environment variables: AWS_REGION and ALLOWED_INSTANCES. - Provided example values for environment variables. - Clarified instructions on environment setup for correct skill usage.
v0.1.1
- Internal updates to index.js and package.json. - No changes to user-facing features or documentation.
v0.1.0
awscli skill version 0.1.0 changelog: - Initial release with core functionality to manage AWS Lightsail instances. - Supports listing, starting, stopping, and rebooting instances via structured JSON input. - Ensures instance names must exactly match existing Lightsail instances. - Direct AWS CLI command generation is disabled for safety.
元数据
Slug awscli
版本 0.1.2
许可证
累计安装 1
当前安装数 1
历史版本数 3
常见问题

Awscli 是什么?

Manage AWS Lightsail and EC2 instances using AWS CLI. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 956 次。

如何安装 Awscli?

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

Awscli 是免费的吗?

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

Awscli 支持哪些平台?

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

谁开发了 Awscli?

由 HypertextAssassinRajith(@hypertextassassinrajith)开发并维护,当前版本 v0.1.2。

💬 留言讨论