Skip to content
Back to skills

Skill Hud Setup

ASecurity

One-time setup that wires the Claude Skill HUD status line into the user's global settings.json. Run this once, right after installing the claude-skill-hud plugin, to finish activating the HUD.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 6, 2026
ai-agents

Works with

  • mcp

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add apappas1129/claude-skill-hud --skill skill-hud-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill Hud Setup?

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

Security grade badge for Skill Hud Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/apappas1129-skill-hud-setup/badge)](https://www.skillsdirectory.com/skills/apappas1129-skill-hud-setup)

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: skill-hud-setup
description: One-time setup that wires the Claude Skill HUD status line into the user's global settings.json. Run this once, right after installing the claude-skill-hud plugin, to finish activating the HUD.
disable-model-invocation: true
---

# Skill HUD setup

The `claude-skill-hud` plugin's hooks (which log skill invocations) are
already active now that the plugin is installed. The one piece a plugin
cannot wire up automatically is the main session **status line** — that's a
plain user-level `settings.json` field, not a plugin-managed component, so it
needs to be written once, explicitly.

This skill's job: add that one `statusLine` entry, without touching anything
else already in the user's settings.

## Resolved paths for this install

These paths were substituted into this skill's content when it loaded, so
they're already correct for wherever this plugin is installed on this
machine:

- Plugin root: `${CLAUDE_PLUGIN_ROOT}`
- Persistent data directory: `${CLAUDE_PLUGIN_DATA}`
- Status line script: `${CLAUDE_PLUGIN_ROOT}/scripts/statusline.sh`

## Steps

1. Read `~/.claude/settings.json`. If it doesn't exist, treat it as `{}`.

2. Check the existing `statusLine` key, if any:
   - If it's already set to a command containing `scripts/statusline.sh` from
     this plugin's root, the HUD is already configured — tell the user this
     and stop, no changes needed.
   - If a *different* `statusLine` is already configured (the user has their
     own custom one), stop and ask the user how they want to proceed. Do not
     silently overwrite it. Options: replace it, or skip HUD setup and let
     the user merge it manually.
   - If no `statusLine` key exists, proceed to step 3.

3. Add this exact block to the settings JSON, merging it in alongside any
   other existing top-level keys (do not remove or reorder unrelated keys):

   ```json
   "statusLine": {
     "type": "command",
     "command": "CLAUDE_PLUGIN_DATA=\"${CLAUDE_PLUGIN_DATA}\" \"${CLAUDE_PLUGIN_ROOT}/scripts/statusline.sh\"",
     "refreshInterval": 2
   }
   ```

   The `CLAUDE_PLUGIN_DATA=...` prefix is required: the main status line
   runs outside the plugin hook/MCP substitution system, so this is the one
   place that env var has to be set explicitly rather than relying on
   automatic injection. `refreshInterval` is a safety net on top of the
   normal event-driven refresh (after each assistant message) — it forces a
   re-render every 2 seconds so the HUD can't visibly linger stale.

4. Write the updated settings file back, preserving existing formatting and
   keys as much as possible.

5. Confirm to the user in one or two sentences that the HUD is active, and
   mention that a new session (or `/statusline` reload if supported) is
   needed for the change to take effect. Also mention how to undo: remove
   the `statusLine` key from `~/.claude/settings.json`, or run
   `/plugin uninstall claude-skill-hud`.

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.