
Init claude code statusline
Sets up a Claude Code status line showing directory, git branch, model and context left
Init claude code statusline is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- shell
- Platforms
- Claude Code
- GitHub stars
- 5
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Init claude code statusline
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 分支、模型、版本和上下文窗口使用情况。
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs shell scripts(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 3 files (13 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
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):
/plugin marketplace add ruan-cat/monorepo
/plugin install low-frequency-skill@ruan-cat-toolsOr copy only this skill to ~/.claude/skills/init-claude-code-statusline:
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.
Copy the skill folder to ~/.agents/skills/init-claude-code-statusline to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/init-claude-code-statusline to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/ruan-cat/monorepo.git --path ai-plugins/low-frequency-skill/skills/init-claude-code-statuslineOr copy the folder to ~/.gemini/skills/init-claude-code-statusline yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/init-claude-code-statusline:
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.
Get the folder:
git clone --depth 1 https://github.com/ruan-cat/monorepo.gitThen 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.
What it does
- 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
Init claude code statusline 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.
More from ruan-cat/monorepo

Works through an OpenSpec change's task list, implementing and checking off each task
- Open source
- 5 GitHub stars
- Developer tools

Finalizes a completed OpenSpec change, syncing its specs and moving it to the archive
- Open source
- 5 GitHub stars
- Developer tools

Generates all OpenSpec planning artifacts for a change in one pass
- Open source
- 5 GitHub stars
- Developer tools

Starts a new OpenSpec change and shows its first artifact template for review
- Open source
- 5 GitHub stars
- Developer tools

Checks and normalizes package.json, tsup and tsconfig setup for monorepo Node packages
- Open source
- 5 GitHub stars
- Developer tools

Turns incident reports and repeated failures into durable, verifiable agent skill rules
- Open source
- 5 GitHub stars
- Developer tools





