Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

oc-deploy-guideoc 部署指南

Agent Skill

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

总安装

2,375

周安装

97

GitHub Stars

公开资料未说明

下载量

760
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:oc-deploy-guide(oc 部署指南)
来源仓库:https://github.com/ottoprua/oc-deploy-guide
安装命令:
openclaw skills install oc-deploy-guide
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install oc-deploy-guide

简介

交互式引导安装内存堆栈、微信插件等核心组件。

  • 适合新手用户完成 OpenClaw 本地环境搭建。
  • 分步提示降低部署复杂度与出错概率。oc-deploy-guide 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 安装命令:openclaw skills install oc-deploy-guide。
  • 需准备足够的磁盘空间与网络连接稳定性。

SKILL.md

name
openclaw-deploy
description
Interactive deployment guide for OpenClaw local capabilities. Walks through installing the Memory Stack (qmd + LosslessClaw), vid2md, WeChat plugin, and maintenance cron jobs — with confirmation gates between each phase. Run when setting up a new OpenClaw instance or adding capabilities to an existing one.
triggers

OpenClaw Capabilities Deployment Guide

Interactive protocol. This skill checks prerequisites, installs each component, verifies success, and pauses for your confirmation before moving to the next phase. You can stop at any phase and resume later.

Before Starting

Run session_status to confirm the current context, then ask the user:

"Which components do you want to deploy? I'll check prerequisites for all of them and then walk through each one. Available components: - [A] Memory Stack — qmd (semantic search) + LosslessClaw (context compression) - [B] Memory Manager Skill — agent memory protocol (clawhub install) - [C] vid2md — video → structured Markdown converter - [D] WeChat Plugin — WeChat group chat integration - [E] Cron Jobs — automated memory maintenance Reply with the letters you want (e.g. A B E), or all to deploy everything."

Wait for confirmation before proceeding.


Phase 0 — Prerequisites Check

Run these checks for all selected components. Report status in a table before proceeding.

# Core tools
which git && git --version
which python3 && python3 --version
which brew && brew --version
which ffmpeg && ffmpeg -version 2>&1 | head -1
which ollama && ollama --version

# OpenClaw
openclaw --version

# Node / bun (for qmd)
which node && node --version
which bun && bun --version
which npm && npm --version

Report as a table:

ToolStatusVersion
git✅/❌...
python3✅/❌...
brew✅/❌...
ffmpeg✅/❌...
ollama✅/❌...
openclaw✅/❌...
bun/node✅/❌...

If any required tool is missing, tell the user what to install and wait for confirmation before continuing:

  • brew: https://brew.sh
  • ffmpeg: brew install ffmpeg
  • ollama: https://ollama.com
  • bun: curl -fsSL https://bun.sh/install | bash

Phase A — Memory Stack

A1: Install qmd

# Check if already installed
which qmd && qmd --version

If not installed:

bun install -g @tobilu/qmd
# or: npm install -g @tobilu/qmd

Verify:

qmd --version
qmd status

A2: Create memory collections

Ask the user for their workspace path:

"What is your OpenClaw workspace path? (default: ~/.openclaw/workspace)"

Wait for answer, then substitute <WORKSPACE> below:

# Check existing collections
qmd collection list

Only add collections that don't already exist:

# Memory collection
qmd collection add memory-root <WORKSPACE>/memory --pattern "**/*.md"

# Blackboard collection
qmd collection add blackboard <WORKSPACE>/blackboard --pattern "**/*.md"

# Initial index build
qmd update
qmd status

Verify by running a test search:

qmd vsearch "project status" -c blackboard 2>/dev/null | head -5

A3: Configure openclaw.json

Check if qmd is already configured:

cat ~/.openclaw/openclaw.json | python3 -c "
import sys, json; d=json.load(sys.stdin)
print('already configured' if d.get('memory',{}).get('backend') == 'qmd' else 'not configured')
"

If not configured, show the user this config block to add to openclaw.json:

// Add to ~/.openclaw/openclaw.json
{
  "memory": {
    "backend": "qmd",
    "qmd": {
      "command": "<path-from: which qmd>",
      "searchMode": "vsearch",
      "includeDefaultMemory": true,
      "update": {
        "interval": "5m",
        "onBoot": true,
        "waitForBootSync": false
      },
      "limits": {
        "maxResults": 10,
        "maxSnippetChars": 500
      },
      "scope": { "default": "allow" }
    }
  }
}

Get the qmd path:

which qmd

Then tell the user:

"Add the above block to ~/.openclaw/openclaw.json. Use the path <result of which qmd> for the command field. Tell me when done."

Wait for confirmation.

A4: Install LosslessClaw

Check if already installed:

cat ~/.openclaw/openclaw.json | python3 -c "
import sys, json; d=json.load(sys.stdin)
installed = d.get('plugins',{}).get('installs',{}).get('lossless-claw')
print('installed:', installed.get('version') if installed else 'not found')
"

If not installed:

openclaw plugins install @martian-engineering/lossless-claw

Show the user this config block to add under plugins.entries:

{
  "plugins": {
    "allow": ["lossless-claw"],
    "entries": {
      "lossless-claw": {
        "enabled": true,
        "config": {
          "summaryProvider": "anthropic",
          "summaryModel": "claude-haiku-4-5",
          "freshTailCount": 32,
          "contextThreshold": 0.75,
          "ignoreSessionPatterns": ["agent:*:cron:**"],
          "incrementalMaxDepth": 10
        }
      }
    }
  }
}

Ask: "Which model should be used for summarization? (default: claude-haiku-4-5 — cheap and fast; alternatives: google/gemini-3-flash-preview, openai/gpt-4o-mini)"

Wait for answer, substitute into config, then:

openclaw gateway restart

✅ Phase A complete. Confirm with user before Phase B.


Phase B — Memory Manager Skill

B1: Install via ClawHub

# Check if already installed
ls ~/.openclaw/workspace/skills/memory-manager/SKILL.md 2>/dev/null && echo "already installed"

If not installed:

cd ~/.openclaw/workspace
clawhub install agent-memory-protocol

B2: Verify SKILL.md is accessible

head -5 ~/.openclaw/workspace/skills/memory-manager/SKILL.md

B3: Initialize memory directory structure

Check if memory structure exists:

ls ~/.openclaw/workspace/memory/ 2>/dev/null | head -10

If MEMORY.md or memory/ doesn't exist, create the skeleton:

mkdir -p ~/.openclaw/workspace/memory/user/preferences
mkdir -p ~/.openclaw/workspace/memory/user/entities
mkdir -p ~/.openclaw/workspace/memory/user/events
mkdir -p ~/.openclaw/workspace/memory/agent/cases
mkdir -p ~/.openclaw/workspace/memory/agent/patterns
mkdir -p ~/.openclaw/workspace/memory/archive

# Create L0 index stub if missing
if [ ! -f ~/.openclaw/workspace/MEMORY.md ]; then
cat > ~/.openclaw/workspace/MEMORY.md << 'EOF'
# Memory Index (L0)
> Full contents in memory/INDEX.md; this file holds high-frequency entry points only.

## User
- Profile → memory/user/profile.md
- Preferences → memory/user/preferences/

## Agent
- Cases → memory/agent/cases/
- Patterns → memory/agent/patterns/
EOF
fi

✅ Phase B complete. Confirm with user before Phase C.


Phase C — vid2md

C1: Check / clone repository

Ask: "Where should vid2md be installed? (default: ~/Projects/vid2md)"

Wait for answer, substitute as <VID2MD_DIR>.

# Check if already exists
ls <VID2MD_DIR>/vid2md.py 2>/dev/null && echo "already exists"

If not exists:

mkdir -p "$(dirname <VID2MD_DIR>)"
git clone https://github.com/OttoPrua/vid2md.git <VID2MD_DIR>

C2: Install Python dependencies

cd <VID2MD_DIR>
pip3 install -r requirements.txt

For Apple Silicon Macs, also install:

pip3 install mlx-whisper

For Linux / CUDA:

pip3 install faster-whisper

C3: Download transcription models

Ask: "Will you primarily process Chinese or English videos? (zh/en/both)"

If zh or both:

# FunASR model (downloads on first run, ~300 MB)
MODELSCOPE_CACHE=/tmp/ms_models python3 -c "
from funasr import AutoModel
AutoModel(model='paraformer-zh', model_revision='v2.0.4')
print('FunASR model ready')
"

If en or both (Apple Silicon):

python3 -c "import mlx_whisper; print('mlx-whisper ready')"

C4: Configure wechat-ocr (optional, macOS only)

Ask: "Do you have wechat-ocr available? (y/n — skip if unsure, falls back to macOS Vision)"

If yes, ask for the path and set:

export WECHAT_OCR_BIN=/path/to/wechat-ocr
# Add to ~/.zshrc or ~/.bashrc:
echo 'export WECHAT_OCR_BIN=/path/to/wechat-ocr' >> ~/.zshrc

C5: Download VLM for frame descriptions (optional)

Ask: "Install AI frame descriptions? Requires Ollama + ~5 GB. (y/n)"

If yes:

ollama pull qwen2.5vl:7b

C6: Test run

cd <VID2MD_DIR>
python3 vid2md.py --help

Run a quick smoke test on a short public video:

python3 vid2md.py "https://www.youtube.com/watch?v=dQw4w9WgXcQ" \
  --lang en --no-ocr --no-desc --interval 60

Check output exists:

ls output/*/tutorial.md 2>/dev/null && echo "✅ vid2md working"

✅ Phase C complete. Confirm with user before Phase D.


Phase D — WeChat Plugin

⚠️ macOS only. Requires WeChat desktop app installed and logged in.

D1: Prerequisites

# Check WeChat is installed
ls /Applications/WeChat.app 2>/dev/null && echo "WeChat found"

# Check Peekaboo
which peekaboo || brew install peekaboo

# Check accessibility permission
osascript -e 'tell application "System Events" to return name of first process whose frontmost is true' 2>/dev/null \
  && echo "accessibility: OK" || echo "accessibility: NEEDS PERMISSION"

If accessibility not granted:

"Please grant Terminal (or whichever app runs OpenClaw) accessibility permission in: System Settings → Privacy & Security → Accessibility"

D2: Clone and install

Ask: "Where should the WeChat plugin be installed? (default: ~/.openclaw/workspace/plugins/openclaw-wechat-plugin)"

PLUGIN_DIR=~/.openclaw/workspace/plugins/openclaw-wechat-plugin

git clone https://github.com/OttoPrua/openclaw-wechat-bot.git "$PLUGIN_DIR"
cd "$PLUGIN_DIR"
npm install

D3: Configure openclaw.json

Ask the user for:

  • Agent ID to use (e.g. main, or a custom agent like rossi)
  • Allowed group names (comma-separated)

Show config block:

{
  "plugins": {
    "allow": ["wechat"],
    "load": {
      "paths": ["~/.openclaw/workspace/plugins/openclaw-wechat-plugin"]
    },
    "entries": {
      "wechat": {
        "enabled": true
      }
    }
  },
  "channels": {
    "wechat": {
      "enabled": true,
      "groupOnly": true,
      "botName": "<your-bot-name>",
      "botTrigger": "&bot",
      "agent": "<agent-id>",
      "allowedGroups": ["<group-name>"],
      "rateLimitPerMinute": 20,
      "dailyTokenBudget": 50000
    }
  }
}

Tell user: "Fill in your bot name, agent ID, and allowed group names, then add to openclaw.json. Tell me when done."

Wait for confirmation.

D4: Configure WeChat

1. Open WeChat on macOS
2. Settings → General → confirm send shortcut is Enter
3. System Settings → Notifications → WeChat → Allow Notifications → Style: Persistent
4. Keep WeChat running in background (not foreground) when testing

D5: Restart and test

openclaw gateway restart
"To test: go to one of your allowed WeChat groups and send: &bot hello The bot should reply within ~10 seconds."

✅ Phase D complete. Confirm with user before Phase E.


Phase E — Maintenance Cron Jobs

E1: Check existing jobs

openclaw cron list

E2: Ask which jobs to add

"Which cron jobs do you want to add? (skip any already listed above) - [1] Dream Cycle — Weekly memory consolidation (Sunday 08:00) - [2] Daily Progress Sync — Sync project progress to Blackboard daily (04:00) - [3] Monthly Cleanup — Archive old session logs (1st of month, 03:00)"

Wait for answer. Ask: "What timezone? (e.g. Asia/Shanghai, America/New_York, Europe/London)"

E3: Add selected jobs

For job [1] Dream Cycle:

openclaw cron add \
  --name "Dream Cycle (Memory Consolidation)" \
  --cron "0 8 * * 0" \
  --tz "<TIMEZONE>" \
  --session isolated \
  --message "Run memory consolidation: scan memory/ root for dated session log files, refine each into a ≤30-line structured summary, move originals to memory/archive/YYYY-MM/, deduplicate patterns/." \
  --announce

For job [2] Daily Progress Sync:

openclaw cron add \
  --name "Daily Progress Sync" \
  --cron "0 4 * * *" \
  --tz "<TIMEZONE>" \
  --session isolated \
  --message "Read blackboard/REGISTRY.md and yesterday's calendar events. Update Blackboard project cards with any progress changes." \
  --announce

For job [3] Monthly Cleanup:

openclaw cron add \
  --name "Monthly Session Cleanup" \
  --cron "0 3 1 * *" \
  --tz "<TIMEZONE>" \
  --session isolated \
  --message "Archive memory/ root session log files (YYYY-MM-DD.md format) older than 7 days to memory/archive/YYYY-MM/. Create the archive folder if it does not exist." \
  --announce

E4: Verify

openclaw cron list

Show a summary table of all registered jobs.

✅ Phase E complete.


Final Verification

After all selected phases are complete:

# Memory stack
qmd status
qmd vsearch "test" 2>/dev/null | head -3

# OpenClaw gateway
openclaw gateway status

# Cron jobs
openclaw cron list

# vid2md (if installed)
python3 <VID2MD_DIR>/vid2md.py --help 2>/dev/null | head -3

Report final status table:

ComponentStatus
qmd index✅/❌
LosslessClaw✅/❌
Memory Manager skill✅/❌
vid2md✅/❌
WeChat plugin✅/❌
Cron jobsN registered

References

RepoLink
Memory Architecturehttps://github.com/OttoPrua/openclaw-memory-manager
vid2mdhttps://github.com/OttoPrua/vid2md
WeChat Pluginhttps://github.com/OttoPrua/openclaw-wechat-bot
Memory Manager Skillhttps://clawhub.ai/OttoPrua/agent-memory-protocol
OpenClawhttps://github.com/openclaw/openclaw

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

97.15%
按下载量换算738

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills