Skip to content

Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.

Fix cross-CLI installer docs and skip undetected agents (#825)

Copilot23c613d8c06d
diff --git a/README.md b/README.md
index 81a2f323..1a096210 100644
--- a/README.md
+++ b/README.md
@@ -94,7 +94,10 @@ Per-repo budget caps (default 3/hour), single-flight locks, and content-hash ded
### Cross-CLI install (Claude Code + Codex + Gemini + OpenClaw + Hermes + OpenCode)
```bash
-npx claude-ops-installer install
+git clone https://github.com/Lifecycle-Innovations-Limited/claude-ops.git
+cd claude-ops/installer
+npm install
+node bin/claude-ops-installer.mjs install
```
One command mirrors upstream skills + binstubs into every detected CLI's expected layout from a single central config (`~/.config/claude-ops-installer/config.yaml`). See [`installer/README.md`](./installer/README.md) for the schema, supported agents, and `verify` / `doctor` / `update` / `uninstall` subcommands.
diff --git a/installer/README.md b/installer/README.md
index 4986f84b..c9ebc0a9 100644
--- a/installer/README.md
+++ b/installer/README.md
@@ -2,8 +2,11 @@
Install, update, and verify the [claude-ops](https://github.com/Lifecycle-Innovations-Limited/claude-ops) plugin across Claude Code, Codex, Gemini CLI, OpenClaw, Hermes, and OpenCode from one command.
-```
-npx claude-ops-installer install
+```bash
+git clone https://github.com/Lifecycle-Innovations-Limited/claude-ops.git
+cd claude-ops/installer
+npm install
+node bin/claude-ops-installer.mjs install
```
## What it does
@@ -53,12 +56,12 @@ version: 1
source:
type: git
url: https://github.com/Lifecycle-Innovations-Limited/claude-ops.git
- ref: v2.43.0
+ ref: v3.4.2
agents:
claude: { enabled: true }
codex: { enabled: true, path: ~/.codex/skills }
- gemini: { enabled: false, path: ~/.gemini/skills }
+ gemini: { enabled: true, path: ~/.gemini/skills }
openclaw: { enabled: true, path: ~/.openclaw/skills }
hermes: { enabled: true, flat: ~/.hermes/skills, nested: ~/.hermes/skills/ops }
opencode: { enabled: false, path: ~/.config/opencode/skills }
diff --git a/installer/src/config.mjs b/installer/src/config.mjs
index ff45e657..b220a62d 100644
--- a/installer/src/config.mjs
+++ b/installer/src/config.mjs
@@ -17,12 +17,12 @@ export const DEFAULT_CONFIG = {
source: {
type: "git",
url: "https://github.com/Lifecycle-Innovations-Limited/claude-ops.git",
- ref: "v2.43.0",
+ ref: "v3.4.2",
},
agents: {
claude: { enabled: true, type: "marketplace" },
codex: { enabled: true, type: "flat", path: "~/.codex/skills" },
- gemini: { enabled: false, type: "flat", path: "~/.gemini/skills" },
+ gemini: { enabled: true, type: "flat", path: "~/.gemini/skills" },
openclaw: { enabled: true, type: "flat", path: "~/.openclaw/skills" },
hermes: {
enabled: true,
diff --git a/installer/src/dispatch.mjs b/installer/src/dispatch.mjs
index 3e659f2c..5c916963 100644
--- a/installer/src/dispatch.mjs
+++ b/installer/src/dispatch.mjs
@@ -38,11 +38,22 @@ function pickAgents(cfg, onlyNames) {
return out;
}
-function planAll({ cfg, srcDir, agents, force, dryRun }) {
+export function planAll({
+ cfg,
+ srcDir,
+ agents,
+ force,
+ dryRun,
+ skipUndetected = false,
+}) {
const skillNames = listSourceSkills(srcDir);
const binNames = listSourceBin(srcDir);
const plan = { agents: {}, bin: null, errors: [] };
for (const [name, a] of Object.entries(agents)) {
+ if (skipUndetected && !a.installed) {
+ plan.agents[name] = { skipped: true, reason: "not detected" };
+ continue;
+ }
if (!a.skillsPath) {
plan.agents[name] = { skipped: true, reason: "no skillsPath" };
continue;
@@ -188,6 +199,7 @@ export async function runInstall(flags) {
agents,
force: !!flags.force,
dryRun: !!flags.dryRun,
+ skipUndetected: !flags.agents || flags.agents.length === 0,
});
applyAll({ plan, dryRun: !!flags.dryRun, cfg });
emit(plan, !!flags.json);
diff --git a/installer/test/smoke.mjs b/installer/test/smoke.mjs
index 8724de30..e4bdc463 100644
--- a/installer/test/smoke.mjs
+++ b/installer/test/smoke.mjs
@@ -8,6 +8,7 @@ import { loadConfig } from "../src/config.mjs";
import { listSourceSkills, listSourceBin } from "../src/source.mjs";
import { planBinLinks, applyBinLinks } from "../src/bin.mjs";
import { planMirror } from "../src/mirror.mjs";
+import { planAll } from "../src/dispatch.mjs";
import {
loadManifest,
saveManifest,
@@ -34,6 +35,13 @@ assert(
Object.keys(cfg.agents).length === 6,
`config has 6 agents (got ${Object.keys(cfg.agents).length})`,
);
+// Shape, not a literal: pinning the exact tag here means every release breaks
+// this test.
+assert(
+ /^v\d+\.\d+\.\d+$/.test(cfg.source.ref),
+ `default source ref is a release tag (got ${cfg.source.ref})`,
+);
+assert(cfg.agents.gemini.enabled, "gemini enabled by default");
// 2. Source listing — skills dir present
const skills = listSourceSkills(SRC);
@@ -102,6 +110,34 @@ try {
fs.existsSync(path.join(scratch, "bin", "ops-inbox-scan")),
"ops-inbox-scan binstub present in scratch",
);
+
+ // 4. Detection-gated planning skips undetected agents by default.
+ const detectedPath = path.join(scratch, "detected-agent");
+ const undetectedPath = path.join(scratch, "undetected-agent");
+ const installPlan = planAll({
+ cfg: { bin: null },
+ srcDir: SRC,
+ agents: {
+ codex: { installed: true, skillsPath: detectedPath },
+ openclaw: { installed: false, skillsPath: undetectedPath },
+ },
+ force: false,
+ dryRun: true,
+ skipUndetected: true,
+ });
+ assert(
+ installPlan.agents.openclaw?.skipped &&
+ installPlan.agents.openclaw.reason === "not detected",
+ "undetected agent is skipped during install planning",
+ );
+ assert(
+ fs.existsSync(detectedPath),
+ "detected agent target directory is prepared",
+ );
+ assert(
+ !fs.existsSync(undetectedPath),
+ "undetected agent target directory is not created",
+ );
} finally {
fs.rmSync(scratch, { recursive: true, force: true });
}