# Init claude code statusline

> Init claude code statusline is an open-source agent skill for developer tools. Sets up a Claude Code status line showing directory, git branch, model and context left. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ruan-cat/monorepo/tree/main/ai-plugins/low-frequency-skill/skills/init-claude-code-statusline
- **Repository:** https://github.com/ruan-cat/monorepo
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** init-claude-code-statusline
- **Collection:** https://github.com/ruan-cat/monorepo
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill writes or refreshes the Claude Code status line configuration in a project. It creates a .claude/settings.json entry that points the status line at a bash script, and a .claude/statusline.sh script built from bundled templates. The script shows the working directory, current Git branch or commit, the active model, the Claude Code version and the remaining context window percentage, colored by how much context is left.

The agent follows a fixed sequence: it creates the .claude directory if needed, then handles each existing file by asking the user whether to merge, overwrite or skip. After writing the files it checks that the JSON parses and that the script has a bash shebang. The skill also lists a short checklist and asks the user to restart Claude Code to see the result.

The script depends on bash, with git and jq as optional tools; without jq it falls back to default values. Setting NO_COLOR turns off colors, and Windows users need a bash environment such as Git Bash or WSL.

## When your agent uses it

> 初始化、更新或覆盖 Claude Code 状态栏配置文件（.claude/settings.json 和 .claude/statusline.sh）。用于在任何项目中快速搭建 Claude Code 状态栏显示功能， 展示目录、Git 分支、模型、版本和上下文窗口使用情况。

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell scripts](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/low-frequency-skill/skills/init-claude-code-statusline)
- [No network calls found in its scripts](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/low-frequency-skill/skills/init-claude-code-statusline)
- [License: MIT](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/low-frequency-skill/skills/init-claude-code-statusline)

## Features

- **Status line configuration:** Creates or merges the statusLine entry in the project's Claude Code settings file.
- **Status line script:** Generates a bash script that prints directory, branch, model, version and context usage.
- **Context usage colors:** Colors the remaining context percentage green, yellow or red by threshold.
- **Safe file handling:** Asks before overwriting or merging existing settings and script files.
- **Setup verification:** Checks that the JSON is valid and the script has the correct shebang.
- **Optional tool fallback:** Works without jq or git, using default values when they are missing.

## Good for

- Set up a status line in a new project
- Replace an outdated Claude Code status line script
- Show the Git branch and context left in the terminal while coding
- Turn off status line colors on a terminal without color support

## Install

### Claude Code

This skill ships in the `low-frequency-skill` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ruan-cat/monorepo
/plugin install low-frequency-skill@ruan-cat-tools
```

Or copy only this skill to `~/.claude/skills/init-claude-code-statusline`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/init-claude-code-statusline &&
cp -R "$tmp/ai-plugins/low-frequency-skill/skills/init-claude-code-statusline" ~/.claude/skills/init-claude-code-statusline &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/init-claude-code-statusline` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/init-claude-code-statusline` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/init-claude-code-statusline &&
cp -R "$tmp/ai-plugins/low-frequency-skill/skills/init-claude-code-statusline" ~/.agents/skills/init-claude-code-statusline &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/init-claude-code-statusline` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/init-claude-code-statusline` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/init-claude-code-statusline &&
cp -R "$tmp/ai-plugins/low-frequency-skill/skills/init-claude-code-statusline" ~/.cursor/skills/init-claude-code-statusline &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/init-claude-code-statusline` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ruan-cat/monorepo.git --path ai-plugins/low-frequency-skill/skills/init-claude-code-statusline
```

Or copy the folder to `~/.gemini/skills/init-claude-code-statusline` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/init-claude-code-statusline`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/init-claude-code-statusline &&
cp -R "$tmp/ai-plugins/low-frequency-skill/skills/init-claude-code-statusline" ~/.copilot/skills/init-claude-code-statusline &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/init-claude-code-statusline` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ruan-cat/monorepo.git
```

Then copy `monorepo/ai-plugins/low-frequency-skill/skills/init-claude-code-statusline` into your agent's skills folder as `init-claude-code-statusline`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It needs bash to run the status line script. git and jq are optional; without jq the script uses default values.

### Will Init claude code statusline overwrite my existing settings?

It asks first. For settings.json you can merge only the statusLine entry, replace the whole file, or skip. For statusline.sh it asks whether to overwrite.

### What does the status line show?

The working directory with the home path shortened to ~, the Git branch or commit, the Claude model, the Claude Code version and the remaining context window percentage.

### How do I disable colors?

Set the NO_COLOR environment variable, which the skill's notes describe as the way to turn colors off.

### How do I install Init claude code statusline in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/init-claude-code-statusline to use it in all your projects, or to .claude/skills/init-claude-code-statusline in one project. Or install the low-frequency-skill plugin, which includes it: /plugin marketplace add ruan-cat/monorepo, then /plugin install low-frequency-skill@ruan-cat-tools.

### Does Init claude code statusline run scripts?

Yes. It runs shell scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Init claude code statusline?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Init claude code statusline?

The closest alternatives to Init claude code statusline are Claude statusbar, Claude settings audit, Baton setup, Craft project setup and Codebase onboarding.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Claude statusbar](https://ai-powered.com/skills/claude-statusbar): Claude statusbar is an open-source agent skill for ai models and llm tooling.
- [Claude settings audit](https://ai-powered.com/skills/claude-settings-audit): Claude settings audit is an open-source agent skill for ai models and llm tooling.
- [Baton setup](https://ai-powered.com/skills/baton-setup): Baton setup is an open-source agent skill for developer tools.
- [Craft project setup](https://ai-powered.com/skills/craft-project-setup): Craft project setup is an open-source agent skill for developer tools.
- [Codebase onboarding](https://ai-powered.com/skills/codebase-onboarding): Codebase onboarding is an open-source agent skill for developer tools.
- [Claude md refactor](https://ai-powered.com/skills/claude-md-refactor): Claude md refactor is an open-source agent skill for developer tools.
- [Manage context](https://ai-powered.com/skills/manage-context): Manage context is an open-source agent skill for developer tools.
- [Skill update](https://ai-powered.com/skills/skill-update): Skill update is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/init-claude-code-statusline
