Skip to content

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

fix(version): replace hardcoded v3.0.0 with dynamic _skill_version()

Dave Morin863c3bc14549
diff --git a/skills/last30days/scripts/last30days.py b/skills/last30days/scripts/last30days.py
index da026c82..960cb2dd 100644
--- a/skills/last30days/scripts/last30days.py
+++ b/skills/last30days/scripts/last30days.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# ruff: noqa: E402
-"""last30days v3.0.0 CLI."""
+"""last30days CLI."""
from __future__ import annotations
diff --git a/skills/last30days/scripts/lib/render.py b/skills/last30days/scripts/lib/render.py
index 4d807189..7f21aa26 100644
--- a/skills/last30days/scripts/lib/render.py
+++ b/skills/last30days/scripts/lib/render.py
@@ -96,7 +96,7 @@ def render_compact(report: schema.Report, cluster_limit: int = 8, fun_level: str
non_empty = [s for s, items in sorted(report.items_by_source.items()) if items]
lines = [
*_render_badge(),
- f"# last30days v3.0.0: {report.topic}",
+ f"# last30days v{_skill_version()}: {report.topic}",
"",
*_assistant_safety_lines(),
f"- Date range: {report.range_from} to {report.range_to}",
@@ -602,7 +602,7 @@ def render_comparison_multi(
lines: list[str] = [
*_render_badge(),
- f"# last30days v3.0.0: {synthesized_topic}",
+ f"# last30days v{_skill_version()}: {synthesized_topic}",
"",
*_assistant_safety_lines(),
f"- Comparison mode: {len(entities)} entities ({', '.join(entities)})",
@@ -790,7 +790,7 @@ def render_full(report: schema.Report) -> str:
# Start with the same header as compact
non_empty = [s for s, items in sorted(report.items_by_source.items()) if items]
lines = [
- f"# last30days v3.0.0: {report.topic}",
+ f"# last30days v{_skill_version()}: {report.topic}",
"",
*_assistant_safety_lines(),
f"- Date range: {report.range_from} to {report.range_to}",
diff --git a/skills/last30days/scripts/lib/ui.py b/skills/last30days/scripts/lib/ui.py
index 475261d8..bd225bb0 100644
--- a/skills/last30days/scripts/lib/ui.py
+++ b/skills/last30days/scripts/lib/ui.py
@@ -6,6 +6,8 @@ import threading
import random
from typing import Optional
+from .render import _skill_version
+
# Check if we're in a real terminal (not captured by Claude Code)
IS_TTY = sys.stderr.isatty()
@@ -509,7 +511,8 @@ def show_diagnostic_banner(diag: dict):
if IS_TTY:
lines.append(f"{Colors.DIM}┌─────────────────────────────────────────────────────┐{Colors.RESET}")
- lines.append(f"{Colors.DIM}│{Colors.RESET} {Colors.BOLD}/last30days v3.0.0 - Source Status{Colors.RESET} {Colors.DIM}│{Colors.RESET}")
+ _header = f"/last30days v{_skill_version()} - Source Status"
+ lines.append(f"{Colors.DIM}│{Colors.RESET} {Colors.BOLD}{_header}{Colors.RESET}{' ' * (52 - len(_header))}{Colors.DIM}│{Colors.RESET}")
lines.append(f"{Colors.DIM}│{Colors.RESET} {Colors.DIM}│{Colors.RESET}")
# Reddit
@@ -556,7 +559,8 @@ def show_diagnostic_banner(diag: dict):
else:
# Plain text for non-TTY (Claude Code / Codex)
lines.append("┌─────────────────────────────────────────────────────┐")
- lines.append("│ /last30days v3.0.0 - Source Status │")
+ _header_plain = f"/last30days v{_skill_version()} - Source Status"
+ lines.append(f"│ {_header_plain}{' ' * (52 - len(_header_plain))}│")
lines.append("│ │")
if has_reddit and has_scrapecreators: