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.
npx skills add tomoking2004/claude-plugins --skill run-jobgit clone --depth 1 https://github.com/tomoking2004/claude-pluginsWrote 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.
[](https://agentmods.dev/skills/tomoking2004/claude-plugins/run-job)<a href="https://agentmods.dev/skills/tomoking2004/claude-plugins/run-job"><img src="https://agentmods.dev/badge/skills/tomoking2004/claude-plugins/run-job/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.
<a href="https://agentmods.dev/skills/tomoking2004/claude-plugins/run-job"><img src="https://agentmods.dev/badge/skills/tomoking2004/claude-plugins/run-job.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00168 | $0.03296 |
| Opus 5.5 | $0.00067 | $0.01318 |
| Sonnet 5.5 | $0.00034 | $0.00659 |
| Haiku 4.5 | $0.00017 | $0.00330 |
Grade A, and why
run-job scanned grade A with 0 findings 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 9d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
対象:ユーザーが実行を求めたプログラム・スクリプトのうち,数十秒を超えて走るもの——学習・評価・データ処理・サーバ等,起動したまま会話を続けたり離席したりしうる実行.
このうち常駐するもの(サーバ・デーモン・監視プロセス)には「完了」が無いので,手順4・5(完了照合・完了通知)は落ちたときにだけ当てる.待ち方は手順2の「常駐するもの」の項が定める.
対象外:数十秒で終わる実行——テスト・ビルド・lint・ワンライナー・git 操作など,結果をその場で見て次の一手を決めるもの.通常のフォアグラウンド実行で足りる(/refine:refine-code ・ /assignment:write-code 等が行う実行確認のうち,数十秒で終わるものはここに属し,本スキルを挟まない).所要時間が読めなければまず短命として実行し,数十秒で返らなければ中断して本スキルで起動し直す.
手順
-
寿命を決めて起動する:セッション内・分離のどちらの形でも,ログ・終了コードの刻印は下の「実行の正典」に従う.
-
セッション内:1時間以内に終わると見込めるもの.Bash を
run_in_background: trueで起動する——ハーネスが完了時に通知する.コマンドの先頭でmkdir -p logs; echo $$ > logs/<名前>.pidを打つ(手順2が生存を読む).セッションを閉じるとジョブも終わる. -
分離:1時間を超えうるもの,またはユーザーの離席・セッション終了が見込まれるもの.親シェルから切り離し,セッションが閉じてもジョブを残す:
mkdir -p logs; nohup sh -c '<コマンド> > logs/<名前>.log 2>&1; echo "ops-exit=$?" >> logs/<名前>.log' > /dev/null 2>&1 & echo $! > logs/<名前>.pid区切りは
;であって&&ではない——&&で繋ぐと&がその AND リスト全体をバックグラウンドに送り,echo $!がmkdirより先に走ってlogs/不在で落ちる(かつ$!がジョブでなくサブシェルを指す).切り離せているかは,別の Bash 呼び出し(=新しいシェル)からプロセスがまだ見えることで確かめる.
この形はハーネスの完了通知を持たない——完了は手順2の待ちが
ops-exit=で拾い,セッションが閉じた後は /ops:check-job がログから復元する.迷ったら分離を選ぶ(ジョブを失わない側に倒す). -
離席の備え:分離が守るのはジョブだけで,手順2以降はセッションが生きている間しか働かない.結果の送信など,セッションが落ちても止めたくない後段があれば,
set -eのスクリプトでジョブへ連ねる形を提案する.起動前に,離席後では手を打てないもの——資源の先客と空き(GPU・ディスク)・後段が使う認証——を確かめる.
-
-
次の出来事まで待つ:下のループを Bash の
run_in_background: trueで起動する——出来事があるとループは数行を出力して終了し,ハーネスが通知する.返ったら内容を確かめ,ops-exit=・goneでない限りseen=の値を渡して起動し直す.時間切れのある Monitor でなくこの形を使う——既読の位置を持ち越すので起動し直しても取りこぼさず,プロセスの消失と沈黙も捕らえる.seenの初期値は 0——ログの冒頭から読むので,起動直後の即死(import エラー・パス誤り・権限)がループの開始より前に起きていても見逃さない.log=logs/<名前>.log; pid=$(cat logs/<名前>.pid); seen=<既読の行数> while :; do kill -0 "$pid" 2>/dev/null; alive=$? lines=$(wc -l < "$log") sed -n "$((seen + 1)),${lines}p" "$log" | grep -E "<進捗マイルストーン>|ops-exit=|Traceback|Error|Exception|Killed|OOM|Segmentation fault|Fatal" && { echo "seen=$lines"; exit 0; } [ "$alive" -eq 0 ] || { echo "gone: ops-exit なしに消えた"; exit 0; } [ -z "$(find "$log" -mmin +<沈黙の上限(分)>)" ] || { echo "silent: ログが動かない"; echo "seen=$seen"; exit 0; } sleep 30 done生存を読んでからログを読む順は崩さない——逆にすると,読み終えた直後に終わったジョブを
goneと誤る.- 失敗を必ず捕らえる:「今このジョブがクラッシュしたらこのループは何か言うか」を問う——言わないなら grep を広げる.
ops-exit=は常に含める:これがあれば,正常終了も異常終了も沈黙のまま見過ごされることが無い.ハングと,包むshごと消える強制終了はこの行を書かない(本体だけが落ちれば非ゼロの値が刻まれる)——それを捕らえるのがsilentとgoneである. - 沈黙の上限:マイルストーンの想定間隔の数倍に取る.ログが疎らなら
findの行を資源の使用量(GPU 使用率等)の判定に替える.silentで返ったら様子を確かめ,生きていれば上限を延ばして起動し直す. - 進捗は間引く:
<進捗マイルストーン>に毎ステップ出る行を入れてはならない——出来事のたびにループが返り,会話を起こす.エポック完了・評価結果など,数分に1回程度のマイルストーンだけを選ぶ. - 常駐するもの:起動を確認したら,待ちは異常だけを見張り続ける.沈黙が常態なので
silentの行は外す.ops-exit=が出たら,それは正常終了でなく落ちた合図である.
- 失敗を必ず捕らえる:「今このジョブがクラッシュしたらこのループは何か言うか」を問う——言わないなら grep を広げる.
-
状況把握手段を案内する:対象がライブダッシュボード・TensorBoard・進捗 URL 等を自分で提供していないか探す(生成される HTML/JSON,ログ冒頭の URL).見つかればその URL を,無ければログの場所と所要時間の見積もり(過去の同種実行や進捗の速度から分かるとき)を一言で伝える.確認は求めず,伝えるだけでよい.離席が見込まれるなら届く範囲も告げる——通知はこのセッションが生きている間だけ出て,スマホへ届くのは Remote Control の接続時だけである.
-
終了したらログ全文と成果物を照合する:
ops-exit=の値(またはハーネスの完了通知)を鵜呑みにせず,ログを実際に読んで裏取りする.完了時に生成されるはずの成果物(チェックポイント・出力ファイル等,特定できるとき)が実在するかも確かめる——ログにエラーが無いことは成果物の存在を保証しない. -
離席が見込まれたジョブには,成功・失敗を問わず完了時に1回 PushNotification を送る:離れている間に終わったことこそ知らせるべき情報である.失敗ならどこで何が起きたかの要点を,成功なら主要な結果(accuracy 等)を一言で.ユーザーが今まさに会話中で見ているものには送らない.
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.
- 9d ago First seen · 78 lines · 168 tokens per session scan A 11286983556d
run-job is a skill published in the GitHub repository tomoking2004/claude-plugins (3 stars, last pushed today), licensed MIT. It adds 168 tokens to every session and 3,296 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-21.
run-job compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| run-jobtomoking2004/claude-plugins | Skill | 3 | today | MIT | A | 168 | Claude Code |
| ad-nachbausebaskauf/skaile-community-library | Skill | 9 | 3d ago | MIT | A | 125 | Claude Code |
| ad-schnittsebaskauf/skaile-community-library | Skill | 9 | 3d ago | MIT | A | 104 | Claude Code |
| ad-analysesebaskauf/skaile-community-library | Skill | 9 | 3d ago | MIT | A | 100 | Claude Code |
| skill-teilensebaskauf/skaile-community-library | Skill | 9 | 3d ago | MIT | A | 97 | Claude Code |
| show-and-sharesebaskauf/skaile-community-library | Skill | 9 | 3d ago | MIT | A | 74 | Claude Code |
| readme-prosebaskauf/skaile-community-library | Skill | 9 | 3d ago | MIT | A | 37 | Claude Code |