install
Build and install asylum for the host platform from the current source tree. Use when the user wants to test local changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build and install asylum for the host platform from the current source tree. Use when the user wants to test local changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | install |
| description | Build and install asylum for the host platform from the current source tree. Use when the user wants to test local changes. |
| disable-model-invocation | true |
Build asylum from the current source and install it to the host's ~/.asylum/bin/.
Steps
Detect the host platform
Detect the host OS and architecture:
/proc/version for "linuxkit" — if present, host is darwin, otherwise linuxuname -m — map aarch64/arm64 to arm64, x86_64/amd64 to amd64Get the current commit
Run git rev-parse --short HEAD to get the commit hash.
Build the binary
Cross-compile for the host platform:
GOOS=<os> GOARCH=<arch> go build -ldflags "-X main.version=local -X main.commit=<commit>" -o build/asylum ./cmd/asylum
Install
Copy the binary to ~/.asylum/bin/asylum:
cp build/asylum ~/.asylum/bin/asylum
The host's install script already set up the symlink from /usr/local/bin/asylum to ~/.asylum/bin/asylum, so no symlink management needed.
Verify
Run ~/.asylum/bin/asylum --version to confirm the build.
Report
Show the version string and confirm installation.
Create a commit from current changes with an appropriate message. Handles OpenSpec change lifecycle (verify, archive) and CHANGELOG updates automatically.
Create a new release — updates CHANGELOG.md, commits, and tags. Use when the user wants to cut a release.
Finalize a change - archive if needed, commit if needed, rebase onto main and fast-forward main.