Content pipeline

From bytesagain/ai-skills · View interactive version

Content pipeline is an AI agent skill from the GitHub repository bytesagain/ai-skills. Internal tool: run full content pipeline from a skill list — add use-cases to use-cases.ts + push, write HTML article to Supabase, generate tweet draft.

How to use this skill

Skill file

Content Pipeline (Internal Tool)

⚠️ 自用工具,不发 ClawHub。 含内部路径、Supabase key、X API key。

从 skill 列表一键跑完三步:use-cases → 文章 → 推文草稿。

Commands

run

完整流水线(推荐)。

XAI_API_KEY=xai-xxx \
SUPABASE_URL=https://jfpeycpiyayrpjldppzq.supabase.co \
SUPABASE_KEY=eyJ... \
SITE_DIR=/home/admin/bytesagain-next \
bash scripts/script.sh run \
  --slugs "skill-a,skill-b,skill-c" \
  --topic "AI tools for X"

usecase

只跑 Step 1:往 lib/use-cases.ts 加条目 + git push(触发 Vercel 部署)。

SITE_DIR=/home/admin/bytesagain-next \
bash scripts/script.sh usecase \
  --slugs "skill-a,skill-b" \
  --topic "topic string"

article

只跑 Step 2:用 Grok 生成 HTML 文章 → 写入 Supabase articles 表。已存在自动跳过。

XAI_API_KEY=xai-xxx \
SUPABASE_URL=... SUPABASE_KEY=... \
bash scripts/script.sh article \
  --slugs "skill-a,skill-b" \
  --topic "topic string" \
  [--article-slug "custom-slug"]

tweet

只跑 Step 3:用 Grok 生成推文草稿 → 追加到 /tmp/x-drafts-YYYY-MM-DD.json。

XAI_API_KEY=xai-xxx \
bash scripts/script.sh tweet \
  --url "https://bytesagain.com/article/slug" \
  --topic "topic string"

Env Vars

| 变量 | 用于 | 说明 |

|------|------|------|

| XAI_API_KEY | article, tweet, run | Grok API key |

| SUPABASE_URL | article, run | Supabase 项目地址 |

| SUPABASE_KEY | article, run | Supabase service role key |

| SITE_DIR | usecase, run | bytesagain-next 本地路径(默认 /home/admin/bytesagain-next) |

| X_API_KEY / X_API_SECRET / X_ACCESS_TOKEN / X_ACCESS_TOKEN_SECRET | tweet(未用,草稿只存文件) | 暂不需要 |

Output

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.