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
Restructure as Codex plugin
Claire Novotny72495c1c147e
diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.jsonnew file mode 100644index 00000000..858bfc62--- /dev/null+++ b/.agents/plugins/marketplace.json@@ -0,0 +1,20 @@+{+ "name": "last30days-skill",+ "interface": {+ "displayName": "Last 30 Days"+ },+ "plugins": [+ {+ "name": "last30days",+ "source": {+ "source": "local",+ "path": "./"+ },+ "policy": {+ "installation": "AVAILABLE",+ "authentication": "ON_INSTALL"+ },+ "category": "Research"+ }+ ]+}diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex c5448497..f51866e7 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -10,7 +10,7 @@{"name": "last30days","description": "Research any topic across Reddit, X, YouTube, TikTok, Instagram, HN, Polymarket, GitHub, and 5+ more sources.",- "version": "3.0.9",+ "version": "3.0.10","author": {"name": "Matt Van Horn","url": "https://github.com/mvanhorn"diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.jsonindex c9d60bf0..8399d763 100644--- a/.codex-plugin/plugin.json+++ b/.codex-plugin/plugin.json@@ -1,3 +1,43 @@{- "name": "last30days"+ "name": "last30days",+ "version": "3.0.10",+ "description": "Research any topic across Reddit, X, YouTube, TikTok, Instagram, Hacker News, Polymarket, GitHub, and more sources.",+ "author": {+ "name": "Matt Van Horn",+ "email": "[email protected]",+ "url": "https://github.com/mvanhorn"+ },+ "homepage": "https://github.com/mvanhorn/last30days-skill",+ "repository": "https://github.com/mvanhorn/last30days-skill",+ "license": "MIT",+ "keywords": [+ "research",+ "reddit",+ "twitter",+ "youtube",+ "tiktok",+ "instagram",+ "trends",+ "polymarket",+ "github",+ "hacker-news"+ ],+ "skills": "./skills/",+ "interface": {+ "displayName": "Last 30 Days",+ "shortDescription": "Research recent discussion across social and web sources",+ "longDescription": "Use Last 30 Days to research what people are saying, upvoting, sharing, and betting on across Reddit, X, YouTube, TikTok, Instagram, Hacker News, Polymarket, GitHub, and web sources.",+ "developerName": "Matt Van Horn",+ "category": "Research",+ "capabilities": [+ "Interactive",+ "Read",+ "Write"+ ],+ "websiteURL": "https://github.com/mvanhorn/last30days-skill",+ "privacyPolicyURL": "https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement",+ "termsOfServiceURL": "https://docs.github.com/en/site-policy/github-terms/github-terms-of-service",+ "defaultPrompt": "Use Last 30 Days to research this topic from the last 30 days across Reddit, X, YouTube, and web.",+ "brandColor": "#FF6B35"+ }}diff --git a/.gitattributes b/.gitattributesindex 06fa5fc0..5b0fff72 100644--- a/.gitattributes+++ b/.gitattributes@@ -1,5 +1,6 @@# Exclude non-runtime files from `git archive` output.-# Used by scripts/build-skill.sh to produce a claude.ai-upload-ready .skill file.+# Used by skills/last30days/scripts/build-skill.sh to produce a+# claude.ai-upload-ready .skill file from the canonical skills/last30days tree.# See docs/plans/2026-04-14-001-fix-skill-upload-200-file-limit-plan.md.# Anthropic canonical skill-packaging excludes@@ -32,9 +33,8 @@ release-notes.md export-ignoreCHANGELOG.md export-ignoreuv.lock export-ignore-# Platform adapters - skill-upload path is platform-agnostic-.agents/ export-ignore-.codex-plugin/ export-ignore+# Platform adapters are kept in git archives because Claude Code and Codex+# plugin installs use the same repository archive as their source payload..hermes-plugin/ export-ignore# CI workflows - repo-only, not needed at skill runtimediff --git a/CHANGELOG.md b/CHANGELOG.mdindex dbe17359..fe0ec3e3 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -78,6 +78,7 @@ Individual changelog entries for 3.0.10 through 3.0.14 below document the increm### Fixed- **TikTok author preference.** `_fetch_post_comments` in `scripts/lib/tiktok.py` preferred `user.nickname` over `user.unique_id`, so the engine captured display names ("Moosa Noormahomed") instead of @handles ("moosanoormahomed"). Flipped to prefer `unique_id`. Nickname still wins as a fallback when `unique_id` is missing. Display names can contain emoji, spaces, and non-Latin characters that do not round-trip to a profile URL; the @handle is the stable identifier.+- **Single plugin payload layout.** The canonical runtime moved to `skills/last30days/` for both Claude Code and Codex plugin loading. Root-level `SKILL.md`, `scripts/`, `agents/`, and `assets/` are no longer maintained as duplicate copies.### Behavior fallbackdiff --git a/CLAUDE.md b/CLAUDE.mdindex 42427aaf..410e382d 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -4,20 +4,20 @@ Claude Code skill for researching any topic across Reddit, X, YouTube, and web.Python scripts with multi-source search aggregation.## Structure-- `scripts/last30days.py` — main research engine-- `scripts/lib/` — search, enrichment, rendering modules-- `scripts/lib/vendor/bird-search/` — vendored X search client-- `SKILL.md` — skill definition (deployed to ~/.claude/skills/last30days/)+- `skills/last30days/SKILL.md` — canonical skill definition+- `skills/last30days/scripts/last30days.py` — main research engine+- `skills/last30days/scripts/lib/` — search, enrichment, rendering modules+- `skills/last30days/scripts/lib/vendor/bird-search/` — vendored X search client## Commands```bash-python3 scripts/last30days.py "test query" --emit=compact # Run research-bash scripts/sync.sh # Deploy to ~/.claude, ~/.agents, ~/.codex+python3 skills/last30days/scripts/last30days.py "test query" --emit=compact+bash skills/last30days/scripts/sync.sh```## Rules- `lib/__init__.py` must be bare package marker (comment only, NO eager imports)-- After edits: run `bash scripts/sync.sh` to deploy+- After edits: run `bash skills/last30days/scripts/sync.sh` to deploy- Git remote: origin = public (`mvanhorn/last30days-skill`)## Beta channeldiff --git a/HERMES_SETUP.md b/HERMES_SETUP.mdindex 0e0e5035..ce0d36b3 100644--- a/HERMES_SETUP.md+++ b/HERMES_SETUP.md@@ -18,7 +18,7 @@ git clone https://github.com/mvanhorn/last30days-skill.gitcd last30days-skill# Run the sync script-bash scripts/sync.sh+bash skills/last30days/scripts/sync.sh```This will auto-detect Hermes and deploy to `~/.hermes/skills/research/last30days/`@@ -30,8 +30,8 @@ This will auto-detect Hermes and deploy to `~/.hermes/skills/research/last30daysmkdir -p ~/.hermes/skills/research/last30days# Copy files-cp -r scripts ~/.hermes/skills/research/last30days/-cp .hermes-plugin/SKILL.md ~/.hermes/skills/research/last30days/+cp skills/last30days/SKILL.md ~/.hermes/skills/research/last30days/+cp -r skills/last30days/scripts ~/.hermes/skills/research/last30days/```## Usage@@ -111,7 +111,7 @@ To update to the latest version:```bashcd last30days-skillgit pull-bash scripts/sync.sh+bash skills/last30days/scripts/sync.sh```## Supportdiff --git a/README.md b/README.mdindex a77251d9..dc45cd9b 100644--- a/README.md+++ b/README.md@@ -189,7 +189,7 @@ gemini extensions install ./last30days-skillgit clone https://github.com/mvanhorn/last30days-skill.git ~/.claude/skills/last30days```-Or build the claude.ai `.skill` file from source: `bash scripts/build-skill.sh` produces `dist/last30days.skill`.+Or build the claude.ai `.skill` file from source: `bash skills/last30days/scripts/build-skill.sh` produces `dist/last30days.skill`.Reddit (with comments), Hacker News, Polymarket, and GitHub work immediately. Zero configuration. Run `/last30days` once and the setup wizard unlocks more sources in 30 seconds.diff --git a/pyproject.toml b/pyproject.tomlindex 05abd379..0b2548f7 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,6 +1,6 @@[project]name = "last30days-skill"-version = "3.0.0"+version = "3.0.10"description = "Multi-source last-30-days research skill"readme = "README.md"requires-python = ">=3.12"@@ -24,9 +24,9 @@ addopts = [[tool.coverage.run]branch = true-source = ["scripts", "tests"]+source = ["skills/last30days/scripts", "tests"]omit = [- "scripts/lib/vendor/*",+ "skills/last30days/scripts/lib/vendor/*","dist/*",]@@ -34,7 +34,6 @@ omit = [skip_empty = trueshow_missing = trueomit = [- "scripts/lib/vendor/*",+ "skills/last30days/scripts/lib/vendor/*","dist/*",]-diff --git a/release-notes.md b/release-notes.mdindex b0fb5106..1492d68a 100644--- a/release-notes.md+++ b/release-notes.md@@ -58,7 +58,7 @@ OpenClaw:clawhub install last30days-official```-OpenAI Codex CLI: run `codex` from a checkout of this repo and v3's skill at `.agents/skills/last30days/SKILL.md` will be discovered automatically. Or copy `SKILL.md` to `~/.agents/skills/last30days/SKILL.md` for a global install.+OpenAI Codex CLI: install the repo as a local Codex marketplace/plugin. The plugin manifest lives at `.codex-plugin/plugin.json`, and the canonical skill payload is `skills/last30days/SKILL.md`.Zero config. Reddit, Hacker News, Polymarket, and GitHub work immediately. Run it once and the setup wizard unlocks X, YouTube, TikTok, and more in 30 seconds.diff --git a/SKILL.md b/skills/last30days/SKILL.mdsimilarity index 98%rename from SKILL.mdrename to skills/last30days/SKILL.mdindex b645e4e3..89c007af 100644--- a/SKILL.md+++ b/skills/last30days/SKILL.md@@ -1,6 +1,6 @@---name: last30days-version: "3.0.1"+version: "3.0.10"description: "Research what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube, TikTok, Hacker News, Polymarket, GitHub, and the web."argument-hint: 'last30days nvidia earnings reaction | last30days AI video tools | last30days what users want in react'allowed-tools: Bash, Read, Write, AskUserQuestion, WebSearch@@ -104,7 +104,7 @@ These anchors used to live at line 1094 of this file. Three independent Opus 4.7🌐 last30days v{VERSION} · synced {YYYY-MM-DD}```-Replace `{VERSION}` with the installed plugin version (`jq -r '.version' "$SKILL_ROOT/.claude-plugin/plugin.json"`) and `{YYYY-MM-DD}` with today's date. No other text on this line. One blank line after, then the synthesis begins.+Replace `{VERSION}` with the installed plugin version (`jq -r '.version' "$SKILL_ROOT/../../.codex-plugin/plugin.json" 2>/dev/null || jq -r '.version' "$SKILL_ROOT/.claude-plugin/plugin.json"`) and `{YYYY-MM-DD}` with today's date. No other text on this line. One blank line after, then the synthesis begins.**Why the badge is MANDATORY:** it is the structural anchor for the canonical output shape. Without it the model drifts into blog-post narrative format with `##` section headers and invented titles, violating LAW 2 and LAW 4. The 2026-04-18 public v3.0.6 0/8 regression produced outputs with section headers like "The headline", "Why he is everywhere", "1. gstack dominates", "The 'Homecoming' peak". Direct cause: this anchor was absent. Do NOT skip the badge. Do NOT describe it. Do NOT paraphrase it. Emit it verbatim as line 1.@@ -233,7 +233,7 @@ If your Bash call to `last30days.py` does NOT include the FULL pre-flight checkl----# last30days v3.0.1: Research Any Topic from the Last 30 Days+# last30days v3.0.10: Research Any Topic from the Last 30 Days> **Permissions overview:** Reads public web/platform data and optionally saves research briefings to `LAST30DAYS_MEMORY_DIR` (defaults to `~/Documents/Last30Days`). X/Twitter search uses optional user-provided tokens (AUTH_TOKEN/CT0 env vars). Bluesky search uses optional app password (BSKY_HANDLE/BSKY_APP_PASSWORD env vars - create at bsky.app/settings/app-passwords). All credential usage and data writes are documented in the [Security & Permissions](#security--permissions) section.@@ -867,26 +867,30 @@ Store your plan as `QUERY_PLAN_JSON` - you'll pass it to the script in the next**IMPORTANT: Include `--x-handle={RESOLVED_HANDLE}` in the command. For comparison mode: Pass `--x-handle={TOPIC_A_HANDLE}` to the first pass, `--x-handle={TOPIC_B_HANDLE}` to the second pass, and both to the head-to-head pass. Also include `--subreddits={RESOLVED_SUBREDDITS}`, `--tiktok-hashtags={RESOLVED_HASHTAGS}`, `--tiktok-creators={RESOLVED_TIKTOK_CREATORS}`, and `--ig-creators={RESOLVED_IG_CREATORS}` from Step 0.55. Omit any flag where the value was not resolved (empty).**```bash-# PIN SKILL_ROOT to the public plugin cache (highest-version dir wins on upgrade).-# DO NOT write your own path-discovery loop. The 2026-04-18 Peter Steinberger run 1-# regression was caused by a custom discovery loop landing on ~/.openclaw/skills/last30days/-# (a stale copy from a private-repo sync pattern). That path contains a pre-plan-007-# engine and produces non-canonical output. This pinned resolution ignores every stale-# copy (~/.openclaw/, ~/.agents/, ~/.codex/) and picks the plugin cache exclusively.-SKILL_ROOT="$(ls -d "$HOME/.claude/plugins/cache/last30days-skill/last30days/"*/ 2>/dev/null | sort -V | tail -1)"+# PIN SKILL_ROOT to an installed plugin cache first (highest-version dir wins on upgrade).+# Prefer Codex's skill package path when installed as a Codex plugin. Keep the Claude+# plugin-root fallback for other hosts, then fall back to a repo checkout.+SKILL_ROOT="$(ls -d "$HOME/.codex/plugins/cache/"*/last30days/*/skills/last30days/ 2>/dev/null | sort -V | tail -1)"SKILL_ROOT="${SKILL_ROOT%/}"-# Fallback for repo checkout / Gemini / Codex hosts where the plugin cache does not exist.-# Only runs if the public plugin cache is missing entirely.+# Fallback for Claude plugin cache.if [ -z "$SKILL_ROOT" ] || [ ! -f "$SKILL_ROOT/scripts/last30days.py" ]; then- for dir in "." "${CLAUDE_PLUGIN_ROOT:-}" "${GEMINI_EXTENSION_DIR:-}"; do+ 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%/}"+ [ -n "$CLAUDE_PLUGIN_ROOT" ] && [ -f "$CLAUDE_PLUGIN_ROOT/scripts/last30days.py" ] && SKILL_ROOT="$CLAUDE_PLUGIN_ROOT"+fi++# Fallback for repo checkout / Gemini / local development hosts where the plugin cache does not exist.+if [ -z "$SKILL_ROOT" ] || [ ! -f "$SKILL_ROOT/scripts/last30days.py" ]; then+ for dir in "." "./skills/last30days" "${CLAUDE_PLUGIN_ROOT:-}" "${GEMINI_EXTENSION_DIR:-}"; do[ -n "$dir" ] && [ -f "$dir/scripts/last30days.py" ] && SKILL_ROOT="$dir" && breakdonefiif [ -z "${SKILL_ROOT:-}" ] || [ ! -f "$SKILL_ROOT/scripts/last30days.py" ]; then- echo "ERROR: Could not find scripts/last30days.py in public plugin cache or repo checkout" >&2- echo "Expected: $HOME/.claude/plugins/cache/last30days-skill/last30days/{VERSION}/scripts/last30days.py" >&2+ echo "ERROR: Could not find scripts/last30days.py in Codex/Claude plugin cache or repo checkout" >&2+ echo "Expected Codex: $HOME/.codex/plugins/cache/{MARKETPLACE}/last30days/{VERSION}/skills/last30days/scripts/last30days.py" >&2+ echo "Expected Claude: $HOME/.claude/plugins/cache/last30days-skill/last30days/{VERSION}/scripts/last30days.py" >&2exit 1fidiff --git a/agents/openai.yaml b/skills/last30days/agents/openai.yamlsimilarity index 100%rename from agents/openai.yamlrename to skills/last30days/agents/openai.yamldiff --git a/assets/aging-portrait.jpeg b/skills/last30days/assets/aging-portrait.jpegsimilarity index 100%rename from assets/aging-portrait.jpegrename to skills/last30days/assets/aging-portrait.jpegdiff --git a/assets/claude-code-rap.mp3 b/skills/last30days/assets/claude-code-rap.mp3similarity index 100%rename from assets/claude-code-rap.mp3rename to skills/last30days/assets/claude-code-rap.mp3diff --git a/assets/dog-as-human.png b/skills/last30days/assets/dog-as-human.pngsimilarity index 100%rename from assets/dog-as-human.pngrename to skills/last30days/assets/dog-as-human.pngdiff --git a/assets/dog-original.jpeg b/skills/last30days/assets/dog-original.jpegsimilarity index 100%rename from assets/dog-original.jpegrename to skills/last30days/assets/dog-original.jpegdiff --git a/assets/swimmom-mockup.jpeg b/skills/last30days/assets/swimmom-mockup.jpegsimilarity index 100%rename from assets/swimmom-mockup.jpegrename to skills/last30days/assets/swimmom-mockup.jpegdiff --git a/scripts/briefing.py b/skills/last30days/scripts/briefing.pysimilarity index 100%rename from scripts/briefing.pyrename to skills/last30days/scripts/briefing.pydiff --git a/scripts/build-skill.sh b/skills/last30days/scripts/build-skill.shsimilarity index 65%rename from scripts/build-skill.shrename to skills/last30days/scripts/build-skill.shindex 51d9139c..bc3acfe1 100755--- a/scripts/build-skill.sh+++ b/skills/last30days/scripts/build-skill.sh@@ -1,13 +1,14 @@#!/usr/bin/env bash# build-skill.sh - package this repo as a claude.ai-upload-ready .skill file-# Usage: bash scripts/build-skill.sh (run from repo root)+# Usage: bash skills/last30days/scripts/build-skill.sh (run from repo root)## Produces dist/last30days.skill, a zip with a single top-level `last30days/`-# directory containing SKILL.md and the scripts/ runtime. See+# directory containing SKILL.md and the scripts/ runtime from skills/last30days.+# See# docs/plans/2026-04-14-001-fix-skill-upload-200-file-limit-plan.md.set -euo pipefail-REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"+REPO_ROOT="$(cd "$(dirname "$0")/../../.." && pwd)"cd "$REPO_ROOT"if ! git diff --quiet || ! git diff --cached --quiet; then@@ -17,14 +18,7 @@ fimkdir -p distOUT="dist/last30days.skill"-git archive --format=zip --prefix=last30days/ --output="$OUT" HEAD--# claude.ai's .skill bundle only needs the root SKILL.md + scripts/ runtime.-# Claude Code needs skills/ and .claude-plugin/ in the git archive-# (that's why they're NOT in .gitattributes export-ignore), but the .skill-# bundle must strip them to keep a single canonical SKILL.md and stay under-# the 200-file cap.-zip -d "$OUT" "last30days/skills/*" "last30days/.claude-plugin/*" > /dev/null 2>&1 || true+git archive --format=zip --prefix=last30days/ --output="$OUT" HEAD:skills/last30daysCOUNT=$(unzip -l "$OUT" | tail -1 | awk '{print $2}')SIZE=$(du -h "$OUT" | cut -f1)diff --git a/scripts/compare.sh b/skills/last30days/scripts/compare.shsimilarity index 91%rename from scripts/compare.shrename to skills/last30days/scripts/compare.shindex 359dd8a7..880b5097 100755--- a/scripts/compare.sh+++ b/skills/last30days/scripts/compare.sh@@ -1,6 +1,6 @@#!/bin/bash# A/B test runner: public release vs private beta-# Usage: bash scripts/compare.sh "Kanye West"+# Usage: bash skills/last30days/scripts/compare.sh "Kanye West"## Runs /last30days (public release) and /last30days-beta (private beta)# sequentially with a 30s gap, saves raw results with distinct suffixes,@@ -9,8 +9,8 @@set -eif [ $# -eq 0 ]; then- echo "Usage: bash scripts/compare.sh <topic>"- echo " Example: bash scripts/compare.sh Kevin Rose"+ echo "Usage: bash skills/last30days/scripts/compare.sh <topic>"+ echo " Example: bash skills/last30days/scripts/compare.sh Kevin Rose"exit 1fiTOPIC="$*"diff --git a/scripts/evaluate_search_quality.py b/skills/last30days/scripts/evaluate_search_quality.pysimilarity index 98%rename from scripts/evaluate_search_quality.pyrename to skills/last30days/scripts/evaluate_search_quality.pyindex a16dc3a5..55d62f6c 100644--- a/scripts/evaluate_search_quality.py+++ b/skills/last30days/scripts/evaluate_search_quality.py@@ -22,7 +22,8 @@ from lib import env as envlibfrom lib import schema-REPO_ROOT = Path(__file__).resolve().parent.parent+SKILL_ROOT = Path(__file__).resolve().parents[1]+REPO_ROOT = Path(__file__).resolve().parents[3]EVAL_TOPICS_FILE = REPO_ROOT / "fixtures" / "eval_topics.json"@@ -307,7 +308,10 @@ def create_eval_env() -> dict[str, str]:def run_last30days(repo_dir: Path, topic: str, *, search: str, timeout_seconds: int, quick: bool, mock: bool, env: dict[str, str]) -> dict[str, Any]:- cmd = [sys.executable, "scripts/last30days.py", topic, "--emit=json"]+ engine = repo_dir / "skills" / "last30days" / "scripts" / "last30days.py"+ if not engine.exists():+ engine = repo_dir / "scripts" / "last30days.py"+ cmd = [sys.executable, str(engine), topic, "--emit=json"]if search:cmd.extend(["--search", search])if quick:diff --git a/scripts/last30days.py b/skills/last30days/scripts/last30days.pysimilarity index 100%rename from scripts/last30days.pyrename to skills/last30days/scripts/last30days.pydiff --git a/scripts/lib/__init__.py b/skills/last30days/scripts/lib/__init__.pysimilarity index 100%rename from scripts/lib/__init__.pyrename to skills/last30days/scripts/lib/__init__.pydiff --git a/scripts/lib/bird_x.py b/skills/last30days/scripts/lib/bird_x.pysimilarity index 100%rename from scripts/lib/bird_x.pyrename to skills/last30days/scripts/lib/bird_x.pydiff --git a/scripts/lib/bluesky.py b/skills/last30days/scripts/lib/bluesky.pysimilarity index 100%rename from scripts/lib/bluesky.pyrename to skills/last30days/scripts/lib/bluesky.pydiff --git a/scripts/lib/categories.py b/skills/last30days/scripts/lib/categories.pysimilarity index 100%rename from scripts/lib/categories.pyrename to skills/last30days/scripts/lib/categories.pydiff --git a/scripts/lib/chrome_cookies.py b/skills/last30days/scripts/lib/chrome_cookies.pysimilarity index 100%rename from scripts/lib/chrome_cookies.pyrename to skills/last30days/scripts/lib/chrome_cookies.pydiff --git a/scripts/lib/cluster.py b/skills/last30days/scripts/lib/cluster.pysimilarity index 100%rename from scripts/lib/cluster.pyrename to skills/last30days/scripts/lib/cluster.pydiff --git a/scripts/lib/competitors.py b/skills/last30days/scripts/lib/competitors.pysimilarity index 100%rename from scripts/lib/competitors.pyrename to skills/last30days/scripts/lib/competitors.pydiff --git a/scripts/lib/cookie_extract.py b/skills/last30days/scripts/lib/cookie_extract.pysimilarity index 100%rename from scripts/lib/cookie_extract.pyrename to skills/last30days/scripts/lib/cookie_extract.pydiff --git a/scripts/lib/dates.py b/skills/last30days/scripts/lib/dates.pysimilarity index 100%rename from scripts/lib/dates.pyrename to skills/last30days/scripts/lib/dates.pydiff --git a/scripts/lib/dedupe.py b/skills/last30days/scripts/lib/dedupe.pysimilarity index 100%rename from scripts/lib/dedupe.pyrename to skills/last30days/scripts/lib/dedupe.pydiff --git a/scripts/lib/entity_extract.py b/skills/last30days/scripts/lib/entity_extract.pysimilarity index 100%rename from scripts/lib/entity_extract.pyrename to skills/last30days/scripts/lib/entity_extract.pydiff --git a/scripts/lib/env.py b/skills/last30days/scripts/lib/env.pysimilarity index 100%rename from scripts/lib/env.pyrename to skills/last30days/scripts/lib/env.pydiff --git a/scripts/lib/fanout.py b/skills/last30days/scripts/lib/fanout.pysimilarity index 100%rename from scripts/lib/fanout.pyrename to skills/last30days/scripts/lib/fanout.pydiff --git a/scripts/lib/fusion.py b/skills/last30days/scripts/lib/fusion.pysimilarity index 100%rename from scripts/lib/fusion.pyrename to skills/last30days/scripts/lib/fusion.pydiff --git a/scripts/lib/github.py b/skills/last30days/scripts/lib/github.pysimilarity index 100%rename from scripts/lib/github.pyrename to skills/last30days/scripts/lib/github.pydiff --git a/scripts/lib/grounding.py b/skills/last30days/scripts/lib/grounding.pysimilarity index 100%rename from scripts/lib/grounding.pyrename to skills/last30days/scripts/lib/grounding.pydiff --git a/scripts/lib/hackernews.py b/skills/last30days/scripts/lib/hackernews.pysimilarity index 100%rename from scripts/lib/hackernews.pyrename to skills/last30days/scripts/lib/hackernews.pydiff --git a/scripts/lib/http.py b/skills/last30days/scripts/lib/http.pysimilarity index 100%rename from scripts/lib/http.pyrename to skills/last30days/scripts/lib/http.pydiff --git a/scripts/lib/instagram.py b/skills/last30days/scripts/lib/instagram.pysimilarity index 100%rename from scripts/lib/instagram.pyrename to skills/last30days/scripts/lib/instagram.pydiff --git a/scripts/lib/log.py b/skills/last30days/scripts/lib/log.pysimilarity index 100%rename from scripts/lib/log.pyrename to skills/last30days/scripts/lib/log.pydiff --git a/scripts/lib/normalize.py b/skills/last30days/scripts/lib/normalize.pysimilarity index 100%rename from scripts/lib/normalize.pyrename to skills/last30days/scripts/lib/normalize.pydiff --git a/scripts/lib/perplexity.py b/skills/last30days/scripts/lib/perplexity.pysimilarity index 100%rename from scripts/lib/perplexity.pyrename to skills/last30days/scripts/lib/perplexity.pydiff --git a/scripts/lib/pinterest.py b/skills/last30days/scripts/lib/pinterest.pysimilarity index 100%rename from scripts/lib/pinterest.pyrename to skills/last30days/scripts/lib/pinterest.pydiff --git a/scripts/lib/pipeline.py b/skills/last30days/scripts/lib/pipeline.pysimilarity index 100%rename from scripts/lib/pipeline.pyrename to skills/last30days/scripts/lib/pipeline.pydiff --git a/scripts/lib/planner.py b/skills/last30days/scripts/lib/planner.pysimilarity index 100%rename from scripts/lib/planner.pyrename to skills/last30days/scripts/lib/planner.pydiff --git a/scripts/lib/polymarket.py b/skills/last30days/scripts/lib/polymarket.pysimilarity index 100%rename from scripts/lib/polymarket.pyrename to skills/last30days/scripts/lib/polymarket.pydiff --git a/scripts/lib/preflight.py b/skills/last30days/scripts/lib/preflight.pysimilarity index 100%rename from scripts/lib/preflight.pyrename to skills/last30days/scripts/lib/preflight.pydiff --git a/scripts/lib/providers.py b/skills/last30days/scripts/lib/providers.pysimilarity index 100%rename from scripts/lib/providers.pyrename to skills/last30days/scripts/lib/providers.pydiff --git a/scripts/lib/quality_nudge.py b/skills/last30days/scripts/lib/quality_nudge.pysimilarity index 100%rename from scripts/lib/quality_nudge.pyrename to skills/last30days/scripts/lib/quality_nudge.pydiff --git a/scripts/lib/query.py b/skills/last30days/scripts/lib/query.pysimilarity index 100%rename from scripts/lib/query.pyrename to skills/last30days/scripts/lib/query.pydiff --git a/scripts/lib/reddit.py b/skills/last30days/scripts/lib/reddit.pysimilarity index 100%rename from scripts/lib/reddit.pyrename to skills/last30days/scripts/lib/reddit.pydiff --git a/scripts/lib/reddit_enrich.py b/skills/last30days/scripts/lib/reddit_enrich.pysimilarity index 100%rename from scripts/lib/reddit_enrich.pyrename to skills/last30days/scripts/lib/reddit_enrich.pydiff --git a/scripts/lib/reddit_public.py b/skills/last30days/scripts/lib/reddit_public.pysimilarity index 100%rename from scripts/lib/reddit_public.pyrename to skills/last30days/scripts/lib/reddit_public.pydiff --git a/scripts/lib/relevance.py b/skills/last30days/scripts/lib/relevance.pysimilarity index 100%rename from scripts/lib/relevance.pyrename to skills/last30days/scripts/lib/relevance.pydiff --git a/scripts/lib/render.py b/skills/last30days/scripts/lib/render.pysimilarity index 99%rename from scripts/lib/render.pyrename to skills/last30days/scripts/lib/render.pyindex 98c91194..c2f336c9 100644--- a/scripts/lib/render.py+++ b/skills/last30days/scripts/lib/render.py@@ -12,7 +12,7 @@ from . import dates, schemadef _skill_version() -> str:- """Read plugin version from .claude-plugin/plugin.json if available.+ """Read plugin version from a plugin manifest if available.Tries nearest plugin.json by walking up from render.py's own location.Falls back to "?" if not found. This keeps the badge emission from@@ -20,12 +20,13 @@ def _skill_version() -> str:"""here = pathlib.Path(__file__).resolve()for parent in [here.parent, *here.parents]:- candidate = parent / ".claude-plugin" / "plugin.json"- if candidate.is_file():- try:- return json.loads(candidate.read_text()).get("version", "?")- except (json.JSONDecodeError, OSError):- return "?"+ for manifest_dir in (".codex-plugin", ".claude-plugin"):+ candidate = parent / manifest_dir / "plugin.json"+ if candidate.is_file():+ try:+ return json.loads(candidate.read_text()).get("version", "?")+ except (json.JSONDecodeError, OSError):+ return "?"return "?"diff --git a/scripts/lib/rerank.py b/skills/last30days/scripts/lib/rerank.pysimilarity index 100%rename from scripts/lib/rerank.pyrename to skills/last30days/scripts/lib/rerank.pydiff --git a/scripts/lib/resolve.py b/skills/last30days/scripts/lib/resolve.pysimilarity index 100%rename from scripts/lib/resolve.pyrename to skills/last30days/scripts/lib/resolve.pydiff --git a/scripts/lib/safari_cookies.py b/skills/last30days/scripts/lib/safari_cookies.pysimilarity index 100%rename from scripts/lib/safari_cookies.pyrename to skills/last30days/scripts/lib/safari_cookies.pydiff --git a/scripts/lib/schema.py b/skills/last30days/scripts/lib/schema.pysimilarity index 100%rename from scripts/lib/schema.pyrename to skills/last30days/scripts/lib/schema.pydiff --git a/scripts/lib/setup_wizard.py b/skills/last30days/scripts/lib/setup_wizard.pysimilarity index 100%rename from scripts/lib/setup_wizard.pyrename to skills/last30days/scripts/lib/setup_wizard.pydiff --git a/scripts/lib/signals.py b/skills/last30days/scripts/lib/signals.pysimilarity index 100%rename from scripts/lib/signals.pyrename to skills/last30days/scripts/lib/signals.pydiff --git a/scripts/lib/snippet.py b/skills/last30days/scripts/lib/snippet.pysimilarity index 100%rename from scripts/lib/snippet.pyrename to skills/last30days/scripts/lib/snippet.pydiff --git a/scripts/lib/threads.py b/skills/last30days/scripts/lib/threads.pysimilarity index 100%rename from scripts/lib/threads.pyrename to skills/last30days/scripts/lib/threads.pydiff --git a/scripts/lib/tiktok.py b/skills/last30days/scripts/lib/tiktok.pysimilarity index 100%rename from scripts/lib/tiktok.pyrename to skills/last30days/scripts/lib/tiktok.pydiff --git a/scripts/lib/truthsocial.py b/skills/last30days/scripts/lib/truthsocial.pysimilarity index 100%rename from scripts/lib/truthsocial.pyrename to skills/last30days/scripts/lib/truthsocial.pydiff --git a/scripts/lib/ui.py b/skills/last30days/scripts/lib/ui.pysimilarity index 100%rename from scripts/lib/ui.pyrename to skills/last30days/scripts/lib/ui.pydiff --git a/scripts/lib/vendor/bird-search/LICENSE b/skills/last30days/scripts/lib/vendor/bird-search/LICENSEsimilarity index 100%rename from scripts/lib/vendor/bird-search/LICENSErename to skills/last30days/scripts/lib/vendor/bird-search/LICENSEdiff --git a/scripts/lib/vendor/bird-search/bird-search.mjs b/skills/last30days/scripts/lib/vendor/bird-search/bird-search.mjssimilarity index 100%rename from scripts/lib/vendor/bird-search/bird-search.mjsrename to skills/last30days/scripts/lib/vendor/bird-search/bird-search.mjsdiff --git a/scripts/lib/vendor/bird-search/lib/cookies.js b/skills/last30days/scripts/lib/vendor/bird-search/lib/cookies.jssimilarity index 100%rename from scripts/lib/vendor/bird-search/lib/cookies.jsrename to skills/last30days/scripts/lib/vendor/bird-search/lib/cookies.jsdiff --git a/scripts/lib/vendor/bird-search/lib/features.json b/skills/last30days/scripts/lib/vendor/bird-search/lib/features.jsonsimilarity index 100%rename from scripts/lib/vendor/bird-search/lib/features.jsonrename to skills/last30days/scripts/lib/vendor/bird-search/lib/features.jsondiff --git a/scripts/lib/vendor/bird-search/lib/paginate-cursor.js b/skills/last30days/scripts/lib/vendor/bird-search/lib/paginate-cursor.jssimilarity index 100%rename from scripts/lib/vendor/bird-search/lib/paginate-cursor.jsrename to skills/last30days/scripts/lib/vendor/bird-search/lib/paginate-cursor.jsdiff --git a/scripts/lib/vendor/bird-search/lib/query-ids.json b/skills/last30days/scripts/lib/vendor/bird-search/lib/query-ids.jsonsimilarity index 100%rename from scripts/lib/vendor/bird-search/lib/query-ids.jsonrename to skills/last30days/scripts/lib/vendor/bird-search/lib/query-ids.jsondiff --git a/scripts/lib/vendor/bird-search/lib/runtime-features.js b/skills/last30days/scripts/lib/vendor/bird-search/lib/runtime-features.jssimilarity index 100%rename from scripts/lib/vendor/bird-search/lib/runtime-features.jsrename to skills/last30days/scripts/lib/vendor/bird-search/lib/runtime-features.jsdiff --git a/scripts/lib/vendor/bird-search/lib/runtime-query-ids.js b/skills/last30days/scripts/lib/vendor/bird-search/lib/runtime-query-ids.jssimilarity index 100%rename from scripts/lib/vendor/bird-search/lib/runtime-query-ids.jsrename to skills/last30days/scripts/lib/vendor/bird-search/lib/runtime-query-ids.jsdiff --git a/scripts/lib/vendor/bird-search/lib/twitter-client-base.js b/skills/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-base.jssimilarity index 100%rename from scripts/lib/vendor/bird-search/lib/twitter-client-base.jsrename to skills/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-base.jsdiff --git a/scripts/lib/vendor/bird-search/lib/twitter-client-constants.js b/skills/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-constants.jssimilarity index 100%rename from scripts/lib/vendor/bird-search/lib/twitter-client-constants.jsrename to skills/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-constants.jsdiff --git a/scripts/lib/vendor/bird-search/lib/twitter-client-features.js b/skills/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-features.jssimilarity index 100%rename from scripts/lib/vendor/bird-search/lib/twitter-client-features.jsrename to skills/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-features.jsdiff --git a/scripts/lib/vendor/bird-search/lib/twitter-client-search.js b/skills/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-search.jssimilarity index 100%rename from scripts/lib/vendor/bird-search/lib/twitter-client-search.jsrename to skills/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-search.jsdiff --git a/scripts/lib/vendor/bird-search/lib/twitter-client-types.js b/skills/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-types.jssimilarity index 100%rename from scripts/lib/vendor/bird-search/lib/twitter-client-types.jsrename to skills/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-types.jsdiff --git a/scripts/lib/vendor/bird-search/lib/twitter-client-utils.js b/skills/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-utils.jssimilarity index 100%rename from scripts/lib/vendor/bird-search/lib/twitter-client-utils.jsrename to skills/last30days/scripts/lib/vendor/bird-search/lib/twitter-client-utils.jsdiff --git a/scripts/lib/vendor/bird-search/package.json b/skills/last30days/scripts/lib/vendor/bird-search/package.jsonsimilarity index 100%rename from scripts/lib/vendor/bird-search/package.jsonrename to skills/last30days/scripts/lib/vendor/bird-search/package.jsondiff --git a/scripts/lib/xai_x.py b/skills/last30days/scripts/lib/xai_x.pysimilarity index 100%rename from scripts/lib/xai_x.pyrename to skills/last30days/scripts/lib/xai_x.pydiff --git a/scripts/lib/xiaohongshu_api.py b/skills/last30days/scripts/lib/xiaohongshu_api.pysimilarity index 100%rename from scripts/lib/xiaohongshu_api.pyrename to skills/last30days/scripts/lib/xiaohongshu_api.pydiff --git a/scripts/lib/xquik.py b/skills/last30days/scripts/lib/xquik.pysimilarity index 100%rename from scripts/lib/xquik.pyrename to skills/last30days/scripts/lib/xquik.pydiff --git a/scripts/lib/xurl_x.py b/skills/last30days/scripts/lib/xurl_x.pysimilarity index 100%rename from scripts/lib/xurl_x.pyrename to skills/last30days/scripts/lib/xurl_x.pydiff --git a/scripts/lib/youtube_yt.py b/skills/last30days/scripts/lib/youtube_yt.pysimilarity index 100%rename from scripts/lib/youtube_yt.pyrename to skills/last30days/scripts/lib/youtube_yt.pydiff --git a/scripts/store.py b/skills/last30days/scripts/store.pysimilarity index 100%rename from scripts/store.pyrename to skills/last30days/scripts/store.pydiff --git a/scripts/sync.sh b/skills/last30days/scripts/sync.shsimilarity index 97%rename from scripts/sync.shrename to skills/last30days/scripts/sync.shindex 09b696ff..cbc72470 100755--- a/scripts/sync.sh+++ b/skills/last30days/scripts/sync.sh@@ -1,6 +1,6 @@#!/usr/bin/env bash# sync.sh - Deploy last30days skill to all host locations-# Usage: bash scripts/sync.sh (run from repo root)+# Usage: bash skills/last30days/scripts/sync.sh (run from repo root)set -euo pipefailSRC="$(cd "$(dirname "$0")/.." && pwd)"@@ -11,7 +11,7 @@ COMMON_TARGETS=(# but local development needs the cache kept in sync with the repo.# Do NOT add ~/.claude/skills/last30days - it creates a duplicate# /last30days-3 in the slash command menu alongside the plugin version.- "$HOME/.claude/plugins/cache/last30days-skill-private/last30days-3/3.0.1"+ "$HOME/.claude/plugins/cache/last30days-skill-private/last30days-3/3.0.10""$HOME/.claude/plugins/cache/last30days-skill-private/last30days-3-nogem/3.0.0-nogem""$HOME/.agents/skills/last30days""$HOME/.codex/skills/last30days"diff --git a/scripts/test-v1-vs-v2.sh b/skills/last30days/scripts/test-v1-vs-v2.shsimilarity index 100%rename from scripts/test-v1-vs-v2.shrename to skills/last30days/scripts/test-v1-vs-v2.shdiff --git a/scripts/test_device_auth.py b/skills/last30days/scripts/test_device_auth.pysimilarity index 100%rename from scripts/test_device_auth.pyrename to skills/last30days/scripts/test_device_auth.pydiff --git a/scripts/verify_v3.py b/skills/last30days/scripts/verify_v3.pysimilarity index 87%rename from scripts/verify_v3.pyrename to skills/last30days/scripts/verify_v3.pyindex 7cbc1937..73319c7d 100644--- a/scripts/verify_v3.py+++ b/skills/last30days/scripts/verify_v3.py@@ -13,8 +13,11 @@ import timefrom pathlib import Path-REPO_ROOT = Path(__file__).resolve().parent.parent+SKILL_ROOT = Path(__file__).resolve().parents[1]+REPO_ROOT = Path(__file__).resolve().parents[3]PYTHON = sys.executable+ENGINE = SKILL_ROOT / "scripts" / "last30days.py"+EVALUATOR = SKILL_ROOT / "scripts" / "evaluate_search_quality.py"SMOKE_TOPIC = "openclaw skills"SMOKE_CASES = [@@ -56,7 +59,16 @@ def verify_unit() -> dict[str, str]:"-m","py_compile",*subprocess.run(- ["rg", "--files", "scripts", "tests", "-g", "*.py", "-g", "!scripts/lib/vendor/**"],+ [+ "rg",+ "--files",+ "skills/last30days/scripts",+ "tests",+ "-g",+ "*.py",+ "-g",+ "!skills/last30days/scripts/lib/vendor/**",+ ],cwd=REPO_ROOT,text=True,capture_output=True,@@ -69,7 +81,7 @@ def verify_unit() -> dict[str, str]:def verify_diagnose() -> dict[str, object]:- result = run_command([PYTHON, "scripts/last30days.py", "--diagnose"], timeout=120)+ result = run_command([PYTHON, str(ENGINE), "--diagnose"], timeout=120)return json.loads(result.stdout)@@ -80,7 +92,7 @@ def verify_smoke() -> list[dict[str, object]]:env["LAST30DAYS_REASONING_PROVIDER"] = providerstart = time.time()result = run_command(- [PYTHON, "scripts/last30days.py", SMOKE_TOPIC, "--emit=json", *extra],+ [PYTHON, str(ENGINE), SMOKE_TOPIC, "--emit=json", *extra],env=env,timeout=240,)@@ -106,7 +118,7 @@ def verify_latency() -> dict[str, dict[str, object]]:for topic in LATENCY_TOPICS:start = time.time()run_command(- [PYTHON, "scripts/last30days.py", topic, "--emit=json", *extra],+ [PYTHON, str(ENGINE), topic, "--emit=json", *extra],timeout=300,)timings.append(time.time() - start)@@ -129,7 +141,7 @@ def verify_eval() -> dict[str, object]:cmd = [PYTHON,- "scripts/evaluate_search_quality.py",+ str(EVALUATOR),f"--baseline={baseline}",f"--candidate={candidate}",f"--output-dir={output_dir}",diff --git a/scripts/watchlist.py b/skills/last30days/scripts/watchlist.pysimilarity index 100%rename from scripts/watchlist.pyrename to skills/last30days/scripts/watchlist.pydiff --git a/tests/test_adversarial_v3.py b/tests/test_adversarial_v3.pyindex 1d5a9c18..0631c0d2 100644--- a/tests/test_adversarial_v3.py+++ b/tests/test_adversarial_v3.py@@ -9,7 +9,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import plannerdiff --git a/tests/test_bird_x.py b/tests/test_bird_x.pyindex c436908b..92bb202c 100644--- a/tests/test_bird_x.py+++ b/tests/test_bird_x.py@@ -7,13 +7,13 @@ import textwrapimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib.bird_x import parse_bird_responseREPO_ROOT = Path(__file__).resolve().parents[1]-VENDORED_BIRD = REPO_ROOT / "scripts" / "lib" / "vendor" / "bird-search" / "bird-search.mjs"+VENDORED_BIRD = REPO_ROOT / "skills" / "last30days" / "scripts" / "lib" / "vendor" / "bird-search" / "bird-search.mjs"class TestBirdXEngagementZero(unittest.TestCase):@@ -77,6 +77,8 @@ class TestVendoredBirdRuntime(unittest.TestCase):def test_browser_cookie_helpers_lazy_load_sweet_cookie(self):sweet_cookie_dir = (REPO_ROOT+ / "skills"+ / "last30days"/ "scripts"/ "lib"/ "vendor"@@ -130,7 +132,7 @@ class TestVendoredBirdRuntime(unittest.TestCase):extractCookiesFromSafari,extractCookiesFromChrome,extractCookiesFromFirefox,- } from "./scripts/lib/vendor/bird-search/lib/cookies.js";+ } from "./skills/last30days/scripts/lib/vendor/bird-search/lib/cookies.js";const payload = await Promise.all([extractCookiesFromSafari(),diff --git a/tests/test_bluesky.py b/tests/test_bluesky.pyindex 59bb096a..cb3cd335 100644--- a/tests/test_bluesky.py+++ b/tests/test_bluesky.py@@ -5,7 +5,7 @@ import unittestfrom pathlib import Pathfrom unittest.mock import patch, MagicMock-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))from lib import blueskydiff --git a/tests/test_briefing_v3.py b/tests/test_briefing_v3.pyindex 2d4f4f4d..ad779339 100644--- a/tests/test_briefing_v3.py+++ b/tests/test_briefing_v3.py@@ -4,7 +4,7 @@ import unittestfrom pathlib import Pathfrom unittest import mock-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))import briefingimport storediff --git a/tests/test_categories.py b/tests/test_categories.pyindex 848abaad..45d6822f 100644--- a/tests/test_categories.py+++ b/tests/test_categories.py@@ -11,7 +11,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import categoriesfrom lib.categories import CATEGORY_PEERS, detect_category, peer_subs_fordiff --git a/tests/test_category_integration.py b/tests/test_category_integration.pyindex 513c193a..15bd8dcb 100644--- a/tests/test_category_integration.py+++ b/tests/test_category_integration.py@@ -19,7 +19,7 @@ from contextlib import redirect_stderrfrom pathlib import Pathfrom unittest.mock import patch-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import resolvediff --git a/tests/test_cli_v3.py b/tests/test_cli_v3.pyindex b6497152..f7120d57 100644--- a/tests/test_cli_v3.py+++ b/tests/test_cli_v3.py@@ -12,7 +12,7 @@ from unittest import mockREPO_ROOT = Path(__file__).resolve().parents[1]-sys.path.insert(0, str(REPO_ROOT / "scripts"))+sys.path.insert(0, str(REPO_ROOT / "skills" / "last30days" / "scripts"))import last30days as clifrom lib import schema@@ -53,7 +53,7 @@ class CliV3Tests(unittest.TestCase):def test_mock_json_cli(self):result = subprocess.run(- [sys.executable, "scripts/last30days.py", "test topic", "--mock", "--emit=json"],+ [sys.executable, "skills/last30days/scripts/last30days.py", "test topic", "--mock", "--emit=json"],cwd=REPO_ROOT,capture_output=True,text=True,diff --git a/tests/test_cluster_v3.py b/tests/test_cluster_v3.pyindex 86b75833..2e9ac4e6 100644--- a/tests/test_cluster_v3.py+++ b/tests/test_cluster_v3.py@@ -2,7 +2,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import cluster, schemadiff --git a/tests/test_dates.py b/tests/test_dates.pyindex 6d932ecf..819ed26e 100644--- a/tests/test_dates.py+++ b/tests/test_dates.py@@ -6,7 +6,7 @@ from datetime import datetime, timedelta, timezonefrom pathlib import Path# Add lib to path-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))from lib import datesdiff --git a/tests/test_dates_v3.py b/tests/test_dates_v3.pyindex 6d445efa..5331b310 100644--- a/tests/test_dates_v3.py+++ b/tests/test_dates_v3.py@@ -3,7 +3,7 @@ import unittestfrom datetime import datetime, timedelta, timezonefrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import datesdiff --git a/tests/test_dedupe_v3.py b/tests/test_dedupe_v3.pyindex 3cb235f7..e3852a1f 100644--- a/tests/test_dedupe_v3.py+++ b/tests/test_dedupe_v3.py@@ -4,7 +4,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import dedupefrom lib.schema import SourceItemdiff --git a/tests/test_entity_extract.py b/tests/test_entity_extract.pyindex 0114724d..d960589e 100644--- a/tests/test_entity_extract.py+++ b/tests/test_entity_extract.py@@ -5,7 +5,7 @@ import unittestfrom pathlib import Path# Add lib to path-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))from lib import entity_extractdiff --git a/tests/test_entity_extract_v3.py b/tests/test_entity_extract_v3.pyindex b779d2e4..ed063c28 100644--- a/tests/test_entity_extract_v3.py+++ b/tests/test_entity_extract_v3.py@@ -2,7 +2,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import entity_extractdiff --git a/tests/test_env_cookies.py b/tests/test_env_cookies.pyindex 4be7d698..17a74b72 100644--- a/tests/test_env_cookies.py+++ b/tests/test_env_cookies.py@@ -7,7 +7,7 @@ from unittest.mock import patchimport pytest-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib.env import extract_browser_credentials, COOKIE_DOMAINSdiff --git a/tests/test_env_v3.py b/tests/test_env_v3.pyindex ab8a70ca..c5a5b860 100644--- a/tests/test_env_v3.py+++ b/tests/test_env_v3.py@@ -4,7 +4,7 @@ import unittestfrom pathlib import Pathfrom unittest import mock-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import bird_x, envdiff --git a/tests/test_evaluator_v3.py b/tests/test_evaluator_v3.pyindex 69e03a58..5e8eb62c 100644--- a/tests/test_evaluator_v3.py+++ b/tests/test_evaluator_v3.py@@ -6,7 +6,7 @@ import unittestfrom pathlib import Pathfrom unittest import mock-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))import evaluate_search_quality as evaluatordiff --git a/tests/test_fusion_v3.py b/tests/test_fusion_v3.pyindex 618caf9d..a0c745ec 100644--- a/tests/test_fusion_v3.py+++ b/tests/test_fusion_v3.py@@ -2,7 +2,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import fusion, schemadiff --git a/tests/test_generate_synthesis_inputs_v3.py b/tests/test_generate_synthesis_inputs_v3.pyindex b7b2f20a..cf179d00 100644--- a/tests/test_generate_synthesis_inputs_v3.py+++ b/tests/test_generate_synthesis_inputs_v3.py@@ -5,12 +5,12 @@ import tempfileimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import schema-SCRIPT_PATH = Path(__file__).resolve().parents[1] / "scripts" / "generate-synthesis-inputs.py"+SCRIPT_PATH = Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts" / "generate-synthesis-inputs.py"def load_module():diff --git a/tests/test_github.py b/tests/test_github.pyindex c943fda9..b13d435a 100644--- a/tests/test_github.py+++ b/tests/test_github.py@@ -6,7 +6,7 @@ import unittestfrom pathlib import Pathfrom unittest.mock import patch, MagicMock-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))from lib import githubdiff --git a/tests/test_grounding_v3.py b/tests/test_grounding_v3.pyindex e428c392..b9867d6d 100644--- a/tests/test_grounding_v3.py+++ b/tests/test_grounding_v3.py@@ -3,7 +3,7 @@ import unittestfrom pathlib import Pathfrom unittest.mock import patch-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import groundingdiff --git a/tests/test_hackernews.py b/tests/test_hackernews.pyindex 0b0132fb..c8d15795 100644--- a/tests/test_hackernews.py+++ b/tests/test_hackernews.py@@ -8,7 +8,7 @@ from unittest.mock import Mock, patchimport pytest-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))from lib import hackernewsdiff --git a/tests/test_http_v3.py b/tests/test_http_v3.pyindex dd495e7c..a50a61ab 100644--- a/tests/test_http_v3.py+++ b/tests/test_http_v3.py@@ -4,7 +4,7 @@ import unittestfrom pathlib import Pathfrom unittest.mock import patch, MagicMock-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import httpdiff --git a/tests/test_instagram.py b/tests/test_instagram.pyindex 23c96b22..2fbdfbb2 100644--- a/tests/test_instagram.py+++ b/tests/test_instagram.py@@ -2,7 +2,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib.instagram import _parse_itemsdiff --git a/tests/test_instagram_sc.py b/tests/test_instagram_sc.pyindex 6ca2b14d..88ebf7f3 100644--- a/tests/test_instagram_sc.py+++ b/tests/test_instagram_sc.py@@ -5,7 +5,7 @@ import unittestfrom pathlib import Path# Add lib to path-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))from lib import instagramfrom lib.relevance import tokenize as _tokenizediff --git a/tests/test_internals_v3.py b/tests/test_internals_v3.pyindex 4bdd2856..b05628dd 100644--- a/tests/test_internals_v3.py+++ b/tests/test_internals_v3.py@@ -9,7 +9,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import planner, rerank, render, signals, schemadiff --git a/tests/test_normalize_v3.py b/tests/test_normalize_v3.pyindex 7c397a85..aa88d78d 100644--- a/tests/test_normalize_v3.py+++ b/tests/test_normalize_v3.py@@ -2,7 +2,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import normalizediff --git a/tests/test_pipeline_v3.py b/tests/test_pipeline_v3.pyindex cc16f35b..08b6109b 100644--- a/tests/test_pipeline_v3.py+++ b/tests/test_pipeline_v3.py@@ -4,7 +4,7 @@ import unittestfrom pathlib import Pathfrom unittest.mock import patch-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import pipelinefrom lib import httpdiff --git a/tests/test_planner_v3.py b/tests/test_planner_v3.pyindex fee24845..fffdd685 100644--- a/tests/test_planner_v3.py+++ b/tests/test_planner_v3.py@@ -2,7 +2,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import plannerdiff --git a/tests/test_polymarket.py b/tests/test_polymarket.pyindex f29f99b8..1105e173 100644--- a/tests/test_polymarket.py+++ b/tests/test_polymarket.py@@ -7,7 +7,7 @@ from unittest.mock import Mock, patchimport pytest-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))from lib import polymarketdiff --git a/tests/test_preflight.py b/tests/test_preflight.pyindex 9cfe5317..916cf8f8 100644--- a/tests/test_preflight.py+++ b/tests/test_preflight.py@@ -10,7 +10,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import preflightdiff --git a/tests/test_providers_v3.py b/tests/test_providers_v3.pyindex c4d61a50..f5aaadfa 100644--- a/tests/test_providers_v3.py+++ b/tests/test_providers_v3.py@@ -3,7 +3,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import providersdiff --git a/tests/test_query.py b/tests/test_query.pyindex 55c759c9..60c1fc78 100644--- a/tests/test_query.py+++ b/tests/test_query.py@@ -4,7 +4,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))from lib.query import NOISE_WORDS, extract_compound_terms, extract_core_subjectdiff --git a/tests/test_query_v3.py b/tests/test_query_v3.pyindex 19502722..79fcda67 100644--- a/tests/test_query_v3.py+++ b/tests/test_query_v3.py@@ -2,7 +2,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import querydiff --git a/tests/test_reddit.py b/tests/test_reddit.pyindex fcecc19c..def066d5 100644--- a/tests/test_reddit.py+++ b/tests/test_reddit.py@@ -2,7 +2,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib.reddit import (_extract_date,diff --git a/tests/test_reddit_enrich.py b/tests/test_reddit_enrich.pyindex c093f820..c9b20405 100644--- a/tests/test_reddit_enrich.py+++ b/tests/test_reddit_enrich.py@@ -6,7 +6,7 @@ import unittestfrom pathlib import Path# Add lib to path-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))from lib import reddit_enrichdiff --git a/tests/test_reddit_public.py b/tests/test_reddit_public.pyindex 5f55b36d..af2005c9 100644--- a/tests/test_reddit_public.py+++ b/tests/test_reddit_public.py@@ -9,7 +9,7 @@ import sysimport os# Ensure lib is importable-sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "scripts"))+sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "skills", "last30days", "scripts"))from lib import reddit_publicdiff --git a/tests/test_reddit_sc.py b/tests/test_reddit_sc.pyindex 9d389436..4578b654 100644--- a/tests/test_reddit_sc.py+++ b/tests/test_reddit_sc.py@@ -5,7 +5,7 @@ import unittestfrom pathlib import Path# Add lib to path-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))from lib import redditdiff --git a/tests/test_regression.py b/tests/test_regression.pyindex b598be07..b5f379b7 100644--- a/tests/test_regression.py+++ b/tests/test_regression.py@@ -10,7 +10,7 @@ REPO_ROOT = Path(__file__).resolve().parents[1]def run_mock_json(topic: str) -> dict:result = subprocess.run(- [sys.executable, "scripts/last30days.py", topic, "--mock", "--emit=json"],+ [sys.executable, "skills/last30days/scripts/last30days.py", topic, "--mock", "--emit=json"],cwd=REPO_ROOT,capture_output=True,text=True,diff --git a/tests/test_relevance.py b/tests/test_relevance.pyindex 368b1d1f..39765af1 100644--- a/tests/test_relevance.py+++ b/tests/test_relevance.py@@ -7,7 +7,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))from lib.relevance import STOPWORDS, SYNONYMS, token_overlap_relevance, tokenizediff --git a/tests/test_relevance_core_v3.py b/tests/test_relevance_core_v3.pyindex edba3a64..7bef8588 100644--- a/tests/test_relevance_core_v3.py+++ b/tests/test_relevance_core_v3.py@@ -2,7 +2,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import relevancediff --git a/tests/test_render_v3.py b/tests/test_render_v3.pyindex 0e040c23..01848126 100644--- a/tests/test_render_v3.py+++ b/tests/test_render_v3.py@@ -2,7 +2,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import render, schemadiff --git a/tests/test_rerank_fun.py b/tests/test_rerank_fun.pyindex b43a9171..72a010b9 100644--- a/tests/test_rerank_fun.py+++ b/tests/test_rerank_fun.py@@ -5,7 +5,7 @@ from pathlib import Pathimport pytest-SCRIPTS_DIR = Path(__file__).parent.parent / "scripts"+SCRIPTS_DIR = Path(__file__).parent.parent / "skills" / "last30days" / "scripts"sys.path.insert(0, str(SCRIPTS_DIR))from lib import schemadiff --git a/tests/test_rerank_v3.py b/tests/test_rerank_v3.pyindex 852c262c..a3ccb967 100644--- a/tests/test_rerank_v3.py+++ b/tests/test_rerank_v3.py@@ -2,7 +2,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import rerank, schemadiff --git a/tests/test_resolve.py b/tests/test_resolve.pyindex f497fde5..742f6576 100644--- a/tests/test_resolve.py+++ b/tests/test_resolve.py@@ -5,7 +5,7 @@ from contextlib import redirect_stderrfrom pathlib import Pathfrom unittest.mock import patch-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import resolvefrom lib.resolve import MAX_SUBS, _merge_category_peersdiff --git a/tests/test_schema_v3.py b/tests/test_schema_v3.pyindex e394ba60..9997905e 100644--- a/tests/test_schema_v3.py+++ b/tests/test_schema_v3.py@@ -2,7 +2,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import schemadiff --git a/tests/test_setup_openclaw.py b/tests/test_setup_openclaw.pyindex 4f1a2cbb..250cc1dd 100644--- a/tests/test_setup_openclaw.py+++ b/tests/test_setup_openclaw.py@@ -9,7 +9,7 @@ from unittest.mock import patch, MagicMock, callimport pytest# Add scripts dir to path-SCRIPTS_DIR = Path(__file__).parent.parent / "scripts"+SCRIPTS_DIR = Path(__file__).parent.parent / "skills" / "last30days" / "scripts"sys.path.insert(0, str(SCRIPTS_DIR))from lib import setup_wizarddiff --git a/tests/test_setup_wizard.py b/tests/test_setup_wizard.pyindex 086ce21e..252e2578 100644--- a/tests/test_setup_wizard.py+++ b/tests/test_setup_wizard.py@@ -9,7 +9,7 @@ from unittest.mock import patch, MagicMockimport pytest# Add scripts dir to path-SCRIPTS_DIR = Path(__file__).parent.parent / "scripts"+SCRIPTS_DIR = Path(__file__).parent.parent / "skills" / "last30days" / "scripts"sys.path.insert(0, str(SCRIPTS_DIR))from lib import setup_wizarddiff --git a/tests/test_signals_v3.py b/tests/test_signals_v3.pyindex 4535111d..b3ea5bcd 100644--- a/tests/test_signals_v3.py+++ b/tests/test_signals_v3.py@@ -3,7 +3,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import schema, signalsfrom lib.hackernews import parse_hackernews_responsediff --git a/tests/test_snippet_v3.py b/tests/test_snippet_v3.pyindex 9bb44397..1de607d1 100644--- a/tests/test_snippet_v3.py+++ b/tests/test_snippet_v3.py@@ -2,7 +2,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import schema, snippetdiff --git a/tests/test_store.py b/tests/test_store.pyindex 7b93c376..66a0f93f 100644--- a/tests/test_store.py+++ b/tests/test_store.py@@ -10,7 +10,7 @@ import pytest# Import the module under testimport sys-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))import storefrom lib import schemadiff --git a/tests/test_tiktok.py b/tests/test_tiktok.pyindex ea9095d4..8b1ce4c5 100644--- a/tests/test_tiktok.py+++ b/tests/test_tiktok.py@@ -2,7 +2,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib.tiktok import _parse_itemsdiff --git a/tests/test_truthsocial.py b/tests/test_truthsocial.pyindex e827eabc..0843f40c 100644--- a/tests/test_truthsocial.py+++ b/tests/test_truthsocial.py@@ -4,7 +4,7 @@ import unittestfrom pathlib import Pathfrom unittest.mock import patch, MagicMock-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))from lib import truthsocialdiff --git a/tests/test_ui_v3.py b/tests/test_ui_v3.pyindex 125e7ddd..3797ae02 100644--- a/tests/test_ui_v3.py+++ b/tests/test_ui_v3.py@@ -6,7 +6,7 @@ from contextlib import redirect_stderrfrom pathlib import Pathfrom unittest import mock-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib import uidiff --git a/tests/test_verify_v3.py b/tests/test_verify_v3.pyindex f985ea2f..e019f1d8 100644--- a/tests/test_verify_v3.py+++ b/tests/test_verify_v3.py@@ -4,7 +4,7 @@ from pathlib import Pathdef load_verify_module():- path = Path(__file__).resolve().parents[1] / "scripts" / "verify_v3.py"+ path = Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts" / "verify_v3.py"spec = importlib.util.spec_from_file_location("verify_v3_module", path)module = importlib.util.module_from_spec(spec)assert spec and spec.loaderdiff --git a/tests/test_version_consistency.py b/tests/test_version_consistency.pyindex dfa446b4..b4ec79d2 100644--- a/tests/test_version_consistency.py+++ b/tests/test_version_consistency.py@@ -4,10 +4,11 @@ from pathlib import PathROOT = Path(__file__).resolve().parents[1]+SKILL_ROOT = ROOT / "skills" / "last30days"def _skill_version() -> str:- text = (ROOT / "SKILL.md").read_text(encoding="utf-8")+ text = (SKILL_ROOT / "SKILL.md").read_text(encoding="utf-8")match = re.search(r'^version:\s*"([^"]+)"\s*$', text, re.MULTILINE)if not match:raise AssertionError("SKILL.md version frontmatter not found")@@ -16,18 +17,18 @@ def _skill_version() -> str:class TestVersionConsistency(unittest.TestCase):def test_root_skill_header_matches_frontmatter_version(self) -> None:- text = (ROOT / "SKILL.md").read_text(encoding="utf-8")+ text = (SKILL_ROOT / "SKILL.md").read_text(encoding="utf-8")version = _skill_version()self.assertIn(f"# last30days v{version}:", text)def test_sync_cache_path_uses_skill_version(self) -> None:- sync_text = (ROOT / "scripts" / "sync.sh").read_text(encoding="utf-8")+ sync_text = (SKILL_ROOT / "scripts" / "sync.sh").read_text(encoding="utf-8")version = _skill_version()self.assertIn(f'last30days-3/{version}"', sync_text)def test_memory_save_dir_uses_single_env_variable(self) -> None:- skill_text = (ROOT / "SKILL.md").read_text(encoding="utf-8")- compare_text = (ROOT / "scripts" / "compare.sh").read_text(encoding="utf-8")+ skill_text = (SKILL_ROOT / "SKILL.md").read_text(encoding="utf-8")+ compare_text = (SKILL_ROOT / "scripts" / "compare.sh").read_text(encoding="utf-8")default_assignment = 'LAST30DAYS_MEMORY_DIR="${LAST30DAYS_MEMORY_DIR:-$HOME/Documents/Last30Days}"'self.assertIn(default_assignment, skill_text)diff --git a/tests/test_watchlist_commands.py b/tests/test_watchlist_commands.pyindex a162e11d..b86a5eed 100644--- a/tests/test_watchlist_commands.py+++ b/tests/test_watchlist_commands.py@@ -10,7 +10,7 @@ from unittest.mock import Mock, patchimport pytest-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))import storeimport watchlistdiff --git a/tests/test_watchlist_delivery.py b/tests/test_watchlist_delivery.pyindex 7cf74867..a316b24c 100644--- a/tests/test_watchlist_delivery.py+++ b/tests/test_watchlist_delivery.py@@ -6,7 +6,7 @@ from unittest.mock import Mock, patchimport pytest-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))import watchlistdiff --git a/tests/test_xai_x.py b/tests/test_xai_x.pyindex eaa5ca0d..ab0c90ba 100644--- a/tests/test_xai_x.py+++ b/tests/test_xai_x.py@@ -3,7 +3,7 @@ import sysimport unittestfrom pathlib import Path-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib.xai_x import parse_x_responsediff --git a/tests/test_xquik.py b/tests/test_xquik.pyindex b54d0973..27439eda 100644--- a/tests/test_xquik.py+++ b/tests/test_xquik.py@@ -3,7 +3,7 @@ import unittestfrom pathlib import Pathfrom unittest.mock import patch-sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "skills" / "last30days" / "scripts"))from lib.xquik import (DEPTH_CONFIG,diff --git a/tests/test_youtube_relevance.py b/tests/test_youtube_relevance.pyindex 51e2ceb9..183314ba 100644--- a/tests/test_youtube_relevance.py+++ b/tests/test_youtube_relevance.py@@ -5,7 +5,7 @@ import unittestfrom pathlib import Path# Add lib to path-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))from lib.relevance import token_overlap_relevance as _compute_relevance, tokenize as _tokenizediff --git a/tests/test_youtube_yt.py b/tests/test_youtube_yt.pyindex 504ef9aa..a68ab862 100644--- a/tests/test_youtube_yt.py+++ b/tests/test_youtube_yt.py@@ -8,7 +8,7 @@ import urllib.errorfrom pathlib import Pathfrom unittest import mock-sys.path.insert(0, str(Path(__file__).parent.parent / "scripts"))+sys.path.insert(0, str(Path(__file__).parent.parent / "skills" / "last30days" / "scripts"))from lib import youtube_ytdiff --git a/uv.lock b/uv.lockindex 1280b152..f8f78250 100644--- a/uv.lock+++ b/uv.lock@@ -197,7 +197,7 @@ wheels = [[[package]]name = "last30days-skill"-version = "3.0.0"+version = "3.0.10"source = { virtual = "." }dependencies = [{ name = "requests" },