setup

setup is a skill for Claude Code from ai-native-sys/claude-code-tools. It costs 15 tokens per session (1,378 once invoked), scanned B, original, MIT.

A setup guide for a Claude Code statusline, a small display showing information about the current coding session. It configures its sections and connects it to Claude Code.

In plain words
What is it for?
Use it to check existing settings, choose an available runtime, configure the statusline command, and register the HUD with Claude Code.
Why use it?
It avoids manual configuration and keeps the statusline working when the underlying plugin is updated.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the hud plugin — 2 skills shipped together

Good fit Use it to check existing settings, choose an available runtime, configure the statusline command, and register the HUD with Claude Code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ai-native-sys/claude-code-tools/setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ai-native-sys/claude-code-tools --skill setup
Clone the repo
git clone --depth 1 https://github.com/ai-native-sys/claude-code-tools

Made for: Claude Code.

Or install hud, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/ai-native-sys/claude-code-tools/setup/github.svg)](https://agentmods.dev/skills/ai-native-sys/claude-code-tools/setup)
Your own site
<a href="https://agentmods.dev/skills/ai-native-sys/claude-code-tools/setup"><img src="https://agentmods.dev/badge/skills/ai-native-sys/claude-code-tools/setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/ai-native-sys/claude-code-tools/setup"><img src="https://agentmods.dev/badge/skills/ai-native-sys/claude-code-tools/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,378 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.01378
Opus 5.5 $0.00006 $0.00551
Sonnet 5.5 $0.00003 $0.00276
Haiku 4.5 $0.00002 $0.00138

Measured 2mo ago against content hash f1577def65b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

setup scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat ~/.claude/plugins/claude-code-tools/hud/logs/hud.log
plugins/hud/skills/setup/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Setup claude-code-tools HUD

Guide the user through configuring the HUD statusline plugin step by step.

Step 1: Check existing config

Read ~/.claude/plugins/claude-code-tools/hud/config.json to see if there's an existing configuration. If a config already exists, show the user the current settings and ask if they want to reconfigure.

Step 2: Detect runtime

Check if bun is available (run which bun), otherwise fall back to node. Store the runtime choice for the command.

Step 3: Register the statusline

The HUD plugin works by configuring the statusLine field in ~/.claude/settings.json. Claude Code invokes this command every ~300ms, piping session JSON to stdin, and renders stdout as the statusline.

IMPORTANT — auto-update safe path resolution:

The plugin source code is cached at ~/.claude/plugins/cache/claude-code-tools/hud/<version>/. When the plugin updates, a new version directory is created. A hardcoded path would break on update. The statusLine command MUST dynamically resolve to the latest version.

Use this command pattern (replace node with bun if detected):

bash -c '"node" "$(ls -td ~/.claude/plugins/cache/claude-code-tools/hud/*/src/hud.mjs 2>/dev/null | head -1)"'

This finds the most recently modified version directory at runtime, so plugin updates work automatically without re-running setup.

Steps:

  1. Read existing ~/.claude/settings.json (create if it doesn't exist).
  2. Set the statusLine field to the dynamic command string. Preserve all other existing settings.
  3. Write back the updated ~/.claude/settings.json.

Example settings.json entry:

{
  "statusLine": "bash -c '\"node\" \"$(ls -td ~/.claude/plugins/cache/claude-code-tools/hud/*/src/hud.mjs 2>/dev/null | head -1)\"'"
}

Step 4: Configure segments

Ask the user which segments they want to enable. Default is all segments:

  • model — Model name (e.g., "Opus 4.6")
  • billing — Subscription type badge ([API], [Pro], [Max])
  • workspace — Current directory name + worktree indicator
  • git — Branch name + diff stats (+insertions/-deletions)
  • context — Context window usage bar with percentage
  • quota — 5-hour and 7-day rate limit usage (Pro/Max only), with reset countdown
  • speed — Output tokens per second
  • cost — Estimated session cost (API users)
  • agents — Running background agent status

Read the full file on GitHub · 125 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 125 lines · 15 tokens per session scan B f1577def65b5

Subscribe to this mod's changes

setup is a skill published in the GitHub repository ai-native-sys/claude-code-tools (1 stars, last pushed 5mo ago), licensed MIT. It adds 15 tokens to every session and 1,378 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens