返回 last30days-skill
HERMES_SETUP.md
根目录 / HERMES_SETUP.md
1 # Hermes Setup Guide for last30days
2
3 This guide covers installing last30days on Hermes AI Agent.
4
5 ## Prerequisites
6
7 1. **Hermes installed** - See https://github.com/NousResearch/hermes-agent
8 2. **Python 3.12+** - `brew install python@3.12` or similar
9 3. **yt-dlp** (optional, for YouTube) - `brew install yt-dlp`
10
11 ## Installation
12
13 ```bash
14 hermes skills install mvanhorn/last30days-skill/skills/last30days --force
15 ```
16
17 Hermes's install-time scanner rates this skill `caution`, not `dangerous`: it flags ordinary things a research tool does, such as reading its own config from environment variables and running `yt-dlp` with `subprocess`. Hermes blocks a `caution` community skill unless you pass `--force`. Run `hermes skills list` to confirm it shows up. A session that is already open needs `/reload-skills` (or a new session) to pick it up.
18
19 Use the full `owner/repo/skills/last30days` path shown above. Do not install from a raw `SKILL.md` URL: that route copies only the files `SKILL.md` names directly and leaves out most of `scripts/lib/`, so research runs fail. The shorter `hermes skills install mvanhorn/last30days-skill` goes through the skills.sh index, which has served stale snapshots of this repo before ([vercel-labs/skills#1602](https://github.com/vercel-labs/skills/issues/1602)).
20
21 If the install is ever blocked again (`dangerous` verdict, "--force does not override a dangerous verdict"), please open an issue with the scan output, and copy the skill in by hand meanwhile:
22
23 ```bash
24 git clone https://github.com/mvanhorn/last30days-skill.git
25 mkdir -p ~/.hermes/skills/research
26 cp -r last30days-skill/skills/last30days ~/.hermes/skills/research/
27 ```
28
29 That deploys the skill straight from this repo's default branch to `~/.hermes/skills/research/last30days` (with named profiles the skills root is `~/.hermes/profiles/<name>/skills/`).
30
31 ### Developer / live-edit alternative
32
33 If you're hacking on the skill locally and want edits to propagate to Hermes without re-copying, symlink your working tree instead of `cp`:
34
35 ```bash
36 git clone https://github.com/mvanhorn/last30days-skill.git
37 mkdir -p ~/.hermes/skills/research
38 ln -s "$(pwd)/last30days-skill/skills/last30days" ~/.hermes/skills/research/last30days
39 ```
40
41 ## Usage
42
43 In Hermes, invoke with:
44
45 ```
46 last30days "your research topic"
47 ```
48
49 Or with options:
50 ```
51 last30days "best mechanical keyboards 2025" --search=reddit,youtube
52 last30days "AI news" --days=7 --deep
53 ```
54
55 ## First Run Setup
56
57 On first run, the skill will guide you through setup:
58
59 1. **Auto setup** (~30 seconds)
60 - Scans browser cookies for X/Twitter
61 - Checks/installs yt-dlp for YouTube
62 - Best-effort install of `digg-pp-cli` for Digg story clusters (via `@mvanhorn/printing-press-library`; binary lands in `$HOME/.local/bin` — ensure your Hermes gateway PATH includes it, or Digg stays off even after install)
63 - Configures free sources (Reddit, HN, Polymarket)
64
65 2. **Optional: ScrapeCreators**
66 - Adds TikTok, Instagram, Reddit backup
67 - 100 free credits (no expiration)
68 - Sign up at scrapecreators.com
69
70 3. **Optional: API Keys**
71 - XAI_API_KEY for X/Twitter (alternative to browser cookies)
72 - BRAVE_API_KEY for web search
73
74 ## Available Sources
75
76 ### Free (No API Key)
77 - **Reddit** - Public discussions and comments
78 - **Hacker News** - Tech discussions via Algolia
79 - **Polymarket** - Prediction markets
80 - **YouTube** - Search and transcripts (requires yt-dlp)
81 - **Digg** - story clusters from every Digg topic, ranked by Digg Score (requires `digg-pp-cli` on the agent PATH; auto-installed to `$HOME/.local/bin` during setup when `npx` is available)
82
83 ### Requires API Key
84 - **X/Twitter** - xAI API key or browser cookies
85 - **TikTok** - ScrapeCreators API
86 - **Instagram** - ScrapeCreators API
87 - **Web Search** - Brave Search API
88
89 ## Troubleshooting
90
91 ### Python not found
92 ```bash
93 # Find Python 3.12+
94 which python3.12 python3.13 python3.14
95
96 # If not installed
97 brew install python@3.12
98 ```
99
100 ### yt-dlp not found
101 ```bash
102 brew install yt-dlp
103 # or
104 pip install yt-dlp
105 ```
106
107 ### Check what's configured
108 ```bash
109 cd ~/.hermes/skills/research/last30days
110 python3.12 scripts/last30days.py --diagnose
111 ```
112
113 ## Updating
114
115 Re-run the install command. `--force` replaces the installed copy with the current version:
116
117 ```bash
118 hermes skills install mvanhorn/last30days-skill/skills/last30days --force
119 ```
120
121 `hermes skills update last30days` reports "No updates available" for a copy that was put in by hand (`git clone` + `cp`), and it reinstalls without `--force`, so Hermes blocks the `caution` verdict. Use the install command instead. If an older copy was put in by hand, remove that folder first (for example `~/.hermes/skills/research/last30days`). To keep copying by hand instead:
122
123 ```bash
124 cd last30days-skill && git pull
125 cp -r skills/last30days ~/.hermes/skills/research/
126 ```
127
128 If you symlinked your working tree (developer alternative above), just `git pull` in the repo; edits propagate live.
129
130 ## Support
131
132 - Original repo: https://github.com/mvanhorn/last30days-skill
133 - Hermes: https://github.com/NousResearch/hermes-agent
134 - Issues: Please report in the original repo
135
135 lines MARKDOWN