call-cursor-agent について
call-cursor-agentは、タスクの説明をcursor-agentコマンドラインツールに渡すスキルです。コマンドのインストール状況を確認し、モデルの指定がない場合はcomposer-1を使用します。
主な機能
- 01cursor-agentのインストール確認
- 02コマンドライン経由のタスク送信
- 03--modelによるモデル指定
- 04未指定時のcomposer-1使用
活用シーン
- 01cursor-agentの利用可否確認
- 02cursor-agentへのタスク委任
- 03タスクに使用するモデルの選択
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ dotneet/ claude-code-marketplace --skill call-cursor-agentインストール後、Claude Code で/call-cursor-agentを入力して読み込まれたか確認します。
詳細
タスクの実行を cursor-agent に依頼する
このスキルは、タスクを cursor-agent に依頼します。
cursor-agent の存在を確認する
# Check if cursor-agent is installed. Exit code 0 means success, 1 means failure.
# If not installed, skip the subsequent steps of the skill.
which cursor-agent
if [ $? -ne 0 ]; then
echo "cursor-agent is not installed"
fi
cursor-agent にタスクを依頼する
# If the model is not specified, the default model is composer-1.
model=composer-1
cursor-agent --model=$model <<EOT
{task_description}
EOT
コメント
Markdown 対応