Skip to content

Built by a PhD whose memory was failing, whose diet was a mess, and whose anxiety had its own agenda. Most second brain tools ignore the fact that your brain doesn't work in isolation: your body and your mental health are part of the system too. This crew handles all three: knowledge, nutrition, and mental wellness.

Shell

Generate skills into temp dir to avoid polluting git status

gnekt10ea817aa5a4
diff --git a/scripts/generate-skills.py b/scripts/generate-skills.py
index 8067d60..3ce7abf 100644
--- a/scripts/generate-skills.py
+++ b/scripts/generate-skills.py
@@ -16,7 +16,7 @@ import os, re, sys
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
AGENTS_DIR = os.path.join(ROOT, "agents")
-SKILLS_DIR = os.path.join(ROOT, "skills")
+SKILLS_DIR = os.environ.get("SKILLS_DIR", os.path.join(ROOT, "skills"))
def parse_agent(path: str):
diff --git a/scripts/launchme.sh b/scripts/launchme.sh
index cbc4afb..9617350 100755
--- a/scripts/launchme.sh
+++ b/scripts/launchme.sh
@@ -82,18 +82,24 @@ success "Copied references"
SKILL_COUNT=0
if command -v python3 >/dev/null 2>&1 && [[ -f "$REPO_DIR/scripts/generate-skills.py" ]]; then
info "Generating skills from agents..."
- python3 "$REPO_DIR/scripts/generate-skills.py" >/dev/null 2>&1
-fi
+ SKILLS_TMP="$(mktemp -d)"
+ SKILLS_DIR="$SKILLS_TMP" python3 "$REPO_DIR/scripts/generate-skills.py" >/dev/null 2>&1 || true
+
+ if [[ -d "$SKILLS_TMP" ]] && ls "$SKILLS_TMP"/*/SKILL.md >/dev/null 2>&1; then
+ info "Creating .claude/skills/ in vault..."
+ for skill_dir in "$SKILLS_TMP/"*/; do
+ skill_name="$(basename "$skill_dir")"
+ mkdir -p "$VAULT_DIR/.claude/skills/$skill_name"
+ cp "$skill_dir"* "$VAULT_DIR/.claude/skills/$skill_name/" 2>/dev/null || true
+ SKILL_COUNT=$((SKILL_COUNT + 1))
+ done
+ success "Copied $SKILL_COUNT skills"
+ fi
-if [[ -d "$REPO_DIR/skills" ]]; then
- info "Creating .claude/skills/ in vault..."
- for skill_dir in "$REPO_DIR/skills/"*/; do
- skill_name="$(basename "$skill_dir")"
- mkdir -p "$VAULT_DIR/.claude/skills/$skill_name"
- cp "$skill_dir"* "$VAULT_DIR/.claude/skills/$skill_name/" 2>/dev/null || true
- SKILL_COUNT=$((SKILL_COUNT + 1))
- done
- success "Copied $SKILL_COUNT skills"
+ rm -rf "$SKILLS_TMP"
+else
+ warn "python3 not found — skipped skills generation (Cowork/Desktop won't have skills)"
+ warn "Install Python 3 and re-run this script to enable Cowork/Desktop support"
fi
# ── Copy CLAUDE.md ───────────────────────────────────────────────────────────
diff --git a/scripts/updateme.sh b/scripts/updateme.sh
index f6a6938..c1e455b 100755
--- a/scripts/updateme.sh
+++ b/scripts/updateme.sh
@@ -77,23 +77,28 @@ done
# ── Regenerate and update skills ───────────────────────────────────────────
SKILL_COUNT=0
if command -v python3 >/dev/null 2>&1 && [[ -f "$REPO_DIR/scripts/generate-skills.py" ]]; then
- python3 "$REPO_DIR/scripts/generate-skills.py" >/dev/null 2>&1
-fi
+ SKILLS_TMP="$(mktemp -d)"
+ SKILLS_DIR="$SKILLS_TMP" python3 "$REPO_DIR/scripts/generate-skills.py" >/dev/null 2>&1 || true
-if [[ -d "$REPO_DIR/skills" ]]; then
- for skill_dir in "$REPO_DIR/skills/"*/; do
- skill_name="$(basename "$skill_dir")"
- src="$skill_dir/SKILL.md"
- dst="$VAULT_DIR/.claude/skills/$skill_name/SKILL.md"
- if [[ -f "$src" ]]; then
- if [[ ! -f "$dst" ]] || ! diff -q "$src" "$dst" >/dev/null 2>&1; then
- mkdir -p "$VAULT_DIR/.claude/skills/$skill_name"
- cp "$src" "$dst"
- info "Updated skill: $skill_name"
- SKILL_COUNT=$((SKILL_COUNT + 1))
+ if [[ -d "$SKILLS_TMP" ]] && ls "$SKILLS_TMP"/*/SKILL.md >/dev/null 2>&1; then
+ for skill_dir in "$SKILLS_TMP/"*/; do
+ skill_name="$(basename "$skill_dir")"
+ src="$skill_dir/SKILL.md"
+ dst="$VAULT_DIR/.claude/skills/$skill_name/SKILL.md"
+ if [[ -f "$src" ]]; then
+ if [[ ! -f "$dst" ]] || ! diff -q "$src" "$dst" >/dev/null 2>&1; then
+ mkdir -p "$VAULT_DIR/.claude/skills/$skill_name"
+ cp "$src" "$dst"
+ info "Updated skill: $skill_name"
+ SKILL_COUNT=$((SKILL_COUNT + 1))
+ fi
fi
- fi
- done
+ done
+ fi
+
+ rm -rf "$SKILLS_TMP"
+else
+ warn "python3 not found — skipped skills update"
fi
# ── Update CLAUDE.md ──────────────────────────────────────────────────────