publish-notify

Publish-notify: a video-publishing ledger for recording release entries, serving as the status hub for creation and review closed-loop processes.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "publish-notify" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-63bae9002b2e325c416db7513cca8bf54a9dc69d6b158e484a099777a36afd68. Verify the upstream source and version against https://skillhub.cn/skills/user_d68814ae/fabu-taizhang before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Publish-notify: a video-publishing ledger for recording release entries, serving as the status hub for creation and review closed-loop processes.

0 Downloads

Introduction source: third_party · user_d68814ae · 2.5.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "publish-notify"
description: 视频发布台账写入,创作×复盘闭环的状态中枢

发布台账处理 Skill

发布信号落库:将「已发布/预约发布」写入 publish_log.json 的发布里程碑,作为创作×复盘闭环的状态中枢。 v2.3(2026-07-07)瘦身:移除企微通知、48h提醒、公众号自动推送;Skill 更名为「发布台账」,保留发布台账写入。

触发条件

用户消息包含以下关键词组合:

  • 「发了」「发布」「已发」「上线了」
  • 且附带内容ID(格式 YYYYMMDD-N)或视频标题

两种发布类型

类型 触发词 milestones 写入 published_at
已发布 「已发布」「发了」「发布」 video_published=当前时间 当前时间
预约发布 「预约发布」 video_published=预约时间 用户指定的预约时间

⚠️ v2.2 变更(2026-07-03):复盘仅覆盖视频号+抖音。头条/小红书仍可发布,但不纳入复盘数据回收流程。

触发示例

用户:已发布:20260531-1,视频号、抖音、头条、小红书
用户:发了:环比同比那条,视频号+抖音+头条
用户:预约发布:20260602-2,6月3日19:05,视频号+抖音+小红书+头条

执行流程

Step 1. 解析指令

从用户消息中提取三个要素:

要素 解析方式 缺失处理
内容ID 正则匹配 YYYYMMDD-N 格式 缺失→用标题在 publish_log.json 中查找匹配记录
平台列表 匹配「视频号/抖音/头条/小红书」关键词 缺失→询问用户发布了哪些平台
发布时间 取当前时间 固定为当前

Step 2. 查找/创建发布记录

2.1 读取 publish_log.json

路径:<workspace>/.workbuddy/data/publish_log.json

2.2 如果ID存在 → 更新 milestones(走统一写入入口)

🔒 统一写入入口(2026-07-25):所有 publish_log 写入必须且仅能通过 CLI: python .workbuddy/tools/publish_log_cli.py patch --id <ID> --merge '<json>' CLI 在落盘前强制跑结构校验 + 版本校验 + 原子写(锁 + temp + os.replace + 备份), 校验不过直接拒绝落盘——无需手工 Edit,也不会写出结构错的记录。

构造 merge JSON 并调用:

python .workbuddy/tools/publish_log_cli.py patch --id 20260531-1 \
  --from-script "scripts/20260531-1-xxx.md" \
  --merge '{"milestones":{"video_published":"<当前ISO8601>"},"published_at":"<当前ISO8601>","platforms":["shipinhao","douyin"]}'

🆕 --from-script(2026-07-29):自动从脚本 frontmatter 补全 合集/structure/emotion。脚本路径通过 glob scripts/{ID}*.md 定位(如 scripts/20260531-1-xxx.md)。

  • milestones.video_published = 当前时间(ISO 8601);预约发布 = 用户指定预约时间
  • published_at = 同上
  • platforms = 平台代码列表(shipinhao / douyin / toutiao / xiaohongshu)

⚠️ v2.0 变更:不再写单一 status 字段,改为写 milestones.video_published。status 是派生字段(由 milestones 自动计算),CLI 会拒绝任何含顶级 status 的写入。

🔒 写入前语义自检(CLI 已做程序化结构校验,此处确认业务语义正确):

# 检查项 通过条件
1 平台代码 ✅ 仅用 shipinhao/douyin/toutiao/xiaohongshu
2 milestones.video_published ✅ 合法 ISO 8601(预约发布=预约时间)
3 写入结果 ✅ CLI 输出 [OK] updated 且未报 [REJECT]

🔒 并发安全(2026-07-25 重声明):发布台账 与 发布后复盘 现已统一走 publish_log_cli.py,底层 publish_log_lib._atomic_write 用单一文件排他锁 + 原子替换兜底并发;且发布总先于复盘触发、复盘由 复盘向导 串行委托,无交错写穿窗口。不再依赖各 writer 各自 Edit。

2.3 如果ID不存在 → 创建新记录(走统一写入入口)

构造完整 entry 的 merge JSON(含 id)并调用同一 CLI——CLI 按 id 查重:不存在则 append 新 entry,存在则合并更新,无需区分"创建/更新"两条路径:

python .workbuddy/tools/publish_log_cli.py patch --id 20260531-1 \
  --from-script "scripts/20260531-1-xxx.md" \
  --merge '{
  "title": "从用户消息或publish_log中查找",
  "platforms": ["shipinhao","douyin","toutiao","xiaohongshu"],
  "script_path": "scripts/20260531-1.md",
  "created_at": "2026-05-31T14:00:00",
  "published_at": "2026-05-31T20:00:00",
  "milestones": {"created":"2026-05-31T14:00:00","draft_review":null,"video_published":"2026-05-31T20:00:00","review_completed":null,"data_collected":null}
}'

🆕 --from-script:脚本路径通过 glob scripts/{ID}*.md 定位。

⚠️ 如果ID不存在且无法匹配标题 → 向用户确认:「没找到这条内容的记录。请确认ID或标题。」(不得臆造记录)

Step 3. 确认回复

向用户简要确认:

✅ 已记录发布台账:
  - ID:20260531-1
  - 平台:视频号/抖音/头条/小红书
  - 已写入 publish_log.json(milestones.video_published)

Step 4. Vault 03_Output 状态迁移 🆕 v2.5

CLI 写入成功后,自动触发 vault 选题卡片状态迁移(draft/selected → published → 01_已发布/)

python junqi-vault/scripts/publish_card.py "<ID>" "<选题关键词>"
  • 用标题关键词在 00_选题库/ 中匹配对应卡片
  • 匹配到 → 更新 status: published + 追加 published_at: <ID> → 迁移到 01_已发布/
  • 无匹配 → 静默跳过(不是所有发布都来自 03_Output 卡片)

⚠️ 只在 CLI 返回 [OK] 后执行(确保 publish_log 先落盘)。失败不阻断发布确认。


ID协议

项目 规则
格式 YYYYMMDD-N
分配时机 创作文案时由房产创作技能自动分配
当日序号 从1开始,同一天第N条=N
唯一性 全局唯一,不存在重复
匹配方式 Excel导入时用标题模糊匹配,对应到ID

数据流向

「已发布」路径:
  用户「已发布:ID,平台」
    → publish_log.json (milestones.video_published: 当前时间, published_at: 当前时间)

「预约发布」路径:
  用户「预约发布:ID,预约时间,平台」
    → publish_log.json (milestones.video_published: 预约时间, published_at: 预约时间)

下游(由其他 skill 读取,非本 skill 职责):
    → 视频数据追踪:Excel 导入后按 ID 匹配,写 milestones.data_collected
    → 发布后复盘:读 video_published≠null 且 review_completed=null 的视频做复盘
    → 创作前置扫描:读近3天/14天记录做排重与 feedback 闭环
    → 留资获客:走线下/企微人工,不在系统内闭环
(公众号推送、企微通知、48h 提醒已移除,改由用户确认文章后手动 @公众号推送)

依赖

  • publish_log.json:发布台账数据文件(路径:<workspace>/.workbuddy/data/publish_log.json)
  • 视频数据追踪:后续数据回收(读 video_published 匹配 Excel)
  • 发布后复盘:后续自动复盘(读待复盘记录)
  • 创作前置扫描:读取发布记录做排重与归因
  • (已移除依赖:automation_update 定时提醒、notify_wecom.py 企微推送、公众号推送 SKILL)

示例(Few-Shot)

例1 · 标准正向(已发布)

用户:「已发布:20260603-1,视频号+抖音」 执行:解析 ID=20260603-1、平台=[shipinhao,douyin] → 写 milestones.video_published(当前 ISO 时间) + published_at + platforms → Read 回读确认 milestones 完整。

例2 · 边界(预约发布)

用户:「预约发布:20260602-2,6月3日19:05,视频号+抖音」 执行:video_published=用户指定预约时间(非当前时间);published_at=预约时间。

例3 · 禁止项

❌ 新记录不得写顶级 status 字段(v2.0 改为派生字段)。 ❌ ID 缺失且标题无法匹配 → 不得臆造记录,须向用户确认。


逆向操作

如果用户说「撤回发布」或「取消了没发」——走统一写入入口:

python .workbuddy/tools/publish_log_cli.py patch --id <ID> --merge '{"milestones":{"video_published":null,"data_collected":null,"review_completed":null},"meta":{"reverted":true}}'
  • 🔒 级联复位(R6 修复):video_published/data_collected/review_completed 同步复位 null,meta.reverted: true,避免「已复盘却撤回发布」的僵尸记录(下游复盘向导 D1 据 review_completed==null 正确识别为待复盘)
  • (已无关联自动化可取消;仅复位台账里程碑)

Current listing version

2.5.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 高价值/高频刚需。直接解决用户明确的核心任务痛点,显著提升日常高频场景的效率——视频发布台账写入是创作×复盘闭环的状态中枢,具备明确的实际使用价值
Trigger Precision85/100

Highlights

  • 触发词精准完整,覆盖多种变体,边界清晰
Structure and Standards88/100

Highlights

  • Phase/步骤清晰,有出口条件,含端到端示例,frontmatter完整,单文件≤500行
Execution Reliability90/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制
Evidence Verifiability (mean of the first four)89/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.