Install
openclaw skills install geo-cycle-autopilotGEO 周期自动协同 — 读龙虾密钥,自动导出范文/执行深度仿写并导出,上报待群发状态。供 QClaw 每日定时任务加载,无需用户说「开始优化任务」。
openclaw skills install geo-cycle-autopilot主路径:由用户在 QClaw 配置每日定时(本项目不实现 cron),定时仅加载本 skill。
~/.qclaw/geo-api-key、~/.openclaw/geo-api-key;存在且非空则使用echo -n "<用户提供的key>" > ~/.qclaw/geo-api-key
GEO_KEY=$(cat ~/.qclaw/geo-api-key 2>/dev/null || cat ~/.openclaw/geo-api-key 2>/dev/null)
BASE="https://ai.gaobobo.cn"
curl -s -X POST "$BASE/api/geo/verify-key" \
-H "Authorization: Bearer $GEO_KEY"
code: 0 且 message 含「验证通过」→ 继续下文code != 0 → 立即停止,告知用户密钥无效或已吊销,请到 SaaS 重新创建并更新本机 key 文件web_fetch 可用~/.qclaw/geo-exports/{brand}_{product}_C{cycle}/fanwen/fanwen.zip
~/.qclaw/geo-exports/{brand}_{product}_C{cycle}/fangxie/fangxie.zip
Windows:%USERPROFILE%\.qclaw\geo-exports\...
curl -s "$BASE/api/geo/optimization/tasks" -H "Authorization: Bearer $GEO_KEY"
对每个 items[] 读取 task、latestCycle、openclawActions(勿向用户索要 OPT-ID)。
当 openclawActions.needsFanwenExport == true:
OPT_ID="<task.taskId 内部用>"
CYCLE=<latestCycle.cycleNumber>
BRAND="<task.brandName>"
PRODUCT="<task.productName>"
DIR="$HOME/.qclaw/geo-exports/${BRAND}_${PRODUCT}_C${CYCLE}/fanwen"
mkdir -p "$DIR"
curl -fsSL -o "$DIR/fanwen.zip" \
"$BASE/api/geo/optimization/$OPT_ID/cycles/$CYCLE/export/fanwen.zip" \
-H "Authorization: Bearer $GEO_KEY"
curl -s -X POST "$BASE/api/geo/optimization/$OPT_ID/cycles/$CYCLE/mass-publish-export" \
-H "Authorization: Bearer $GEO_KEY" -H "Content-Type: application/json" \
-d "{\"branch\":\"fanwen\",\"local_path_hint\":\"$DIR\"}"
若 openclawActions.fanwenStatus 已为 completed 且本地已有 fanwen.zip,跳过。
当 openclawActions.needsFangxieRun == true:
GET .../diagnosis/imitate-sources?optimization_task_id=$OPT_ID&cycle_number=$CYCLEweb_fetch(url) 取正文(勿用 Firecrawl)POST .../article/generate-deep-imitate(见 geo-deep-imitate)GET .../article/{CG-id},间隔 ≥30s,直至 status=completed当 openclawActions.needsFangxieExport == true(或上一步刚完成):
DIR_FX="$HOME/.qclaw/geo-exports/${BRAND}_${PRODUCT}_C${CYCLE}/fangxie"
mkdir -p "$DIR_FX"
curl -fsSL -o "$DIR_FX/fangxie.zip" \
"$BASE/api/geo/optimization/$OPT_ID/cycles/$CYCLE/export/fangxie.zip" \
-H "Authorization: Bearer $GEO_KEY"
curl -s -X POST "$BASE/api/geo/optimization/$OPT_ID/cycles/$CYCLE/mass-publish-export" \
-H "Authorization: Bearer $GEO_KEY" -H "Content-Type: application/json" \
-d "{\"branch\":\"fangxie\",\"local_path_hint\":\"$DIR_FX\"}"
openclawActions.fangxieStatus == not_enabled 时跳过仿写分支。
不向用户展示 OPT-ID。可输出内部摘要:品牌、产品、范文状态、仿写状态(读 latestCycle.cycleStepResults.massPublish 或 openclawActions.fanwenStatusLabel / fangxieStatusLabel)。
群发提醒由 geo-mass-publish-check 定时或紧随其后执行。