claude-skills/

Anthropic公式スキル・プラグインの日本語ディレクトリ

last sync 22h ago
スキルOfficialdevelopment

📊boltz-check-status

プラグイン
boltz

説明

Boltzジョブのステータス確認および結果の回復。 次のような場合に使用: - ジョブの一覧表示 - 進捗の確認 - ダウンロードの再開 - 結果の回復 - 既存のジョブIDのダウンロード 新規ジョブの開始には使用しない。

原文を表示

Boltz job status and result recovery. Use when listing jobs, checking progress, resuming downloads, recovering results, or downloading an existing job ID. Not for starting new jobs.

ユースケース

  • ジョブの一覧表示
  • 進捗の確認
  • ダウンロードの再開
  • 結果の回復
  • 既存のジョブIDのダウンロード

本文(日本語訳)

ワークフロー

boltz-apiPATH に見つからない場合は、再試行の前に boltz-cli-setup を使用してインストール/アップデートの手順を確認すること。 コマンドが認証の欠如または期限切れを報告した場合は、再試行の前に boltz-cli-setup を使用して boltz-api auth login --device-code を開始すること。事前に許可を求めないこと。 エージェントホストのサンドボックスが boltz-api のインストール/認証/API呼び出しをブロックする場合は、再試行の前に boltz-cli-setup を使用して、ユーザー全体へのCLIインストール・ブラウザログイン・認証情報の保存・一時ファイル・APIアクセスに必要なホストサンドボックスのバイパス/エスカレーションを要求すること。

このスキルは、セッションをまたいだ状態の復元、および過去のBoltzジョブの結果の確認やダウンロードに使用する。 ペイロードの作成は行わない — このスキルは list / retrieve / download-results / download-status のみを呼び出す。

次の4つのモードで使用する:

  1. ローカル進捗の確認: ユーザーがrun名またはrunディレクトリを知っている場合、リモートAPIを呼び出す前に download-status を優先する。
  2. 最近のジョブ一覧: 6つのリソースすべてを列挙し、created_at の降順でマージ・ソートする。
  3. 単一ジョブの取得: 既知の場合はジョブIDプレフィックスを使用し、不明な場合はいずれかが成功するまで各リソースを順に試みる。
  4. 再開/結果のダウンロード: 可能な限り元のrun名を使用して download-results を実行する。再開のために start を再実行しないこと。

ADMEジョブはプレフィックス adme_pred_* を使用し、モード1〜2(list / retrieve)では他と同様に表示される。 ADMEには download-results/アーカイブのステップが 存在しない ため、モード3〜4は適用されない。スコアの復元は retrieve の再実行(output.molecules[] を読む)またはローカルの run.json から行うこと。

セッションが切断された際の復元・ジョブIDプレフィックスのマッピング・download-results に使用するrun名の選択を行う前に、references/resume.md を参照すること。 リソースごとの list カラム・retrieve フィールド・結果のセマンティクスについては、references/api.md を参照すること。


コマンドパターン

# 実行前に、プレースホルダーを具体的な絶対パスに置き換えること。

# ローカルヘルパー: APIを呼び出さずにローカルのチェックポイント状態を確認する。
boltz-api --format json download-status \
  --name "<run-name>" \
  --root-dir "/absolute/path/boltz-experiments"

# モード1: 6つのリソース全体で最近のジョブを一覧表示する。
# 注: CLIはレコードごとに1つのJSONオブジェクトを出力する(ストリーム形式、{data:[]}ラッパーなし)。
# --limit はページ単位で、CLIは自動ページネーションを行うため、
# ストリーム出力の暴走を防ぐため head で上限を設けること。
boltz-api predictions:structure-and-binding list --limit 20 --format jsonl | head -20
boltz-api predictions:adme list --limit 20 --format jsonl | head -20
boltz-api small-molecule:library-screen list --limit 20 --format jsonl | head -20
boltz-api small-molecule:design list --limit 20 --format jsonl | head -20
boltz-api protein:library-screen list --limit 20 --format jsonl | head -20
boltz-api protein:design list --limit 20 --format jsonl | head -20

# モード2: IDで取得する。ワークフローの注記にあるIDプレフィックスからリソースを選択する。
# プレフィックスが不明な場合は、いずれかが成功するまで1つずつ実行する。
boltz-api predictions:structure-and-binding retrieve --id "<job-id>" --format json
boltz-api predictions:adme retrieve --id "<job-id>" --format json
boltz-api small-molecule:library-screen retrieve --id "<job-id>" --format json
boltz-api small-molecule:design retrieve --id "<job-id>" --format json
boltz-api protein:library-screen retrieve --id "<job-id>" --format json
boltz-api protein:design retrieve --id "<job-id>" --format json

# モード3: ダウンロードを再開する。エージェントランタイムのマネージド長時間実行コマンドモードを使用する。
boltz-api download-results \
  --id "<job-id>" --name "<run-name>" \
  --root-dir "/absolute/path/boltz-experiments" \
  --poll-interval-seconds 30

必ず行うこと

  • ユーザーがrun名/スラグまたはrunディレクトリを持っており、ローカルのダウンローダー状態のみを確認したい場合は、retrieve の前に download-status を優先すること。
  • 絶対パスの出力ルートを使用し、--root-dir で一貫して渡し続けること。runディレクトリへ cd しないこと。そうすると、後続の相対パスがユーザーのワークスペースではなくrunディレクトリを指してしまう。
  • 見慣れないジョブIDの場合は、モード3(ダウンロード)の前にモード2(retrieve)を実行して idempotency_key を取得すること。
  • --name には、ジョブIDよりも元のrun名スラグを優先すること — カーソル付きの既存ディレクトリに再開が引き継がれる。
  • Claude Codeなどの権限制御付きエージェントでは、各Boltz呼び出しを boltz-api で始まるトップレベルコマンドとして保つこと。6つの list / retrieve コマンドはシェルループで生成せず明示的に実行することを優先する。ストリーム出力の暴走を防ぐため、一覧表示時に固定の | head -20 キャップを付けることは問題ない。
  • download-results にはエージェントランタイムのバックグラウンド/非ブロッキングコマンドモードを優先すること。Codex環境では特に download-results をフォアグラウンドで実行し、シェルツールのyieldを1000 msに設定すること。コマンドが実行中の場合、Codexは session_id を返す。Codexでは & の追記や nohup の使用を避けること。ツールランナーが .boltz-run.json の書き込み完了前にシェルバックグラウンドの子プロセスをクリーンアップする可能性がある。
  • バックグラウンド/セッションの開始後は、手動で待機したりアドホックなポーリングループを実行したりしないこと。同一スレッドのハートビート自動化をサポートするCodexアプリ/デスクトップランタイムでは、download-status を定期的に確認するハートビートをスケジュールし、重要なステータス変化または最終的な完了/失敗のみを投稿し、終了状態になったら停止すること。現在のホストがハートビート自動化をサポートしていない場合は、自動的な次回チェックを主張せず、ジョブID・run名・出力ディレクトリ・download-status の確認に必要なコマンドを報告すること。
  • download-results はデフォルトでstderrに機械可読なJSONL形式の進捗を出力する。人間が読みやすいログが明示的に必要な場合のみ --progress-format text --verbose を追加すること。
  • ローカルのチェックポイント状態の確認には download-status を優先すること。ハートビート自動化をサポートするCodexホストでは、自動フォローアップに download-status を使用し、保存済みセッションへのポーリングはインタラクティブなユーザーリクエストによる進捗確認の場合のみ空の write_stdin で行うこと。ユーザーが最新のリモートステータスを望む場合を除き、retrieve のループを行わないこと。
  • retrieve が詳細なしで {"code":"VALIDATION_ERROR","message":"Request validation failed"} のみを返す場合、predictions:structure-and-binding の失敗では想定された動作である — 他のエンドポイントはフィールドパスを含む。
  • 失敗または中断したジョブに対して start を再実行しないこと。ペイロードを修正して新しい idempotency-key で再送するか、download-results で再開すること。

エスケープハッチ

  • Python SDKリファレンス(リソースごとの list / retrieve メソッド): https://api.boltz.bio/docs/api/python
  • CLIフラグ名: boltz-api <resource> list --helpboltz-api <resource> retrieve --helpboltz-api download-results --helpboltz-api download-status --help

出力

  • ローカルヘルパー / モード1 / モード2 は構造化データをstdoutに出力する。テーブル形式で表示すること。
  • モード3 は復元されたアーティファクトを <output-root>/<run-name>/ 以下に書き込む — 新規実行と同じレイアウトになる。再開時の動作については references/resume.md を参照すること。
原文(English)を表示

Workflow

If boltz-api is missing from PATH, use boltz-cli-setup for install/update guidance before retrying. If a command reports missing or expired authentication, use boltz-cli-setup to start boltz-api auth login --device-code before retrying; do not ask permission first. If the agent host sandbox blocks boltz-api install/auth/API calls, use boltz-cli-setup to request the host sandbox bypass/escalation needed for user-wide CLI install, browser login, credential storage, temp files, or API access before retrying.

Use this skill to recover state across sessions and to inspect or download results for prior Boltz jobs. No payload authoring — this skill only calls list / retrieve / download-results / download-status.

Use four modes:

  1. Local progress: if the user knows the run name / run dir, prefer download-status before remote API calls.
  2. List recent jobs: enumerate all six resources, merge, and sort by created_at descending.
  3. Retrieve one job: use the job ID prefix when known; otherwise probe resources until one succeeds.
  4. Resume/download results: run download-results with the original run name when possible. Never run start again to resume.

ADME jobs use the prefix adme_pred_* and show up in Modes 1-2 (list / retrieve) like the others. ADME has no download-results/archive step, so Modes 3-4 don't apply — recover its scores by re-running retrieve (read output.molecules[]) or from the local run.json.

Read references/resume.md before recovering a dropped session, mapping job ID prefixes, or choosing a run name for download-results. Read references/api.md for per-resource list columns, retrieve fields, and result semantics.

Command Pattern

# Replace placeholders with concrete absolute paths before running.

# Local helper: inspect local checkpoint state without API calls.
boltz-api --format json download-status \
  --name "<run-name>" \
  --root-dir "/absolute/path/boltz-experiments"

# Mode 1: list recent jobs across all 6 resources.
# Note: the CLI emits one JSON object per record (streamed, no {data:[]} wrapper).
# --limit is per-page and the CLI auto-paginates, so cap each explicit command with head.
boltz-api predictions:structure-and-binding list --limit 20 --format jsonl | head -20
boltz-api predictions:adme list --limit 20 --format jsonl | head -20
boltz-api small-molecule:library-screen list --limit 20 --format jsonl | head -20
boltz-api small-molecule:design list --limit 20 --format jsonl | head -20
boltz-api protein:library-screen list --limit 20 --format jsonl | head -20
boltz-api protein:design list --limit 20 --format jsonl | head -20

# Mode 2: retrieve by ID. Pick the resource from the ID prefix in the workflow
# notes above. If the prefix is unknown, run these one at a time until one succeeds.
boltz-api predictions:structure-and-binding retrieve --id "<job-id>" --format json
boltz-api predictions:adme retrieve --id "<job-id>" --format json
boltz-api small-molecule:library-screen retrieve --id "<job-id>" --format json
boltz-api small-molecule:design retrieve --id "<job-id>" --format json
boltz-api protein:library-screen retrieve --id "<job-id>" --format json
boltz-api protein:design retrieve --id "<job-id>" --format json

# Mode 3: resume download. Use the agent runtime's managed long-running command mode.
boltz-api download-results \
  --id "<job-id>" --name "<run-name>" \
  --root-dir "/absolute/path/boltz-experiments" \
  --poll-interval-seconds 30

Always Do This

  • If the user has a run name / slug or run dir and only wants local downloader state, prefer download-status before retrieve.
  • Use an absolute output root and keep passing it through --root-dir. Do not cd into the run directory; that makes later relative paths point at the run directory instead of the user's workspace.
  • On an unfamiliar job ID, run Mode 2 (retrieve) before Mode 3 (download) so you capture idempotency_key.
  • Prefer the original run-name slug over the job ID as --name — it resumes into the existing dir with cursor.
  • In permission-gated agents such as Claude Code, keep each Boltz call as a top-level command that starts with boltz-api. Prefer running the six list / retrieve commands explicitly over generating them from a shell loop; a fixed | head -20 cap is okay when listing to avoid runaway streamed output.
  • Prefer the agent runtime's background/non-blocking command mode for download-results. In Codex specifically, keep download-results in the foreground and set the shell tool yield to 1000 ms; Codex will return a session_id if the command is still running. Do not append & or use nohup in Codex because the tool runner may clean up shell-backgrounded descendants before .boltz-run.json is fully written.
  • After the background/session starts, do not manually wait on it or run ad hoc polling loops. In Codex app/desktop runtimes with same-thread heartbeat automation support, schedule a heartbeat that checks download-status periodically, posts only material status changes or terminal completion/failure, and stops once terminal. If the current host has no heartbeat automation support, do not claim an automatic next check; report the job ID, run name, output directory, and the command needed to check download-status.
  • download-results now emits machine-readable JSONL progress on stderr by default. Add --progress-format text --verbose only when you explicitly want human-readable logs.
  • Prefer download-status for local checkpoint state. In Codex hosts with heartbeat automation support, use it for automatic follow-up and poll the saved session with an empty write_stdin only for interactive, user-requested progress checks. Don't loop retrieve unless the user wants fresh remote status.
  • If retrieve surfaces only {"code":"VALIDATION_ERROR","message":"Request validation failed"} with no details, that's expected for predictions:structure-and-binding failures — other endpoints include field paths.
  • Never run start again on a failed or interrupted job. Fix the payload and submit with a new idempotency-key, or just resume with download-results.

Escape Hatch

  • Python SDK reference (per-resource list / retrieve methods): https://api.boltz.bio/docs/api/python
  • CLI flag names: boltz-api <resource> list --help, boltz-api <resource> retrieve --help, boltz-api download-results --help, boltz-api download-status --help

Outputs

  • Local helper / Mode 1 / Mode 2 print structured data to stdout; present as a table.
  • Mode 3 writes recovered artifacts under <output-root>/<run-name>/ — same layout as a fresh run. Read references/resume.md for resume behavior.

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。