openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > Structsd Install

Installs the structsd binary from source. Covers Go, Ignite CLI, and building structsd for Linux and macOS. Use when structsd is not found, when setting up a...

开发与 DevOps

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.1.0

统计:⭐ 0 · 258 · 0 current installs · 0 all-time installs

0

安装量(当前) 0

🛡 VirusTotal :可疑 · OpenClaw :良性

Package:abstrct/structsd-install

安全扫描(ClawHub)

  • VirusTotal :可疑
  • OpenClaw :良性

OpenClaw 评估

The skill's instructions and requirements are coherent with its stated purpose (building/installing the structsd binary), but the runtime steps include privileged filesystem changes and a remote install script piped to a shell that you should inspect before running.

目的

The name and description match the instructions: it installs Go, the Ignite CLI, clones the structsd repo, and builds the binary. All requested actions are relevant to building structsd.

说明范围

Instructions reference only expected paths (~/.profile, ~/go/bin, /usr/local) and commands needed to install Go, Ignite, and build structsd. However, the guide tells the user to run a remote install script via `curl https://get.ignite.com/cli! | bash` and to run `sudo rm -rf /usr/local/go` — both are high-impact operations (remote code execution and destructive sudo). The steps are within the install scope but warrant caution.

安装机制

There is no formal install spec (instruction-only). Downloads are from go.dev and GitHub (expected). The Ignite installer is fetched from get.ignite.com and piped to bash — this is common for CLI installers but is a higher-risk pattern; you should inspect the script before executing and prefer package managers when available.

证书

The skill requests no environment variables, credentials, or unrelated config paths. The only privileged operations are filesystem writes under /usr/local and installing into ~/go/bin, which are proportionate to installing Go and the binary.

持久

The skill does not request always:true, does not modify other skills, and has no mechanism to persist credentials or configure the agent automatically. It requires manual execution of commands with optional sudo for system paths.

综合结论

This skill appears to do what it says (build structsd), but take basic safety precautions before running the commands: 1) Inspect the remote installer before piping to a shell — run `curl https://get.ignite.com/cli! -sS` and review the output, or use an officially packaged installer. 2) Prefer your OS package manager or Homebrew for Go if available, or verify checksums on downloaded tarballs from go.dev. 3) Avoid running destructive sudo comma…

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Structsd Install」。简介:Installs the structsd binary from source. Covers Go, Ignite CLI, and building s…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/abstrct/structsd-install/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: structsd-install
description: Installs the structsd binary from source. Covers Go, Ignite CLI, and building structsd for Linux and macOS. Use when structsd is not found, when setting up a new machine, or when the agent needs to install or update the Structs chain binary.
---

# Install structsd

Builds the `structsd` binary from source using Ignite CLI. After this procedure, `structsd` will be available on your PATH.

## Prerequisites

Two dependencies are required: **Go 1.24.1+** and **Ignite CLI**.

---

### 1. Install Go

#### Linux (amd64)

```bash
wget https://go.dev/dl/go1.24.1.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.24.1.linux-amd64.tar.gz
rm go1.24.1.linux-amd64.tar.gz
```

If an older Go was installed via apt, remove it first: `sudo apt remove -y golang-go`

#### macOS (Apple Silicon)

```bash
curl -OL https://go.dev/dl/go1.24.1.darwin-arm64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.24.1.darwin-arm64.tar.gz
rm go1.24.1.darwin-arm64.tar.gz
```

#### macOS (Intel)

```bash
curl -OL https://go.dev/dl/go1.24.1.darwin-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.24.1.darwin-amd64.tar.gz
rm go1.24.1.darwin-amd64.tar.gz
```

Alternatively on macOS: `brew install go@1.24`

#### Configure PATH

Add to `~/.profile` (or `~/.zshrc` on macOS):

```bash
export PATH=$PATH:/usr/local/go/bin:~/go/bin
```

Reload: `source ~/.profile` (or `source ~/.zshrc`)

#### Verify

```bash
go version
```

Expected: `go version go1.24.1 linux/amd64` (or `darwin/arm64`, etc.)

---

### 2. Install Ignite CLI

```bash
curl https://get.ignite.com/cli! | bash
```

#### Verify

```bash
ignite version
```

---

### 3. Build structsd

Clone the repository and build:

```bash
git clone https://github.com/playstructs/structsd.git
cd structsd
ignite chain build
```

The binary is installed to `~/go/bin/structsd`. Since `~/go/bin` is on your PATH (from step 1), it's immediately available.

#### Verify

```bash
structsd version
```

---

### 4. Update structsd

To update to the latest version:

```bash
cd structsd
git pull origin main
ignite chain build
```

---

## Quick Check

Run all verifications in sequence:

```bash
go version && ignite version && structsd version
```

If any command fails, revisit the corresponding step above.

## Troubleshooting

- **`structsd: command not found`** — Ensure `~/go/bin` is on your PATH. Run `ls ~/go/bin/structsd` to confirm the binary exists.
- **`ignite: command not found`** — Re-run the Ignite CLI install. The curl command installs to `/usr/local/bin/ignite`.
- **`go: command not found`** — Ensure `/usr/local/go/bin` is on your PATH. Reload your shell profile.
- **Build fails with Go version error** — Verify `go version` shows 1.24.1+. Older Go versions are not compatible.
- **Permission denied on `/usr/local`** — Use `sudo` for the tar extraction. On shared systems, ask your administrator.

## See Also

- [TOOLS](https://structs.ai/TOOLS) — Environment configuration (servers, account, after structsd is installed)
- [structs-onboarding skill](https://structs.ai/skills/structs-onboarding/SKILL) — Player creation and first builds (requires structsd)