.claude/skills/statusline-setup/SKILL.md
# Statusline Setup — Smart Expense & Budget Tracker A two-row statusline tailored for this project's SDLC workflow. Adapted from [fotoflo/claude-skills](https://github.com/fotoflo/claude-skills/tree/main/statusline-setup). ## What you see **Row 1 — project context** ``` ~/project/monthly-budget-planning-rd (feature/audit-deep-read) [opus] session-name #BUG-1 [BIZ-QC ✓] ``` | Element | Meaning | |---------|---------| | `~/project/...` (green) | Current working directory | | `(branch)` (c
npx skillsauth add RahmanBhuiyan/monthly-budget-planning-rd .claude/skills/statusline-setupInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A two-row statusline tailored for this project's SDLC workflow. Adapted from fotoflo/claude-skills.
Row 1 — project context
~/project/monthly-budget-planning-rd (feature/audit-deep-read) [opus] session-name #BUG-1 [BIZ-QC ✓]
| Element | Meaning |
|---------|---------|
| ~/project/... (green) | Current working directory |
| (branch) (cyan) | Git branch — turns RED with ⚠ protected if you're on master or main (CLAUDE.md Rule 3 visual warning) |
| [opus] (yellow) | Model in use (opus / sonnet / haiku) |
| session-name (white) | Current Claude Code session |
| #BUG-1 (magenta) | Ticket id auto-extracted from branch name (feature/BUG-1-* → BUG-1) |
| [BIZ-QC ✓] (green) or [BIZ-QC NEEDED] (bold red) | Appears when the diff vs master touches one of the 4 protected files (backend/routes/{budget,reports,expenses}.py or backend/models.py). Green if the latest commit body contains [BIZ-QC-NEEDED]; red if it doesn't (CLAUDE.md Rule 2 enforcement signal) |
Row 2 — session usage and rate limits
ctx:78% tok:12.4k +145/-23 │ 5hr:62% reset 4pm · 7d:48% reset thu 9am
| Element | Meaning |
|---------|---------|
| ctx:N% | Context window remaining (color: green ≥60%, yellow ≥30%, red <30%) |
| tok:Nk | Total input + output tokens this session |
| +N/-N | Lines added / removed this session |
| │ (dim) | Visual separator |
| 5hr:N% / 7d:N% | Rate-limit windows showing remaining percentage with reset time |
.claude/skills/statusline-setup/statusline-command.sh — the script (executable, POSIX shell).claude/skills/statusline-setup/SKILL.md — this doc.claude/settings.json — references the script via statusLine.commandAlready wired up on this branch. To install on a fresh clone:
chmod +x .claude/skills/statusline-setup/statusline-command.sh
.claude/settings.json has the statusLine block (added on this branch).echo '{"workspace":{"current_dir":"'$(pwd)'"},"model":{"id":"claude-opus-4-6"}}' \
| sh .claude/skills/statusline-setup/statusline-command.sh
You should see the colored two-row output.jq — JSON parsinggit — branch + diff detectionawk — number formattingdate (GNU date -d or BSD date -r) — rate-limit reset formattingshAll of these are present on macOS and standard Linux. On a minimal container, install jq first.
The script is project-local (lives in this repo's .claude/). Changes to it are tracked alongside code, so the team sees the same statusline.
To add a new signal (e.g., a "tests passing" indicator):
row1 in the "Row 1" assembly section.Keep it fast — the script runs on every prompt. Anything that takes >100 ms makes the editor feel laggy.
# Delete the statusLine block from .claude/settings.json
# Delete the script:
rm .claude/statusline-command.sh .claude/SKILL.md
development
Generate a weekly summary of commits on master — categorized highlights, statistics, and draft email/standup notes. Useful for sprint retros and release notes.
development
Read recent code changes and update the affected docs under Documents/. Documents the *current* state, not history. Use after a feature lands or when docs have drifted.
development
Run the pre-flight checklist from Documents/DevOps/ReleaseRunbook.md before cutting a release. Reports PASS or BLOCKED with specific reasons.
development
Run the project's linters (backend flake8/black, frontend ESLint) and fix violations only on files touched in the current session — no speculative refactors per CLAUDE.md Rule 5.