# mvanhorn/last30days-skill — AlpLab Radar Static Code Audit

- Ring: `adopt`
- Category: `skills`
- Overall score: `4.3/5`
- Implementation check: `verified`
- Maturity: `active`
- Audited commit: `d82c139d808e` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-01T20:26:55Z
- Repository: https://github.com/mvanhorn/last30days-skill
- Radar entry: https://radar.alplab.co/#repo/mvanhorn/last30days-skill
- License: `MIT`
- CI workflows: `.github/workflows`
- Tags: `agent-skills`, `research`, `reddit`, `polymarket`, `claude-code`, `web-search`

## Summary

A production-grade agent skill (/last30days) whose 279KB Python engine plus SKILL.md runtime spec fans out a research topic across 25+ sources (keyless Reddit/HN/Polymarket/Github by default, plus X, YouTube, TikTok, Instagram, jobs boards, USPTO patents, Yahoo Finance and more behind consent-gated keys), clusters and reranks the results, and renders a cited brief across 50+ agent hosts, with a Go MCP server and optional Rust core alongside.

## Implementation Check

Every core README claim maps to working code at this commit: the source table matches one module per source in skills/last30days/scripts/lib/ (hackernews.py search_hackernews via keyless Algolia, polymarket.py search_polymarket via Gamma with EntityMatcher odds lines, reddit_keyless.py shreddit/Arctic-Shift/web-floor lane, patents.py, jobs.py + job_boards/*, yahoo_finance.py, x backends bird_x.py/xai_x.py/x_api.py), the zero-config free tier is real (search_and_enrich in reddit_keyless.py returns [] on failure so paid backup engages), the MCP bundle (mcp/README.md, sync-engine.sh) and SQLite watchlist/store.py with FTS5 all exist as described, and 'no tracking, no analytics' held up under search (no telemetry in engine code).

## When to Use

Use when you want an agent to research what a community, market, or company actually did in the last 30 days (pre-meeting person checks, company signal digs, trend discovery, X-vs-Y comparisons) and you can accept its bring-your-own-keys model plus scraping-adjacent lanes (Reddit shreddit/Arctic Shift, browser cookies for X) that vendors may break. Not for guaranteed-stable API products, enterprises needing vendor-approved data paths, or anyone unwilling to review the well-documented but broad network/cookie behavior in SECURITY.md.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.5/5 |
| usability | 4.5/5 |
| reliability | 3.0/5 |
| security | 4.5/5 |
| integration | 5.0/5 |

## Code Evidence

skills/last30days/SKILL.md defines the full runtime contract (reference routing, consent-gated onboarding, discovery three-command protocol, agent JSON export); skills/last30days/scripts/last30days.py implements the CLI (build_parser, save_output with O_EXCL 0o600 private-corpus writes, sanitize_suffix path-safety, ensure_supported_python gate, SIGTERM child cleanup); skills/last30days/scripts/lib/hackernews.py search_hackernews hits hn.algolia.com keyless with client-side engagement filtering; lib/polymarket.py search_polymarket/_odds_summary implement volume-sorted Gamma search, race/outcome selection and price-movement odds lines; lib/reddit.py and lib/reddit_keyless.py implement paid ScrapeCreators search plus the keyless session/shreddit/site-search/web-floor lanes with spend limits and relevance floors; lib/env.py get_config implements the layered credential resolution (process env > trusted project .env > global .env > Keychain > pass) with _check_file_permissions warnings, symlink rejection and ${user_config.*} placeholder stripping; lib/http.py implements SSRF defenses (_PublicHTTPConnection IP pinning, _StripAuthOnCrossOriginRedirect, redirect guards, 16MiB body caps, retry-after handling); lib/subproc.py run_with_timeout implements session-leader process groups and Windows kill-on-close jobs; scripts/store.py implements WAL SQLite with FTS5, parameterized SQL and 0600 hardening; tests/conftest.py isolates HOME/credentials/network per test; tests/hermes/test_no_critical_scan_findings.py replicates an external install scanner's CRITICAL rules as a regression gate; .github/workflows/validate.yml runs the full pytest suite with an 81% coverage floor, a Windows subprocess job, the eval suite, Go MCP tests and Rust fmt/clippy/test, all actions pinned by commit SHA.

## Issues Found

None recorded.

## Key Risks

Nothing was executed: the test suite and CI pipelines are verified to exist and are unusually substantive (300+ test files including dedicated security suites test_pr01-pr37), but passing status is inferred from configuration, not observed. Runtime depth depends on third-party endpoints and services that can break or rate-limit at any time (Reddit keyless is explicitly documented as permanently 403 on search.json, mitigated by shreddit/listing/Arctic-Shift fallbacks); the doctor/health machinery reports but cannot prevent source drift. Several high-value lanes (X via browser cookies or vendored bird client, Reddit as logged-in session, Amazon via Bright Data) are consent-gated and/or ToS-gray even though SECURITY.md documents them honestly. Core modules are very large (lib/pipeline.py 433KB, lib/render.py 264KB, lib/jobs.py 175KB, lib/http.py 113KB), which raises long-term maintainability cost. The product's final quality also depends on the hosting LLM faithfully following SKILL.md's dense 32KB instruction contract; on weaker hosts output discipline may degrade. Jobs lane deliberately reads some job listings disallowed by robots.txt (documented owner decision, opt-out via LAST30DAYS_JOBS_RESPECT_ROBOTS).

## Reviewed Files

- `README.md`
- `pyproject.toml`
- `AGENTS.md`
- `CONTRIBUTING.md`
- `SECURITY.md`
- `.github/workflows/validate.yml`
- `.claude-plugin/hooks.json`
- `mcp/README.md`
- `docs/residual-review-findings/42c5ab5bebcb3d4bd4d8bfc11f89b4df4bc1da9b.md`
- `skills/last30days/SKILL.md`
- `skills/last30days/references/runtime.md`
- `skills/last30days/scripts/last30days.py`
- `skills/last30days/scripts/capture_brief_hook.py`
- `skills/last30days/scripts/store.py`
- `skills/last30days/scripts/lib/env.py`
- `skills/last30days/scripts/lib/hackernews.py`
- `skills/last30days/scripts/lib/http.py`
- `skills/last30days/scripts/lib/polymarket.py`
- `skills/last30days/scripts/lib/reddit.py`
- `skills/last30days/scripts/lib/reddit_keyless.py`
- `skills/last30days/scripts/lib/subproc.py`
- `tests/conftest.py`
- `tests/skill_contract.py`
- `tests/hermes/test_no_critical_scan_findings.py`
