Agent skill
twitter-summary
Fetch a user's recent tweets (tweets, replies, retweets) using Playwright + Nitter fallbacks and produce compact JSON/Markdown summaries.
Install this agent skill to your Project
npx add-skill https://github.com/rcarmo/piclaw/tree/main/skel/.pi/skills/twitter-summary
SKILL.md
Twitter Summary
Scrape a public Twitter/X profile via Nitter front-ends and return a compact JSON listing of tweets, replies, and retweets within a time window.
Two scrapers are included:
playwright-twitter-summary.ts— uses Playwright for full browser rendering (more reliable)quick-twitter-summary.ts— uses linkedom for lightweight HTML parsing (no browser needed)
Prerequisites
The wrapper auto-installs Playwright if missing (logs to /tmp/twitter-playwright-install.log).
For the quick scraper:
cd /workspace && bun add linkedom
Usage
Using the wrapper script:
/workspace/.pi/skills/twitter-summary/run <handle> [hours] [output.json]
<handle> is required. No default user handle is configured in the scripts.
Examples:
# Fetch last 16 hours for an explicit handle
/workspace/.pi/skills/twitter-summary/run <handle> 16 /tmp/twitter_fetch.json
# Direct Playwright invocation
bun /workspace/.pi/skills/twitter-summary/playwright-twitter-summary.ts --handle=<handle> --hours=24
# Quick (no browser) invocation
bun /workspace/.pi/skills/twitter-summary/quick-twitter-summary.ts --handle=<handle> --hours=12
Output
JSON with handle, instance, count, and items array. Each item has:
date— ISO 8601 timestamptype—tweet,reply, orretweettext— Tweet contenturl— Link to the tweet on the Nitter instance
Notes
- The scrapers try several public Nitter instances and use the first that responds.
- Coverage varies by instance; combining outputs from multiple instances often yields the best results.
- Network restrictions or anti-bot protections may affect results.
- Logs are written to stderr; JSON output goes to stdout.
- A log file is written to /tmp/twitter-summary.log when using the wrapper.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
autoresearch-create
Set up and run an autonomous experiment loop for any optimization target. Gathers what to optimize, then starts the loop immediately. Use when asked to "run autoresearch", "optimize X in a loop", "set up autoresearch for X", or "start experiments".
portainer-container-compare-chart
Compare two containers using native portainer tool data collection and render SVG/CSV outputs.
proxmox-guest-compare-chart
Compare two Proxmox guests using native proxmox tool data collection and render SVG/CSV outputs.
schedule
Schedule a task to run later or on a recurring basis. Prefer the schedule_task tool; fallback to IPC only if needed.
reload
Reinstall piclaw from workspace source and force-restart the running process. Use after making code changes to piclaw.
send-message
Send a message to the chat immediately without waiting for the current task to finish. Useful for acknowledging requests or sending progress updates while working.
Didn't find tool you were looking for?