Skill for developing AI agent engine components in internal/agent/. Covers the ReAct loop, swarm delegation, planning, verification, memory reflection, and cron automation.
中文简介正在准备中。当前显示原文说明。
Skill for building ActonOS: Web UI → Go binary → Docker image → ISO. Covers the entire build pipeline.
中文简介正在准备中。当前显示原文说明。
安装前可以查看交给 AI 代理的指令内容。
Use this skill when building ActonOS artifacts: the frontend, Go binary, Docker image, or bare-metal ISO.
make deps → make lint → make test → make test-race (Linux CI) → make build-web → make build → make docker → make iso
| Target | What It Does | Output |
|---|---|---|
make deps | Install Go + Node dependencies | — |
make lint | Run Go vet, gofmt, golangci-lint, ESLint | — |
make test | Run all tests (unit + integration) | build/coverage.out |
make test-race | Run the Linux CGO race detector | Required CI gate |
make build-web | Build React frontend (Vite production) | web/dist/ |
make build | Build full actond binary (includes web) | build/actond |
make build-only | Build Go binary only (skip web rebuild) | build/actond |
make docker | Build Docker image | actonos/actonos:VERSION |
make iso | Build bare-metal installation ISO | build/ActonOS-vVERSION.iso |
make all | Full pipeline: lint → test → build | build/actond |
The Go binary embeds version metadata via linker flags (-ldflags):
LDFLAGS := -s -w \
-X main.Version=$(VERSION) \
-X main.GitCommit=$(GIT_COMMIT)$(GIT_DIRTY) \
-X main.BuildTime=$(BUILD_TIME)
These are read from:
VERSION file → main.Versiongit rev-parse --short HEAD → main.GitCommitdate -u → main.BuildTimemake build-web
# Runs: cd web && npm run build
# Output: web/dist/ (compressed static assets)
The frontend is built with Vite and produces gzip/brotli compressed assets that are embedded into the Go binary via go:embed.
make build
# Runs: CGO_ENABLED=0 go build -trimpath -ldflags '...' -o build/actond ./cmd/actond/
Critical: Always build with CGO_ENABLED=0 for a fully static binary.
# Linux AMD64 (default target for MiniPC/Docker)
GOOS=linux GOARCH=amd64 make build
# Linux ARM64 (for ARM-based devices)
GOOS=linux GOARCH=arm64 make build
make docker
# Output: actonos/actonos:VERSION and actonos/actonos:latest
The Dockerfile uses multi-stage build:
# Requires: Debian/Ubuntu host with live-build and debootstrap
make iso
# Runs: bash scripts/build-iso.sh
# Output: build/ActonOS-vVERSION.iso
The built frontend assets are embedded into the Go binary:
// internal/server/static.go
//go:embed all:../../../web/dist
var embeddedAssets embed.FS
The layered_fs.go module implements a layered filesystem that checks /data/overrides/ before falling back to embedded assets, allowing runtime UI customization.
# Check binary version
./build/actond --version
# Check binary size
ls -lh build/actond
# Check it's truly static (no dynamic linking)
file build/actond
# Expected: "ELF 64-bit LSB executable, x86-64, statically linked"
# Quick smoke test
./build/actond --data-dir=./dev-data --log-level=debug &
curl http://localhost:8080/api/health
kill %1
| Issue | Cause | Solution |
|---|---|---|
web/dist not found | Frontend not built | Run make build-web first |
CGO required | Using mattn/go-sqlite3 | Use modernc.org/sqlite instead |
go:embed pattern matches no files | Empty web/dist/ | Build frontend first |
| Binary not static | CGO_ENABLED=1 | Set CGO_ENABLED=0 |
| Docker build OOM | Low memory during Go build | Increase Docker memory limit |
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Skill for developing AI agent engine components in internal/agent/. Covers the ReAct loop, swarm delegation, planning, verification, memory reflection, and cron automation.
中文简介正在准备中。当前显示原文说明。
Skill for developing REST API endpoints in internal/server/. Covers routing, request validation, WebSocket streaming, and API conventions.
中文简介正在准备中。当前显示原文说明。
Skill for developing messaging channel adapters via WASM Plugins and managing routing, session state, pairing codes, and accounts in internal/channels/.
中文简介正在准备中。当前显示原文说明。
Skill for developing the ActonOS React 19 + Tailwind v4 frontend adhering to the official DESIGN.md specification. Covers design tokens, component decomposition, zero-hardcoded-text i18n, and go:embed delivery.
中文简介正在准备中。当前显示原文说明。
Skill for creating ActonOS releases. Covers version bumping, changelog management, git tagging, Docker image publishing, and ISO creation.
中文简介正在准备中。当前显示原文说明。
Skill for initial ActonOS project setup, environment verification, and dependency installation.
中文简介正在准备中。当前显示原文说明。