hud
Configure HUD display options (layout, presets, display elements)
от MeroZemory★ 30 звёзд на GitHub
Установить hud в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
HUD Skill
Configure the OMD HUD (Heads-Up Display) for the statusline.
Quick Commands
| Command | Description |
|---|---|
/hud |
Show current HUD status (auto-setup if needed) |
/hud setup |
Install/repair HUD statusline |
/hud minimal |
Switch to minimal display |
/hud focused |
Switch to focused display (default) |
/hud full |
Switch to full display |
/hud status |
Show detailed HUD status |
Auto-Setup
When you run /hud or /hud setup, the system will automatically:
- Check if
~/.factory/hud/omd-hud.mjsexists - Check if
statusLineis configured in~/.factory/settings.json - If missing, create the HUD wrapper script and configure settings
- Report status and prompt to restart Factory Droid if changes were made
IMPORTANT: If the argument is setup OR if the HUD script doesn't exist at ~/.factory/hud/omd-hud.mjs, you MUST create the HUD files directly using the instructions below.
Setup Instructions (Run These Commands)
Step 1: Check if setup is needed:
ls ~/.factory/hud/omd-hud.mjs 2>/dev/null && echo "EXISTS" || echo "MISSING"
Step 2: Check if the plugin is built (CRITICAL - common issue!):
# Resolve the active install from Factory's plugin metadata
PLUGIN_DIR=$(node --input-type=module - <<'NODE'
import { readFileSync } from "node:fs";
import { homedir } from "node:os";
import { join } from "node:path";
const registries = [
{ path: join(process.cwd(), ".factory/plugins/installed_plugins.json"), scope: "project" },
{ path: join(homedir(), ".factory/plugins/installed_plugins.json"), scope: "user" },
];
for (const registry of registries) {
try {
const metadata = JSON.parse(readFileSync(registry.path, "utf-8"));
const installs = metadata.plugins?.["oh-my-droid@oh-my-droid"] ?? [];
const install = installs.find((item) => item.scope === registry.scope) ?? installs[0];
if (install?.installPath) {
console.log(install.installPath);
process.exit(0);
}
} catch {}
}
console.log("");
NODE
)
if [ -n "$PLUGIN_DIR" ]; then
test -f "$PLUGIN_DIR/dist/hud/index.js" && echo "BUILT" || echo "NOT_BUILT"
fi
⚠️ CRITICAL: If NOT_BUILT, the plugin MUST be compiled before the HUD can work!
WHY THIS HAPPENS: The dist/ directory contains compiled TypeScript code
and is not stored on GitHub. It is normally generated by the package's
prepare script during npm install. If lifecycle scripts did not run or the
build failed, the HUD bundle will be missing.
THE FIX: Run npm install in the plugin directory to build it:
cd "$PLUGIN_DIR" && npm install
This will:
- Install all dependencies
- Run the
preparescript which executesnpm run build - Generate the
dist/hud/index.jsfile that the HUD wrapper needs
DO NOT try to download dist/hud/index.js from GitHub raw URLs - it doesn't exist there!
Step 3: If omd-hud.mjs is MISSING or argument is setup, create the HUD directory and script:
First, create the directory:
mkdir -p ~/.factory/hud
Then, use the Write tool to create ~/.factory/hud/omd-hud.mjs with this exact content:
#!/usr/bin/env node
/**
* OMD HUD - Statusline Script
* Wrapper that imports from plugin cache or development paths
*/
import { existsSync, readFileSync } from "node:fs";
import { homedir } from "node:os";
import { join } from "node:path";
import { pathToFileURL } from "node:url";
async function main() {
const home = homedir();
let pluginCacheDir = null;
// 1. Resolve the active plugin install from Factory metadata
const pluginRegistries = [
{
path: join(process.cwd(), ".factory/plugins/installed_plugins.json"),
scope: "project",
},
{
path: join(home, ".factory/plugins/installed_plugins.json"),
scope: "user",
},
];
for (const registry of pluginRegistries) {
if (!existsSync(registry.path)) continue;
try {
const pluginsData = JSON.parse(readFileSync(registry.path, "utf-8"));
const installs = pluginsData.plugins?.["oh-my-droid@oh-my-droid"] ?? [];
const install = installs.find((item) => item.scope === registry.scope) ?? installs[0];
pluginCacheDir = install?.installPath || null;
if (pluginCacheDir) {
break;
}
} catch { /* continue */ }
}
if (pluginCacheDir) {
const pluginPath = join(pluginCacheDir, "dist/hud/index.js");
if (existsSync(pluginPath)) {
await import(pathToFileURL(pluginPath).href);
return;
}
}
// 2. Development paths
const devPaths = [
join(home, "Workspace/oh-my-droid/dist/hud/index.js"),
join(home, "workspace/oh-my-droid/dist/hud/index.js"),
join(home, "Workspace/oh-my-droid/dist/hud/index.js"),
join(home, "workspace/oh-my-droid/dist/hud/index.js"),
];
for (const devPath of devPaths) {
if (existsSync(devPath)) {
try {
await import(pathToFileURL(devPath).href);
return;
} catch
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл hud?
Configure HUD display options (layout, presets, display elements)
Как установить скилл hud?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hud запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…