360 Secure SkillHub
360 安全技能中心

Openclaw360 Workspace

面向 OpenClaw 360 仓库的本地工作区引导技能:先检查 node 与 pnpm 是否可用以及依赖是否缺失或过期,再按需在当前检出中执行冻结锁文件的依赖安装,并可选择运行快速冒烟构建;不改变锁文件,也不使用全局安装。

分类:开发
2020必胜
2020必胜
热度 0.00
最近更新 2026-04-02 21:47:43

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add 3127743018/openclaw360-workspace
兼容性
通用兼容
联网要求
需要联网
数据出网
数据不出本机
Metadata
name
openclaw360-workspace
description
Bootstrap the current OpenClaw 360 workspace by checking Node.js and pnpm, installing repo dependencies into the current workspace with pnpm, and running a fast smoke build after setup. Use when a task starts with installing dependencies in this repo, preparing the workspace before coding, or verifying the repo is ready for build and test commands.
metadata
{"openclaw":{"requires":{"bins":["node","pnpm"]},"install":[{"id":"node-brew","kind":"brew","formula":"node","bins":["node"],"label":"Install Node.js (brew)"},{"id":"pnpm-brew","kind":"brew","formula":"pnpm","bins":["pnpm"],"label":"Install pnpm (brew)"}]}}

OpenClaw360 Workspace

Use this skill when work in this repository depends on the local workspace being bootstrapped first.

This skill is intentionally workspace-local:

  • Run dependency installation from the current repository root.
  • Install repo packages into this checkout's node_modules, not globally.
  • Keep the lockfile unchanged unless the user explicitly asks to update dependencies.

Quick start

Check whether the workspace is ready:

bash {baseDir}/scripts/bootstrap.sh --workspace "$PWD"

Install repo dependencies into the current workspace:

bash {baseDir}/scripts/bootstrap.sh --workspace "$PWD" --install

Install and run a fast verification step:

bash {baseDir}/scripts/bootstrap.sh --workspace "$PWD" --install --verify

Workflow

  1. Confirm the working directory is the repository root with package.json and pnpm-lock.yaml.
  2. Run the bootstrap script in check mode first.
  3. If dependencies are missing or stale, rerun with --install.
  4. After install, prefer --verify to run pnpm build:strict-smoke.
  5. If deeper validation is needed, continue with pnpm tsgo, pnpm check, or pnpm test:fast.

Guardrails

  • Do not use npm install -g, pnpm add -g, or other global package installs to satisfy repo dependencies.
  • Prefer pnpm install --frozen-lockfile for normal setup. Only relax that when the user explicitly wants dependency updates.
  • If install fails because of sandbox or network restrictions, request approval and retry rather than changing package-manager strategy.
  • Installing dependencies is allowed in a dirty worktree, but do not touch unrelated files beyond dependency artifacts.
  • If the repo root is ambiguous, stop and verify the correct workspace before installing.

Bundled script

The bundled script handles the common bootstrap flow:

  • Verifies node and pnpm are available.
  • Checks whether node_modules is missing or older than pnpm-lock.yaml.
  • Runs pnpm install --frozen-lockfile only when --install is supplied.
  • Runs pnpm build:strict-smoke when --verify is supplied.