research-sources
Use for direct reads or searches web search misses on X/Twitter, LinkedIn posts, Reddit and Hacker News, YouTube videos and transcripts, or Apple App Store reviews. Also checks which sources work.
Install
npx skills add https://github.com/SamuelZ12/research-sources/tree/main/skills/research-sources
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install samuelz12-research-sources@llmmart
git clone https://github.com/SamuelZ12/research-sources.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole samuelz12/research-sources collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
research-sources (rsrc)
rsrc is read-only. For GitHub, use the gh CLI. Web search covers everything else.
Run rsrc …. If rsrc is not on PATH, ask the user to install it (uv tool install git+https://github.com/SamuelZ12/research-sources). rsrc <channel> [<action>] --help lists every flag.
Pick the channel
Before your first command on a channel, read that channel's file. The files are in references/, next to this file. Each one says what the commands return, what they leave out, and the request limits that protect the user's accounts.
| Question | Command | Read first |
|---|---|---|
| What people on X think about a topic | rsrc x search QUERY --since YYYY-MM-DD |
references/x.md |
| A specific x.com or twitter.com post or article | rsrc x read URL_OR_ID [URL_OR_ID …] |
references/x.md |
| A self-thread: every post the author chained under one post | rsrc x thread URL_OR_ID |
references/x.md |
| Replies to a post | rsrc x replies URL_OR_ID [--rank likes\|recency] [--limit 100] |
references/x.md |
| Who an X account is and what it posts | rsrc x timeline HANDLE_OR_URL [--limit 20] |
references/x.md |
| What people on Reddit say about a topic | rsrc reddit search QUERY [--subreddit NAME] [--time hour\|day\|week\|month\|year\|all] [--sort relevance\|hot\|top\|new\|comments] [--limit 25] [--with-comments [N]] (default past month, relevance) |
references/reddit.md |
| One Reddit thread or focused comment | rsrc reddit read URL_OR_ID [--sort top\|best\|new\|controversial\|old\|qa] [--comments 50] [--backend ego-browser\|arctic-shift] |
references/reddit.md |
| Hacker News stories on a topic | rsrc hn search QUERY --since YYYY-MM-DD [--until YYYY-MM-DD] [--sort relevance\|date] [--limit 30] |
references/hn.md |
| One Hacker News thread, with up to 1000 comments | rsrc hn read URL_OR_ID [--comments 50] |
references/hn.md |
| YouTube videos on a topic | rsrc youtube search QUERY [--limit 10] |
references/youtube.md |
| One YouTube video: its details and its transcript | rsrc youtube read URL_OR_ID [--words 5000] |
references/youtube.md |
| App Store listings and written reviews in a storefront | rsrc appstore search NAME [--country CC], rsrc appstore read ID_OR_URL_OR_NAME [--country CC] [--sort helpful] [--limit N] [--max-requests N] |
references/appstore.md |
| A public LinkedIn post and its comments | rsrc linkedin read URL |
references/linkedin.md |
| Which channels work right now | rsrc check [CHANNEL …] |
"Act on the result" below |
No command searches several sites at once. For "what are people saying about TOPIC lately", choose channels by question from the table. Nothing merges, ranks or filters across channels: each list is that site's own results in that site's order. For "A vs B", search each side.
Read the envelope
Every command prints exactly one JSON object on stdout.
ok,error(nullor{"code", "message"}), anditems. Each item hasid,url,title,author,published_at,text,source,engagementandraw. A missing top-level item field isnull. Engagement counts are live.meta.sources(checkonly): the outcome per channel,okor an error code.okcan be true while some channels failed, so read every entry.meta.failed(x read):{"input", "code", "message"}per post that could not be read. The other posts still came back. While at least one post comes back,errorstaysnulland the exit is0. Only when every post fails doeserrorcarry the first failure (exit1, or2forusage). A rate limit overrides partial success: the command exits 1 and keeps the posts read so far.meta.rejected:{"url", "reason"}items dropped asblocked_pageorurl_mismatch. Never quote them.meta.truncated: "request_cap": the request budget ran out. Checkerrorand which items arrived before you use a partial answer.meta.notes: upstream notes, for exampleN post(s) outside their date window dropped.- On a failure midway, partial results stay in
itemsand are usable.
Cite only URLs this tool returned in items. An x.com URL from anywhere else (Grok, a web page, a summary) gets checked with rsrc x read before you quote or count it.
Act on the result
| Exit | Meaning | Action |
|---|---|---|
0 |
At least one item | Use items. Still check meta.failed, meta.truncated, meta.sources for check, and raw.transcript.status for youtube read |
66 |
Ran fine, zero items | Report it as empty for that query or window. Broaden the query once at most |
2 |
usage or config (may include App Store candidates) |
See error.code below |
1 |
Runtime failure | See error.code below. Use any partial items |
The channel's file lists the messages that change an action below. Check it before you rerun.
error.code |
Action |
|---|---|
usage |
Fix the arguments from error.message and rerun once |
config |
Stop that channel. Ask the user to apply the exact fix the message prints (for example a chmod, a missing program or cookie). Do not apply it yourself |
auth_failed |
Stop that channel (scope below). Ask the user to sign in again on the route the channel's file names |
rate_limited |
Stop that channel (scope below) for the rest of the session. Never retry or route around it |
blocked |
Access was refused or the source returned a block page. Treat it as unreadable (scope below) |
url_mismatch |
The returned item or storefront did not match the request. Discard it |
not_found |
Report what the source could establish for this account or storefront. Include the specific reason when supplied |
upstream_error |
Rerun once. If it repeats, report the channel as failing |
network_error |
Rerun once. If it repeats, report the channel as unreachable |
timeout |
Report it. Rerun once only if the question needs that channel |
Stop scope. A stop lasts for the session.
- X. Use the envelope's
backendto identify which backend stopped. A stop from FxTwitter (search,read,thread,repliesortimeline) ends allrsrc x. After a signed-in X backend stops, avoid that account on both search and timeline.x readandx repliesmay verify specific URLs, and never stand in for a search.blockedonx readorcheck --live-xcovers that one post only. - Reddit.
rate_limitedorblockedstops all Reddit access:rsrc redditand any Reddit page in Ego, which share the same browser and account. - YouTube.
rate_limitedorblockedstops allrsrc youtube, search andcheck youtubeincluded. Asource_blockedtranscript status counts asblocked. - LinkedIn.
blocked,rate_limitedorauth_failedstops LinkedIn access, includingcheck linkedinand a barersrc check, which read a public post. - Hacker News and the App Store.
rate_limitedstops the whole channel.
Check. After an unexpected failure, check the affected channel by name. Skip channels already stopped. A bare rsrc check probes a public LinkedIn post, a public App Store search, the HN front page, YouTube metadata through yt-dlp, local X settings and the local Ego Lite connection (without Ego Lite, one archived Reddit thread from Arctic Shift). --live-x adds a public post read, and a FxTwitter search if FxTwitter is in the search order. It never proves signed-in X search. --live-reddit adds a Reddit search page in Ego Lite.
Files (research-sources)
-
references
-
appstore.md 1.2 KB
Loading… -
hn.md 2 KB
Loading… -
linkedin.md 1.1 KB
Loading… -
reddit.md 4.3 KB
Loading… -
x.md 9.5 KB
Loading… -
youtube.md 3.3 KB
Loading…
-
-
SKILL.md 7.6 KB
--- name: research-sources description: Use for direct reads or searches web search misses on X/Twitter, LinkedIn posts, Reddit and Hacker News, YouTube videos and transcripts, or Apple App Store reviews. Also checks which sources work. --- # research-sources (`rsrc`) `rsrc` is read-only. For GitHub, use the `gh` CLI. Web search covers everything else. Run `rsrc …`. If `rsrc` is not on PATH, ask the user to install it (`uv tool install git+https://github.com/SamuelZ12/research-sources`). `rsrc <channel> [<action>] --help` lists every flag. ## Pick the channel Before your first command on a channel, read that channel's file. The files are in `references/`, next to this file. Each one says what the commands return, what they leave out, and the request limits that protect the user's accounts. | Question | Command | Read first | |---|---|---| | What people on X think about a topic | `rsrc x search QUERY --since YYYY-MM-DD` | `references/x.md` | | A specific x.com or twitter.com post or article | `rsrc x read URL_OR_ID [URL_OR_ID …]` | `references/x.md` | | A self-thread: every post the author chained under one post | `rsrc x thread URL_OR_ID` | `references/x.md` | | Replies to a post | `rsrc x replies URL_OR_ID [--rank likes\|recency] [--limit 100]` | `references/x.md` | | Who an X account is and what it posts | `rsrc x timeline HANDLE_OR_URL [--limit 20]` | `references/x.md` | | What people on Reddit say about a topic | `rsrc reddit search QUERY [--subreddit NAME] [--time hour\|day\|week\|month\|year\|all] [--sort relevance\|hot\|top\|new\|comments] [--limit 25] [--with-comments [N]]` (default past month, relevance) | `references/reddit.md` | | One Reddit thread or focused comment | `rsrc reddit read URL_OR_ID [--sort top\|best\|new\|controversial\|old\|qa] [--comments 50] [--backend ego-browser\|arctic-shift]` | `references/reddit.md` | | Hacker News stories on a topic | `rsrc hn search QUERY --since YYYY-MM-DD [--until YYYY-MM-DD] [--sort relevance\|date] [--limit 30]` | `references/hn.md` | | One Hacker News thread, with up to 1000 comments | `rsrc hn read URL_OR_ID [--comments 50]` | `references/hn.md` | | YouTube videos on a topic | `rsrc youtube search QUERY [--limit 10]` | `references/youtube.md` | | One YouTube video: its details and its transcript | `rsrc youtube read URL_OR_ID [--words 5000]` | `references/youtube.md` | | App Store listings and written reviews in a storefront | `rsrc appstore search NAME [--country CC]`, `rsrc appstore read ID_OR_URL_OR_NAME [--country CC] [--sort helpful] [--limit N] [--max-requests N]` | `references/appstore.md` | | A public LinkedIn post and its comments | `rsrc linkedin read URL` | `references/linkedin.md` | | Which channels work right now | `rsrc check [CHANNEL …]` | "Act on the result" below | No command searches several sites at once. For "what are people saying about TOPIC lately", choose channels by question from the table. Nothing merges, ranks or filters across channels: each list is that site's own results in that site's order. For "A vs B", search each side. ## Read the envelope Every command prints exactly one JSON object on stdout. - `ok`, `error` (`null` or `{"code", "message"}`), and `items`. Each item has `id`, `url`, `title`, `author`, `published_at`, `text`, `source`, `engagement` and `raw`. A missing top-level item field is `null`. Engagement counts are live. - `meta.sources` (`check` only): the outcome per channel, `ok` or an error code. `ok` can be true while some channels failed, so read every entry. - `meta.failed` (`x read`): `{"input", "code", "message"}` per post that could not be read. The other posts still came back. While at least one post comes back, `error` stays `null` and the exit is `0`. Only when every post fails does `error` carry the first failure (exit `1`, or `2` for `usage`). A rate limit overrides partial success: the command exits 1 and keeps the posts read so far. - `meta.rejected`: `{"url", "reason"}` items dropped as `blocked_page` or `url_mismatch`. Never quote them. - `meta.truncated: "request_cap"`: the request budget ran out. Check `error` and which items arrived before you use a partial answer. - `meta.notes`: upstream notes, for example `N post(s) outside their date window dropped`. - On a failure midway, partial results stay in `items` and are usable. **Cite only URLs this tool returned in `items`.** An x.com URL from anywhere else (Grok, a web page, a summary) gets checked with `rsrc x read` before you quote or count it. ## Act on the result | Exit | Meaning | Action | |---|---|---| | `0` | At least one item | Use `items`. Still check `meta.failed`, `meta.truncated`, `meta.sources` for `check`, and `raw.transcript.status` for `youtube read` | | `66` | Ran fine, zero items | Report it as empty for that query or window. Broaden the query once at most | | `2` | `usage` or `config` (may include App Store candidates) | See `error.code` below | | `1` | Runtime failure | See `error.code` below. Use any partial `items` | The channel's file lists the messages that change an action below. Check it before you rerun. | `error.code` | Action | |---|---| | `usage` | Fix the arguments from `error.message` and rerun once | | `config` | Stop that channel. Ask the user to apply the exact fix the message prints (for example a `chmod`, a missing program or cookie). Do not apply it yourself | | `auth_failed` | Stop that channel (scope below). Ask the user to sign in again on the route the channel's file names | | `rate_limited` | Stop that channel (scope below) for the rest of the session. Never retry or route around it | | `blocked` | Access was refused or the source returned a block page. Treat it as unreadable (scope below) | | `url_mismatch` | The returned item or storefront did not match the request. Discard it | | `not_found` | Report what the source could establish for this account or storefront. Include the specific reason when supplied | | `upstream_error` | Rerun once. If it repeats, report the channel as failing | | `network_error` | Rerun once. If it repeats, report the channel as unreachable | | `timeout` | Report it. Rerun once only if the question needs that channel | **Stop scope.** A stop lasts for the session. - **X.** Use the envelope's `backend` to identify which backend stopped. A stop from FxTwitter (`search`, `read`, `thread`, `replies` or `timeline`) ends all `rsrc x`. After a signed-in X backend stops, avoid that account on both search and timeline. `x read` and `x replies` may verify specific URLs, and never stand in for a search. `blocked` on `x read` or `check --live-x` covers that one post only. - **Reddit.** `rate_limited` or `blocked` stops all Reddit access: `rsrc reddit` and any Reddit page in Ego, which share the same browser and account. - **YouTube.** `rate_limited` or `blocked` stops all `rsrc youtube`, search and `check youtube` included. A `source_blocked` transcript status counts as `blocked`. - **LinkedIn.** `blocked`, `rate_limited` or `auth_failed` stops LinkedIn access, including `check linkedin` and a bare `rsrc check`, which read a public post. - **Hacker News and the App Store.** `rate_limited` stops the whole channel. **Check.** After an unexpected failure, check the affected channel by name. Skip channels already stopped. A bare `rsrc check` probes a public LinkedIn post, a public App Store search, the HN front page, YouTube metadata through yt-dlp, local X settings and the local Ego Lite connection (without Ego Lite, one archived Reddit thread from Arctic Shift). `--live-x` adds a public post read, and a FxTwitter search if FxTwitter is in the search order. It never proves signed-in X search. `--live-reddit` adds a Reddit search page in Ego Lite.
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.