feat(portable): 交互式 CLI 启动器 + 3 个办公技能(采纳自 PR #36)

基于最新 main 重做 PR #36(fanjiazhen)中有价值的部分:
- OpenClaw-CLI.bat / Mac-OpenClaw-CLI.command:进阶用户双击打开一个配好
  便携环境(盘内 Node + 盘内数据 + .bin 入 PATH)的命令行,可直接敲
  openclaw 命令(chat/configure/doctor/gateway status 等)。
- skills-cn/ 新增 word-writer / excel-helper / ppt-designer 三个办公文本
  技能,与现有 10 个本地化技能(小红书/知乎等)互补,frontmatter 格式一致。

未采纳 PR #36 的其余部分:HTML 品牌改动、skill_zip 二进制、删充值.html。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
hfshfg
2026-06-15 12:27:13 +08:00
parent 270cf4bda0
commit 01ed1348ef
5 changed files with 411 additions and 0 deletions

53
portable/OpenClaw-CLI.bat Normal file
View File

@@ -0,0 +1,53 @@
@echo off
chcp 65001 >nul 2>&1
title U-Claw Interactive CLI
REM 进阶用户:打开一个已配置好环境变量的命令行,可直接敲 openclaw 命令。
REM 复用与 Windows-Start.bat 一致的便携环境(盘内 Node + 盘内数据)。
set "UCLAW_DIR=%~dp0"
set "APP_DIR=%UCLAW_DIR%app"
set "CORE_DIR=%APP_DIR%\core"
set "DATA_DIR=%UCLAW_DIR%data"
set "NODE_DIR=%APP_DIR%\runtime\node-win-x64"
set "NODE_BIN=%NODE_DIR%\node.exe"
set "OPENCLAW_HOME=%DATA_DIR%"
set "OPENCLAW_STATE_DIR=%DATA_DIR%\.openclaw"
set "OPENCLAW_CONFIG_PATH=%DATA_DIR%\.openclaw\openclaw.json"
set "OPENCLAW_DISABLE_BONJOUR=1"
REM 把盘内 node 和 .bin 放到 PATH 最前,让 openclaw 命令可直接调用
set "PATH=%NODE_DIR%;%CORE_DIR%\node_modules\.bin;%PATH%"
if not exist "%NODE_BIN%" (
echo [ERROR] Node.js runtime not found
echo Please run Windows-Start.bat once first to set up the runtime.
pause
exit /b 1
)
if not exist "%CORE_DIR%\node_modules\.bin\openclaw.cmd" (
echo [ERROR] OpenClaw not installed yet
echo Please run Windows-Start.bat once first.
pause
exit /b 1
)
echo.
echo ========================================
echo U-Claw Interactive CLI
echo ========================================
echo.
echo You can now run the 'openclaw' command directly. Examples:
echo openclaw --help Show all commands
echo openclaw chat Open the terminal chat UI
echo openclaw configure Interactive setup (models, channels)
echo openclaw doctor Diagnose and repair
echo openclaw gateway status Check the running gateway
echo.
echo Type 'exit' to close this window.
echo ========================================
echo.
cmd /k