跳到主要内容
知仓学习社ZHICANG

update-skills

Refresh installed NanoClaw channel and provider payloads from their registry branches with fork-safe remote resolution and a blocking structured res…

读凭据严重 4 · 高危 0nanocoai/nanoclaw

它会碰到什么

扫了多少1 个文本文件,3 KB
它会碰到什么读凭据
命中总数4 处
命中统计严重 4 · 高 0 · 中 0 · 低 0
逐条看命中(4 条严重或高危)
  • 严重 SKILL.md:9cred-paths
    not re-run credential setup, change `.env`, alter wiring, or restart services.
  • 严重 SKILL.md:51cred-paths
    dependency/CLI-manifest pins. It skips prompts, operator walkthroughs, `.env`
  • 严重 SKILL.md:70cred-paths
    the source mode already selected in `.env`:
  • 严重 SKILL.md:73cred-paths
    if grep -q '^NANOCLAW_HARDENED_IMAGE=true$' .env 2>/dev/null; then

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Update installed skills

Refresh the code carried by installed channel and provider skills. This does

not re-run credential setup, change .env, alter wiring, or restart services.

Run from the NanoClaw project root. Use ordinary conversation for any choice;

do not depend on a provider-specific question or skill-invocation tool.

1. Preflight and selection

Require a clean working tree:

git status --porcelain

If it is dirty, stop. Never mix a refresh with unrelated changes.

The default is every installed channel/provider. If the user asked for a

subset, pass its comma-separated names. Otherwise use all:

pnpm exec tsx scripts/update-skills.ts --skills all
# Example subset: --skills slack,opencode

The helper detects installed skills from the real channel/provider barrels. It

resolves each registry branch by checking configured remotes, so a fork whose

origin is the user's repo and whose official source is upstream works

without special handling. NANOCLAW_REGISTRY_REMOTE=<name> is an explicit

override and is validated before use.

2. Treat the JSON result as a gate

The command prints nanoclaw-skill-refresh/v1-shaped JSON fields with one

result per selected skill and exits nonzero unless every selected skill was

fully refreshed.

  • Continue only when success is true and every status is refreshed.
  • A missing skill, missing structured apply contract, unresolved input, agent

fallback, fetch error, or dependency error is blocking.

  • Never record a failed skill and continue toward an upgrade completion stamp.
  • Preserve the full report in the update summary.

The refresh engine overwrites skill-owned registry files and advances exact

dependency/CLI-manifest pins. It skips prompts, operator walkthroughs, .env

writes, wiring, restarts, and ordinary build/test directives.

3. Validate the composed checkout

After a successful refresh:

pnpm run build
pnpm test

If files under container/agent-runner/src/ changed, also run:

pnpm exec tsc -p container/agent-runner/tsconfig.json --noEmit

If anything under container/ changed, update the install's agent image using

the source mode already selected in .env:

if grep -q '^NANOCLAW_HARDENED_IMAGE=true$' .env 2>/dev/null; then
  ./container/build.sh pull
else
  ./container/build.sh
fi

Any validation or image failure is blocking. Do not restart or report success.

4. Report

Show the selected skills, the registry remote used for each branch, changed

files, validation results, and any blocking error. If this was a standalone

refresh and the service was running, restart it through the service mode that

actually owns this install and verify data/ncl.sock plus `bin/ncl groups

list. When called inside /update-nanoclaw`, leave restart and health checking

to that transaction.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 30,781
本站分层T1
该仓技能数61
原文件路径.claude/skills/update-skills/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 61 个技能