← 返回 Skills 市场
solidexu

Go Install

作者 solidexu · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
285
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install go-install
功能描述
Install Go 1.22 compiler on Linux, configure environment variables, and provide commands for development, testing, building, and dependency management.
使用说明 (SKILL.md)

name: go-install version: 1.0.0 description: Install Go compiler on Linux for Go project compilation and testing

Go Compiler Installation

Install Go compiler on Linux for Go project development, compilation, and testing.

Use Cases

  • Go project development
  • Running unit tests
  • Compiling Go programs

Installation Steps

1. Check System Architecture

uname -m
# x86_64 = amd64
# aarch64 = arm64

2. Download and Install

amd64 (x86_64):

cd /tmp
curl -LO https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
tar -xzf go1.22.0.linux-amd64.tar.gz
mv go ~/go-sdk
rm go1.22.0.linux-amd64.tar.gz

arm64 (aarch64):

cd /tmp
curl -LO https://go.dev/dl/go1.22.0.linux-arm64.tar.gz
tar -xzf go1.22.0.linux-arm64.tar.gz
mv go ~/go-sdk
rm go1.22.0.linux-arm64.tar.gz

3. Configure Environment Variables

export PATH=$PATH:~/go-sdk/bin
export GOPATH=~/go
export GOROOT=~/go-sdk

4. Persist Configuration

Add to ~/.bashrc or ~/.profile:

echo 'export PATH=$PATH:~/go-sdk/bin' >> ~/.bashrc
echo 'export GOPATH=~/go' >> ~/.bashrc
echo 'export GOROOT=~/go-sdk' >> ~/.bashrc

5. Verify Installation

go version
go env GOPATH GOROOT

Common Commands

# Run tests
go test ./...

# Run tests with verbose output
go test ./... -v

# Build project
go build -o \x3Coutput> ./cmd/\x3Centry>

# Download dependencies
go mod download

# Tidy dependencies
go mod tidy

Resource Requirements

Item Value
Download Size ~65MB
Extracted Size ~300MB
Memory 512MB minimum
CPU Single core sufficient

Notes

  1. Go has no runtime dependencies, single binary
  2. Extremely fast compilation, ideal for CI/CD
  3. Recommended to use LTS version (e.g., 1.22.x)
  4. GOPATH directory is auto-created

Version Selection

Version Description
go1.22.x LTS stable (recommended)
go1.21.x Previous stable
go1.23.x Latest

Download: https://go.dev/dl/\r --------------------------0aa845c205f28859--\r

安全使用建议
This skill is coherent for installing Go, but review and run the commands yourself rather than blindly pasting them. Specific recommendations: 1) Verify the downloaded tarball (compare SHA256 checksums from https://go.dev/dl/) before extracting to avoid tampered downloads. 2) If you have a prior Go installation, check and handle it (the instructions install to ~/go-sdk, not /usr/local/go). 3) Create GOPATH (mkdir -p ~/go) if you want that directory present. 4) Append exports to the correct shell rc for your shell (bash, zsh, etc.), then source the file or restart your shell. 5) Prefer the platform package manager or your organization’s approved distribution method if you need system-wide, managed installs. Only run the exact URLs from the official go.dev site.
功能分析
Type: OpenClaw Skill Name: go-install Version: 1.0.0 The skill bundle provides standard instructions for installing the Go compiler on Linux. It downloads official binaries from go.dev, configures environment variables in ~/.bashrc, and provides common Go development commands, all of which are consistent with its stated purpose (SKILL.md).
能力评估
Purpose & Capability
Name/description match the instructions: the SKILL.md only downloads the Go tarball from the official go.dev site, extracts it to a user directory, and configures environment variables and common go commands — all expected for a Go installer.
Instruction Scope
Instructions remain within the installer scope (download, extract, move to ~/go-sdk, export PATH/GOROOT/GOPATH, append to ~/.bashrc). They do modify the user's shell config (~/.bashrc) which is expected for installation but should be noted. The instructions do not perform any system-wide actions or access secrets. One omission: the script does not verify the archive integrity/signature (no SHA256/GPG verification) before extracting, which is a security best-practice gap.
Install Mechanism
This is an instruction-only skill (no install spec). The download URLs point to the official go.dev domain (good). However, the instructions rely on curl and tar without recommending checksum or signature verification of the downloaded archive.
Credentials
The skill requests no credentials or environment variables. It instructs the user to set PATH, GOPATH, and GOROOT which are normal and necessary for Go development and proportionate to the stated purpose.
Persistence & Privilege
always is false and the skill does not request elevated or persistent platform privileges. It writes to the invoking user's shell rc (~/.bashrc), which is a standard local installation-side effect and within scope.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install go-install
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /go-install 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release - English version
元数据
Slug go-install
版本 1.0.0
许可证 MIT-0
累计安装 5
当前安装数 3
历史版本数 1
常见问题

Go Install 是什么?

Install Go 1.22 compiler on Linux, configure environment variables, and provide commands for development, testing, building, and dependency management. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 285 次。

如何安装 Go Install?

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

Go Install 是免费的吗?

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

Go Install 支持哪些平台?

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

谁开发了 Go Install?

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

💬 留言讨论