reply-maker
Skill766 starsChanged 3 months agoMITView on GitHub
Draft copy-paste-ready X replies - two options per reply-worthy tweet from tracked accounts, topics, or lists (default), or ready-to-post responses to engagement opps in recent logs (from-logs)
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- aaronjmars/miroshark-aeonword for word, first seen Aug 20, 2026
Other versions1 project uses a version of this.
Word for word · 1
- aaronjmars/miroshark-aeon★ 18100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository88 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- aeonSkill
- action-converterSkill
- aeon-doctorSkill
- aeon-updateSkill
- arc-studioSkill
- articleSkill
- auto-mergeSkill
- autoresearchSkill
- auto-workflowSkill
- base-mcpSkill
- bd-radarSkill
- changelogSkill
- competitor-monitorSkill
- compute-resellSkill
- cortx-reliabilitySkill
- create-proveSkill
- create-skillSkill
- defi-overviewSkill
- deploy-prototypeSkill
- deploy-uni-hookSkill
- digestSkill
- distribute-tokensSkill
- executor-mcpSkill
- featureSkill
- feedback-builderSkill
- fetch-tweetsSkill
- finance-district-mcpSkill
- fleet-controlSkill
- fork-fleetSkill
- github-monitorSkill
- github-trendingSkill
- glim-mcpSkill
- heartbeatSkill
- higgsfieldSkill
- hunter-22Skill
- idea-forgeSkill
- idea-pipelineSkill
- inbox-triageSkill
- install-skillSkill
- investigation-reportSkill
- last30Skill
- memory-flushSkill
- mention-radarSkill
- miroshark-matchdaySkill
- monitor-polymarketSkill
- narrative-convergenceSkill
- narrative-trackerSkill
- onchain-monitorSkill
- operator-scorecardSkill
- pack-submitSkill
- picks-trackerSkill
- pm-manipulationSkill
- posthog-errorsSkill
- price-alertSkill
- pr-reviewSkill
- pr-triageSkill
- remotionSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. About 0 are common, 8 are distinctive, and 16 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
16
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Read memory/MEMORY.md for context on active projects and open engagement follow-ups.
- Very specific: line 32
If ${var} starts with revise: — run the Revise branch (below) and stop.
- Very specific: line 33
If ${var} is from-logs or --from-logs — optionally followed by a whitespace-separated @handle or project name — run Mode B (From-Logs …
- Very specific: line 38
If soul files exist (soul/SOUL.md, soul/STYLE.md, soul/examples/), read them and mirror that voice in every reply.
- Distinctive: line 40
If no soul files exist (or the bodies are empty placeholders), write replies that are:
- Very specific: line 55
Load the last draft: Read memory/drafts/reply-maker-latest.md — the stable path every normal run saves to (see the save steps in A4 / B6).
- Very specific: line 87
If KEY_PRESENT (it will be), Path A is required.
- Distinctive: line 148
Room-to-add: not already swarmed; thread isn't full of stronger replies.
- Distinctive: line 160
Must contain at least one named entity, number, or specific reference — vague "great insight, here's another angle" is banned
- Distinctive: line 165
Must contain the actual disagreement, not a hedge — vague "interesting, but have you considered..." is banned
- Distinctive: line 174
Match soul voice: if soul files are populated
- Distinctive: line 184
If any score is < 4, rewrite that reply once before moving on.
- Very specific: line 205
If zero candidates survive the skip gate from any source, send a single REPLY_MAKER_EMPTY — [one-line reason] notification and stop.
- Very specific: line 223
Read memory/logs/ for the last 7 days.
- Distinctive: line 246
Keep under 280 chars for X replies.
- Very specific: line 251
If any opportunity is 5+ days old, prepend aging to that entry in the output.
- Very specific: line 255
If after filtering there are zero unactioned opps, log ENGAGEMENT_ACT_SKIP: no unactioned opps (under the ### reply-maker heading) and exit …
- Very specific: line 273
Write this to /tmp/reply-maker-from-logs.md then run ./notify -f /tmp/reply-maker-from-logs.md.
- Distinctive: line 275
After notifying, save the drafts and offer a revision (see *Save drafts + offer revision*).
- Very specific: line 285
After a normal run (Mode A or B) has drafted and notified replies, do two things so the operator can refine them from Telegram.
- Very specific: line 291
Write the full draft body you just sent — all selected tweets with their A/B options (Mode A), or the ready-to-post list (Mode B) — to …
- Very specific: line 300
Dedup — once per produced draft: Before offering, scan the last ~2 days of memory/logs/ for a FORCE_REPLY_OFFERED: revise line dated …
- Very specific: line 341
If skipped: ENGAGEMENT_ACT_SKIP: <reason> (still under ### reply-maker).
- Very specific: line 358
Check, don't assume: Run [ -n "$XAI_API_KEY" ] && echo KEY_PRESENT || echo KEY_UNSET.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- autoresearch: variation B — sharper output via specificity gates, anti-sycophancy lint, post-write self-edit, and skip-gate for low-leverage tweets -->${var} — selects the mode and scope:
- empty → Mode A (Reply Drafting): auto-discover reply-worthy tweets across your areas of interest (from recent logs + memory) and draft two reply options for each.
@handle/ numeric X list ID / topic → Mode A (Reply Drafting) scoped to that handle, list, or topic.from-logs(or--from-logs, optionally followed by an@handleor project name to narrow the scan) → Mode B (From-Logs Engagement): scan recent logs for flagged engagement opportunities and turn them into copy-paste-ready responses.revise:<instruction>→ Revise branch: reload the last drafted replies and refine them per the instruction (the Telegram force-reply shape, e.g.revise:make them shorter).
Preamble (both modes)
Read memory/MEMORY.md for context on active projects and open engagement follow-ups.
Then read memory/logs/ — the window depends on the mode:
- Mode A: the last 2 days of
memory/logs/for recentfetch-tweets,narrative-tracker, and priorreply-makeroutputs (used as a candidate pool and for reply de-duplication). - Mode B: the last 7 days of
memory/logs/for engagement opportunities flagged by other skills (mention-radar,fetch-tweets,reply-maker) or noted in MEMORY.md "Known Follow-ups".
Parse ${var} to pick the branch (trim whitespace, compare case-insensitively):
- If
${var}starts withrevise:— run the Revise branch (below) and stop. This is the shapescripts/telegram-route.shsends when the operator replies to a "refine these replies?" force-reply prompt; catch it before mode parsing. - If
${var}isfrom-logsor--from-logs— optionally followed by a whitespace-separated@handleor project name — run Mode B (From-Logs Engagement). Treat any trailing token as an optional filter that narrows the opportunity scan to that handle/project. - Otherwise run Mode A (Reply Drafting), treating
${var}as the scope: empty,@handle, numeric X list ID, or a topic string.
Voice
If soul files exist (soul/SOUL.md, soul/STYLE.md, soul/examples/), read them and mirror that voice in every reply. Match sentence length, vocabulary choices, punctuation habits, and the kinds of things the operator would never say.
If no soul files exist (or the bodies are empty placeholders), write replies that are:
- Direct and substantive — no fluff, no sycophancy
- Under 280 characters each (X replies; DMs and GitHub comments may run longer — see Mode B)
- Opinionated but grounded in specifics
- The kind of reply that adds to the conversation, not noise
Either way, when responding to someone who cosigned/mentioned/attributed the operator (Mode B): acknowledge without groveling — no "thanks so much for the kind words!", just the actual response.
Revise branch (revise:… — Telegram force-reply)
The operator tapped the "refine these replies?" prompt and sent a free-text revision instruction. Handle it before Mode A/B:
- Strip the prefix. The instruction is
${var#revise:}(keep any inner colons). Trim whitespace — e.g.make them shorter,less formal,drop reply B on #2. - Load the last draft. Read
memory/drafts/reply-maker-latest.md— the stable path every normal run saves to (see the save steps in A4 / B6). If it's missing or empty, there's nothing to refine: send./notify "Nothing to revise yet — run reply-maker first, then reply here to refine the drafts."and end the run. - Apply the instruction. Read
soul/for voice, then regenerate the saved replies applying the operator's instruction. Keep the same set of target tweets and the same A/B two-option structure (Mode A) or ready-to-post list (Mode B) — you're refining wording, not re-discovering candidates. Re-enforce the hard reply rules: ≤280 chars for X replies, no sycophancy (see Banned sycophancy phrases), specifics not gestures. - Re-save the revised drafts to
memory/drafts/reply-maker-latest.md(overwrite), so a furtherrevise:refines the newest version. - Re-send via
./notifyin the same format the originating mode uses, with a first line flagging it as a revision, e.g.revised (${var#revise:}):. Use./notify -f <file>for multi-line output. - Re-offer a further revision (the operator is actively iterating, so this is expected, not a nag — skip the daily dedup guard here):
./notify "Want another pass? Reply with a change and I'll revise again." \ --force-reply --placeholder "e.g. make them shorter" \ --context "reply-maker::revise" - Log under
### reply-makerwith- **Mode:** reviseand the instruction (see Log), then end the run — do NOT run Mode A or B.
Mode A — Reply Drafting
Generate two reply options for 5 reply-worthy tweets from tracked X accounts, a list, or a topic.
A1. Gather candidate tweets
Goal: assemble 10–15 candidates posted in the last 6 hours (the high-leverage reply window — the algorithm rewards early replies, and the OP is still likely to engage back). Recency fallback: if the 6h window yields fewer than 3 candidates after the skip gate, widen to 12h and retry before failing the run.
For every candidate, capture: @handle, full tweet text, tweet URL, posted_at (ISO), engagement counts (likes, replies, retweets if available), and a one-line why-this-tweet note.
Path A — X.AI API (primary). XAI_API_KEY is injected into this skill's environment (declared in requires:), so the direct curl to https://api.x.ai/v1/responses is the primary fetch path (full contract in Fetching at the bottom). Preflight the key, then call Grok's x_search, capturing the HTTP status so any fallback decision is fact-based. x_search searches X live and takes 30–120s — set the Bash tool timeout to ≥180000 when you run this (a slow curl is not a missing key).
[ -n "$XAI_API_KEY" ] && echo KEY_PRESENT || echo KEY_UNSET
TO_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
FROM_DATE=$(date -u -d "6 hours ago" +%Y-%m-%dT%H:%M:%SZ 2>/dev/null || date -u -v-6H +%Y-%m-%dT%H:%M:%SZ)If KEY_PRESENT (it will be), Path A is required. Build the payload file /tmp/xai-rm-payload.json per ${var} (three shapes below — each branch writes the same fixed file), then:
HTTP=$(./secretcurl -s -o /tmp/xai-rm.json -w '%{http_code}' --max-time 150 -X POST "https://api.x.ai/v1/responses" \
-H "Content-Type: application/json" -H "Authorization: Bearer {XAI_API_KEY}" -d @/tmp/xai-rm-payload.json)
echo "xai http=$HTTP bytes=$(wc -c </tmp/xai-rm.json)"On HTTP=200 with a non-empty body, parse /tmp/xai-rm.json and mark xai=ok:
jq -r '.output[] | select(.type == "message") | .content[] | select(.type == "output_text") | .text' /tmp/xai-rm.jsonThe payload file /tmp/xai-rm-payload.json depends on ${var}. Whichever branch matches, build it with jq -n --arg (never a shell-interpolated string) and write it to that one fixed path — the ./secretcurl call above then sends it with -d @/tmp/xai-rm-payload.json:
If ${var} looks like an X list ID (numeric):
LIST_ID="${var}"
jq -n --arg list_id "$LIST_ID" --arg from "$FROM_DATE" --arg to "$TO_DATE" '{
model: "grok-4.7",
input: [{role: "user", content: ("Look at X list https://x.com/i/lists/" + $list_id + ". Return the 12 most reply-worthy original posts (not retweets, not replies) by members of this list between " + $from + " and " + $to + ". Reply-worthy = has a take, claim, question, or framing worth engaging — NOT pure self-promo, breaking news without analysis, or threads already past 500 replies. For each: @handle, full tweet text, tweet URL, posted_at ISO timestamp, like/reply/retweet counts.")}],
tools: [{type: "x_search", from_date: $from, to_date: $to}]
}' > /tmp/xai-rm-payload.jsonIf ${var} looks like a @handle — same query intent, scoped to that handle's recent original posts:
HANDLE="${var}"
jq -n --arg handle "$HANDLE" --arg from "$FROM_DATE" --arg to "$TO_DATE" '{
model: "grok-4.7",
input: [{role: "user", content: ("Look at recent original posts (not retweets, not replies) by " + $handle + " on X between " + $from + " and " + $to + ". Return the 12 most reply-worthy. Reply-worthy = has a take, claim, question, or framing worth engaging — NOT pure self-promo, breaking news without analysis, or threads already past 500 replies. For each: @handle, full tweet text, tweet URL, posted_at ISO timestamp, like/reply/retweet counts.")}],
tools: [{type: "x_search", from_date: $from, to_date: $to}]
}' > /tmp/xai-rm-payload.jsonIf ${var} is a topic (or empty) — same query intent with ${var} (or the top 2–3 topics from memory/MEMORY.md when empty) as the search query. When empty, also pull tweet candidates surfaced in the last 2 days of fetch-tweets logs as a backup pool.
TOPIC="${var}" # when empty, substitute the top 2–3 topics from memory/MEMORY.md
jq -n --arg topic "$TOPIC" --arg from "$FROM_DATE" --arg to "$TO_DATE" '{
model: "grok-4.7",
input: [{role: "user", content: ("Search X for the 12 most reply-worthy original posts (not retweets, not replies) about " + $topic + " between " + $from + " and " + $to + ". Reply-worthy = has a take, claim, question, or framing worth engaging — NOT pure self-promo, breaking news without analysis, or threads already past 500 replies. For each: @handle, full tweet text, tweet URL, posted_at ISO timestamp, like/reply/retweet counts.")}],
tools: [{type: "x_search", from_date: $from, to_date: $to}]
}' > /tmp/xai-rm-payload.jsonPath B — memory logs + WebSearch (last-resort fallback only). Reach here only on a real Path A failure, and record the true reason — key-unset | http-<code> | empty | timeout — never "XAI_API_KEY unavailable" when the key was set. Use in order until you have ≥3 candidates:
- Recent
fetch-tweetsoutputs inmemory/logs/— already have URLs and handles. - WebSearch for very recent posts on memory topics (filter: posted within last 6h, original post not reply). Lower quality — WebSearch favours older high-engagement tweets, so prioritise results dated within the last 6h.
A2. Filter and select 5 tweets
Apply the skip gate first. Discard any candidate that is:
- Pure self-promo (launching a product, "buy my course", subscribe links)
- Breaking-news repost without an angle of its own
- A thread already past ~500 replies (your reply will not be seen)
- Older than 6 hours (reply window has closed; don't waste a reply slot)
- A handle/URL already replied to in the last 7 days of reply-maker logs (no duplicates)
From the survivors, rank by leverage = recency × take-strength × room-to-add:
- Recency: minutes-ago > hours-ago. Tweets <60min old are top priority.
- Take-strength: a clear claim/question/framing you can either reinforce with evidence or challenge with a flipped premise.
- Room-to-add: not already swarmed; thread isn't full of stronger replies; you have actual context to contribute.
- Bias toward authors whose audience overlaps your interests (from
memory/MEMORY.md) — replies on those accounts get seen by people who care about the same things.
Pick the top 5. If fewer than 5 survive the gate, output what you have and add REPLY_MAKER_DEGRADED to the notification subject line.
A3. Generate two replies per tweet
For each of the 5 selected tweets, draft two reply options with distinct angles:
Option A — "Evidence add"
- Builds on their point with a specific datum, named project, named person, concrete number, link, or counterexample they didn't include
- Tone: collaborative, substantive, calmly confident
- Must contain at least one named entity, number, or specific reference — vague "great insight, here's another angle" is banned
Option B — "Frame challenge"
- States the premise you're pushing back on explicitly (one short clause), then offers the contrarian angle, flipped framing, or sharper read
- Tone: direct, opinionated, not contrarian-for-its-own-sake
- Must contain the actual disagreement, not a hedge — vague "interesting, but have you considered..." is banned
Hard reply rules (apply to both A and B)
- ≤ 280 characters including any handle prefix
- No sycophancy — see the
## Banned sycophancy phrasessection below. Any draft containing a banned phrase must be rewritten. - No hedging stacks — "It could be argued that…", "Just my two cents but…", "Maybe I'm wrong but…" — pick a position
- Specifics, not gestures — names, projects, numbers, links. If you can't cite one, don't write the reply
- Stand alone — readers may not see the original tweet; reply must make sense on its own
- Match soul voice if soul files are populated
Self-edit pass (do this for every reply before finalizing)
For each draft reply, score 1–5 on each:
- Specific: cites a name/number/project/claim?
- Standalone: makes sense without reading the parent?
- Non-sycophantic: passes the banned-phrase list?
- Voice-matched: sounds like the soul files (or neutral-direct if no soul)?
If any score is < 4, rewrite that reply once before moving on. If the rewrite still scores < 4, drop that tweet from the list and pull the next-ranked candidate from step A2.
A4. Notify
Send via ./notify with this format (link first so the operator can open the source quickly):
*Reply Maker — ${today}*
*1.* https://x.com/handle/status/123 (@handle, 42m ago, 18💬)
> [first ~80 chars of tweet]…
why: [one-line reason this is reply-worthy]
A: [evidence-add reply]
B: [frame-challenge reply]
*2.* …
… (5 total, or fewer with REPLY_MAKER_DEGRADED if skip gate trimmed below 5)
source-status: xai=ok|fail|skip, memory=N, websearch=ok|fail|skipIf zero candidates survive the skip gate from any source, send a single REPLY_MAKER_EMPTY — [one-line reason] notification and stop.
Otherwise, after notifying, save the drafts and offer a revision (see Save drafts + offer revision).
A5. Log
Append to memory/logs/${today}.md under the shared ### reply-maker heading (see Log below), using the Mode A template.
Mode B — From-Logs Engagement
Turn flagged engagement opportunities from recent logs into ready-to-post replies — read the last 7 days of logs, draft specific responses, send as copy-paste-ready output. This mode makes no outbound API calls — no X.AI curl, no WebSearch — it works purely from local memory/ files.
Projects-of-interest list: if memory/topics/projects-of-interest.md exists, treat the project names listed there as the things to watch for mentions, cosigns, attributions, and fork moments. If the file is missing or empty, fall back to any project names that appear in recent logs or in MEMORY.md. If a filter token was passed (from-logs @handle or from-logs <project>), narrow the scan to opportunities involving that handle/project.
B1. Collect unactioned engagement opportunities
Read memory/logs/ for the last 7 days. Look for:
- Log entries flagging engagement opps (e.g. "Engagement opps: N flagged" with N > 0) — extract the named handles/accounts
- Any person who cosigned, mentioned, or attributed one of the operator's projects-of-interest
- GitHub attribution or fork moments not yet acknowledged
- Entries in MEMORY.md "Known Follow-ups" explicitly flagging engagement opps
- Cosigns or mentions surfaced in
mention-radar,fetch-tweets, orreply-makerruns
Build a list: { person/account, context, what_they_did, link_if_known, days_ago }
B2. Filter and prioritize
Apply these rules:
- Drop any opp older than 14 days — window is likely closed
- De-dupe: skip opps where recent logs already show "replied to @X" or "acknowledged" for that handle
- Rank by: recency (fresher first) × leverage (high-follower or influential account first)
- Cap at 5 opportunities
B3. Draft ready-to-post responses
For each opportunity:
- Type: X reply / X DM / GitHub comment / X post
- Target: @handle or URL
- Draft text: exact text, ready to copy-paste
- Keep under 280 chars for X replies; longer is fine for DMs or GitHub comments
- Voice: if
soul/SOUL.mdandsoul/STYLE.mdare populated, match that voice; otherwise use a clear, direct, neutral tone. Either way: acknowledge without groveling, no "thanks so much for the kind words!" — just the actual response.
B4. Check for staleness
If any opportunity is 5+ days old, prepend aging to that entry in the output.
B5. Skip if empty
If after filtering there are zero unactioned opps, log ENGAGEMENT_ACT_SKIP: no unactioned opps (under the ### reply-maker heading) and exit without sending a notification.
B6. Write output to a temp file, then send via ./notify -f
*Reply Maker (from-logs) — ${today}*
*1. @handle* (N days ago) — [one-line summary of what they did]
link: [URL or "no link found"]
type: [X reply / X post / DM / GitHub comment]
draft: "[ready-to-post text]"
*2. @handle* ...
[if any opps are 5+ days old:]
some opps aging — act or dropWrite this to /tmp/reply-maker-from-logs.md then run ./notify -f /tmp/reply-maker-from-logs.md.
After notifying, save the drafts and offer a revision (see Save drafts + offer revision).
B7. Log
Append to memory/logs/${today}.md under the shared ### reply-maker heading (see Log below), using the Mode B template.
Save drafts + offer revision (both modes)
After a normal run (Mode A or B) has drafted and notified replies, do two things so the operator can refine them from Telegram. Skip both when the run sent nothing (REPLY_MAKER_EMPTY, or Mode B's ENGAGEMENT_ACT_SKIP).
- Persist the drafts to a stable path a later
revise:run can reload:
Write the full draft body you just sent — all selected tweets with their A/B options (Mode A), or the ready-to-post list (Mode B) — tomkdir -p memory/draftsmemory/drafts/reply-maker-latest.md, overwriting any previous file. Only the newest draft is revisable. Offer a revision — a separate
./notify(force_reply can't share a message with inline buttons):./notify "Want to refine these replies? Reply with a change and I'll revise them." \ --force-reply --placeholder "e.g. make them shorter" \ --context "reply-maker::revise"The reply routes back as
var="revise:<instruction>"and re-dispatches this skill into the Revise branch.Dedup — once per produced draft. Before offering, scan the last ~2 days of
memory/logs/for aFORCE_REPLY_OFFERED: reviseline dated${today}; if present, skip the offer. When you send it, append the marker under the run's### reply-makerentry:- FORCE_REPLY_OFFERED: revise
Banned sycophancy phrases
Edit this list as tastes change — any draft reply (either mode) containing one of these (openings or closings) must be rewritten:
- Openings: "Great point", "Love this", "100%", "This 👆", "Couldn't agree more", "So well said", "💯"
- Closings: "Curious to hear your thoughts!" (engagement-hook noise)
Log
Append one entry to memory/logs/${today}.md under a single ### reply-maker heading, with a **Mode:** discriminator line naming which branch ran.
Mode A (reply drafting):
### reply-maker
- **Mode:** A (reply drafting)
- **Var:** ${var:-<empty>}
- **Candidates collected:** N
- **Survived skip gate:** N
- **Replies generated:** N×2
- **Handles:** @h1, @h2, …
- **Source status:** xai=ok|fail|skip, memory=N, websearch=ok|fail|skip
- **Notification:** sent | degraded | empty
- **Tweet URLs:** [list, for future-day dedup]The Tweet URLs line is what tomorrow's run reads to avoid duplicate replies — keep it consistent.
Mode B (from-logs engagement):
### reply-maker
- **Mode:** B (from-logs engagement)
- **Opps found:** N unactioned (scanned last 7 days of logs)
- **Drafted:** N responses
- **Handles:** @handle1, @handle2, …
- **Notification sent:** yes
- ENGAGEMENT_ACT_OKIf skipped: ENGAGEMENT_ACT_SKIP: <reason> (still under ### reply-maker).
Revise (Telegram force-reply):
### reply-maker
- **Mode:** revise
- **Instruction:** [the operator's revision instruction]
- **Base draft:** memory/drafts/reply-maker-latest.md (reloaded + re-saved) (or: none — nothing to revise)
- **Notification:** sentFetching
XAI_API_KEY is injected into this skill's environment (declared in requires:). It is present and valid. Mode A's primary fetch path is a direct curl to https://api.x.ai/v1/responses with Authorization: Bearer {XAI_API_KEY}. There is no network sandbox blocking this; earlier versions of this skill claimed there was — that is stale and wrong. Just make the call.
You MUST attempt the direct curl before any fallback. The rules:
- Check, don't assume. Run
[ -n "$XAI_API_KEY" ] && echo KEY_PRESENT || echo KEY_UNSET. IfKEY_PRESENT(it will be), you are required to try Path A. - Allow enough time. The
x_searchcall typically takes 30–120s (it searches X live). When you invoke the Bash tool for the curl, set the tool'stimeoutto at least 180000 (180s), and add--max-time 150to the curl itself so it fails cleanly rather than hanging. A curl that is slow is not a missing key — do not treat a timeout as "key unavailable". - Capture the HTTP status so the fallback decision is based on fact, not assumption. Build the payload to the fixed file
/tmp/xai-rm-payload.jsonfirst (see the threejq -n --argshapes in A1), then send it with-d @/tmp/xai-rm-payload.json:
Then parseHTTP=$(./secretcurl -s -o /tmp/xai-rm.json -w '%{http_code}' --max-time 150 -X POST "https://api.x.ai/v1/responses" \ -H "Content-Type: application/json" -H "Authorization: Bearer {XAI_API_KEY}" -d @/tmp/xai-rm-payload.json) echo "xai http=$HTTP bytes=$(wc -c </tmp/xai-rm.json)"/tmp/xai-rm.jsonwith the standardjqextractor.HTTP=200with a non-empty body → use it (xai=ok). - Fall back only on a real failure, and record the true reason — never write "XAI_API_KEY unavailable" when the key was set. Use one of:
key-unset(only if step 1 saidKEY_UNSET),http-<code>(non-2xx),empty(200 but no tweets parsed),timeout(curl exceeded--max-time).
WebSearch and the memory-log candidate pool are last-resort fallbacks only — lower quality (WebSearch favours old high-engagement tweets). Never reach for them while the key works. Mode B is fetch-free by design: it reads only local memory/ files, so it makes no curl and no API call; ./notify -f still handles delivery via .pending-notify/ if needed.
Environment Variables Required
XAI_API_KEY— X.AI API key for Grok'sx_searchtool. Declared inrequires:, so it is injected into this skill's environment and is Mode A's primary fetch path. If it is ever unset, Mode A degrades to the memory-log pool + WebSearch at lower quality. Mode B requires no environment variables and uses only local memory files and./notify.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

