Add Windows installers for Claude and Codex (#46)

* Add Windows Codex installers

* Add Windows Claude command installer
This commit is contained in:
Ricky Liu
2026-07-04 00:12:39 -07:00
committed by GitHub
parent 05c66b87d2
commit 736f163897
6 changed files with 130 additions and 9 deletions
+6 -4
View File
@@ -15,10 +15,12 @@ validation tools. Keep compatibility with both Claude Code and Codex users.
- `reports/`: research outputs. Do not rewrite unrelated reports while changing
tooling or skills.
- `scripts/sync-codex-skills.py`: regenerates Codex skills from `skills/*.md`.
- `scripts/install-codex-skills.sh`: installs Codex skills locally.
- `scripts/install-codex-prompts.sh`: installs generated Codex slash prompts
locally.
- `scripts/install-claude-commands.sh`: installs Claude Code commands locally.
- `scripts/install-codex-skills.sh` / `scripts/install-codex-skills.bat`:
installs Codex skills locally.
- `scripts/install-codex-prompts.sh` / `scripts/install-codex-prompts.bat`:
installs generated Codex slash prompts locally.
- `scripts/install-claude-commands.sh` / `scripts/install-claude-commands.bat`:
installs Claude Code commands locally.
## Compatibility Rules
+21 -2
View File
@@ -274,7 +274,7 @@ claude --dangerously-skip-permissions
### 2. 安装 Skills
Claude Code 用户安装:
Claude Code 用户安装macOS / Linux
```bash
# 克隆仓库
@@ -285,7 +285,15 @@ cd ai-berkshire
./scripts/install-claude-commands.sh
```
Codex 用户安装:
Claude Code 用户安装Windows PowerShell / Command Prompt
```bat
git clone https://github.com/xbtlin/ai-berkshire.git
cd ai-berkshire
.\scripts\install-claude-commands.bat
```
Codex 用户安装(macOS / Linux):
```bash
# 克隆仓库
@@ -300,6 +308,17 @@ cd ai-berkshire
./scripts/install-codex-prompts.sh
```
Codex 用户安装(Windows PowerShell / Command Prompt):
```bat
git clone https://github.com/xbtlin/ai-berkshire.git
cd ai-berkshire
.\scripts\install-codex-skills.bat
REM 可选:安装 Codex slash prompts
.\scripts\install-codex-prompts.bat
```
仓库同时维护三套入口:`skills/*.md` 是 Claude Code command 源文件;`codex-skills/*/SKILL.md` 是 Codex skill 包,由 `scripts/sync-codex-skills.py``skills/*.md` 生成;`codex-prompts/*.md` 是可选的 Codex slash prompt 兼容层。
### 3. 使用
+22 -3
View File
@@ -240,7 +240,7 @@ For Claude Code users:
npm install -g @anthropic-ai/claude-code
```
For Codex users:
For Codex users on macOS / Linux:
```bash
# macOS / Linux
@@ -274,7 +274,7 @@ Warning: this disables Claude Code's tool-approval guardrails. Use it only when
### 2. Install Skills
For Claude Code users:
For Claude Code users on macOS / Linux:
```bash
# Clone the repository
@@ -285,7 +285,15 @@ cd ai-berkshire
./scripts/install-claude-commands.sh
```
For Codex users:
For Claude Code users on Windows PowerShell / Command Prompt:
```bat
git clone https://github.com/xbtlin/ai-berkshire.git
cd ai-berkshire
.\scripts\install-claude-commands.bat
```
For Codex users on macOS / Linux:
```bash
# Clone the repository
@@ -300,6 +308,17 @@ cd ai-berkshire
./scripts/install-codex-prompts.sh
```
For Codex users on Windows PowerShell / Command Prompt:
```bat
git clone https://github.com/xbtlin/ai-berkshire.git
cd ai-berkshire
.\scripts\install-codex-skills.bat
REM Optional: install Codex slash prompts
.\scripts\install-codex-prompts.bat
```
The repository maintains three entry points: `skills/*.md` are the Claude Code command sources; `codex-skills/*/SKILL.md` are Codex skill packages generated from `skills/*.md` by `scripts/sync-codex-skills.py`; `codex-prompts/*.md` are an optional Codex slash-prompt compatibility layer.
### 3. Use
+18
View File
@@ -0,0 +1,18 @@
@echo off
setlocal
for %%I in ("%~dp0..") do set "ROOT=%%~fI"
if defined CLAUDE_COMMANDS_DIR (
set "DEST=%CLAUDE_COMMANDS_DIR%"
) else (
set "DEST=%USERPROFILE%\.claude\commands"
)
if not exist "%DEST%" mkdir "%DEST%"
if errorlevel 1 exit /b %ERRORLEVEL%
copy /Y "%ROOT%\skills\*.md" "%DEST%\" >nul
if errorlevel 1 exit /b %ERRORLEVEL%
echo Installed Claude Code commands to %DEST%
+29
View File
@@ -0,0 +1,29 @@
@echo off
setlocal
for %%I in ("%~dp0..") do set "ROOT=%%~fI"
if defined CODEX_HOME (
set "DEST=%CODEX_HOME%\prompts"
) else (
set "DEST=%USERPROFILE%\.codex\prompts"
)
where py >nul 2>nul
if %ERRORLEVEL%==0 (
set "PY=py -3"
) else (
set "PY=python"
)
%PY% "%ROOT%\scripts\sync-codex-prompts.py"
if errorlevel 1 exit /b %ERRORLEVEL%
if not exist "%DEST%" mkdir "%DEST%"
if errorlevel 1 exit /b %ERRORLEVEL%
copy /Y "%ROOT%\codex-prompts\*.md" "%DEST%\" >nul
if errorlevel 1 exit /b %ERRORLEVEL%
echo Installed Codex slash prompts to %DEST%
echo Restart Codex to pick up new slash prompts.
+34
View File
@@ -0,0 +1,34 @@
@echo off
setlocal
for %%I in ("%~dp0..") do set "ROOT=%%~fI"
if defined CODEX_HOME (
set "DEST=%CODEX_HOME%\skills"
) else (
set "DEST=%USERPROFILE%\.codex\skills"
)
where py >nul 2>nul
if %ERRORLEVEL%==0 (
set "PY=py -3"
) else (
set "PY=python"
)
%PY% "%ROOT%\scripts\sync-codex-skills.py"
if errorlevel 1 exit /b %ERRORLEVEL%
if not exist "%DEST%" mkdir "%DEST%"
if errorlevel 1 exit /b %ERRORLEVEL%
for /d %%D in ("%ROOT%\codex-skills\*") do (
if exist "%DEST%\%%~nxD" rmdir /s /q "%DEST%\%%~nxD"
if errorlevel 1 exit /b 1
xcopy "%%~fD" "%DEST%\%%~nxD\" /E /I /Y >nul
if errorlevel 1 exit /b 1
)
echo Installed Codex skills to %DEST%
echo Run .\scripts\install-codex-prompts.bat if you want slash-command prompts.
echo Restart Codex to pick up new skills.