diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 2d02465..342a722 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -6,7 +6,7 @@ }, "metadata": { "description": "Skills shared by Baoyu for improving daily work efficiency", - "version": "0.11.0" + "version": "1.0.0" }, "plugins": [ { @@ -16,6 +16,7 @@ "strict": false, "skills": [ "./skills/baoyu-danger-gemini-web", + "./skills/baoyu-danger-x-to-markdown", "./skills/baoyu-xhs-images", "./skills/baoyu-post-to-x", "./skills/baoyu-post-to-wechat", diff --git a/README.md b/README.md index 11cffde..6c92396 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,28 @@ Interacts with Gemini Web to generate text and images. /baoyu-danger-gemini-web --promptfiles system.md content.md --image out.png ``` +### baoyu-danger-x-to-markdown + +Converts X (Twitter) content to markdown format. Supports tweet threads and X Articles. + +```bash +# Convert tweet to markdown +/baoyu-danger-x-to-markdown https://x.com/username/status/123456 + +# Save to specific file +/baoyu-danger-x-to-markdown https://x.com/username/status/123456 -o output.md + +# JSON output +/baoyu-danger-x-to-markdown https://x.com/username/status/123456 --json +``` + +**Supported URLs:** +- `https://x.com//status/` +- `https://twitter.com//status/` +- `https://x.com/i/article/` + +**Authentication:** Uses environment variables (`X_AUTH_TOKEN`, `X_CT0`) or Chrome login for cookie-based auth. + ### baoyu-xhs-images Xiaohongshu (RedNote) infographic series generator. Breaks down content into 1-10 cartoon-style infographics with **Style × Layout** two-dimensional system. @@ -290,6 +312,17 @@ This skill uses the Gemini Web API (reverse-engineered). - Cookies are cached for subsequent runs - No guarantees on API stability or availability +### baoyu-danger-x-to-markdown + +This skill uses a reverse-engineered X (Twitter) API. + +**Warning:** This is NOT an official API. Use at your own risk. + +- May break without notice if X changes their API +- Account restrictions possible if API usage detected +- First use requires consent acknowledgment +- Authentication via environment variables or Chrome login + ## License MIT diff --git a/README.zh.md b/README.zh.md index 1aaedbe..866054e 100644 --- a/README.zh.md +++ b/README.zh.md @@ -79,6 +79,28 @@ npx add-skill jimliu/baoyu-skills /baoyu-danger-gemini-web --promptfiles system.md content.md --image out.png ``` +### baoyu-danger-x-to-markdown + +将 X (Twitter) 内容转换为 markdown 格式。支持推文串和 X 文章。 + +```bash +# 将推文转换为 markdown +/baoyu-danger-x-to-markdown https://x.com/username/status/123456 + +# 保存到指定文件 +/baoyu-danger-x-to-markdown https://x.com/username/status/123456 -o output.md + +# JSON 输出 +/baoyu-danger-x-to-markdown https://x.com/username/status/123456 --json +``` + +**支持的 URL:** +- `https://x.com//status/` +- `https://twitter.com//status/` +- `https://x.com/i/article/` + +**身份验证:** 使用环境变量(`X_AUTH_TOKEN`、`X_CT0`)或 Chrome 登录进行 cookie 认证。 + ### baoyu-xhs-images 小红书信息图系列生成器。将内容拆解为 1-10 张卡通风格信息图,支持 **风格 × 布局** 二维系统。 @@ -290,6 +312,17 @@ mkdir -p .baoyu-skills/baoyu-cover-image - Cookies 会被缓存供后续使用 - 不保证 API 的稳定性或可用性 +### baoyu-danger-x-to-markdown + +此技能使用逆向工程的 X (Twitter) API。 + +**警告:** 这不是官方 API。使用风险自负。 + +- 如果 X 更改其 API,可能会无预警失效 +- 如检测到 API 使用,账号可能受限 +- 首次使用需确认免责声明 +- 通过环境变量或 Chrome 登录进行身份验证 + ## 许可证 MIT