跳转至

Windows 安装回退方案

如果在 Windows 上执行 irm https://raw.githubusercontent.com/JuliusBrussee/caveman/main/install.ps1 | iex 失败(见 issues #249、#199、#72),请手动设置插件技能(plugin-skill)激活。这不会安装独立的 hooks 或 statusline——如需这些功能,请随后运行统一的 Node 安装器:npx -y github:JuliusBrussee/caveman -- --only claude(或在克隆仓库中运行 node installer/install.js --only claude)。

$ClaudeDir = if ($env:CLAUDE_CONFIG_DIR) { $env:CLAUDE_CONFIG_DIR } else { Join-Path $HOME ".claude" }
$PluginSkillDir = Join-Path $ClaudeDir ".agents\plugins\caveman\skills\caveman"
$MarketplaceDir = Join-Path $ClaudeDir ".agents\plugins"
$MarketplaceFile = Join-Path $MarketplaceDir "marketplace.json"

# Copy SKILL.md into the plugin path (run from a clone of the repo)
New-Item -ItemType Directory -Path $PluginSkillDir -Force | Out-Null
Copy-Item ".\skills\caveman\SKILL.md" "$PluginSkillDir\SKILL.md" -Force

# Create or update marketplace.json with the caveman entry
New-Item -ItemType Directory -Path $MarketplaceDir -Force | Out-Null
if (Test-Path $MarketplaceFile) {
  $marketplace = Get-Content $MarketplaceFile -Raw | ConvertFrom-Json
} else {
  $marketplace = [pscustomobject]@{}
}
if (-not ($marketplace.PSObject.Properties.Name -contains "plugins")) {
  $marketplace | Add-Member -NotePropertyName plugins -NotePropertyValue ([pscustomobject]@{})
}
$plugins = [ordered]@{}
foreach ($p in $marketplace.plugins.PSObject.Properties) { $plugins[$p.Name] = $p.Value }
$plugins["caveman"] = [ordered]@{ name = "caveman"; source = "JuliusBrussee/caveman"; version = "main" }
$marketplace.plugins = [pscustomobject]$plugins
$marketplace | ConvertTo-Json -Depth 10 | Set-Content -Path $MarketplaceFile -Encoding UTF8

验证:Test-Path "$PluginSkillDir\SKILL.md" 应输出 True。重启 Claude Code,然后运行 /caveman 以确认技能已加载。

Windows 上的 Codex

  1. 首先启用符号链接:git config --global core.symlinks true(需要开发者模式或管理员权限)。
  2. 克隆仓库 → 打开 VS Code → Codex 设置 → 插件(Plugins)→ 在本地市场中找到 "Caveman" → 安装 → 重新加载窗口。
  3. Codex hooks 目前在 Windows 上处于禁用状态,因此请在每个会话中手动使用 $caveman 启动该模式。

npx skills 默认使用符号链接。如果符号链接失败,请添加 --copy:

npx skills add JuliusBrussee/caveman --copy

想让它始终开启(适用于任意 agent)?

将以下内容粘贴到 agent 的系统提示词(system prompt)或规则文件中:

Terse like caveman. Technical substance exact. Only fluff die.
Drop: articles, filler (just/really/basically), pleasantries, hedging.
Fragments OK. Short synonyms. Code unchanged.
Pattern: [thing] [action] [reason]. [next step].
ACTIVE EVERY RESPONSE. No revert after many turns. No filler drift.
Code/commits/PRs: normal. Off: "stop caveman" / "normal mode".

本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 caveman1/caveman