hn-to-x-poster

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

HN to X Poster

HN 转 X 发布工具

Overview

概述

Use this skill for a browser-driven workflow that reads the current Hacker News front page, filters the top 30 stories for software or AI relevance, compresses the signal into one short Chinese post, and publishes it to
x.com
.
This skill is for direct execution, not just drafting. Default behavior is to post automatically if
x.com
is already logged in. If posting is blocked, fall back to a ready-to-send Chinese draft and explain the blocker briefly.
本技能用于浏览器驱动的工作流:读取当前Hacker News首页内容,筛选前30条热门内容中与软件或AI相关的条目,将核心信息压缩成一篇简短的中文帖子,并发布到
x.com
本技能用于直接执行发布操作,而非仅生成草稿。默认行为是:若
x.com
已登录,则自动发布;若发布被阻止,则返回一份可直接发送的中文草稿,并简要说明阻止原因。

When To Use

适用场景

Use this skill when the user asks for any combination of:
  • Hacker News or HN top stories
  • HN top 30, front page, or current HN software or AI items
  • posting, tweeting, sending, or publishing the result to
    x.com
    or Twitter
  • a Chinese summary of current HN software or AI topics that should be posted automatically
Do not use this skill when:
  • the user only wants HN analysis without posting
  • the user wants a multi-post thread
  • the user wants deep article research instead of front-page signal extraction
当用户提出以下任意组合需求时,可使用本技能:
  • Hacker News(简称HN)热门内容
  • HN前30条内容、首页内容,或当前HN中与软件/AI相关的条目
  • 将结果发布、分享到
    x.com
    或Twitter
  • 自动发布当前HN软件/AI相关话题的中文摘要
以下场景请勿使用本技能:
  • 用户仅需要HN内容分析,无需发布
  • 用户需要多帖线程式发布
  • 用户需要深度文章调研,而非首页核心信息提取

Required Tooling

所需工具

Use
chrome-devtools
MCP for the browser workflow.
Do not rely on API access to Hacker News or X unless the user explicitly changes the method.
使用
chrome-devtools
MCP实现浏览器工作流。
除非用户明确要求更改方式,否则请勿依赖Hacker News或X的API访问权限。

Workflow

工作流

1. Open The Two Sites

1. 打开两个网站

  • Open or switch to
    https://news.ycombinator.com/
  • Open or switch to
    https://x.com/
  • Confirm that X is logged in before attempting to post
If X is not logged in, stop automatic posting and return a Chinese draft the user can publish manually.
  • 打开或切换至
    https://news.ycombinator.com/
  • 打开或切换至
    https://x.com/
  • 尝试发布前,确认X已登录
若X未登录,停止自动发布,返回用户可手动发布的中文草稿。

2. Read HN Top 30

2. 读取HN前30条内容

  • Read the current HN front page
  • Capture the first 30 ranked stories only
  • Use the front-page title and visible context as the default source of truth
Do not open every article by default. This skill is meant to summarize the HN front-page signal, not to perform full article research.
  • 读取当前HN首页内容
  • 仅捕获排名前30的故事
  • 默认以首页标题和可见上下文为信息来源
默认无需打开每篇文章。本技能旨在总结HN首页的核心信息,而非进行完整的文章调研。

3. Filter For Software Or AI Relevance

3. 筛选软件或AI相关内容

Keep items that are clearly about:
  • software engineering
  • programming languages
  • developer tools
  • operating systems
  • networking, infrastructure, databases, compilers, security, or systems work
  • AI, LLMs, agents, model tooling, MCP, inference workflows, or AI product/platform shifts
Usually drop items that are mainly:
  • general politics
  • culture or biography
  • pure science without a software or AI angle
  • consumer oddities with no developer or AI relevance
If an item is borderline, prefer keeping it only when a technical audience would plausibly care.
保留以下明确相关的条目:
  • 软件工程
  • 编程语言
  • 开发者工具
  • 操作系统
  • 网络、基础设施、数据库、编译器、安全或系统相关工作
  • AI、大语言模型(LLM)、Agent、模型工具、MCP、推理工作流或AI产品/平台转型
通常排除以下主要类别的条目:
  • 泛政治内容
  • 文化或传记类内容
  • 无软件/AI视角的纯科学内容
  • 与开发者或AI无关的消费类奇闻
若条目属于边缘情况,仅当技术受众可能感兴趣时才保留。

4. Build The Post

4. 生成帖子内容

Write one short Chinese post that:
  • sounds natural on X
  • highlights only the strongest 4 to 7 software or AI signals
  • compresses repeated themes instead of listing everything
  • ends with a light conclusion about the pattern when useful
Default style:
  • concise
  • readable by Chinese tech audiences
  • no hashtags unless the user asks
  • no thread unless the user asks
  • no links unless the user asks
撰写一篇简短的中文帖子,需满足:
  • 符合X平台的语言风格
  • 仅突出4-7条最核心的软件或AI相关信息
  • 合并重复主题,而非罗列所有内容
  • 若有意义,可在结尾添加关于内容趋势的简短总结
默认风格:
  • 简洁凝练
  • 适合中文技术受众阅读
  • 除非用户要求,否则不使用话题标签(Hashtag)
  • 除非用户要求,否则不使用多帖线程
  • 除非用户要求,否则不添加链接

5. Enforce Length Before Posting

5. 发布前检查长度

Before posting, make sure the text is short enough for a standard X post.
If it is too long:
  • compress aggressively
  • remove low-signal items first
  • collapse repeated categories into one phrase
  • keep the main pattern, not the full inventory
Prefer one compact paragraph over a long numbered list.
发布前,确保文本长度符合X平台的标准帖子限制。
若过长:
  • 大幅压缩内容
  • 优先移除低价值信息
  • 将重复类别合并为单一表述
  • 保留核心趋势,而非完整条目清单
优先使用紧凑段落,而非冗长的编号列表。

6. Post On X

6. 在X平台发布

Use the homepage composer with keyboard-first actions:
  • go to
    https://x.com/home
  • prefer pressing
    n
    first to open the new post composer
  • if
    n
    does not open the composer, fall back to clicking the homepage
    Post
    button
  • confirm the composer is visible before typing
  • NEVER use fill - must use type_text to input the complete text in one go
  • Do not input in steps or modify mid-way - input the full Chinese text at once
  • verify both of these before posting:
    • the post button is enabled
    • the character counter looks normal
  • prefer pressing
    Ctrl + Enter
    to publish
  • if
    Ctrl + Enter
    does not publish, fall back to clicking
    Post
使用首页的发帖编辑器,优先通过键盘操作完成:
  • 进入
    https://x.com/home
  • 优先按
    n
    键打开新帖编辑器
  • n
    键无法打开编辑器,再点击首页的「Post」按钮
  • 输入内容前,确认编辑器已显示
  • 禁止使用填充功能 - 必须通过type_text一次性输入完整文本
  • 请勿分步输入或中途修改 - 一次性输入完整的中文文本
  • 发布前需确认以下两项:
    • 发布按钮已启用
    • 字符计数器显示正常
  • 优先按
    Ctrl + Enter
    组合键发布
  • Ctrl + Enter
    无法发布,再点击「Post」按钮

7. Verify Completion

7. 验证发布完成

After posting:
  • go to the account profile or resulting post view
  • confirm the new post appears as the latest visible post
  • capture the post URL if available
Do not claim success unless the post is visibly present in the browser.
发布后:
  • 进入账号个人主页或帖子详情页
  • 确认新帖子已显示为最新可见内容
  • 若可获取,记录帖子URL
仅当浏览器中可见帖子已发布时,才可确认操作成功。

Failure Handling

异常处理

X Not Logged In

X未登录

Do not attempt login on the user's behalf unless they explicitly ask.
Return:
  • a brief note that automatic posting is blocked because X is not logged in
  • the final Chinese draft
除非用户明确要求,否则请勿代用户登录。
返回内容:
  • 简短说明:因X未登录,自动发布被阻止
  • 最终的中文草稿

Composer Does Not Recognize Input

编辑器无法识别输入内容

If text appears in the textbox but the post button stays disabled:
  • NEVER use fill - must use type_text
  • treat this as an input-recognition failure, not a writing failure
  • Press Ctrl+A to select all, then use type_text to input the complete text again in one go
  • re-check both the post button and the character counter before posting
若文本已显示在输入框,但发布按钮仍处于禁用状态:
  • 禁止使用填充功能 - 必须使用type_text
  • 将此视为输入识别失败,而非内容撰写问题
  • 按Ctrl+A全选文本,再通过type_text一次性重新输入完整内容
  • 发布前再次检查发布按钮和字符计数器状态

Composer Counter Looks Wrong

编辑器计数器显示异常

If the text length is obviously short enough but X claims it is over limit or otherwise shows a broken counter:
  • assume the composer state is corrupted
  • refresh or reopen
    https://x.com/home
  • press
    n
    again to reopen a fresh composer when possible
  • re-enter the final text in the homepage modal composer
  • do not keep retrying in the broken composer state
若文本长度明显符合要求,但X提示超出限制或计数器显示异常:
  • 假设编辑器状态已损坏
  • 刷新或重新打开
    https://x.com/home
  • 尽可能再次按
    n
    键打开全新的编辑器
  • 在首页的弹窗编辑器中重新输入最终文本
  • 请勿在已损坏的编辑器状态下持续重试

Post Is Too Long

帖子内容过长

Shorten and retry. Do not stop at the first over-limit failure.
缩短内容并重试。请勿因首次超长提示就停止操作。

Posting Still Fails

发布仍失败

Return:
  • the final Chinese text
  • the exact blocker, such as disabled post button or missing login state
返回内容:
  • 最终的中文文本
  • 具体的阻止原因,例如发布按钮禁用或未登录

Output Expectations

输出要求

When successful, give a short result that includes:
  • that HN top 30 was reviewed
  • that software or AI items were selected
  • that the Chinese post was published to X
  • the X post URL
When blocked, give:
  • a brief reason
  • the final Chinese draft
操作成功时,返回简短结果,包含:
  • 已查看HN前30条内容
  • 已筛选软件或AI相关条目
  • 已将中文帖子发布到X平台
  • X帖子的URL
操作被阻止时,返回:
  • 简短原因
  • 最终的中文草稿

Operating Notes

操作注意事项

  • Treat HN as a front-page signal source, not a complete market map
  • Prefer a small set of strong signals over exhaustive coverage
  • Favor execution reliability over perfect prose
  • If the user asks for a draft only, do not auto-post
  • On X, use the homepage modal composer as the standard posting path, with
    n
    as the preferred way to open it
  • Do not trust visible text alone; the post button state and counter state are the real readiness checks
  • Prefer
    Ctrl + Enter
    as the standard publish action, with button click only as fallback
  • After publishing, verify on profile that the new post is actually published before reporting success
  • 将HN视为首页信息信号源,而非完整的市场图谱
  • 优先选择少量核心信息,而非全面覆盖
  • 优先保证执行可靠性,而非追求完美文案
  • 若用户仅要求生成草稿,则不执行自动发布
  • 在X平台,使用首页弹窗编辑器作为标准发布路径,优先通过
    n
    键打开
  • 请勿仅依赖可见文本判断状态;发布按钮和计数器的状态才是真实的就绪检查标准
  • 优先使用
    Ctrl + Enter
    作为标准发布操作,仅在无法使用时才点击按钮
  • 发布后,需在个人主页确认新帖子已实际发布,再向用户报告操作成功