360 Secure SkillHub
360 安全技能中心

Runtime Instructions Control Plane

为OpenClaw提供运行时指令管控:从谷歌表格抓取作业运行时指令并本地缓存(无网可 fallback 至缓存),可预览或安全同步cron作业启用状态。适用于无需手动编辑cron配置,通过表格统一管理作业运行规则的场景。需配置谷歌表格环境变量,提供命令行脚本,附带表格 schema 和 CSV 模板,操作支持 dry-run 预览,同步时自动备份配置保障安全。

danielsinewe
danielsinewe
热度 35.74
最近更新 2026-05-18 11:38:55
分类:自动化依赖:代码执行 / 第三方 API / 读写文件应用场景:自动化脚本 / 任务管理 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add runtime-instructions-control-plane
Metadata
name
runtime-instructions-control-plane
description
Load per-job runtime instructions from Google Sheets, cache them locally, and reconcile cron job enablement flags safely for OpenClaw operations.
metadata
{"openclaw":{"emoji":"🧭","requires":{"bins":["node"]}}}

Runtime Instructions Control Plane

Use this skill to run OpenClaw jobs from a Google Sheet control plane without editing cron/jobs.json manually.

What this provides

  • Fetches per-job instructions from Google Sheets and writes local runtime cache files.
  • Supports local-only fallback from cache when Sheets or auth is unavailable.
  • Reconciles cron job enabled flags from sheet rows in dry-run or apply mode.
  • Includes a schema reference and starter CSV template for sheet setup.

Included files

  • scripts/load-sheet-instructions.mjs
  • scripts/reconcile-cron-from-sheet.mjs
  • references/google-sheet-instructions-schema.md
  • templates/job_instructions_template.csv

Environment

Set these before running:

  • GOOGLE_SHEETS_SPREADSHEET_ID
  • GOOGLE_SHEETS_RANGE (optional, default in scripts)
  • Either service account creds:
    • GOOGLE_SERVICE_ACCOUNT_EMAIL
    • GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY
  • Or authenticated gcloud for token fallback in loader script.

Optional path overrides:

  • OPENCLAW_ROOT (default: ~/.openclaw)
  • OPENCLAW_RUNTIME_INSTRUCTIONS_DIR (default: $OPENCLAW_ROOT/memory/runtime-instructions)
  • OPENCLAW_CRON_JOBS_PATH (default: $OPENCLAW_ROOT/cron/jobs.json)

Usage

Load one job's runtime instructions:

node scripts/load-sheet-instructions.mjs \
  --job-id "<job-id>" \
  --job-name "<job-name>"

Load from cache only (no network):

node scripts/load-sheet-instructions.mjs --job-id "<job-id>" --local-only

Preview cron enable/disable changes from sheet:

node scripts/reconcile-cron-from-sheet.mjs

Apply cron enable/disable changes:

node scripts/reconcile-cron-from-sheet.mjs --apply

Safety notes

  • Always run dry-run first before --apply.
  • Reconcile script creates a timestamped backup before writing jobs.json.
  • Keep this focused on operational control-plane toggles, not content generation.