ashley-seymour/claude-skills

無人の自動実行(夜間や数時間)を準備、実行、解除します。キュー内のアイテムが、Windows スケジュールタスク下のウォッチドッグによって起動される新しい `claude -p --agent away-orchestrator` プロセスごとに1つずつ処理され、自身のワークツリー(ブランチ `away/<date>`)上で実行され、朝のレポートで終了します。ユーザーが無人の自動実行の準備、確認、解除を指示した場合、または `away-orchestrator` として実行されている場合にのみ使用します。インタラクティブなプロジェクトウェーブ(project-workflow)や単発の `claude -p` スクリプト(headless-claude)には使用しません。

claude-skills とは?

このスキルは、Claude Code エージェント用の「無人自動実行(Away Run)」機能を提供します。開発者が長時間離席する際(夜間や数時間)、タスクのキューを事前に準備し、無人で順次実行します。各タスクは独立したヘッドレス `claude -p --agent away-orchestrator` プロセスで実行されるため、APIの利用制限やクラッシュが発生しても、影響を受けるのは1つのイテレーションのみで、全体の実行が中断されることはありません。Windows のスケジュールタスクとウォッチドッグスクリプトがプロセスを監視し、キューが空になると最終イテレーションが朝のレポートを生成して終了します。状態管理はディスク上のランフォルダに保存され、プロジェクトワークフロー(project-workflow)スキルと連携して複雑なマルチステップのタスクチェーンを処理することも可能です。主に Windows 環境での使用を想定して設計されています。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ashley-seymour/claude-skills/tree/HEAD/away-run

Installed? Explore more 生産性&コラボレーション skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

無人自動実行 (Away Run)

オペレーターが離席している間、キューが処理されます。各アイテムは新しいヘッドレスプロセスで実行されるため、利用制限やクラッシュが発生しても、影響は1つのイテレーションにとどまり、夜間の実行全体が中断されることはありません。状態はランフォルダのディスク上に保存され、プロセスの終了が /clear の代わりとなります。claude -p 用のフラグファクトは headless-claude スキルにあります。

リポジトリ設定とプロファイル。 <repo>/.claude/project-workflow.json はオプションです。このスキルは、キー projects_dir(デフォルト my-projects)、profile(デフォルト <projects_dir>/WORKFLOW.md)、backlog_file(デフォルト <projects_dir>/backlog.md)、および bootstrap(argv リスト、または null)を読み取ります。プロファイルのセクション「§ 無人自動実行」が存在する場合は、それを読み取ります:テストコマンド、発見ソース、自動許可クラス。プロファイルとこのスキルで異なる場合は、プロファイルが優先されます。

フェーズ — フェーズに入るときに1つのファイルをロードする

フェーズ担当参照先
armオペレーター(同席)以下の § Arm(準備)、次に discover.md でキューを構築
iterationaway-orchestrator、プロセスごとに1つiteration.md
status, disarmオペレーター以下の § Status(状態確認)、§ Disarm(解除)

project-workflow と away-run はファイル(バックログファイル、<projects_dir>/proposals/open/)を共有しますが、呼び出しは共有しません。ただし1つ例外があります:project 行は、無人モードで Skill ツールを介して /project-workflow を呼び出します。

プロジェクトウェーブは複数の project 行にまたがり、各 wave.md の § Session shape のステップグループ(1; 2-3; 4-7)ごとに1つずつ実行されます。各行は、ステップ ## Resume で指定された名前からそのグループの終わりまでを処理し、chore(<NNNN>): checkpoint wave N at step <n> でコミットし、境界に達していなければ次のステップのフォローオン行を追加します。行は、少なくとも1つのステップを完了した場合にのみ、attempts 0 でフォローオン行を1つ追加します。1つもステップを完了しなかった行は claimed 状態のままとなり、自身の attempts で再試行します。これは終了します:各フォローオン行はウェーブの7つのステップのうち少なくとも1つを進め、試行上限により完了しないステップは終了します。チェックポイントと ## Resume のみがハンドオフです(iteration.md § 3)。

レイアウト

<repo>-worktrees/away-<date>/            ワークツリー、ブランチ away/<date>、main から分岐
  <run folder>/                           away/<date> で追跡:arm.ps1 -RunFolder、
    queue.md decisions.md log.md          デフォルト <projects_dir>/away/<date>/
    morning-report.md                     クローズアウトイテレーションによって書き込まれる
<repo>-worktrees/away-<date>-run/         スクラッチ、追跡外:away.env, watchdog.sh,
                                           entry-prompt.md, watchdog.log, iter-NNN.*, locks
scheduled task away-<repo>-<date>         15分ごと、ハードストップまで

キューの行

templates/queue.md にスキーマがあります。列:id | item | agent | status | claimed_by | lease_until | attempts | evidence。agent は mechanical-worker、stream-worker、researcher、project、または discover です。キューを編集するたびにロックを取得します:mkdir <scratch>/queue.lock(アトミック操作;失敗した場合は10秒ごとに2分間再試行;最終更新から10分以上経過したロックフォルダは、owner ファイルの有無にかかわらず、古いものとみなして削除)、編集後、rm -rf でロックを削除します。2分間の再試行に失敗した場合の対処は iteration.md § 2 および § 4 にあります。クレームは、claimed_by をイテレーションのクレームタグ(iter-NNN、エントリプロンプトで指定されたとおり)に設定し、lease_until も設定します。リース期限が切れている場合は、イテレーションが停止したことを意味し、その行は再びクレーム可能になり、attempts が +1 されます。

準備(オペレーター同席)

  1. キュー。 discover.md を使用してキューを構築します:名前付きチェックが設定されたティア1の行のみ。ティア2の作業は提案になります。行が遭遇する可能性のあるすべての決定に対してデフォルト名を付けます。決定が未定義でデフォルトがない行はキューに入れられません。
  2. 姿勢。 明確に述べます:この実行は --permission-mode bypassPermissions を使用するため、すべてのツール呼び出しはプロンプトなしで実行されます。グローバル拒否ルールは引き続き適用されます。「ゲートなし」(未解決の質問は名前付きデフォルトになり、失敗はスキップして再試行)は実行ごとにオプトインであり、キュー ヘッダーで gates: none として設定します。以前の実行から推測されることはありません。
  3. 準備。 最初にドライラン、次に実際の実行を PowerShell から行います: powershell -NoProfile -File <skill>/arm.ps1 -Repo <path> -StopAt "<YYYY-MM-DD HH:MM>" -Queue <queue.md> -WhatIf。 main から away/<date> にワークツリーを作成し、templates/ からランフォルダをシードしてキューと共にコミットし、設定された bootstrap argv({worktree} はワークツリーパスに置き換えられ、cwd はメインチェックアウト;キーが存在しないか null の場合はスキップ)を実行してその終了を待ち、watchdog.sh と entry-prompt.md をスクラッチにコピーし、away.env を書き込み、タスクを登録します(Register-ScheduledTask を使用、決して schtasks /Create は使用しないでください:PowerShell 5.1 は /TR の引用を壊します)。bootstrap がゼロ以外で終了した場合、タスクが存在する前に拒否されます。ワークツリーとブランチは検査のために残されます。タスクにはプリンシパルがないため、オペレーターがログオンしている間のみ実行され、コンソールウィンドウを閉じると強制終了されます:画面をロックし、ログオフしないでください。
  4. 確認。 Get-ScheduledTask -TaskName 'away-*' でタスクが表示されます。最初の実行により watchdog up が watchdog.log に書き込まれます。
  5. 準備後のキュー編集。 arm.ps1 はキューを一度コミットします。準備後に行ったキュー編集は、away/<date> 上で自分でコミットしてください(タスクが起動したら、キュー ロックの下で行います):イテレーションは、自分が作成していない未コミットの作業を他人のものと見なし、ステージングすることはありません。

ウォッチドッグの動作(watchdog.sh)

  • claude -p --agent away-orchestrator --max-turns N を起動し、プロンプトは標準入力から渡します。モデルと努力量はエージェントのフロントマターから取得します。--effort、TTL フラグ、--disable-slash-commands(Skill が無効になるため)は使用しません。
  • イテレーションの成否は、is_error/api_error_status と queue.md が変更されたかどうかで判断し、num_turns では判断しません。キューに変更がなく3回のイテレーションが続くと終了します。
  • 利用制限:メッセージに記載されたリセット時間までスリープします。「Opus の制限に達しました」というメッセージの場合は、mechanical-worker 行でのみ Sonnet(--model sonnet)で継続します。クレーム可能な行がない場合は、リセット時間までスリープします。
  • 予算超過(subtype error_max_budget_usd、kind budget):スリープしません。制限はプロセスごとなためです。行のクレームは保持されるため、次のイテレーションは次の行を取得し、この行はリース期限が切れたときに戻ります。超過はエラーと同様に FAIL_MAX にカウントされます。
  • クォータ予約:5時間のローリングウィンドウで WINDOW_CAP_USD の推定使用額に達した場合、ウィンドウが空くまでスリープします。最後の RESERVE_MIN 分はクローズアウト用に予約されます。
  • キューが空:1回のクローズアウトイテレーションが朝のレポートを書き込み、終了します。それ以外の終了では、ウォッチドッグがスタブレポートを書き込みます。すべての終了で STOP が書き込まれるため、以降のタスク実行は何もしません。STOP を削除すると再開します。
  • 各アイテムイテレーションの後、そのイテレーションのクレームタグで保持されているリースを期限切れにします。これにより、制限やエラーで中断された行が、クローズアウトまで保留されることなく再試行されます。この処理はクローズアウト後(何もクレームしない)および予算超過後(上記参照)はスキップされます。
  • 各イテレーションの開始時に claude: <path> をログに記録します:これから実行するバイナリです。
  • main 上、メインチェックアウト上、または away/* 以外のブランチ上では実行を拒否します。
  • ドライラン:CLAUDE=<スタブスクリプト> AWAY_NO_SLEEP=1 bash watchdog.sh <away.env> を away/* 上のスクラッチワークツリーに対して実行します。スリープはログに記録されますが、実際にはスリープしません。環境に設定された CLAUDE または PY は away.env で指定されたものを上書きするため、arm で書き込まれた away.env があってもスタブが実行されます。ログ行 claude: <スタブ> で確認してください。

状態確認

<scratch>/watchdog.log の末尾を確認します。queue.md を読みます。「別のウォッチドッグが動作中」と表示されるのを信頼する前に、claude.exe プロセス(tasklist)と最近の iteration N starting 行を確認してください:孤立したロックがあると、すべての実行が静かに停止します。Git Bash には pgrep はありません。

解除

powershell -NoProfile -File <skill>/disarm.ps1 -Repo <path> -Date <date>:STOP を書き込み、タスクの登録を解除し、Get-ScheduledTask -TaskName 'away-*' が何も返さないことを確認します。タスクが登録されたままになると、bash が15分ごとに起動し続けます。ワークツリーとブランチは確認のために残ります:朝のレポートを読み、その後、リポジトリの通常の方法で away/<date> をマージするか、削除します。

このように構築されている理由

  • 回復力は CLI の外部にあります。CronCreate durable:true はセッション限定に戻りました(2026-09-19)。/loop は同じセッションに再入します。Bash ツール呼び出しからの nohup … & はそのシェルに所属します。Git Bash には setsid がありません。
  • 利用制限は、増加するバックオフではなく、メッセージに記載されたリセット時間までスリープして対処します。また、イテレーションが低い num_turns で失敗と判断されることはありません。バックオフはリセットを過ぎてしまい、イテレーションは報告された1ターンで行を終了できるためです。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

ashley-seymour/claude-skills

Read this skill before the first step that uses the built-in browser, the browser pane inside the Claude desktop app (also called the in-app browser, the browser pane, Claude's browser, or \"your own browser\"), whose tools are named mcp__Claude_Browser__* when the session runs in the desktop app and mcp__remote-devices__Claude_Browser__* when a cloud session is linked to the person's computer; before those tools are turned on there may be a single enable__mcp__remote-devices__Claude_Browser tool instead. It covers the pane's persistent sign-ins, tabs and preview_start, reading pages as text, site approvals, what the pane cannot open, and what to do when it cannot be reached. It is not for Claude in Chrome (mcp__claude-in-chrome__* tools), which has its own skill, and it does not decide which browser to use.

ashley-seymour/claude-skills

Use this skill when the user's prompt requires (1) researching a topic across multiple sources, comparing options or alternatives, analyzing trends or history, understanding markets or industries, or reviewing literature or studies and (2) synthesizing that research into a comprehensive, narrative report. If you're planning to search the web or internal knowledge bases, consider using this skill. This skill coordinates research subagents, so use it only when you have a tool for spawning subagents (the Agent or Task tool); otherwise, research the question directly.

ashley-seymour/claude-skills

Read this skill before the first step that uses Claude in Chrome, the browser extension whose tools are named mcp__claude-in-chrome__* (also called Chrome, the browser extension, or the external browser) and which acts in the person's real Chrome with their own sign-ins; before those tools are turned on there may be a single enable__mcp__claude-in-chrome tool instead. It covers loading the tools in one ToolSearch call, checking the person's open tabs and working in a new tab, site permissions, GIF recordings, console logs, dialogs to avoid, and when to stop and ask. It is not for the built-in browser (mcp__Claude_Browser__* or mcp__remote-devices__Claude_Browser__* tools), which has its own skill, and it does not decide which browser to use.

ashley-seymour/claude-skills

Read this skill before the first step of any request to do something in an app on the person's own computer (Notes, Finder, System Settings, any desktop app), to look at their screen, or for \"computer use\". Computer use (desktop control) lets Claude take screenshots of the person's desktop and control it with clicks, typing and scrolling through the Claude desktop app; its tools are named mcp__computer-use__* when the session runs in the desktop app and mcp__remote-devices__computer_* when a cloud session is linked to the person's computer; before computer use is turned on for a conversation there may be no such tools, only an enable__mcp__remote-devices__computer tool, which turns it on. It covers turning it on, picking the right tool, the access flow, and the safety rules for tiered apps, links and financial actions. It is not for websites, which go through Claude in Chrome or the built-in browser and their own skills.

関連スキル