Back to skills
extension
Category: Content & MediaNo API key required

ai-task-runner

This skill is for executing external AI agents. Delegate the work of implementation or investigation to another AI agent. You (the main Claude) should focus on the conversation with users, design decisions, and policy making, and by entrusting the actual investigation or implementation to this skill, you can significantly save tokens and context. Important: Once an implementation or investigation task arises, before thinking about the details, please use this skill first. Discussing the specifics of implementation in the main conversation is a waste of tokens. Additionally, your intervention can also prevent arguments between humans and task executors due to omitted context.

personAuthor: jakexiaohubgithub

Other AI Agent Task runner Skill

Instructions

このスキルは外部のAIエージェントをコマンドラインで依頼し実行させるためのスキルです。

動作確認や実行方法から、指示の出し方まで、AIエージェントにタスクを発行するためのガイドラインを示します。

対応するAIエージェント

  • Gemini CLI
  • Copilot CLI

動作確認

  1. まずコマンドがインストールされているかを確認してください。
command -v gemini >/dev/null 2>&1 && echo "gemini installed!"

command -v copilot >/dev/null 2>&1 && echo "copilot installed!"

両方ともインストールされていない場合は、作業を停止し、ユーザにインストールを促してください。

  1. 各エージェントの認証情報が設定されているか確認...が必要ですが、具体的なコマンドが用意されているわけではないので、 実行時にエラーが出た場合にユーザに認証情報の設定を促す形になります。

基本的な実行方法

エージェントへの作業は時間がかかることがあります。 そのため複数のエージェントを同時に実行したりバックグラウンドで実行するなどの工夫が必要になる場合があります。

gemini --approval-mode=auto_edit -p "<Your task here>"
copilot --allow-all-tools --deny-tool 'shell(rm)' --deny-tool 'shell(git push)' -p "<Your task here>"

指示の出し方

以下のポイントに注意してください

  • 具体的なタスクを指示する
    • 対話的な操作をするわけではないため、一度出した指示の変更はできません。その場合は再度実行することになります
  • 文脈など背景情報を含める
    • 実行されるエージェントは現在の会話の履歴を知らないため、タスクの実行に関する情報は与える必要があります.
  • 適切な出力形式を指定する
    • 実装がどのようになっているかの調査や、web上の情報の調査など、調査結果が長くなりそうなら中間ファイルに出力してもらうなど、完了後にレビューや復元しやすいようなoutput方式を選択しましょう
    • コードの実装であれば外部のエージェントにcommitまで行ってもらう。そしてその作業結果を確認して問題がなさそうなら、PRを作って人間に確認してもらうなどのフローが考えられます