← Back to Skills Marketplace
fredhjc

ai-twitter-digest

by FredHJC · GitHub ↗ · v1.0.1
cross-platform ⚠ suspicious
450
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install ai-twitter-digest
Description
Monitor a curated list of AI/tech Twitter accounts, summarize the day's key posts using an LLM, and deliver a formatted digest to a Discord channel. Use when...
README (SKILL.md)

AI Twitter Digest

Fetches tweets from AI/tech influencers via the AISA API, summarizes in Chinese using any available LLM (Claude → OpenAI → Gemini, auto-detected), and delivers a two-part digest to Discord:

  • Message 1: Text summary with [原文链接] hyperlinks (no embed previews)
  • Message 2: Top 5 bare links rendered as Discord card previews

Setup

1. Run the setup wizard (required before first use)

python3 scripts/setup.py

The wizard will:

  • Auto-detect API keys from your environment and OpenClaw config
  • Prompt for any missing keys (AISA, LLM, Discord channel)
  • Test connectivity to AISA and your chosen LLM provider
  • Write a .env file — no manual editing needed

If you prefer manual setup, create scripts/.env with the following content:

AISA_API_KEY=your_aisa_key_here
DELIVERY_CHANNEL=discord
DELIVERY_TARGET=channel:your_channel_id_here
SUMMARY_LANGUAGE=Chinese
ANTHROPIC_API_KEY=
OPENAI_API_KEY=
GEMINI_API_KEY=
# STATE_FILE=~/.ai-twitter-sent.json
# MAX_STORED_IDS=500
# CARD_PREVIEWS=true

Required config:

Variable Description
AISA_API_KEY Twitter data — aisa.one
DELIVERY_CHANNEL discord / whatsapp / telegram / slack / signal
DELIVERY_TARGET Channel-specific target (see table below)
One of: ANTHROPIC_API_KEY / OPENAI_API_KEY / GEMINI_API_KEY LLM for summarization
SUMMARY_LANGUAGE Digest language — Chinese (default), English, Japanese, Korean, Spanish, French, German, or any language name

Delivery target format:

Channel Target format Example
discord channel:\x3Cid> channel:1234567890
whatsapp E.164 phone or group:\x3Cid> +1234567890
telegram @username or chat_id @mychannel
slack #channel-name #ai-digest
signal E.164 phone number +1234567890

Card link previews (CARD_PREVIEWS) are Discord-only and auto-disabled on other channels.

2. Run manually

python3 scripts/monitor.py

3. Schedule with OpenClaw cron

# Daily at 3:30 PM Eastern
openclaw cron add "AI Twitter Digest" "30 15 * * *" \
  "python3 /path/to/ai-twitter-digest/scripts/monitor.py" \
  --timezone "America/New_York"

Customizing Accounts

Edit the ACCOUNTS list in scripts/monitor.py. See references/accounts.md for the default list and suggested additions.

Output Format

Message 1 — Summary:

📊 **AI 每日简报** — 2026年02月26日

- Karpathy 发布了神经网络教程 | [原文链接](...)

- Sam Altman 表示 GPT-5 今年发布 | [原文链接](...)

Message 2 — Card previews:

🔗 **今日精选链接**

https://x.com/karpathy/status/...
https://x.com/sama/status/...

How It Works

  1. Fetches up to 20 tweets/account (AI-keyword filtered, with all-tweets fallback)
  2. Deduplicates against STATE_FILE (capped at MAX_STORED_IDS)
  3. Summarizes with first available LLM provider
  4. Posts two Discord messages: text digest + card preview links
  5. Updates dedup state file
Usage Guidance
Before installing or running this skill: (1) Expect to provide AISA_API_KEY and at least one LLM API key (Anthropic/OpenAI/Gemini) plus DELIVERY_CHANNEL/TARGET. The skill's registry metadata incorrectly omits these required env vars. (2) The setup wizard will attempt to read OpenClaw's auth.json and run the local 'openclaw' CLI to auto-detect keys and channels — only run setup if you trust the skill and you are comfortable it may read other agent configs. (3) The wizard writes a plaintext .env in the scripts folder with your keys; consider using a dedicated/minimally-privileged API key or manually editing a .env in a safe location instead of using the auto-writer. (4) The monitor writes a state file in your home directory to track sent tweet IDs. (5) If you want to reduce risk: run monitor.py manually after creating your own .env, avoid running the setup wizard, inspect the files yourself, and create/per-use keys scoped to this integration (revocable keys). If you are unsure, do not run the setup that auto-reads OpenClaw configs and avoid giving the skill access to high-value credentials.
Capability Analysis
Type: OpenClaw Skill Name: ai-twitter-digest Version: 1.0.1 The skill is classified as suspicious primarily due to `scripts/setup.py` reading sensitive OpenClaw configuration files (`~/.openclaw/.../auth.json`) to auto-detect API keys. While this is currently used for the benign purpose of generating a local `.env` file, this capability to access internal OpenClaw credentials represents a significant vulnerability that could be exploited for credential theft if the skill were malicious. Additionally, both `scripts/monitor.py` and `scripts/setup.py` use `subprocess.run` to interact with the `openclaw` CLI, which, while standard, always carries a potential risk of shell injection if arguments (especially user-controlled or LLM-generated ones) are not robustly sanitized by the `openclaw` CLI itself.
Capability Assessment
Purpose & Capability
The code and SKILL.md match the stated purpose: it uses AISA for Twitter data, an LLM for summarization, and posts to chat channels. However the registry metadata claims no required environment variables or primary credential while the skill clearly requires AISA_API_KEY and at least one LLM API key plus DELIVERY_* variables. This metadata mismatch is misleading.
Instruction Scope
The setup instructions and setup.py go beyond a minimal wizard: they auto-detect API keys from the environment and explicitly attempt to read OpenClaw's auth.json and call the 'openclaw' CLI to list configured channels/targets. The runtime instructs writing a .env next to the scripts and reading/writing a state file in the home dir. Reading other agent/host config files (OpenClaw auth.json) and invoking local CLIs is scope creep relative to a simple Twitter->Discord digest and may expose unrelated secrets.
Install Mechanism
No external install spec is provided (instruction-only skill). Files are delivered with the skill; there is no remote download or archive extraction. This is lower installation risk, but the included scripts will run network calls and local file I/O when executed.
Credentials
Requiring AISA_API_KEY and at least one LLM key (Anthropic/OpenAI/Gemini) is proportionate to the stated function. However the setup attempts to read OpenClaw config files and environment variables to harvest keys from other local agent configuration files, which can expose unrelated credentials. The skill also writes a plaintext .env containing API keys into the skill directory by default (risk of accidental leakage if directory is backed up or committed).
Persistence & Privilege
The skill does not request 'always:true' and does not alter other skills' configs, but it will create persistent local artifacts: scripts/.env (project-local) and a state file (default ~/.ai-twitter-sent.json). It also reads OpenClaw state paths and may enumerate configured channels via the openclaw CLI. These are persistent and require user consent but are not elevated OS privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ai-twitter-digest
  3. After installation, invoke the skill by name or use /ai-twitter-digest
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- Updated WhatsApp and Signal delivery target examples in documentation to use generic sample phone numbers. - No functional or code logic changes; documentation only.
v1.0.0
AI Twitter Digest automatically fetches tweets from a curated list of top AI researchers and tech leaders (Karpathy, Sam Altman, Jensen Huang, etc.), summarizes │ the day's key insights in Chinese using your preferred LLM, and delivers a clean two-part digest to your chat channel of choice.Supports Discord, WhatsApp, │ Telegram, Slack, and Signal out of the box. Includes an interactive setup wizard that auto-detects your local environment and writes the config for you — no │ manual editing required.
Metadata
Slug ai-twitter-digest
Version 1.0.1
License
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is ai-twitter-digest?

Monitor a curated list of AI/tech Twitter accounts, summarize the day's key posts using an LLM, and deliver a formatted digest to a Discord channel. Use when... It is an AI Agent Skill for Claude Code / OpenClaw, with 450 downloads so far.

How do I install ai-twitter-digest?

Run "/install ai-twitter-digest" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is ai-twitter-digest free?

Yes, ai-twitter-digest is completely free (open-source). You can download, install and use it at no cost.

Which platforms does ai-twitter-digest support?

ai-twitter-digest is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created ai-twitter-digest?

It is built and maintained by FredHJC (@fredhjc); the current version is v1.0.1.

💬 Comments