# Claude Code setup
## Installation
```
curl -fsSL claude.ai/install.sh | bash
```
## Global Configuration
Use [CLAUDE.md](/Tech/Agents/CLAUDE.md) as your global `~/.claude/CLAUDE.md`.
To set up global configs, link as follows:
```bash
gh repo clone fnl/agents ~/.agents
ln -s ~/.agents/CLAUDE.md ~/.claude/CLAUDE.md
ln -s ~/.agents/agents ~/.claude/agents
ln -s ~/.agents/prompts ~/.claude/commmands
ln -s ~/.agents/rules ~/.claude/rules
ln -s ~/.agents/skills ~/.claude/skills
```
Review the [official reference](https://code.claude.com/docs/en/claude-directory#explore-the-directory) by Anthropic for more details how to structure your global configuration.
## [Superpowers](https://github.com/obra/superpowers)
Project wide setup:
```
/plugin install superpowers@superpowers-marketplace --scope project
```
Personal setup only (gitignored):
```
/plugin install superpowers@superpowers-marketplace --scope local
```
Danger: The default scope is `user`, which turns on Superpowers for all Claude sessions. Don’t configure Superpowers without scope.
## Statusline
Configure a custom statusline via the `/statusline` skill.
Example one-shot setup prompt:
> /statusline Show cwd (home-shortened to ~), git branch in brackets, then the context window usage as `| Ctx: N% used/limit`. Color the Ctx segment: green <20%, grey 20–40%, yellow 40–60%, orange 60–80%, red ≥80%. Derive the dir/branch style from my shell config.
This writes `~/.claude/statusline-command.sh` and adds a `statusLine` entry to `~/.claude/settings.json`. Possibly restart Claude Code to apply.