claude-skills/

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

last sync 22h ago
スキルOfficialdevelopment

🔬aiq-research

プラグイン
nvidia-skills
ライセンス
Apache-2.0

説明

次のような場合に使用: リーチ可能なNVIDIA AI-Q Blueprintバックエンドを통じて、ディープリサーチまたはAI-Qリサーチの実行を求められたとき。

原文を表示

Use when asked to run deep research or AI-Q research through a reachable NVIDIA AI-Q Blueprint backend.

ユースケース

  • ディープリサーチの実行を求められたとき
  • AI-Qリサーチの実行を求められたとき
  • NVIDIAのAI-Qバックエンドにアクセスするとき

本文(日本語訳)

AIQ リサーチ Skill

目的

このSkillは、scripts/aiq.py のヘルパースクリプトを通じて、ローカルで実行中の NVIDIA AI-Q Blueprint サーバーを呼び出すために使用します。

次のような場合に使用:

  • 「〜について深くリサーチして」
  • 「AIQ でリサーチ...」
  • 「〜を調査して」
  • 「AI-Q を使って〜に答えて」
  • 「AI-Q に〜について聞いて」

インストール、デプロイ、起動・停止、UI、CLI、Docker、Helm、またはトラブルシューティングに関するリクエストにはこのSkillを使用しないでください。 それらは aiq-deploy が担当します。


前提条件

ユーザーに必要なもの:

  • python3 として利用可能な Python 3.11 以上
  • アクセス可能なローカルまたはセルフホスト型の AI-Q Blueprint バックエンド
  • バックエンドが http://localhost:8000 で動作していない場合は AIQ_SERVER_URL の設定が必要。 ローカル以外の値は、クエリ送信前にユーザーが信頼済みであることを確認する必要があります。
  • このパブリックヘルパー用に認証を無効化した設定のバックエンド、 または認証済み環境向けの別の認証済み AI-Q Skill
  • ローカルマシンから AI-Q バックエンド URL へのネットワークアクセス
  • バックエンド環境に設定された認証情報(この Skill には設定しない)。 このパブリックヘルパーは API キーの収集・管理を行いません。

ヘルパースクリプトはサードパーティの Python パッケージに依存しておらず、 Python 標準ライブラリの HTTP モジュールのみを使用します。


手順

  1. 接続先バックエンド URL を解決する
  2. リサーチリクエストを送信する前に health を実行する
  3. アクセス可能なバックエンドが見つからない場合は、バックエンド URL を確認するか aiq-deploy に引き継ぐ
  4. ユーザーのクエリを送信する前に、送信先の AI-Q バックエンド URL を明示する。 ローカル以外の URL の場合は、現在の会話でユーザーがその URL を信頼済みと明示的に確認した場合のみ続行する。
  5. AI-Q がジョブ ID を返した場合は、非同期のディープリサーチジョブをポーリングする
  6. 返却されたレポートは、引用元とソース URL を保持したまま提示する
  7. ジョブが失敗した場合は停止して返却されたエラーを表示する。自動リトライは行わない。

ステップ 1 - バックエンドの解決

AIQ_SERVER_URL が設定されている場合はそれを使用します。 設定されていない場合は、デフォルトのローカルバックエンドを試みます:

python3 $SKILL_DIR/scripts/aiq.py health

期待される出力: アクセス可能な AI-Q ヘルスエンドポイントからの JSON

health が失敗し、かつ明示的な AIQ_SERVER_URL が設定されていない場合は、次のように確認します:

アクセス可能なローカル AI-Q バックエンドが見つかりません。
既に使用したい AI-Q バックエンド URL をお持ちですか?
それとも、ローカルの Skill バックエンドをデプロイしましょうか?
  • ユーザーが URL を提供した場合は、AIQ_SERVER_URL を設定して health を再実行します。
  • ユーザーがローカルデプロイを希望する場合は、元のリサーチリクエストを保持したまま aiq-deploy に引き継ぎます。
  • アクセス可能なバックエンドが 401 または 403 を返した場合は停止し、 このパブリック Skill は認証を管理しない旨を説明します。 認証済みの AI-Q Skill を使用するか、環境に合わせた認証設定を行うようユーザーに依頼してください。
  • health は成功したが /chat または /v1/jobs/async/agents が失敗した場合は、 バックエンドには到達できるが本パブリックリサーチフローとの互換性がない旨を報告し、 aiq-deploy の検証を実行することを提案します。

ステップ 2 - ルーティングされたリサーチリクエストの送信

リクエストを送信する前に、解決済みのエンドポイントを明示します:

このクエリを <AIQ_SERVER_URL> に送信します。
機密情報を送信する前に、このエンドポイントが信頼済みであることを確認してください。

クエリのテキストに認証情報、Cookie、Bearer トークン、またはシークレット値を含めないでください。

実行:

python3 $SKILL_DIR/scripts/aiq.py chat "<ユーザーの質問>"

期待される出力:

  • 簡潔・直接的な回答の場合: 通常の JSON レスポンス
  • 非同期ディープリサーチの場合: {"status": "deep_research_running", "job_id": "<JOB_ID>"} を含む構造化 JSON

通常の JSON レスポンスが返された場合は即座に結果を提示します。 job_id が存在しない場合はポーリングを強制しないでください。


ステップ 3 - 非同期ジョブのポーリング

レスポンスに deep_research_running が含まれている場合は、job_id を取り出し、 同じスクリプトの絶対パスでポーリングします:

python3 $SKILL_DIR/scripts/aiq.py research_poll <JOB_ID>

期待される出力: ジョブが正常に完了した際の最終レポート JSON

利用可能な場合は、ランタイムのノンブロッキングまたはバックグラウンド実行機構を使用してください。 選択した実行方法に昇格された権限が必要な場合は、理由を説明したうえでユーザーの明示的な承認を求めてください。 ディープリサーチがバックグラウンドで実行中であることをユーザーに伝えてください。


ステップ 4 - 中断後の再開

ポーリングが中断された場合でも、ジョブはサーバー側で継続されています。 次のコマンドで再開します:

python3 $SKILL_DIR/scripts/aiq.py status <JOB_ID>
python3 $SKILL_DIR/scripts/aiq.py report <JOB_ID>
python3 $SKILL_DIR/scripts/aiq.py research_poll <JOB_ID>
  • status: ジョブのステータスと保存済みアーティファクトを確認する
  • report: ジョブがすでに完了しており最終出力のみ必要な場合に使用する
  • research_poll: 完了まで引き続き待機する場合に使用する

ステップ 5 - レポートの提示

research_poll が正常に完了したら、完全なレポートを取得して提示します。 引用元とソース URL は必ず保持してください。

ジョブのステータスが failedfailure、または cancelled の場合は、 ステータスレスポンスに含まれるエラーを表示し、 クエリを絞り込んで再試行するか、別のアプローチを取るかをユーザーに確認します。


バージョン互換性

重要: この Skill は NVIDIA AI-Q Blueprint バージョン 2.1.0 向けに設計されています。

セマンティックバージョニングの互換性ルール:

Skill バージョン: X.Y.Z
Blueprint またはエンドポイントのバージョン: A.B.C

互換性あり (以下をすべて満たす場合):
1. A == X(メジャーバージョンは一致していなければならない)
2. B >= Y(マイナーバージョンは同じか、より大きい必要がある)
3. C は任意(パッチバージョンは互換性に影響しない)

具体例:

  • Skill バージョン 2.1.0 は Blueprint バージョン 2.1.0 と互換性あり
  • Skill バージョン 2.1.0 は Blueprint バージョン 2.2.0 と互換性あり
  • Skill バージョン 2.1.0 は Blueprint バージョン 2.1.5 と互換性あり
  • Skill バージョン 2.1.0 は Blueprint バージョン 3.0.0 と互換性なし
  • Skill バージョン 2.1.0 は Blueprint バージョン 2.0.0 と互換性なし

Blueprint バージョンに互換性がない場合:

  1. お使いの Blueprint バージョンに対応した更新済みの Skill バージョンを確認してください。
  2. この Skill と互換性のある Blueprint バージョンを使用してください。
  3. API ルートやレスポンスの形式が変更されている可能性があるため、 ユーザーが互換性リスクを承認した場合のみ、十分に注意して続行してください。

利用可能なスクリプト

スクリプト 目的 引数
scripts/aiq.py health 設定済みサーバーが応答するか確認する なし
scripts/aiq.py chat /chat に POST する。インライン出力またはディープリサーチのジョブ ID を返す場合がある <クエリ>
scripts/aiq.py agents 利用可能な非同期 Agent タイプを一覧表示する なし
scripts/aiq.py submit 明示的な非同期ジョブを送信する <クエリ> [agent_type]
scripts/aiq.py research 非同期ジョブを送信し、ポーリングして最終レポート JSON を出力する <クエリ> [agent_type]
scripts/aiq.py research_poll 既存の非同期ジョブのポーリングを再開する <job_id>
scripts/aiq.py status ジョブのステータスと /state アーティファクトを取得する <job_id>
scripts/aiq.py state イベントストアのアーティファクトのみを取得する <job_id>
scripts/aiq.py report 完了済みジョブの最終レポートを取得する <job_id>
scripts/aiq.py stream ジョブから SSE イベントをストリーミングする <job_id>
scripts/aiq.py cancel 実行中のジョブをキャンセルする <job_id>

ホストが run_script() ヘルパーをサポートしている場合は、scripts/aiq.py と上記の引数を指定して呼び出してください。 サポートしていない場合は、python3 $SKILL_DIR/scripts/aiq.py health のような同等のシェルコマンドを実行してください。


環境変数

変数 必須 デフォルト 説明
AIQ_SERVER_URL いいえ http://localhost:8000 ローカルまたはセルフホスト型 AI-Q サーバーのベース URL

セキュリティのベストプラクティス

  • AIQ_SERVER_URL に API キー、Bearer トークン、Cookie、Basic 認証の認証情報を含めないでください。
  • バックエンドの認証情報は、この Skill やコマンド例ではなく、AI-Q のデプロイ環境に保存してください。
  • ユーザーのクエリテキストは設定済みの AIQ_SERVER_URL に送信されます。 機密情報や秘密情報を送信する前に、エンドポイントが信頼済みであることを確認してください。
  • バックエンドがプライベートなデータソースを使用している場合、返却されたレポートは機密情報を含む可能性があります。
  • 返却されたレポートから引用元やソース URL を省略・切り捨てないでください。

制限事項

  • この Skill は動作中の AI-Q バックエンドを必要とします。バックエンドのデプロイは行いません。
  • このパブリックヘルパーは認証トークンや Cookie を管理しません。
  • リモートの AIQ_SERVER_URL エンドポイントは、プロンプト、レスポンス、メタデータをログに記録する場合があります。
  • バックエンドが HTTP 500 を返す、または非同期 Agent が利用できない場合は、 リサーチの回答を捏造せずに障害を報告してください。

使用例

例 1: ルーティングされたチャットまたはリサーチリクエストの実行

python3 $SKILL_DIR/scripts/aiq.py health
python3 $SKILL_DIR/scripts/aiq.py chat "ローカルの AIQ ディープリサーチと標準的な Web 検索ワークフローを
原文(English)を表示

AIQ Research Skill

Purpose

Use this skill to call a locally running NVIDIA AI-Q Blueprint server through the helper script at scripts/aiq.py.

Use this skill for research-shaped requests, including:

  • "deep research on ..."
  • "AIQ research ..."
  • "research ..."
  • "use AI-Q to answer ..."
  • "ask AI-Q about ..."

Do not use this skill for install, deploy, start, stop, UI, CLI, Docker, Helm, or troubleshooting requests. Those belong to aiq-deploy.

Prerequisites

Users need:

  • Python 3.11+ available as python3.
  • A reachable local or self-hosted AI-Q Blueprint backend.
  • AIQ_SERVER_URL set when the backend is not running at http://localhost:8000; non-local values must be trusted by the user before any query is sent.
  • A backend configured with authentication disabled for this public helper, or a separate authenticated AI-Q skill for authenticated environments.
  • Network access from the local machine to the AI-Q backend URL.
  • Credentials configured in the backend environment, not in this skill. This public helper does not collect or manage API keys.

The helper script has no third-party Python package dependencies; it uses Python standard-library HTTP modules.

Instructions

  1. Resolve the target backend URL.
  2. Run health before sending research requests.
  3. If no backend is reachable, ask for a backend URL or hand off to aiq-deploy.
  4. Before sending any user query, state the exact AI-Q backend URL that will receive it. For non-local URLs, continue only if the user has explicitly confirmed that URL is trusted in the current conversation.
  5. Poll asynchronous deep research jobs when AI-Q returns a job ID.
  6. Present returned reports with citations and source URLs intact.
  7. Stop on failed jobs and show the returned error; do not retry automatically.
  8. After presenting a report, support follow-up: answer questions about it (ask) or run a refined research pass (redo) using the same commands.

Step 1 - Resolve the backend

Use AIQ_SERVER_URL when set. Otherwise try the default local backend:

python3 $SKILL_DIR/scripts/aiq.py health

Expected output: JSON from a reachable AI-Q health endpoint.

If health fails and no explicit AIQ_SERVER_URL was set, ask:

I do not see a reachable local AI-Q backend. Do you already have an AI-Q backend URL you want to use, or should I deploy a local Skill backend?
  • If the user provides a URL, set AIQ_SERVER_URL for subsequent helper calls and rerun health.
  • If the user wants local deployment, hand off to aiq-deploy and preserve the original research request.
  • If a reachable backend returns 401 or 403, stop and explain that this public skill does not manage authentication. Ask the user to use an authenticated AI-Q skill or configure authentication for their environment.
  • If health succeeds but /chat or /v1/jobs/async/agents fails, report that the backend is reachable but not compatible with this public research flow, then offer to run aiq-deploy validation.

Step 2 - Send the routed research request

Before sending the request, state the resolved endpoint:

I will send this query to <AIQ_SERVER_URL>. Make sure this endpoint is trusted before sending sensitive information.

Do not send credentials, cookies, bearer tokens, or secret values through the query text.

Run:

python3 $SKILL_DIR/scripts/aiq.py chat "<USER_QUESTION>"

Expected output:

  • A normal JSON response for shallow or direct answers.
  • Or structured JSON containing {"status": "deep_research_running", "job_id": "<JOB_ID>"} for asynchronous deep research.

If the response is normal JSON, present the result immediately. Do not force polling when there is no job_id.

Step 3 - Poll asynchronous jobs

If the response includes deep_research_running, extract the job_id and poll with the same absolute script path:

python3 $SKILL_DIR/scripts/aiq.py research_poll <JOB_ID>

Expected output: the final report JSON when the job completes successfully.

Use the runtime's non-blocking or background execution mechanism when available. If the chosen execution method requires escalated permissions, request explicit user approval first and explain why. Tell the user that deep research is running in the background.

Step 4 - Resume after interruptions

If polling is interrupted, the job continues server-side. Resume with:

python3 $SKILL_DIR/scripts/aiq.py status <JOB_ID>
python3 $SKILL_DIR/scripts/aiq.py report <JOB_ID>
python3 $SKILL_DIR/scripts/aiq.py research_poll <JOB_ID>

Use status to inspect job status and saved artifacts. Use report when the job has already finished and you only need the final output. Use research_poll to keep waiting for completion.

Step 5 - Present the report

When research_poll completes successfully, fetch and present the full report. Keep citations and source URLs intact. If the job status is failed, failure, or cancelled, show the error from the status response and ask whether the user wants to retry with a narrower query or different approach.

Step 6 - Follow up: ask about or redo a report

After a report is presented, the user often wants to go deeper or adjust scope. Reuse the existing backend flow — the same auth boundary, polling, and report retrieval from Steps 1-5 apply; there is no separate follow-up endpoint.

Ask — a follow-up question about a report already in hand:

  • For a question answerable from the report you already have, answer directly from its content and citations; do not call the backend again.

  • For a question that needs new investigation, send a fresh request that carries the needed context from the prior question and report into the new query text, then present the new result:

    python3 $SKILL_DIR/scripts/aiq.py chat "<FOLLOW_UP_QUESTION> (context: <PRIOR_TOPIC>)"
    

    If this returns a deep_research_running job ID, poll it with research_poll exactly as in Step 3.

Redo — re-run research with adjusted scope (a narrower query, a corrected question, or a different depth):

python3 $SKILL_DIR/scripts/aiq.py research "<REFINED_QUERY>" [agent_type]
  • Choose agent_type to match the desired depth (for example a deep agent for a thorough pass, or shallow_researcher for a quick one); list options with agents if unsure.
  • Treat a redo as a new job: state the target endpoint again before sending (Step 2), then poll and present as in Steps 3-5.

Do not send credentials or secret values in follow-up query text, and keep citations and source URLs intact in every follow-up answer.

Version Compatibility

IMPORTANT: This skill is designed for NVIDIA AI-Q Blueprint version 2.1.0.

Semantic Versioning Compatibility Rules:

Skill version: X.Y.Z
Blueprint or endpoint version: A.B.C

Compatible IF:
1. A == X (Major versions MUST match)
2. B >= Y (Minor version must be equal or greater)
3. C can be anything (Patch version does not affect compatibility)

Examples:

  • Skill version 2.1.0 is compatible with Blueprint version 2.1.0.
  • Skill version 2.1.0 is compatible with Blueprint version 2.2.0.
  • Skill version 2.1.0 is compatible with Blueprint version 2.1.5.
  • Skill version 2.1.0 is not compatible with Blueprint version 3.0.0.
  • Skill version 2.1.0 is not compatible with Blueprint version 2.0.0.

If your Blueprint version is not compatible:

  1. Check for an updated skill version matching your Blueprint version.
  2. Use a Blueprint version compatible with this skill.
  3. Proceed with caution only when the user accepts the compatibility risk; API routes or response shapes may have changed.

Available Scripts

Script Purpose Arguments
scripts/aiq.py health Check whether the configured server responds none
scripts/aiq.py chat POST /chat; may return inline output or a deep-research job ID <query>
scripts/aiq.py agents List available async agent types none
scripts/aiq.py submit Submit an explicit async job <query> [agent_type]
scripts/aiq.py research Submit an async job, poll, and print the final report JSON <query> [agent_type]
scripts/aiq.py research_poll Resume polling an existing async job <job_id>
scripts/aiq.py status Fetch job status plus /state artifacts <job_id>
scripts/aiq.py state Fetch event-store artifacts only <job_id>
scripts/aiq.py report Fetch the final report for a completed job <job_id>
scripts/aiq.py stream Stream SSE events from a job <job_id>
scripts/aiq.py cancel Cancel a running job <job_id>

When the host supports a run_script() helper, call it with scripts/aiq.py and the arguments above. Otherwise, run the equivalent shell command, such as python3 $SKILL_DIR/scripts/aiq.py health.

Environment Variables

Variable Required Default Description
AIQ_SERVER_URL No http://localhost:8000 Local or self-hosted AI-Q server base URL

Security Best Practices

  • Do not put API keys, bearer tokens, cookies, or basic-auth credentials in AIQ_SERVER_URL.
  • Store backend credentials in the AI-Q deployment environment, not in this skill or command examples.
  • User query text is transmitted to the configured AIQ_SERVER_URL. Confirm the endpoint is trusted before sending sensitive or confidential information.
  • Treat returned reports as potentially sensitive if the backend uses private data sources.
  • Do not truncate citations or source URLs from returned reports.

Limitations

  • This skill requires a running AI-Q backend; it does not deploy one.
  • The public helper does not manage authentication tokens or cookies.
  • Remote AIQ_SERVER_URL endpoints may log prompts, responses, and metadata.
  • If the backend returns HTTP 500 or lacks async agents, report the failure instead of fabricating a research answer.

Examples

Example 1: Run a routed chat or research request

python3 $SKILL_DIR/scripts/aiq.py health
python3 $SKILL_DIR/scripts/aiq.py chat "Compare local AIQ deep research with a standard web search workflow"

Expected output:

<health JSON from AI-Q>
<JSON chat response or {"status": "deep_research_running", "job_id": "<JOB_ID>"}>

If AI-Q returns a job ID, continue with research_poll.

Example 2: Resume an existing job

python3 $SKILL_DIR/scripts/aiq.py status <JOB_ID>
python3 $SKILL_DIR/scripts/aiq.py research_poll <JOB_ID>

Replace <JOB_ID> with the UUID returned by AI-Q. Expected output: status JSON followed by the report JSON when the job completes. If the job failed, show the returned status and do not retry automatically.

Example 3: Ask a follow-up or redo with a refined query

# Ask: a follow-up that needs new investigation, carrying prior context.
python3 $SKILL_DIR/scripts/aiq.py chat "How does that compare on cost? (context: local AIQ deep research vs web search)"

# Redo: re-run research with a narrower query and explicit depth.
python3 $SKILL_DIR/scripts/aiq.py research "AIQ deep research cost on a single workstation" shallow_researcher

Expected output: a routed chat response or a new deep_research_running job ID to poll with research_poll. Present the follow-up answer with citations and source URLs intact.

References

Topic Documentation
Helper script scripts/aiq.py
Deployment and backend validation ../aiq-deploy/SKILL.md

Common Issues

Issue: No backend is reachable

Symptoms:

  • health fails with connection refused.
  • The default http://localhost:8000 URL does not respond.

Causes:

  • AI-Q is not running.
  • AI-Q is running on a different host or port.
  • A local firewall or network setting blocks the connection.

Solutions:

  1. Ask whether the user has an existing AI-Q backend URL.
  2. If they provide one, set it and rerun health:
    export AIQ_SERVER_URL="http://localhost:<PORT>"
    python3 $SKILL_DIR/scripts/aiq.py health
    
  3. If they want a local backend, hand off to aiq-deploy and preserve the original research request.

Issue: Backend requires authentication

Symptoms:

  • Requests fail with HTTP 401 or HTTP 403.
  • The backend is reachable but rejects /chat or async job calls.

Causes:

  • The backend was deployed with authentication enabled.
  • The public helper does not attach user tokens or cookies.

Solutions:

  1. Stop and explain that this public skill does not manage authentication.
  2. Ask the user to use an authenticated AI-Q skill or configure their backend for this public local workflow.
  3. Rerun health and the original query only after the authentication boundary is resolved.

Issue: Health succeeds but research routes fail

Symptoms:

  • health returns successfully.
  • /chat, /v1/jobs/async/agents, or polling commands fail.

Causes:

  • The backend is not using an API-enabled AI-Q config.
  • The async job registry is not available in the selected backend.
  • The backend version is incompatible with this skill.

Solutions:

  1. Run:
    python3 $SKILL_DIR/scripts/aiq.py agents
    
  2. If agents are unavailable, report the compatibility failure and offer to run aiq-deploy validation.
  3. Confirm the deployed Blueprint version is compatible with skill version 2.1.0.

Issue: Job is interrupted or appears stuck

Symptoms:

  • Local polling is interrupted.
  • The job keeps showing running.
  • Poll output shows running, but a report is returned or cancel says the job is already success.

Causes:

  • Deep research is asynchronous and continues server-side.
  • Local polling output can lag behind terminal server state.

Solutions:

  1. Check current state:
    python3 $SKILL_DIR/scripts/aiq.py status <JOB_ID>
    
  2. If has_report: true or job_status.status: success, fetch the report:
    python3 $SKILL_DIR/scripts/aiq.py report <JOB_ID>
    
  3. If the job is still running, continue polling:
    python3 $SKILL_DIR/scripts/aiq.py research_poll <JOB_ID>
    

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