From 73cac920ce2a14e72b6ff3be42ae6831264b6b89 Mon Sep 17 00:00:00 2001 From: Snider Date: Sun, 22 Mar 2026 15:25:08 +0000 Subject: [PATCH] refactor(devops): convert install-core-agent from skill to agent task MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../agents/agent-task-install-core-agent.md | 34 ++++++++++++++++++ .../devops/skills/install-core-agent/SKILL.md | 35 ------------------- 2 files changed, 34 insertions(+), 35 deletions(-) create mode 100644 claude/devops/agents/agent-task-install-core-agent.md delete mode 100644 claude/devops/skills/install-core-agent/SKILL.md diff --git a/claude/devops/agents/agent-task-install-core-agent.md b/claude/devops/agents/agent-task-install-core-agent.md new file mode 100644 index 0000000..af7e78f --- /dev/null +++ b/claude/devops/agents/agent-task-install-core-agent.md @@ -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 diff --git a/claude/devops/skills/install-core-agent/SKILL.md b/claude/devops/skills/install-core-agent/SKILL.md deleted file mode 100644 index 53205c5..0000000 --- a/claude/devops/skills/install-core-agent/SKILL.md +++ /dev/null @@ -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