musk-intel-generator
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "musk-intel-generator" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-41075049a26017a0990d13510fa762580ec014f24691a48b06eca0298eb29013. Verify the upstream source and version against https://skillhub.cn/skills/user_3243d849/musk-intel-generator before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Daily Musk ecosystem intelligence generator. Collects data related to Tesla/SpaceX/xAI/Neuralink/Optimus from sources such as X, RSS, and SEC EDGAR, runs a three-stage LLM pipeline (filter→analyze→report), and produces a daily Musk intelligence report exported in IMA format. Used to generate, update, or publish the daily Musk intelligence report.
Introduction source: third_party · user_3243d849 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Generate daily Musk Intelligence Report from Tesla/SpaceX/xAI/Neuralink/Optimus ecosystem. Collects data from X (RapidAPI), RSS, SEC EDGAR, runs 3-stage LLM pipeline (Filter → Analysis → Report), exports to IMA format. Use when user asks to generate, update, or publish Musk intelligence daily report.
- Testing
- Not tested
Browse files
Frontmatter
name: musk-intel-generator
description: Generate daily Musk Intelligence Report from Tesla/SpaceX/xAI/Neuralink/Optimus ecosystem. Collects data from X (RapidAPI), RSS, SEC EDGAR, runs 3-stage LLM pipeline (Filter → Analysis → Report), exports to IMA format. Use when user asks to generate, update, or publish Musk intelligence daily report.
agent_created: true
version: 1.0.0
author: hansel
tags: [mask, intelligence, report, automation, news, llm]
repository: https://github.com/hansel/musk-intelligence-funnelMusk Intelligence Report Generator
Generate daily intelligence reports covering Musk's ecosystem (Tesla, SpaceX, Starlink, xAI, Neuralink, Optimus) by collecting raw data and processing through a 3-stage LLM pipeline.
Quick Start
# Generate today's report (collect + pipeline)
cd /Users/hansel/WorkBuddy/现金收购套利/musk-intelligence-funnel
bash scripts/generate_musk_intel.sh
# Generate for specific date
bash scripts/generate_musk_intel.sh 2026-06-23
# Publish to IMA (after human review)
bash scripts/publish_musk_intel_ima.sh 2026-06-23
Required API Keys
1. RapidAPI Twitter API45 (Primary X Source) ⚠️ REQUIRED
Purpose: Fetch X list (configured in config/x_watchlist.yaml)
Get key: https://rapidapi.com/twitter-api45
Config: .env → RAPIDAPI_KEY; config/x_watchlist.yaml → lists
Test: python3 main.py test-x
# .env configuration
RAPIDAPI_KEY=your_rapidapi_key_here
TWITTER_LIST_ID=your_list_id_here # Get from https://x.com/i/lists/YOUR_LIST_ID
X_PROVIDER=auto # auto | rapidapi | rsshub
API Details:
- Host:
twitter-api45.p.rapidapi.com - Endpoint:
GET /listtimeline.php?list_id={TWITTER_LIST_ID} - Rate limit: Check RapidAPI dashboard
- Fallback: Automatically falls back to RSSHub if RapidAPI fails
Configure your X list:
- Create an X list (e.g., "Musk Ecosystem Watch")
- Add accounts to follow (e.g., @Tesla, @SpaceX, @SawyerMerritt)
- Get list ID:
https://x.com/i/lists/1234567890→ ID is1234567890 - Update
config/x_watchlist.yaml→lists[0].id
2. LLM API (Multi-Provider Support) ⚠️ REQUIRED
Purpose: LLM processing for Filter, Analysis, Report stages
Supported Providers: OpenAI, Anthropic, Google, Moonshot (Kimi), DeepSeek, Qwen
Config: .env → LLM_API_KEY, LLM_BASE_URL, LLM_PROVIDER
Cost: Varies by provider (~¥0.6-1.40 per run for Kimi K2.7)
# .env configuration (Method 1: Auto-config by provider)
LLM_PROVIDER=moonshot # openai | anthropic | google | moonshot | deepseek | qwen
LLM_API_KEY=your_api_key_here
LLM_BASE_URL=https://api.moonshot.cn/v1 # Auto-set by LLM_PROVIDER
LLM_MODEL=kimi-k2.7-code # Auto-set by LLM_PROVIDER
# .env configuration (Method 2: Manual config)
LLM_API_KEY=your_api_key
LLM_BASE_URL=https://your-custom-endpoint/v1
LLM_MODEL=your-model-name
Supported Providers:
| Provider | LLM_PROVIDER |
Get API Key | Default Model |
|---|---|---|---|
| Moonshot (Kimi) | moonshot |
platform.moonshot.cn | kimi-k2.7-code |
| OpenAI | openai |
platform.openai.com | gpt-4o |
| Anthropic | anthropic |
console.anthropic.com | claude-sonnet-4-20250514 |
google |
aistudio.google.com | gemini-2.0-flash |
|
| DeepSeek | deepseek |
platform.deepseek.com | deepseek-chat |
| Qwen | qwen |
dashscope.aliyun.com | qwen-max |
Model Strategy (auto-configured by LLM_PROVIDER):
- Filter stage: Stable model (e.g.,
kimi-k2.6for Moonshot,gpt-4ofor OpenAI) - Analysis/Report stages: Reasoning model (e.g.,
kimi-k2.7-codefor Moonshot)
Detailed Setup: See references/api_reference.md
3. RSSHub (Backup X Source) 🔧 RECOMMENDED
Purpose: Backup X list collector if RapidAPI fails
Setup: cd rsshub && docker compose up -d
Config: rsshub/.env → X Cookie
Test: curl http://localhost:1200/twitter/list/1927018058977030558?count=5
# .env configuration
RSSHUB_BASE_URL=http://localhost:1200
4. IMA API (Optional) 📤 OPTIONAL
Purpose: Upload generated reports to Tencent IMA knowledge base
Config: ~/.config/ima/client_id and api_key
Setup: See references/ima_setup.md
Workflow
Step 1: Collect Data
Collects from multiple sources with 48-hour window:
python3 main.py --date YYYY-MM-DD collect --since-last-report --hours 48
Sources:
- X list (configured in
config/x_watchlist.yaml) - RapidAPI primary, RSSHub fallback - X deep articles (priority authors like pmarca, 7-day window)
- Media RSS (SpaceNews, Ars Technica, etc.)
- SEC EDGAR (Tesla/SpaceX filings, 30-day window)
Output: data/raw/YYYY-MM-DD.json
Step 2: Run Pipeline
Process collected data through 3-stage LLM pipeline:
python3 main.py --date YYYY-MM-DD run --raw data/raw/YYYY-MM-DD.json
Stages:
- Filter: Remove noise, keep product/regulatory/capacity/capital signals
- Analysis: Business analysis, catalyst identification
- Report: Generate daily Markdown report (NO catalyst block - removed per user preference)
Output:
output/daily/YYYY-MM-DD/01_filtered_signals.jsonoutput/daily/YYYY-MM-DD/02_analysis.mdoutput/daily/YYYY-MM-DD/03_daily_report.mdoutput/reports/马斯克情报日报 YYYY-MM-DD.md(IMA format)
Step 3: Human Review
User reviews generated report before publishing:
# Review files
open output/daily/YYYY-MM-DD/03_daily_report.md
open output/reports/马斯克情报日报 YYYY-MM-DD.md
Review checklist:
- [ ] Signals are new (not reported in previous days)
- [ ] Updates marked with "新进展"
- [ ] Soft signals (personal road tests, unverified rumors) handled per user feedback
- [ ] Deep articles (x_deep) retained even if >48h old
Step 4: Publish to IMA (Optional)
After human approval, upload to IMA knowledge base:
bash scripts/publish_musk_intel_ima.sh YYYY-MM-DD
Or manually:
python3 scripts/upload_ima_intel.py "output/reports/马斯克情报日报 YYYY-MM-DD.md"
Scheduled Execution
Daily report generation is scheduled via macOS launchd:
- Time: Every day 8:00 AM
- Plist:
~/Library/LaunchAgents/com.musk.intel.update.plist - Script:
scripts/generate_musk_intel.sh - Logs:
/tmp/musk_intel_update.log
Management commands:
# Check status
launchctl list | grep musk
# Manual execution
launchctl start com.musk.intel.update
# View logs
tail -f /tmp/musk_intel_update.log
# Uninstall
launchctl unload ~/Library/LaunchAgents/com.musk.intel.update.plist
File Structure
musk-intelligence-funnel/
├── main.py # CLI entry point
├── config/ # X lists, RSS, telemetry config
├── prompts/ # 3-stage agent prompts
│ ├── filter_agent.md # Filter stage prompt (K2.6)
│ ├── analysis_agent.md # Analysis stage prompt (K2.7)
│ └── report_agent.md # Report stage prompt (K2.7, NO catalyst)
├── src/ # Collectors, agents, pipeline
│ ├── collectors/ # Data collection modules
│ ├── agents/ # Filter/Analysis/Report agents
│ └── utils/ # Utilities (LLM client, IMA export, etc.)
├── data/
│ ├── raw/ # Daily raw collection JSON
│ └── x_article_registry.json # Deep article registry
├── output/
│ ├── daily/YYYY-MM-DD/ # Daily artifacts
│ └── reports/ # IMA-formatted reports (human review)
├── rsshub/ # Self-hosted RSSHub (Docker)
└── scripts/
├── generate_musk_intel.sh # Generate report (no publish)
└── publish_musk_intel_ima.sh # Publish to IMA (after review)
Troubleshooting
X collection empty
# Test X connection
python3 main.py test-x
# Check RapidAPI key
echo $RAPIDAPI_KEY
# Check list_id parameter (must be pure number, not URL)
# Correct: list_id=1927018058977030558
# Wrong: id=https://x.com/i/lists/xxx
RSSHub fallback triggered
Check stats.x_provider in collection output. If rsshub, RapidAPI failed.
Fix:
- Verify
RAPIDAPI_KEYin.env - Check RapidAPI quota/rate limits
- Or force RapidAPI:
X_PROVIDER=rapidapi
Report stage hangs
Symptom: Report stage runs >10 minutes with no output
Fix: Increase timeout in src/utils/llm_client.py:
@dataclass
class LLMConfig:
timeout: float = 1200.0 # 20 minutes (default was 600.0)
IMA upload fails
Check:
~/.config/ima/client_idandapi_keyexist- IMA Node skills installed at
IMA_SKILLS_DIR - Knowledge base ID:
ADieg6--1fzzF0MaLjTlKm_QTj2gB-_t8-FWRy9OVBw=
Duplicate reports
Check coverage_manifest.json and prior coverage loading.
Fix: Ensure src/utils/prior_coverage.py loads from:
output/daily/*/coverage_manifest.json(primary)- Obsidian knowledge base (supplementary)
Prompt Engineering Notes
Filter Agent (prompts/filter_agent.md)
Model: kimi-k2.6 (stable, fast)
Temperature: 0.6 (fixed when thinking disabled)
Key rules:
- Preserve completeness: ALL 8 signal types must be covered
- Media deep articles: if an article is forwarded ≥2 times by watched accounts, promote to watched
- Freshness detection: mark
freshorstale
Report Agent (prompts/report_agent.md)
Model: kimi-k2.7-code (reasoning)
Temperature: default (not set)
Key rules:
- NO catalyst block (removed per user preference)
- Completeness: EVERY signal from Analysis must appear in report
- Information density: 3-5 sentences per signal, use
raw_evidence - Media articles: ≥4 sentences, turn every page
- NO研判: only factual reporting, no commentary
Cost Estimation
Per run (full pipeline):
- Filter: ~¥0.30 (K2.6, ~32k prompt + ~4k completion)
- Analysis: ~¥0.20 (K2.7, ~4k prompt + ~6k completion)
- Report: ~¥0.10 (K2.7, ~3k prompt + ~6k completion)
- Total: ~¥0.60-0.80
Monthly (daily runs): ~¥18-24
Security Notes
RAPIDAPI_KEYandOPENAI_API_KEYare stored in.env(gitignored)- IMA credentials stored in
~/.config/ima/(outside project) - No secrets in
config/orprompts/ - RSSHub Cookie in
rsshub/.env(gitignored)
References
- API Reference - Detailed API documentation
- IMA Setup Guide - IMA upload configuration
- Prompt Engineering - Filter/Analysis/Report prompt details
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 自动化生成马斯克生态情报日报,解决用户对特斯拉/SpaceX/xAI/Neuralink/Optimus生态系统的信息聚合需求
- 3阶段LLM管道处理流程完整,从数据采集到报告生成形成闭环
- 支持多数据源采集和fallback机制,确保数据可靠性
Highlights
- 触发词覆盖主要使用场景:generate, update, publish Musk intelligence daily report
- 边界清晰,不会与其他情报类Skill混淆
Highlights
- 文档结构完整,包含Quick Start、Required API Keys、Workflow等必要章节
- 提供端到端示例和详细的配置说明
- 文件结构清晰,便于用户理解和部署
Highlights
- 工具来源明确,支持多LLM提供商和fallback机制
- 覆盖主要异常情况并提供troubleshooting指南
- 不可逆操作有确认机制(human review before publish)
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Invoke commands or scripts
Read the script and arguments first. Use ordinary privileges and a scoped directory; confirm installation or execution in your host tool.
Mentioned in main document · lines 20, 23, 26, 170 -
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 79, 109, 270, 317
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- aistudio.google.com
- api.moonshot.cn
- console.anthropic.com
- dashscope.aliyun.com
- github.com
- localhost
- platform.deepseek.com
- platform.moonshot.cn
- platform.openai.com
- rapidapi.com
- x.com
- your-custom-endpoint
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.