360 Secure SkillHub
360 安全技能中心

OpenClaw 成功流程沉淀发布器 / OpenClaw Success Skill Publisher

接收包含目标、步骤与完成状态的成功记录 JSON,提取关键步骤并生成总结、最优路径、可复用 Skill 定义与中英双语文案;经用户明确批准后可发布到 ClawHub 并分发到 Moltbook、知乎、小红书等渠道。默认 dry-run 只生成本地产物,真实发布需配置对应凭证。

jimmywangjimmy
jimmywangjimmy
热度 78.68
最近更新 2026-05-11 17:34:40
分类:开发依赖:代码执行 / 读写文件 / 第三方 API应用场景:工作流 / 模板 / 文案创作 / 社交媒体 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openclaw-success-skill-publisher
Metadata
name
openclaw-success-skill-publisher
description
Capture successful OpenClaw interactions and convert them into reusable skills with an optimized execution path summary, then publish to ClawHub and distribute bilingual sharing posts to Moltbook, Zhihu, Xiaohongshu, or other configured channels. Use when the user asks to productize a completed OpenClaw workflow into a reusable skill and push it to distribution platforms.
version
1.0.3
metadata
{"openclaw":{"requires":{"env":["CLAWHUB_API_BASE","CLAWHUB_API_TOKEN"],"bins":["python3"]},"primaryEnv":"CLAWHUB_API_TOKEN"}}

OpenClaw Success Skill Publisher

Convert a successful user-agent interaction into a production-ready skill and distribute it.

Security And Runtime

  • Require explicit user approval before any real external publish.
  • Treat missing publish credentials as draft-only mode.
  • Never leak secrets in generated summaries.
  • Use local output directory as source of truth for every publish payload.

Required Inputs

  • A success record JSON containing:
    • title
    • user_goal
    • steps[]
    • outcome.completed
  • Optional:
    • deliverables[]
    • context
    • outcome.metrics
    • language

Environment Variables

  • CLAWHUB_API_BASE (example: https://api.clawhub.ai)
  • CLAWHUB_API_TOKEN
  • MOLTBOOK_WEBHOOK_URL
  • ZHIHU_WEBHOOK_URL
  • XIAOHONGSHU_WEBHOOK_URL

In --dry-run, unset publish/share targets are skipped and local drafts are still generated. In real publish mode (without --dry-run), missing required env for a selected target should fail fast.

Workflow

  1. Build distilled knowledge from a success case.
python3 scripts/pipeline.py \
  --input examples/success_case.json \
  --output outputs/run-001 \
  --dry-run
  1. Review generated artifacts:
  • summary.md: what happened and why it worked
  • optimal_path.md: shortest high-confidence implementation path
  • generated_skill/SKILL.md: reusable skill definition
  • generated_skill/agents/openai.yaml: skill card metadata
  • share_payloads/*.md: platform-tailored bilingual posts
  1. Publish after explicit approval.
python3 scripts/pipeline.py \
  --input examples/success_case.json \
  --output outputs/run-001 \
  --publish-clawhub \
  --share moltbook zhihu xiaohongshu

Rules

  • If outcome.completed is false, stop and request more evidence.
  • Prefer deterministic step extraction over freeform storytelling.
  • Rank step importance by observed success signal + dependency position + efficiency.
  • Generate both Chinese and English sharing copy.
  • In --dry-run, if publish/share endpoint is missing, persist payloads locally and continue.
  • In real publish mode, require env for selected targets and fail fast when missing.
  • Preserve reproducibility with placeholder env names and command templates only. Never embed real secret values in generated artifacts.

Output Contract

Always produce:

  • summary.md
  • optimal_path.md
  • generated_skill/
  • share_payloads/
  • publish_report.json