Agent Skills
› NeverSight/learn-skills.dev
› setup-statusline
setup-statusline
GitHub用于在 Claude Code 中配置增强型状态栏。通过查找插件路径、赋予执行权限并修改 settings.json,启用显示模型信息、Git 状态及上下文使用情况的实时状态栏功能。
Trigger Scenarios
用户希望安装或配置 Claude Code 的状态栏插件
用户需要设置增强的状态行以获取会话和 Git 信息
Install
npx skills add NeverSight/learn-skills.dev --skill setup-statusline -g -y
SKILL.md
Frontmatter
{
"name": "setup-statusline",
"description": "Configure the enhanced statusline in Claude Code settings. Run this once after installing the plugin.",
"allowed-tools": "Read, Edit, Bash",
"disable-model-invocation": true
}
Setup Enhanced Statusline
Install the statusline into your Claude Code settings.
Step 1: Find the plugin path
# Find where the plugin is cached
PLUGIN_PATH=$(find ~/.claude/plugins/cache -name "statusline.sh" -path "*/statusline*" 2>/dev/null | head -1)
echo "Statusline script: $PLUGIN_PATH"
If not found, the script is at ${CLAUDE_PLUGIN_ROOT}/bin/statusline.sh.
Step 2: Make executable
chmod +x "$PLUGIN_PATH"
Step 3: Update settings
Read ~/.claude/settings.json and add or update the statusLine key:
{
"statusLine": {
"type": "command",
"command": "<PLUGIN_PATH>",
"padding": 0
}
}
Use the Edit tool to add this to the user's ~/.claude/settings.json.
Step 4: Verify
Tell the user the statusline is configured. It will appear on the next prompt.
Features:
- Model name with context size (e.g.,
Opus 4.6 1000k EXT) - Auth method (Sub/API)
- Git branch + dirty file count (in git repos)
- Compact
~/pathdisplay (outside git repos) - Context usage bar with color coding (green/yellow/red)
- Session duration and code churn stats
/compactwarning at 85%+ usage
Version History
- e0220ca Current 2026-07-05 23:35


