Skip to content

An agentic skills framework & software development methodology that works.

Auto-install brainstorm server dependencies on first run

Jesse Vincent5e2a89e985eb
diff --git a/skills/brainstorming/scripts/start-server.sh b/skills/brainstorming/scripts/start-server.sh
index 00c337998..b0d98d376 100755
--- a/skills/brainstorming/scripts/start-server.sh
+++ b/skills/brainstorming/scripts/start-server.sh
@@ -88,6 +88,11 @@ fi
cd "$SCRIPT_DIR"
+# Auto-install dependencies if missing
+if [[ ! -d "node_modules" ]]; then
+ npm install --production --no-fund --no-audit 2>&1 | tail -1 >&2
+fi
+
# Foreground mode for environments that reap detached/background processes.
if [[ "$FOREGROUND" == "true" ]]; then
echo "$$" > "$PID_FILE"