Home / Commands / JuliusBrussee/caveman

caveman-init

Drop the always-on caveman activation rule into the current repo for every IDE agent

commandLicense: Apache-2.0 Source: JuliusBrussee/caveman

Install

Copy this folder into your Claude Code project (needs Node.js):

curl -fsSL --create-dirs -o .claude/commands/caveman-init.md https://raw.githubusercontent.com/JuliusBrussee/caveman/HEAD/commands/caveman-init.md

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/caveman-init.md https://raw.githubusercontent.com/JuliusBrussee/caveman/HEAD/commands/caveman-init.md

File content

Made by its original authors and shared under Apache-2.0. We show it unchanged, with credit and a link to the source. Source ↗

---
description: Drop the always-on caveman activation rule into the current repo for every IDE agent
argument-hint: "[--dry-run|--force] [--only <agent>]"
---

Write the per-repo caveman rule files (Cursor, Windsurf, Cline, Copilot, AGENTS.md) into the current repo, then report the result.

How to run the init script — pick the first that applies:

1. If `src/tools/caveman-init.js` exists in the current repo (you are inside a caveman checkout), run: `node src/tools/caveman-init.js $ARGUMENTS`
2. Otherwise download and run the standalone script (it is self-contained and supports stdin execution): `curl -fsSL https://raw.githubusercontent.com/JuliusBrussee/caveman/main/src/tools/caveman-init.js | node - $ARGUMENTS`

Use `--dry-run` first if the user did not pass `--force`, so we never silently overwrite an existing rule file.