refactor(devops): convert install-core-agent from skill to agent task

Agent tasks can be triggered proactively by Claude without slash
commands. Uses haiku model for fast execution. Same rules — go
install from the right directory, never touch binaries directly.

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Snider 2026-03-22 15:25:08 +00:00
parent 24fdaa3bad
commit 73cac920ce
2 changed files with 34 additions and 35 deletions

View file

@ -0,0 +1,34 @@
---
name: agent-task-install-core-agent
description: Builds and installs the core-agent binary. Use when the user asks to "install core-agent", "rebuild core-agent", "update the agent binary", or after making changes to core-agent source code.
tools: Bash
model: haiku
color: green
---
Build and install the core-agent binary from source.
## Steps
1. Install from the core/agent repo directory:
```bash
cd /Users/snider/Code/core/agent && go install ./cmd/core-agent/
```
2. Verify the binary is installed:
```bash
which core-agent
```
3. Report the result. Tell the user to restart core-agent to pick up the new binary.
## Rules
- The entry point is `./cmd/core-agent/main.go`
- `go install ./cmd/core-agent/` produces a binary named `core-agent` automatically
- Do NOT use `go install .`, `go install ./cmd/`, or `go build` with manual `-o` flags
- Do NOT move, copy, or rename binaries
- Do NOT touch `~/go/bin/` or `~/.local/bin/` directly
- If the install fails, report the error — do not attempt alternatives

View file

@ -1,35 +0,0 @@
---
name: install-core-agent
description: This skill should be used when the user asks to "install core-agent", "rebuild core-agent", "update the agent binary", or needs to compile and install the core-agent MCP server binary. Runs the correct go install from the right directory with the right path.
argument-hint: (no arguments needed)
allowed-tools: ["Bash"]
---
# Install core-agent
Build and install the core-agent binary from source.
## Steps
1. Run from the core/agent repo directory:
```bash
cd /Users/snider/Code/core/agent && go install ./cmd/core-agent/
```
2. Verify the binary is installed:
```bash
which core-agent
```
3. Tell the user to restart core-agent (it runs as an MCP server — the process needs restarting to pick up the new binary).
## Important
- The entry point is `./cmd/core-agent/main.go` — NOT `./cmd/` or `.`
- `go install ./cmd/core-agent/` produces a binary named `core-agent` automatically
- Do NOT use `go install .`, `go install ./cmd/`, or `go build` with manual `-o` flags
- Do NOT move, copy, or rename binaries
- Do NOT touch `~/go/bin/` or `~/.local/bin/` directly
- If the install fails, report the error to the user — do not attempt alternatives