Kiro X Hot Publisher
Plugin producer: INLINECODE0
End-to-end X workflow for Kiro:
- 1. Discover trending tweets from X API
- Enrich each candidate via FxTwitter (full text/article support)
- Score and rank (engagement + freshness)
- Summarize key signals
- Generate exactly one tweet draft
- Optionally publish via X API (OAuth 1.0a)
Files
Required env vars
Search:
- -
X_BEARER_TOKEN (recommended)
Publish (optional, only when --post):
- - INLINECODE5
- INLINECODE6
- INLINECODE7
- INLINECODE8
Quick start
CODEBLOCK0
Post directly:
CODEBLOCK1
Output
Default output folder: INLINECODE9
Generated files:
- -
latest.json: full structured result - INLINECODE11 : plain-text briefing + final tweet draft
Notes
- - This workflow is designed for public tweets only.
- FxTwitter is a third-party dependency for enrichment; if unavailable, base X data is still used.
- Keep
--batch-size small initially (recommended 10).
Changelog
- - 1.1.0: Security hardening for
scripts/setup_cron.sh (input validation and command construction safeguards).
Kiro X Hot Publisher
插件开发者:kiroai.io
面向Kiro的端到端X工作流:
- 1. 从X API发现热门推文
- 通过FxTwitter丰富每条候选内容(支持全文/文章)
- 评分与排名(互动度+新鲜度)
- 总结关键信号
- 生成唯一一条推文草稿
- 可选通过X API发布(OAuth 1.0a)
文件
- - scripts/xhotpipeline.py
- examples/cron_command.txt
必需的环境变量
搜索:
发布(可选,仅在--post时使用):
- - XAPIKEY
- XAPISECRET
- XACCESSTOKEN
- XACCESSTOKEN_SECRET
快速开始
bash
python3 skills/kiro-x-hot-publisher/scripts/installandinit.py
python3 skills/kiro-x-hot-publisher/scripts/xhotpipeline.py \
--queries AI,OpenAI,DeepSeek,Claude,Gemini \
--batch-size 10
直接发布:
bash
python3 skills/kiro-x-hot-publisher/scripts/xhotpipeline.py \
--queries AI,OpenAI,DeepSeek \
--batch-size 10 \
--post
输出
默认输出文件夹:./outputs/x-hot/
生成的文件:
- - latest.json:完整结构化结果
- latest.txt:纯文本简报 + 最终推文草稿
注意事项
- - 此工作流仅适用于公开推文。
- FxTwitter是用于内容丰富的第三方依赖;如果不可用,仍会使用基础的X数据。
- 初始时保持--batch-size较小(建议10)。
更新日志
- - 1.1.0:对scripts/setup_cron.sh进行安全加固(输入验证和命令构建防护)。