@geoly-ai/social-hub-cli 0.1.5 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,68 @@
1
+ ---
2
+ name: social-hub-style-curator
3
+ description: >-
4
+ Hub 账号风格沉淀:style-marks list/approve/reject/extract/set 与 curator run、
5
+ accounts style-guide get。用户要提取高赞评论风格、审核 style mark、批量 curator 写回风格资产时用本 skill。
6
+ 不负责 Reddit 帖快照 CRUD(见 social-hub-posts)。
7
+ metadata:
8
+ cliVersion: ">=0.1.4"
9
+ ---
10
+
11
+ # social-hub-style-curator
12
+
13
+ > **前置条件:** 先阅读 [`../social-hub-shared/SKILL.md`](../social-hub-shared/SKILL.md),
14
+ > 确认已 `auth login` 并 `context use <team-id>`。
15
+
16
+ ## 职责边界
17
+
18
+ | 做 | 不做 |
19
+ | ----------------------------------------- | ------------------------------------------- |
20
+ | `style-marks` CRUD / 按 event 幂等 upsert | `reddit list` / `batch-upsert` / 帖表现刷新 |
21
+ | `curator run` 批量沉淀到 Hub style-guide | 从飞书/本地 JSON 直接当 SSOT 主写 |
22
+
23
+ ## 列出与审核
24
+
25
+ `style-marks list` 当前按 `socialAccountId` 过滤,`--account` 必须传 **账号 UUID**。如果手里只有 OpenClaw 槽位/handle,先用 `context account` 解析:
26
+
27
+ ```bash
28
+ social-hub context account -t <team-id> --account <slot-or-handle>
29
+ # 取响应 account.id,作为下方 <account-uuid>
30
+ ```
31
+
32
+ ```bash
33
+ social-hub style-marks list -t <team-id> --account <account-uuid> \
34
+ --extract-status pending --approved true -n 50
35
+
36
+ social-hub style-marks approve -t <team-id> --id <styleMarkId> [--note "..."]
37
+ social-hub style-marks reject -t <team-id> --id <styleMarkId> [--note "..."]
38
+ social-hub style-marks extract -t <team-id> --id <styleMarkId> [--dry-run]
39
+ ```
40
+
41
+ ## 按 event 幂等写入 mark
42
+
43
+ ```bash
44
+ social-hub style-marks set -t <team-id> --event-ref <externalRef> -j '{
45
+ "styleTags": ["concise", "helpful"],
46
+ "markExternalRef": "mk_evt_001",
47
+ "onConflict": "update"
48
+ }'
49
+ ```
50
+
51
+ `--event-ref` 对齐 OpenClaw `event_id` / Hub `externalRef`。
52
+
53
+ ## Curator 批量沉淀
54
+
55
+ ```bash
56
+ social-hub curator run -t <team-id> --account <slot-or-uuid> [--dry-run]
57
+ social-hub accounts style-guide get -t <team-id> --account <slot-or-uuid>
58
+ ```
59
+
60
+ 成功后 Hub 将对应 marks 的 `extractStatus` 置为 `extracted`(幂等:`markExternalRef`)。
61
+
62
+ ## 离线回退
63
+
64
+ `doctor` 失败时:只读/写本地 `interaction-history.json` 的 `style_marks[]` 与 `account-style-guides/*.md`,回执标注 `[hub-offline-fallback]`。Hub 在线时禁止对同一 mark 双主写。
65
+
66
+ ## 与维护 CRON 的关系
67
+
68
+ `reddit-post-reply-maintenance` Step 4.5–4.6 在 metrics 达标后调用本 skill;互动 CRON 不负责写 style marks。
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: social-hub-subreddit-pools
3
+ description: >-
4
+ Social Hub 运营板块池:catalog、pool aliases、tier rules 的 CRUD 与列表。
5
+ 用户要管理 industryKey/subreddit 目录、persona_pools.* alias、S0–S3 准入规则,
6
+ 或提到 social-hub pools、subreddit-pools API 时使用。不用于 watchlists、热帖、
7
+ insights 抓取(用 social-hub-intelligence)或 Agent 选板(用 social-hub-openclaw-context)。
8
+ ---
9
+
10
+ # social-hub-subreddit-pools
11
+
12
+ 先读 `social-hub-shared` 完成 `auth login` 与 `context use`。
13
+
14
+ ## 命令组
15
+
16
+ ```bash
17
+ social-hub pools catalog-list -t <team-id> [--pool-kind pet|common|industry|brand|other]
18
+ social-hub pools catalog-create -t <team-id> -j '{"industryKey":"...","industryLabel":"...","subreddit":"..."}'
19
+ social-hub pools catalog-update -t <team-id> --id <pool-id> -j '{...}'
20
+ social-hub pools catalog-delete -t <team-id> --id <pool-id>
21
+
22
+ social-hub pools aliases-list -t <team-id> [--alias-ref persona_pools.P23.starter]
23
+ social-hub pools aliases-create -t <team-id> -j '{"aliasRef":"persona_pools.P23.starter","industryKey":"common_pools__starter_casual"}'
24
+ social-hub pools aliases-update -t <team-id> --id <alias-id> -j '{...}'
25
+ social-hub pools aliases-delete -t <team-id> --id <alias-id>
26
+
27
+ social-hub pools tier-rules-list -t <team-id>
28
+ social-hub pools tier-rules-create -t <team-id> -j '{...}'
29
+ social-hub pools tier-rules-update -t <team-id> --id <rule-id> -j '{...}'
30
+ social-hub pools tier-rules-delete -t <team-id> --id <rule-id>
31
+ ```
32
+
33
+ ## API
34
+
35
+ - `GET/POST/PATCH/DELETE /v1/teams/:teamId/subreddit-pools/catalog`
36
+ - `GET/POST/PATCH/DELETE /v1/teams/:teamId/subreddit-pools/aliases`
37
+ - `GET/POST/PATCH/DELETE /v1/teams/:teamId/subreddit-pools/tier-rules`
38
+
39
+ 权限资源:`subredditPool`(与 `subredditIntelligence` 分析只读分离)。
40
+
41
+ 兼容:旧 `subreddit-intelligence/industry-pools` 仍可读;新写操作优先走 `subreddit-pools/*`。