AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
Python ai-promptsai-skillblueskyclaudeclaude-codeclawhubdeep-researchhackernewsinstagramopenclawpolymarketrecencyredditresearchsocial-mediatiktoktrendstwitterweb-searchyoutube
fix(skill): use find instead of ls+glob in cache resolvers (zsh compatibility)
Trevin Chow6c2c55733c27
diff --git a/skills/last30days/SKILL.md b/skills/last30days/SKILL.mdindex 1422be62..be86600f 100644--- a/skills/last30days/SKILL.md+++ b/skills/last30days/SKILL.md@@ -67,7 +67,7 @@ Before reading anything else in this file, check whether you loaded SKILL.md fro**Run this check:**```bash-CLAUDE_CACHE_LATEST=$(ls -d "$HOME/.claude/plugins/cache/last30days-skill/last30days"/*/ 2>/dev/null | sort -V | tail -1)+CLAUDE_CACHE_LATEST=$(find "$HOME/.claude/plugins/cache/last30days-skill/last30days" -mindepth 1 -maxdepth 1 -type d 2>/dev/null | sort -V | tail -1)CLAUDE_CACHE_LATEST="${CLAUDE_CACHE_LATEST%/}"echo "CLAUDE_CACHE_LATEST=$CLAUDE_CACHE_LATEST"```@@ -586,8 +586,7 @@ When the user asks "X vs Y" (or "X vs Y vs Z"), the engine fans out N full `pipe# Comparison mode skips Step 1, so resolve SKILL_ROOT inline here (same precedence# walk as Step 1 — keep the two in sync if you edit either).SKILL_ROOT=""-CLAUDE_PLUGIN_ROOT="$(ls -d "$HOME/.claude/plugins/cache/last30days-skill/last30days/"*/ 2>/dev/null | sort -V | tail -1)"-CLAUDE_PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT%/}"+CLAUDE_PLUGIN_ROOT="$(find "$HOME/.claude/plugins/cache/last30days-skill/last30days" -mindepth 1 -maxdepth 1 -type d 2>/dev/null | sort -V | tail -1)"if [ -n "$CLAUDE_PLUGIN_ROOT" ]; thenif [ -f "$CLAUDE_PLUGIN_ROOT/skills/last30days/scripts/last30days.py" ]; thenSKILL_ROOT="$CLAUDE_PLUGIN_ROOT/skills/last30days"@@ -900,8 +899,9 @@ SKILL_ROOT=""# 1. Claude Code plugin cache (versioned, sort -V picks freshest). Two cache layouts ship in the wild:# nested ({cache}/{version}/skills/last30days/scripts/...) and flat ({cache}/{version}/scripts/...).-CLAUDE_PLUGIN_ROOT="$(ls -d "$HOME/.claude/plugins/cache/last30days-skill/last30days/"*/ 2>/dev/null | sort -V | tail -1)"-CLAUDE_PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT%/}"+# `find` (not `ls + glob`) because zsh errors on globs that match nothing, leaking+# noisy "no matches found" stderr in Codex/zsh sessions even with 2>/dev/null.+CLAUDE_PLUGIN_ROOT="$(find "$HOME/.claude/plugins/cache/last30days-skill/last30days" -mindepth 1 -maxdepth 1 -type d 2>/dev/null | sort -V | tail -1)"if [ -n "$CLAUDE_PLUGIN_ROOT" ]; thenif [ -f "$CLAUDE_PLUGIN_ROOT/skills/last30days/scripts/last30days.py" ]; thenSKILL_ROOT="$CLAUDE_PLUGIN_ROOT/skills/last30days"