← 返回 Skills 市场
nissan

Blog Embargo

作者 Nissan Dookeran · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ pending
59
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install blog-embargo
功能描述
Coordinate publishAt embargo timing across blog index visibility and social post scheduling. Ensures blog posts don't appear in the index before social posts...
使用说明 (SKILL.md)

Blog Embargo Skill

Why This Exists

The blog uses a publishAt frontmatter field to support soft embargoes: post deploys to Vercel immediately on merge but is hidden from the blog index (/blog listing) until publishAt passes. The index revalidates hourly.

Without this field, posts are indexed immediately on deploy. If social posts aren't already in Buffer before the merge, you get a window where the post is live but no social amplification is queued.

This skill coordinates the three moving parts:

  1. publishAt in MDX frontmatter (blog index gate)
  2. --publish-at in convert-to-mdx.py (how to set it)
  3. Buffer scheduling at publishAt + 15 min (social timing)

The Rule

Blog index visibility and social posts must be coordinated. Always decide publishAt before raising the PR.

Scenario publishAt Buffer timing
Want coordinated launch (blog + social together) Set to future slot Schedule Buffer at publishAt + 15 min
Post can go live now, social later same day Set to now + 30 min Schedule Buffer at publishAt + 15 min
No embargo needed (emergency fix, no social) Omit or set to now Post immediately

Step-by-Step

1. Decide the publish time

Before raising the PR, decide a specific AEST datetime:

  • Check Buffer queue for conflicts (use Buffer dashboard or GraphQL query)
  • Align with content calendar (LinkedIn 10am AEST, X 8-9am AEST preferred slots)
  • Minimum: now + 30 min (enough time to schedule Buffer before deploy)
publishAt = "2026-04-04T09:00:00+11:00"   # AEDT
publishAt = "2026-04-04T09:00:00+10:00"   # AEST

2. Set publishAt in MDX

Pass --publish-at to convert-to-mdx.py:

python3 scripts/blog/convert-to-mdx.py \
  --input projects/blog-pipeline/converted/\x3Cslug>.md \
  --output projects/blog-pipeline/converted/\x3Cslug>.mdx \
  --slug \x3Cslug> \
  --title "\x3Ctitle>" \
  --description "\x3Cdescription>" \
  --tags "\x3Ctags>" \
  --author "Nissan Dookeran" \
  --publish-at "2026-04-04T09:00:00+11:00"

Check: MDX frontmatter should contain publishAt: "2026-04-04T09:00:00+11:00".

3. Raise PR and merge

Post deploys immediately. Direct URL (/blog/slug) resolves. Blog index (/blog) hides the post until publishAt.

4. Schedule Buffer at publishAt + 15 min

After merge, schedule social posts with dueAt = publishAt + 15 min:

# X/Twitter — at publishAt + 15 min
node scripts/buffer-post.mjs \
  --text "$(cat projects/social-growth/thread-\x3Cslug>.md | ...)" \
  --channel twitter \
  --publish-at "2026-04-04T09:15:00+11:00"

# LinkedIn — same time or later slot
node scripts/buffer-post.mjs \
  --text "$(cat projects/social-growth/linkedin-\x3Cslug>.md | ...)" \
  --channel linkedin \
  --publish-at "2026-04-04T09:15:00+11:00"

Or use the batch file approach with scripts/buffer-post.mjs --file posts.json.

5. Verify

  • Direct URL resolves immediately after merge ✅
  • Blog index shows post only after publishAt ✅
  • Buffer shows posts scheduled at publishAt + 15 min ✅

Recovery: Post Already Live Without publishAt

If a post was merged without publishAt and is already indexed:

  1. The embargo window is gone — post is already visible
  2. Schedule social posts for the next appropriate slot (same day if possible)
  3. Don't backdate social posts to before the post went live
  4. Note the gap in the daily memory log

This happened with:

  • ollama-embeddings (2026-04-03) — live, no social queued
  • portkey-patterns (2026-04-03) — live, no social queued

How publishAt Works (Technical)

  • publishAt is an ISO8601 field added to MDX frontmatter
  • The blog index page (/blog) filters posts where publishAt > now
  • The export const revalidate = 3600 means the index updates hourly
  • Direct slug URL (/blog/slug) always resolves — no gate at the page level
  • convert-to-mdx.py sets both publishAt and aligns the date field when --publish-at is provided

Integration Points

  • Playbook: playbooks/blog-publish/PLAYBOOK.md — Step 0b (Embargo Gate) uses this skill
  • Script: scripts/blog/convert-to-mdx.py--publish-at flag
  • Script: scripts/buffer-post.mjs--publish-at flag or publishAt in batch JSON
  • Buffer channels: X 69c29939af47dacb694d3d1f, LinkedIn 69c29382af47dacb694d24b4

Lessons Learned

2026-04-03: Two posts (ollama-embeddings, portkey-patterns) merged without publishAt. Both immediately indexed. Social copy existed but hadn't been approved yet, so nothing was in Buffer. Result: posts live with no social amplification window. Fix: this skill + mandatory Step 0b in blog-publish playbook.

如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install blog-embargo
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /blog-embargo 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Align SKILL.md metadata with published version and lifecycle notes.
v1.0.0
Initial ClawHub contribution.
元数据
Slug blog-embargo
版本 1.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

Blog Embargo 是什么?

Coordinate publishAt embargo timing across blog index visibility and social post scheduling. Ensures blog posts don't appear in the index before social posts... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 59 次。

如何安装 Blog Embargo?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install blog-embargo」即可一键安装,无需额外配置。

Blog Embargo 是免费的吗?

是的,Blog Embargo 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Blog Embargo 支持哪些平台?

Blog Embargo 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Blog Embargo?

由 Nissan Dookeran(@nissan)开发并维护,当前版本 v1.0.1。

💬 留言讨论