From e355c3a090acdaa954591c1aa02d29931e370203 Mon Sep 17 00:00:00 2001 From: lukabor Date: Wed, 10 Jun 2026 22:38:05 +0200 Subject: [PATCH] feat(skills): add cavecrew-octobot skill Document the caveman: namespace prefix required to invoke cavecrew subagents (the gotcha behind "Agent type not found"), with copy-paste invocation examples and octobot defaults (review current jj diff, commit edits via jj-atomic). --- skills/productivity/cavecrew-octobot/SKILL.md | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 skills/productivity/cavecrew-octobot/SKILL.md diff --git a/skills/productivity/cavecrew-octobot/SKILL.md b/skills/productivity/cavecrew-octobot/SKILL.md new file mode 100644 index 0000000..f0f9e1c --- /dev/null +++ b/skills/productivity/cavecrew-octobot/SKILL.md @@ -0,0 +1,72 @@ +--- +name: cavecrew-octobot +description: > + How to actually invoke the caveman cavecrew subagents (investigator / builder + / reviewer) without the "agent type not found" error, plus octobot defaults + (review the current jj diff, commit edits via jj-atomic). The plugin's + `cavecrew` skill covers WHEN to delegate; this covers HOW to call them in + octobot. Use when the user says "use cavecrew", "review my diff", "cavecrew + review", "spawn investigator/builder/reviewer", or an inline call to a + cavecrew agent failed with an unknown-agent-type error. +--- + +# cavecrew-octobot + +## When to use +- User says "use cavecrew", "cavecrew review", "review my diff/branch". +- You want to spawn `cavecrew-investigator` / `-builder` / `-reviewer`. +- An `Agent` call failed with `Agent type '...' not found`. + +For *which* agent fits *which* task (the decision matrix + output contracts), +read the plugin skill `cavecrew` — don't duplicate it here. + +## The one gotcha: the `caveman:` namespace + +The cavecrew agents are plugin-namespaced. The `Agent` tool's `subagent_type` +**must** be the fully-qualified name, or the call errors: + +- ✅ `caveman:cavecrew-reviewer` +- ✅ `caveman:cavecrew-investigator` +- ✅ `caveman:cavecrew-builder` +- ❌ `cavecrew-reviewer` → `Agent type 'cavecrew-reviewer' not found` + +The error message lists the valid names — if you see it, re-call with the +`caveman:` prefix. (The plugin `cavecrew` skill writes the bare names in prose; +that prose is not the invocation string.) + +## How to call (copy these) + +Review the current working diff (octobot default action): + +> Agent tool — subagent_type: `caveman:cavecrew-reviewer` +> prompt: "Review the diff from `jj diff` (or `jj diff -r @-` for the last +> commit) for correctness bugs. Files: . Context: must honor>. Report findings only, severity-tagged, with fixes." + +Locate code before editing: + +> subagent_type: `caveman:cavecrew-investigator` +> prompt: "Where is defined and what calls it? Return file:line table." + +Surgical ≤2-file edit at a known site: + +> subagent_type: `caveman:cavecrew-builder` +> prompt: " at . Re-read to verify." + +Run independent calls in **one message** (multiple Agent tool uses) so they +fan out concurrently. + +## octobot conventions +- **Default action** when asked to "review": pull the diff with `jj diff` + (uncommitted) or `jj diff -r @-` (last change), hand the paths + the contracts + the code must honor to `caveman:cavecrew-reviewer`. Relay the findings — the + subagent result is not shown to the user. +- **After a `cavecrew-builder` edit**, commit via the `jj-atomic` skill + (`type(scope): imperative`), one concern per change. The builder edits; it + does not commit. +- **Don't** ask the reviewer for architecture opinions — it returns findings + only. Use a vanilla reviewer for prose. + +## Verify +- The `Agent` call used a `caveman:`-prefixed `subagent_type`. +- A review pass named the diff source (`jj diff` / `-r @-`) in its prompt.