Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/KCNyu/clawocknpx agentmods add skills/kcnyu/clawock/openclaw-upgradeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/kcnyu/clawock/openclaw-upgrade)<a href="https://agentmods.dev/skills/kcnyu/clawock/openclaw-upgrade"><img src="https://agentmods.dev/badge/skills/kcnyu/clawock/openclaw-upgrade/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/kcnyu/clawock/openclaw-upgrade"><img src="https://agentmods.dev/badge/skills/kcnyu/clawock/openclaw-upgrade.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Rogue Agent · line 92 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00110 | $0.01469 |
| Opus 5 | $0.00055 | $0.00734 |
| Sonnet 5 | $0.00022 | $0.00294 |
| Haiku 4.5 | $0.00011 | $0.00147 |
Grade A, and why
openclaw-upgrade scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OpenClaw Safe Upgrade
Kcn runs a live automated trading system on OpenClaw. An upgrade that loses crons, breaks embeddings, or orphans an in-flight cron is a production incident. This is the battle-tested flow (5.28→6.1→6.5→6.6→6.8). Full version-specific history lives in auto-memory openclaw-update-missing-deps.md — read it first for the target version's known traps.
0. Check + decide
openclaw --versionvsnpm view openclaw version(latest). Pull the changelog (npm pack openclaw@<v>→package/CHANGELOG.md) and judge relevance — don't upgrade reflexively.- Read auto-memory
openclaw-update-missing-deps.mdfor that version's traps.
1. 🔴 Never restart the gateway while a cron is in-flight
Use the structured runtime field, not a text grep:
openclaw cron list --json \
| jq -e '[.jobs[] | select(.state.runningAtMs != null)] | length == 0'
If this is not true, wait. A SIGTERM mid-run can orphan the cron into
permanent running. Use --no-restart and pick a quiet window between slots
(bash ops/host/check_crons.sh --timeline).
2. Update (built-in updater, since 6.x)
openclaw update --tag <version> --no-restart --yes
This auto-reinstalls/links managed plugins (weixin, llama-cpp, codex) — no manual pnpm add, no systemd edits, no restore-llama-embeddings.sh needed. (Pre-6.x manual flow is in the memory file.)
3. 🔴 Reapply all upgrade-sensitive local patches before restart
The updater replaces the installed dist/ tree. From the live workspace run:
bash ops/host/reapply_openclaw_patches.sh
The wrapper applies these idempotent host scripts in order:
/root/tools/openclaw/current/patch-embedding-threads1.sh/root/tools/openclaw/current/patch-memory-search-timeout.sh/root/tools/openclaw/current/patch-minimax-m3-priority.sh/root/tools/openclaw/current/patch-minimax-response-header-timeout.sh
It then verifies all four markers, runs node --check on every modified bundle,
and compiles the maintenance detector. It does not restart the gateway.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 97 lines · 110 tokens per session scan A 7afa8ca30775
openclaw-upgrade is a skill published in the GitHub repository KCNyu/clawock (14 stars, last pushed yesterday), licensed MIT. It adds 110 tokens to every session and 1,469 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
agent-optimization
Improve an Agent State through versioned scores and score-linked Traces from a frozen Benchmark.
data-analysis
Complete data-analysis tasks with bounded inspection, correct data semantics, native artifact handling, complete delivery, and risk-based verification.
penguin-config
Manage model API keys, default models and per-agent vault secrets with the penguin CLI.
llamafactory
Fine-tune LLMs with LlamaFactory — register datasets, train via YAML configs, merge LoRA adapters and serve the result.
arxiv-summarizer-orchestrator
End-to-end orchestration skill for periodic arXiv collection and reporting using three sub-skills: arxiv-search-collector, arxiv-paper-processor, and arxiv-batch-reporter. Supports manual language control across all markdown outputs and Stage-B processing strategy (subagentparallel default max 5, or serial).
academic-literature-search
A multi-database search tool for academic papers and other scholarly publications. It searches sources such as Semantic Scholar, Crossref, arXiv, and PubMed, which cover research across fields including computing, physics, and medicine.