用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/rlaope/bestwork-agent --skill update命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Evidence-driven causal tracing — competing hypotheses, falsification, rebuttal round, recommended next probes
Feature validation gate — research, define purpose, stress-test from real user perspective before building
Maximum parallelism burst — all tasks execute simultaneously with no coordination overhead
基于 SOC 职业分类
正在显示 SKILL.md
| name | update |
| description | Check for updates and upgrade bestwork-agent — plugin cache + hooks + HUD all at once |
When this skill is invoked, IMMEDIATELY print:
[BW] checking for updates...
CACHE_DIR=$(ls -d ~/.claude/plugins/cache/bestwork-tools/bestwork-agent/*/ 2>/dev/null | sort -V | tail -1)
CURRENT_VERSION=$(jq -r '.version' "${CACHE_DIR}package.json" 2>/dev/null || echo "unknown")
CURRENT_HASH=$(git -C "$CACHE_DIR" rev-parse --short HEAD 2>/dev/null || echo "unknown")
echo "installed: v${CURRENT_VERSION} (${CURRENT_HASH})"
LATEST_HASH=$(curl -s https://api.github.com/repos/rlaope/bestwork-agent/commits/main 2>/dev/null | jq -r '.sha[:7]' 2>/dev/null || echo "unknown")
LATEST_VERSION=$(curl -s https://raw.githubusercontent.com/rlaope/bestwork-agent/main/package.json 2>/dev/null | jq -r '.version' 2>/dev/null || echo "unknown")
echo "latest: v${LATEST_VERSION} (${LATEST_HASH})"
If hashes differ, print:
[BW] update available: v{current} ({hash}) → v{latest} ({hash})
[BW] upgrading...
Then run ALL of these in sequence:
# 1. Update plugin cache (git pull)
claude plugin update bestwork-agent@bestwork-tools
# 2. Re-register hooks (cleans up deprecated hooks from settings.json)
CACHE_DIR=$(ls -d ~/.claude/plugins/cache/bestwork-tools/bestwork-agent/*/ 2>/dev/null | sort -V | tail -1)
node "${CACHE_DIR}dist/index.js" install
# 3. Copy latest HUD script
CACHE_DIR=$(ls -d ~/.claude/plugins/cache/bestwork-tools/bestwork-agent/*/ 2>/dev/null | sort -V | tail -1)
cp "${CACHE_DIR}hooks/bestwork-hud.mjs" ~/.bestwork/hud.mjs 2>/dev/null
After all done, print:
[BW] done! v{latest} ({hash})
✓ plugin cache updated
✓ hooks re-registered
✓ HUD synced
restart session to apply.
[BW] you're already on the latest (v{version}, {hash}). no action needed.