Contribute with Claude Code
Set up once
Install the tools, copy opsinjs to your computer and start Claude Code. You do this once, and it takes about an hour.
Do these steps in order. Open the Terminal app on a Mac, or PowerShell on Windows, type each command and press Enter. Once Claude Code is installed, you can paste any error into it and ask what went wrong.
1. Accounts
- Create a free account at github.com.
- Check that your Claude plan includes Claude Code: Pro, Max, Team, Enterprise or a Console account.
2. Tools
-
Git keeps track of every change. On a Mac, run
xcode-select --install. On Windows, install Git for Windows. -
Node.js 24 runs the site. Install it from nodejs.org, then check it with
node --version. -
GitHub CLI lets Claude Code work with GitHub. Install it from cli.github.com, then run
gh auth loginand accept the suggested answers. -
Claude Code makes the changes. On a Mac or Linux:
curl -fsSL https://claude.ai/install.sh | bashOn Windows, in PowerShell:
irm https://claude.ai/install.ps1 | iexCheck it with
claude --version. New to the terminal? Anthropic's terminal guide starts from the beginning.
3. Your copy of opsinjs
-
Make your own copy on GitHub, called a fork, and download it:
gh repo fork prashantonomy/opsinjs --clone cd opsinjs -
Install the project's packages. If you are asked to download pnpm, type
Y. Ifcorepackis not found, runnpm install --global corepack@latestfirst. On Windows, runcorepack enablein PowerShell opened as administrator.corepack enable pnpm install -
Start the docs site:
pnpm dev -
Open
http://localhost:4000in your browser. You should see these docs. Leave this window open while you work, and press Ctrl+C in it when you want to stop the site.
4. Claude Code
-
Open a second terminal window, go to the same folder with
cd opsinjs, and runclaude. Sign in the first time. -
Check that it has read the project's rules:
Prompt Read CLAUDE.md and AGENTS.md. In five short sentences of plain English, tell me what this project is and the rules you must follow when you change it. -
If the answer mentions tokens, the two colour axes and never inventing evidence, you are ready.
Prefer a window to a terminal? The VS Code extension runs the same Claude Code in a panel. Next, read Make a change.