Create a launch prompt that runs the dependency-update skill periodically, and register it as a routine in Claude Code on the web. In environments where there is no means to handle routines, and when instructed to "only create the launch prompt," output the launch prompt and the items decided in the routine settings, and leave registration to a human.
Create the launch prompt
The definitions of the values needed for execution are independency-update skill under "Values received from the launch prompt." Read that and ask the user for the values to fill them in. For a repository being targeted for the first time, recommend the automation stage "up to review." While a human watches the quality of the reviews, gradually raise the automation stage.
In the launch prompt, write only the execution of the dependency-update skill and the values. The procedure is in the skill, so do not copy it. When the user requests an exception such as a waiting time, write it in the launch prompt as an instruction that takes precedence over the skill. The same launch prompt can also be used for manual execution on hand.
dependency-update skillを実行する。
対象リポジトリと自動化段階:
- {owner/repo}: mergeまで
- {owner/repo}: レビューまで
Labels: review requests are {名前}, merge approvals are {名前}, security updates are {名前}
Notification destination: {notification destination}
ラベルを使わないリポジトリだけなら、ラベルの行を省く。
## routineに登録する
このsessionに、Claude Code on the webのroutineを一覧・作成・更新する手段があれば、それを使う。使い方は、手段自身の説明に従う。手段が無ければ、「人間に登録を任せる」に進む。
既存のroutineを一覧し、dependency-update skillを起動する物か、依存関係の更新pull requestのレビューやmergeを行う物があれば、新しく作らず、そのroutineのプロンプトを起動プロンプトに置き換える更新を勧める。
routineの設定で決める事と、その決め方:
- 名前
- 実行の時刻と周期。ユーザーの現地時刻で訊き、routineの時刻の表現に直して、ユーザーに確かめる
- 実行環境
- model。dependency-update skillの「実行環境の確認」の条件を満たす物
- routineがcheckoutするリポジトリ。対象リポジトリの一覧と同じにする。対象リポジトリのコードを、指揮役が起動するsubagentが読める環境にする
- 通知先に投稿するコネクタ。通知先がSlackのチャンネルなら、Slackのコネクタである
- plugin。routineの設定でpluginを有効にできるなら、dependency-updateと `kuden` を有効にする。できなければ、実行環境にこの2つをinstallしておく事をユーザーに伝える
作成・更新の前に、設定の全体をユーザーに見せて確認する。作成・更新したら、routineの場所を伝え、1回手動で実行して様子を見る事を勧める。
## 人間に登録を任せる
起動プロンプトをコードブロックで出力し、「routineの設定で決める事」を箇条書きで添え、routineへの登録は人間が行うと告げる。