用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/seokan-jeong/team-shinchan --skill team-shinchansetup-hud命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
Use when you want to start a new task with the integrated workflow.
Use when you want autonomous completion from requirements to verification without intervention.
Use when you need backend development for APIs, databases, servers, or endpoints.
| name | team-shinchan:setup-hud |
| description | Use when you need to install or remove the Team-Shinchan HUD statusline. |
| user-invocable | true |
When this skill is invoked, execute immediately.
If $ARGUMENTS contains "remove" -> go to Step 4 (Remove flow).
Otherwise -> continue to Step 2 (Install flow).
node -e "console.log(process.env.CLAUDE_PLUGIN_ROOT || '')"
Capture output as PLUGIN_ROOT.
If PLUGIN_ROOT is empty: Output error: "Cannot detect CLAUDE_PLUGIN_ROOT. Are you running in plugin mode?" STOP.
Set SCRIPT_PATH = PLUGIN_ROOT + '/src/statusline/index.js'
Verify script exists:
node -e "require('fs').accessSync('${CLAUDE_PLUGIN_ROOT}/src/statusline/index.js'); console.log('ok')"
If output is not 'ok': Output error: "statusline script not found at: ${SCRIPT_PATH}" STOP.
node -e "
const fs = require('fs'), path = require('path');
const p = path.join(process.env.HOME || '~', '.claude/settings.json');
let s = {};
try { s = JSON.parse(fs.readFileSync(p, 'utf-8')); } catch(e) {}
console.log(JSON.stringify({ exists: !!s.statusLine, current: s.statusLine || null }));
"
If the output shows "exists": true:
Display the current statusLine config to the user.
Ask: "A statusLine is already configured. Overwrite? (yes/no)"
If user says no: output "Cancelled. Existing statusLine unchanged." STOP.
node -e "
const fs = require('fs'), path = require('path');
const pluginRoot = process.env.CLAUDE_PLUGIN_ROOT;
const scriptPath = path.join(pluginRoot, 'src/statusline/index.js');
const settingsPath = path.join(process.env.HOME, '.claude/settings.json');
let settings = {};
try { settings = JSON.parse(fs.readFileSync(settingsPath, 'utf-8')); } catch(e) {}
settings.statusLine = {
type: 'command',
command: 'node \"' + scriptPath + '\"',
padding: 0
};
fs.mkdirSync(path.dirname(settingsPath), { recursive: true });
fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2));
console.log('ok:' + scriptPath);
"
Output:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HUD installed!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Script: {SCRIPT_PATH}
Settings: ~/.claude/settings.json
The HUD will appear on the NEXT assistant message.
If you update the plugin, run /team-shinchan:setup-hud again to refresh the path.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
node -e "
const fs = require('fs'), path = require('path');
const p = path.join(process.env.HOME || '~', '.claude/settings.json');
let s = {};
try { s = JSON.parse(fs.readFileSync(p, 'utf-8')); } catch(e) {}
console.log(JSON.stringify({ exists: !!s.statusLine, current: s.statusLine || null }));
"
If "exists": false: output "No statusLine configured." STOP.
If the command field in the current statusLine does NOT contain src/statusline/index.js:
Output: "Existing statusLine is not from Team-Shinchan. Refusing to remove."
STOP.
node -e "
const fs = require('fs'), path = require('path');
const settingsPath = path.join(process.env.HOME, '.claude/settings.json');
let settings = {};
try { settings = JSON.parse(fs.readFileSync(settingsPath, 'utf-8')); } catch(e) {}
delete settings.statusLine;
fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2));
console.log('ok');
"
Output: "HUD removed. StatusLine configuration cleared."