Saltar al contenido
Marketplace

huawei-cloud-openviking-agent-integration

de huaweicloud

Integrate and unbind OpenViking long-term memory with coding agents. Supports 8 agents (CodeArts CLI, OpenCode, OpenClaw, Hermes, WorkSwarm, KimiCode, DeepSeek Harness, Prime Agent) via their native mechanism — MCP, HTTP memory provider, TypeScript extension hooks, or settings.json config. Both integration and unbinding require explicit user authorization. Use this skill when the user wants to: (1) integrate OpenViking memory into a coding agent, (2) unbind OpenViking from a coding agent, (3) check the integration status of all agents, (4) verify the OpenViking MCP endpoint, (5) rebuild the OpenClaw sandbox to apply template changes. Trigger words: "OpenViking integration", "agent memory binding", "MCP setup", "OpenViking MCP", "integrate OpenViking", "unbind OpenViking", "记忆集成", "记忆解绑", "OpenViking 集成", "OpenViking 解绑", "agent long-term memory", "context database".

Esta skill incluye scripts que tu agente puede ejecutar. Ver qué archivos

Resumen

SKILL.mdLeída en 651f298

Huawei Cloud Agent Integration (OpenViking Long-Term Memory)

Overview

Integrate and unbind OpenViking long-term memory with coding agents. Agents run in bwrap sandboxes under /root/job-envs/sandboxes/ and use their native mechanism — MCP (mcp__openviking__* tools) or HTTP memory provider — so integration survives agent upgrades.

Integration writes are template-level persistent: config is injected into the agent's start.sh / config templates under /root/template/<agent>/, so sandbox stop + start preserves the integration.

Supported Agents

AgentMechanismPersistence
CodeArts CLI@openviking/opencode-plugin → .codeartsdoer/node_modules/Template + live
OpenCode@openviking/opencode-plugin (npm mirror → GitHub fallback)Template start.sh
OpenClawclawhub:@openviking/openclaw-plugin + contextEngine slotTemplate start.sh
↳ Optimization: disables session-memory hook + denies memory_search tool (OpenViking handles recall; local memory degrades quality)
HermesBuilt-in memory.provider: openviking (HTTP REST, no MCP)Template + live
WorkSwarmDual-channel: native provider + MCP (13 tools) + code-mode patchTemplate + live + runtime patch
KimiCodeMCP via mcp.jsonTemplate + live
DeepSeek Harness@openviking/dsh-memory-plugin bundle (on-demand from GitHub)Template start.sh
Prime Agent@openviking/pi-coding-agent-extension (on-demand from GitHub)Template start.sh

Per-agent config details: references/agent-configs.md.

Prerequisites

  • OpenViking server running at http://127.0.0.1:1933 (curl -s http://127.0.0.1:1933/health).
  • Agent sandboxes exist under /root/job-envs/sandboxes/ (managed by job-env-manager).
  • Host tools: curl, python3, bash. OpenCode/OpenClaw additionally need npm.
  • No Huawei Cloud IAM policies required — this skill operates on local bwrap sandboxes only.

参数确认 (Required Inputs)

ParameterRequiredDescriptionExample
--agent <name>Yes (unless --all)Target agent (see table above)--agent opencode
--allYes (unless --agent)Operate on all 8 agents--all
--endpoint <url>NoOpenViking server URL (default http://127.0.0.1:1933)--endpoint http://192.168.1.100:1933
--api-key <key>NoOpenViking API key (dev mode needs none). Never echo in chat--api-key sk-xxx
--dry-runNoShow changes without applying--dry-run
--yes / -yNoSkip authorization prompt (automation only)--yes
--jsonNostatus.sh: machine-readable output--json

核心命令

功能命令
查看集成状态scripts/status.sh(--json 机器可读,--agent <name> 指定)
验证 MCP 端点scripts/verify_mcp.sh
集成单个 Agentscripts/integrate.sh --agent <name> [--endpoint URL] [--api-key KEY] [--dry-run] [--yes]
集成全部 Agentscripts/integrate.sh --all
解绑单个 Agentscripts/unbind.sh --agent <name> [--dry-run] [--yes]
解绑全部 Agentscripts/unbind.sh --all

Workflow

SKILL_DIR=/root/.agents/skills/huawei-cloud-openviking-agent-integration
  1. Check status: $SKILL_DIR/scripts/status.sh — per-agent state: template + live (active), template only (activates on restart), live only (lost on restart).
  2. Verify MCP: $SKILL_DIR/scripts/verify_mcp.sh — full MCP handshake (initialize → tools/list → health).
  3. Integrate: $SKILL_DIR/scripts/integrate.sh --agent <name> (or --all).
  4. Unbind: $SKILL_DIR/scripts/unbind.sh --agent <name> (or --all).
  5. Rebuild OpenClaw: stop + start via job-env-manager API re-runs start.sh. Scripts: references/related-commands.md.

Authorization & Safety

  • Authorization is mandatory — integrate.sh and unbind.sh require explicit confirm (or --yes for automation). --dry-run previews without authorization.
  • Do not fabricate integration state — always run status.sh to verify before reporting.
  • Never edit agent configs directly — all changes go through the skill scripts.
  • No API keys in logs — --api-key values must never appear in output.
  • Every config modification creates a .bak.<timestamp> backup for rollback.

Full rules: references/guardrails.md. Troubleshooting: references/troubleshooting.md.

Plugin Sources

The skill ships no plugin code — plugins are installed on demand at integrate time via domestic-first mirrors (Huawei Cloud npm → npmmirror → npmjs; GitHub raw mirrors for non-npm plugins). All downloads are byte-verified against GitHub blob SHA. Installed copies under /root/runtime/ are reused if upstream is unreachable (3-tier cache: sandbox node_modules → runtime cache → online).

References

DocumentDescription
agent-configs.mdPer-agent config details, MCP tools, server info
guardrails.mdSafety, authorization, access permissions
troubleshooting.mdFailure scenarios and fixes
verification.mdVerification methods and acceptance criteria
related-commands.mdRestart/rebuild scripts, env vars

Scripts (OO Architecture)

Base class (lib/base.sh) + registry (lib/registry.sh) + per-agent subclasses (agents/*.sh). Entry points (integrate/unbind/status.sh) are thin CLI parsers. All scripts are idempotent with .bak.<timestamp> backups. Adding a new agent = one file in agents/.

Archivos 26 archivos

y 14 archivos más en GitHub

Instálala a mano

Deska ejecuta esto por ti, para cada agente que elijas. Para ejecutarlo tú en una terminal:

npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-openviking-agent-integration

Más de huaweicloud

  • huawei-cloud-find-skillshuaweicloudInvoke this skill to search, list, query, discover, browse, find and install any Huawei Cloud (华为云) agent skill. Triggers include: "华为云", "华为云有什么skill", "华为云相关skill", "华为云agent skill 市场", "华为云skill类目", "explore Huawei Cloud skills", "show Huawei Cloud skill categories", "does a Huawei Cloud skill exist for...", "which Huawei Cloud skills exist", "搜索华为云技能", "查询华为云skill列表", "有没有管理ECS/OBS/RDS的skill", "帮我找 XX 华为云skill", "介绍 XX Skill 内容", "华为云 XX Skill 具体做什么", "安装华为云Skill".14.2 k instalaciones en skills.sh0
  • huawei-cloud-terraform-installerhuaweicloudInstalls Terraform CLI cross-platform with Huawei Cloud mirror support. Use this skill whenever the user mentions installing Terraform, setting up Terraform environment, or when IaC tasks detect missing Terraform. Trigger: install terraform, setup terraform, terraform environment, huaweicloud provider.14.2 k instalaciones en skills.sh0
  • huawei-cloud-billing-scouthuaweicloudHuawei Cloud BSS billing (not AWS/Azure/other clouds; refuses pricing quotes, real-name review, and any non-billing scope): balance, spend, attribution, reconciliation, coupons, stored-value cards, enterprise/partner billing. One-page briefing via hcloud. Use only when the user explicitly mentions 华为云 / Huawei Cloud / BSS and 余额/账单/对账/资源包/代金券/储值卡/企业或伙伴账务; refuses pay, renew, refund, delete.14.1 k instalaciones en skills.sh0
  • huawei-cloud-cci-instance-managementhuaweicloudHuawei Cloud CCI (Cloud Container Instance) full lifecycle management using hcloud CLI. Covers Namespace, Network, Deployment, StatefulSet, Pod creation/update/delete/status, EIPPool for public IP, logs and metrics. Two-step confirmation for all destructive operations (delete namespace cascades all resources under it). Use this skill when the user wants to operate CCI serverless containers via command line. Triggers: CCI, 云容器实例, serverless container, 容器实例, namespace, deployment, statefulset, pod, EIPPool, CCI负载, 无服务器容器, 创建容器实例, 删除容器实例, 容器状态, 容器日志14 k instalaciones en skills.sh0
  • huawei-cloud-computing-queryhuaweicloudQueries Huawei Cloud computing resources (ECS/BMS/IMS/AS), Covers ECS instances, flavors, keypairs, quotas, server groups, block devices, NICs, VNC console, BMS bare metal servers/flavors/quotas, IMS images/OS versions/members/quotas, and AS scaling groups/configs/policies/activity logs/lifecycle hooks/warm pools/quotas. No write operations. Use this skill when the user needs to query ECS instance details, list flavors, check BMS availability, browse images, or view auto-scaling group/policy status. Triggers: 弹性云服务器, ECS, 裸金属, BMS, 镜像, IMS, 弹性伸缩, AS, 伸缩组, 伸缩策略, 规格查询, flavor, instance, image, scaling.14 k instalaciones en skills.sh0
Todas las skills de huaweicloud