From qe-framework
Toggles the QE HUD statusline (context %, session tokens, SIVS engine routing) on/off in Claude Code by managing .claude/settings.json.
How this skill is triggered — by the user, by Claude, or both
Slash command
/qe-framework:QhudThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
CLI-style skill that wires the QE HUD statusline into Claude Code by adding/removing a `statusLine` entry in `.claude/settings.json`. The HUD itself lives at `hooks/scripts/statusline.mjs`; this skill only manages activation.
CLI-style skill that wires the QE HUD statusline into Claude Code by adding/removing a statusLine entry in .claude/settings.json. The HUD itself lives at hooks/scripts/statusline.mjs; this skill only manages activation.
<PROJECT_ROOT>/.claude/settings.json--user flag: user scope → ~/.claude/settings.jsonsettings.local.json (that is the user's private override slot).Project root detection (when --user is not set):
Walk upward from $PWD until one of these markers is found:
.git/ directory, package.json, pyproject.toml, .qe/, or an existing .claude/ directory.
The first match becomes PROJECT_ROOT. If no marker is found before $HOME (or filesystem root), abort with:
[!] Could not detect a project root from $PWD. Run from a project directory,
or use --user to install at ~/.claude/settings.json.
This prevents .claude/settings.json from being written to a subdirectory where Claude Code will not pick it up.
/Qhud [subcommand] [flags]
| Subcommand | Description |
|---|---|
(none) / show | Print current state (installed? where? preview output) |
on | Install statusLine entry |
off | Remove statusLine entry |
--help | Usage guide |
| Flag | Description |
|---|---|
--user | Operate on ~/.claude/settings.json instead of project scope |
--preset <name> | Pick an element preset: session (default), focused, qe, mix, full |
Extract subcommand (show | on | off), the --user flag, and an optional --preset <name> value. Valid preset names: session, focused, qe, mix, full. Anything else → fall back to session. On --help or invalid input, jump to Step HELP.
hooks/scripts/statusline.mjs relative to this plugin (walk up from the skill directory until hooks/scripts/statusline.mjs exists). Store as SCRIPT_ABS.--user → $HOME/.claude/settings.json; otherwise → $PWD/.claude/settings.json.show (default){}.settings.statusLine?.command contains statusline.mjs from this plugin → report installed, print the command.settings.statusLine exists but points elsewhere → report other statusline installed (don't claim ownership).SCRIPT_ABS and print the rendered line. Example payload:
{ "context_window": { "used_percentage": 16, "total_input_tokens": 96000, "total_output_tokens": 2000 } }
Command: echo '<payload>' | NO_COLOR=1 node <SCRIPT_ABS>on{}).statusLine already points at our script → print "already installed" and exit.statusLine exists and points elsewhere → ask before overwriting. Show the existing value and require explicit confirmation in the same turn.{
"statusLine": {
"type": "command",
"command": "node \"<SCRIPT_ABS>\""
}
}
If --preset <name> is present, append --preset <name> to the command string. Merge into existing settings (preserve all other keys). Pretty-print with 2-space indent and a trailing newline.statusLine block and remind: "Restart the Claude Code session or reload the window for it to appear."offstatusLine?.command does NOT contain our plugin's statusline.mjs → print "statusLine belongs to another source; not removing" and exit.statusLine key and write back.Print:
Qhud — QE HUD statusline toggle
Usage:
/Qhud Show current state and preview
/Qhud on Install into .claude/settings.json (project scope)
/Qhud off Remove from .claude/settings.json
/Qhud on --user Install into ~/.claude/settings.json (user scope)
/Qhud on --preset focused Install with the "focused" element preset
/Qhud --help Show this help
Presets:
session ctx · 5h/7d · model · tokens · SIVS (default, v6.6.3 shape)
focused ctx · phase · task · SIVS (current PSE state)
qe SIVS · phase · task (planning layer only)
mix ctx · O:S:H:X token distribution · SIVS
full every element (widest terminal)
HUD shows: ctx N% (used) │ <tokens> tok │ SIVS C/C/C/C
green <50 · yellow 50–80 · red ≥80
SIVS letters: spec / implement / verify / supervise
C = claude, X = codex
Script: hooks/scripts/statusline.mjs
Phase 2 (not yet in MVP): 5h / 7d rate limit %, model name, session cost.
settings.local.json.statusLine entry without explicit confirmation.statusLine entry in a single settings.json file.--user flag.npx claudepluginhub inho-team/qe-framework --plugin qe-frameworkCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.