run-job

run-job is a skill for Claude Code from tomoking2004/claude-plugins. It costs 168 tokens per session (3,296 once invoked), scanned A, original, MIT.

A workflow for starting programs that may run longer than a short command, while recording logs and an exit status. It supports jobs that stay attached to the current session and jobs that continue after the session closes.

In plain words
What is it for?
Use it to start training, evaluation, data-processing programs, servers, or other jobs that may take more than a few seconds.
Why use it?
It keeps long-running work observable and makes it possible to determine whether it ended normally or failed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ops plugin — 3 skills shipped together

Good fit Use it to start training, evaluation, data-processing programs, servers, or other jobs that may take more than a few seconds.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tomoking2004/claude-plugins/run-job
Install

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.

Any agent
npx skills add tomoking2004/claude-plugins --skill run-job
Clone the repo
git clone --depth 1 https://github.com/tomoking2004/claude-plugins

Made for: Claude Code.

Or install ops, the plugin that ships this one along with the rest of its 3 skills.

Wrote 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.

agentmods badge for run-job

README.md
[![agentmods](https://agentmods.dev/badge/skills/tomoking2004/claude-plugins/run-job/github.svg)](https://agentmods.dev/skills/tomoking2004/claude-plugins/run-job)
Your own site
<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.

agentmods 80×15 button for run-job

Your own site · 80×15
<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>
Per session 168 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,296 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 9d ago against content hash 11286983556d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

plugins/ops/skills/run-job/SKILL.md · 78 lines

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. 寿命を決めて起動する:セッション内・分離のどちらの形でも,ログ・終了コードの刻印は下の「実行の正典」に従う.

    • セッション内: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・ディスク)・後段が使う認証——を確かめる.

  2. 次の出来事まで待つ:下のループを 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= が出たら,それは正常終了でなく落ちた合図である.
  3. 状況把握手段を案内する:対象がライブダッシュボード・TensorBoard・進捗 URL 等を自分で提供していないか探す(生成される HTML/JSON,ログ冒頭の URL).見つかればその URL を,無ければログの場所と所要時間の見積もり(過去の同種実行や進捗の速度から分かるとき)を一言で伝える.確認は求めず,伝えるだけでよい.離席が見込まれるなら届く範囲も告げる——通知はこのセッションが生きている間だけ出て,スマホへ届くのは Remote Control の接続時だけである.

  4. 終了したらログ全文と成果物を照合する:ops-exit= の値(またはハーネスの完了通知)を鵜呑みにせず,ログを実際に読んで裏取りする.完了時に生成されるはずの成果物(チェックポイント・出力ファイル等,特定できるとき)が実在するかも確かめる——ログにエラーが無いことは成果物の存在を保証しない.

  5. 離席が見込まれたジョブには,成功・失敗を問わず完了時に1回 PushNotification を送る:離れている間に終わったことこそ知らせるべき情報である.失敗ならどこで何が起きたかの要点を,成功なら主要な結果(accuracy 等)を一言で.ユーザーが今まさに会話中で見ているものには送らない.

Read the full file on GitHub · 78 lines

Changes

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.

  1. 9d ago First seen · 78 lines · 168 tokens per session scan A 11286983556d

Subscribe to this mod's changes

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.

Related

run-job compared with skills from other repositories

run-job next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
run-jobtomoking2004/claude-pluginsSkill3todayMITA168Claude Code
ad-nachbausebaskauf/skaile-community-librarySkill93d agoMITA125Claude Code
ad-schnittsebaskauf/skaile-community-librarySkill93d agoMITA104Claude Code
ad-analysesebaskauf/skaile-community-librarySkill93d agoMITA100Claude Code
skill-teilensebaskauf/skaile-community-librarySkill93d agoMITA97Claude Code
show-and-sharesebaskauf/skaile-community-librarySkill93d agoMITA74Claude Code
readme-prosebaskauf/skaile-community-librarySkill93d agoMITA37Claude Code