Skip to content
Back to skills

Statusline

ASecurity

Configure the Claude Code statusline to show current directory, git branch and dirty state, model, context usage, and time. Writes the statusline script and updates ~/.claude/settings.json.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
ai-agentsbashgit

Works with

  • claude code

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 10, 2026

npx -y skills add RashadAnsari/myagents --skill statusline --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Statusline?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Statusline
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rashadansari-statusline/badge)](https://www.skillsdirectory.com/skills/rashadansari-statusline)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: statusline
disable-model-invocation: true
description: Configure the Claude Code statusline to show current directory, git branch and dirty state, model, context usage, and time. Writes the statusline script and updates ~/.claude/settings.json.
allowed-tools: [Read, Write, Edit, Bash, AskUserQuestion]
---

Configure the Claude Code statusline by doing the following steps in order:

1. Ask the user where to install using AskUserQuestion with these options:
   - **Global**: writes to `~/.claude/settings.json`, applies to all projects
   - **Project**: writes to `.claude/settings.local.json` in the current working directory, applies only to this project (gitignored, personal)

2. Find the albino plugin install directory. Check these locations in order and use the first that exists:
   - `~/.myagents/plugins/albino`
   - The value of the `CLAUDE_PLUGIN_ROOT` environment variable

   The statusline script is at `scripts/configure-statusline.sh` inside that directory.

3. Based on the user's choice, determine the target settings file:
   - **Global**: `~/.claude/settings.json`
   - **Project**: `.claude/settings.local.json` (relative to current working directory: create `.claude/` if it does not exist)

4. Read the target settings file. If it does not exist, treat it as an empty JSON object `{}`.

5. Add or update the `statusLine` field with:
   ```json
   {
     "statusLine": {
       "type": "command",
       "command": "<absolute-path-to-configure-statusline.sh>",
       "refreshInterval": 30
     }
   }
   ```
   Preserve all other existing fields. Write the result back to the target settings file.

6. Confirm to the user: statusline is configured (global or project, as chosen). It shows current directory, git branch and dirty state, model, color-coded context usage, and time. It refreshes every 30 seconds. Changes take effect on the next Claude Code interaction.

Files in this skill

  • SKILL.md1.9 KB
  • agents/openai.yaml210 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.