用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/IgorWarzocha/howcode --skill build-and-run-temp-howcode命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | Build and run temp Howcode |
| description | Use when Igor asks to build this branch/current repo and run a disposable build version |
Use this when Igor asks to build the current branch/current repo and run a disposable Howcode app from /home/igorw/Work/howcode-temp.
Trigger phrases include:
/home/igorw/Work/howcode-temp/howcode-fixed./home/igorw/Work/howcode-temp/howcode-fixed.pid/home/igorw/Work/howcode-temp/howcode-fixed.log/home/igorw/Work/howcode-temp/howcode-fixed-data; pass both HOWCODE_USER_DATA_PATH and Electron's early --user-data-dir argument./home/igorw/Work/howcode-temp.bun run build.setsid ... &, write a runner pid/log, then poll the log/pid from the agent.mise which node@24:
HOWCODE_NODE_24_PATH=/home/igorw/.local/share/mise/installs/node/24.18.0/bin/nodeHOWCODE_NODE_25_PATH=/home/igorw/.local/share/mise/installs/node/25.9.0/bin/nodeHOWCODE_NODE_26_PATH=/home/igorw/.local/share/mise/installs/node/26.2.0/bin/nodebun run ai:check before this workflow or rely on commit hooks if the change was just committed.set -euo pipefail
repo=/home/igorw/Work/howcode
temp_root=/home/igorw/Work/howcode-temp
app_name=howcode-fixed
src="$repo/artifacts/electron/linux-unpacked"
dest="$temp_root/$app_name"
pid_file="$temp_root/$app_name.pid"
log_file="$temp_root/$app_name.log"
runner_pid_file="$temp_root/$app_name.runner.pid"
runner_log_file="$temp_root/$app_name.runner.log"
cat > "$temp_root/run-$app_name.sh" <<'RUNNER'
#!/usr/bin/env bash
set -euo pipefail
repo=/home/igorw/Work/howcode
temp_root=/home/igorw/Work/howcode-temp
app_name=howcode-fixed
src="$repo/artifacts/electron/linux-unpacked"
dest="$temp_root/$app_name"
pid_file="$temp_root/$app_name.pid"
log_file="$temp_root/$app_name.log"
user_data_path="$temp_root/$app_name-data"
export HOWCODE_NODE_24_PATH=/home/igorw/.local/share/mise/installs/node/24.18.0/bin/node
export HOWCODE_NODE_25_PATH=/home/igorw/.local/share/mise/installs/node/25.9.0/bin/node
export HOWCODE_NODE_26_PATH=/home/igorw/.local/share/mise/installs/node/26.2.0/bin/node
cd "$repo"
# Stop prior temp launch, if still running.
[ -f ];
old_pid=$( )
[ -n ] && -0 2>/dev/null;
2>/dev/null ||
bun run build
-p
-rf
-a
: >
-p
setsid -f HOWCODE_USER_DATA_PATH= \
> 2>&1
1
pid=$(pgrep -f | -n1 || )
[ -z ];
>&2
-80 >&2 ||
1
>
ps -p -o pid,ppid,sid,cmd --no-headers ||
-80 ||
RUNNER
+x
: >
setsid -f > 2>&1
1
runner_pid=$(pgrep -f | -n1 || )
[ -n ];
>
-80 ||
Poll until done:
tail -120 /home/igorw/Work/howcode-temp/howcode-fixed.runner.log
runner_pid=$(cat /home/igorw/Work/howcode-temp/howcode-fixed.runner.pid 2>/dev/null || true)
if [ -n "$runner_pid" ] && kill -0 "$runner_pid" 2>/dev/null; then
echo "Still building/running: $runner_pid"
else
echo "Runner finished"
tail -120 /home/igorw/Work/howcode-temp/howcode-fixed.runner.log
fi
Check the temp launch log first:
tail -200 /home/igorw/Work/howcode-temp/howcode-fixed.log
Then check coredumps/journal for the recorded pid:
pid=$(cat /home/igorw/Work/howcode-temp/howcode-fixed.pid)
coredumpctl info "$pid" --no-pager || true
journalctl --user --since '20 minutes ago' --no-pager | rg -i 'howcode|electron|gpu|renderer|crash|segfault|oom|killed' || true
If Chromium reports GPU process isn't usable, try a diagnostic relaunch with GPU disabled:
/home/igorw/Work/howcode-temp/howcode-fixed/howcode --disable-gpu