Agent Skills › FradSer/dotclaude › research

research

GitHub

调用 Gemini 深度研究代理执行多源网络调研,生成带引用的报告。支持异步后台运行与状态监控,提供标准及高耗时模式,适用于需要详尽资料收集的场景。

antigravity/skills/research/SKILL.md FradSer/dotclaude

Trigger Scenarios

用户要求使用 Gemini 进行深度研究 请求生成全面的多源网络调研报告 提及 'Antigravity research' 相关指令

Install

npx skills add FradSer/dotclaude --skill research -g -y
More Options

Non-standard path

npx skills add https://github.com/FradSer/dotclaude/tree/main/antigravity/skills/research -g -y

Use without installing

npx skills use FradSer/dotclaude@research

指定 Agent (Claude Code)

npx skills add FradSer/dotclaude --skill research -a claude-code -g -y

安装 repo 全部 skill

npx skills add FradSer/dotclaude --all -g -y

预览 repo 内 skill

npx skills add FradSer/dotclaude --list

SKILL.md

Frontmatter
{
    "name": "research",
    "description": "Runs a deep-research query on Google Gemini's deep-research managed agent and returns a cited report. This skill should be used when the user asks to \"deep research with Gemini\", \"run Gemini deep research\", \"have Antigravity research X\", or wants a thorough, multi-source web research report produced by a remote Gemini agent. Invoked via \"\/antigravity:research\". Supports a higher-effort max mode via \"--max\".",
    "allowed-tools": [
        "Bash(uv:*)",
        "Monitor",
        "Read"
    ],
    "argument-hint": "<research question> [--max] [--collaborative-planning] [--visualization off|auto] [--thinking-summaries auto|none] [--bigquery] [--system TEXT] [--tier flex|standard|priority|deferred] [--label k=v]",
    "user-invocable": true
}

Antigravity Deep Research

Run $ARGUMENTS as a deep-research query on Gemini's deep-research managed agent, wait for it to finish, and report the cited result. Two models are available: deep-research-preview-04-2026 (default) and deep-research-max-preview-04-2026 (max mode — slower, higher effort), selected with --max.

The script is at ${CLAUDE_PLUGIN_ROOT}/scripts/antigravity.py. It is self-daemonizing: research returns immediately with a run_id, a detached worker runs the research, and a status file flips to completed / failed when done. Requires credentials and uv on PATH. Two credential paths are supported: Vertex AI via ADC plus ANTIGRAVITY_PROJECT / ANTIGRAVITY_LOCATION, or an API key (GEMINI_API_KEY / GOOGLE_API_KEY); see the Authentication section of ../delegate/references/usage.md. Deep research can take several minutes.

Phase 1: Frame the query

Goal: Turn $ARGUMENTS into a clear research question.

Actions:

  1. Use the full $ARGUMENTS text (minus a --max flag) as the research question. Pass --max through to the script when the user wants max mode (deeper, slower).
  2. If it is empty or too vague to research (no subject, scope, or constraints), ask the user one or two clarifying questions, then proceed.

Phase 2: Launch the run

Goal: Start the detached research worker.

Actions:

  1. Run the script:
    uv run "${CLAUDE_PLUGIN_ROOT}/scripts/antigravity.py" research --query "<question>" [--max]
    
  2. Capture run_id, output_file, and wait_command from stdout.
  3. If stdout reports an error (for example no credentials configured, or a forced ANTIGRAVITY_AUTH path that is incomplete), surface it and stop. Note: deep research has no token cap (DeepResearchAgentConfig accepts no max_total_tokens), so --max-tokens is deliberately absent here — never imply to the user that a research run is bounded.

Phase 3: Wait for completion

Goal: Block until the research finishes without busy-looping the model.

Actions:

  1. Start a Monitor on the captured wait_command. It emits one line — antigravity run <id>: completed / failed / timeout — then exits:
    uv run "${CLAUDE_PLUGIN_ROOT}/scripts/antigravity.py" wait --run <run_id> --timeout 1800
    
    Deep research is slow: set the Monitor timeout_ms to 3600000 (60 min, 2x the wait timeout) and pass --timeout 1800 to the wait command. Use a clear description like "antigravity research <run_id>".
  2. When the Monitor event arrives, check if the line contains : completed, : failed, or : timeout:
    • Contains : completed or : failed → proceed to Phase 4.
    • Contains : timeout → the research is still running (the worker keeps polling up to ~2h). Start the Monitor on the same wait_command again to keep waiting. After four consecutive timeouts (4 hours total), tell the user it is still running and give them the full command to fetch it later:
      uv run "${CLAUDE_PLUGIN_ROOT}/scripts/antigravity.py" status --run <run_id> --full
      
      then stop. Never present a timeout / still-running state as the report.

Phase 4: Report the result

Goal: Present the research report.

Actions:

  1. Fetch the full result:
    uv run "${CLAUDE_PLUGIN_ROOT}/scripts/antigravity.py" status --run <run_id> --full
    
    Or read the rendered output_file directly.
  2. Present the report text to the user, preserving any citations and sources.
  3. If the status is failed, report the recorded error and likely cause.

Notes

  • This uses Gemini's managed deep-research agent; it manages its own search and browsing. No sandbox tools or network flags apply here.
  • See ../delegate/references/usage.md for the shared API surface and limits.

Version History

  • f55ac1c Current 2026-10-19 21:03

    更新认证方式,支持 Vertex AI ADC 或 API Key;增强等待机制,增加超时重试逻辑及长时间运行监控;移除 token 限制提示。

  • 6f2a0b2 2026-08-20 10:58

Same Skill Collection

.agents/skills/reflect-skills-from-memory/SKILL.md
.claude/skills/reflect-skills-from-memory/SKILL.md
acpx/skills/use-acpx/SKILL.md
antigravity/skills/delegate/SKILL.md
code-context/skills/code-context/SKILL.md
code-context/skills/get-context/SKILL.md
git-agent/skills/commit-and-push/SKILL.md
git-agent/skills/commit/SKILL.md
git-agent/skills/init/SKILL.md
git-agent/skills/related/SKILL.md
git/skills/commit-and-push/SKILL.md
git/skills/commit/SKILL.md
git/skills/finish-feature/SKILL.md
git/skills/finish-hotfix/SKILL.md
git/skills/finish-release/SKILL.md
git/skills/start-feature/SKILL.md
git/skills/start-hotfix/SKILL.md
git/skills/start-release/SKILL.md
github/skills/create-issues/SKILL.md
github/skills/create-pr/SKILL.md
github/skills/resolve-issues/SKILL.md
github/skills/review-pr/SKILL.md
hardware/skills/use-kicad-cli/SKILL.md
hardware/skills/use-openscad/SKILL.md
interfaces/skills/better-interface/SKILL.md
lark/skills/SKILL.md
marketing/skills/SKILL.md
mattpocock/skills/deprecated/design-an-interface/SKILL.md
mattpocock/skills/deprecated/qa/SKILL.md
mattpocock/skills/deprecated/request-refactor-plan/SKILL.md
mattpocock/skills/deprecated/ubiquitous-language/SKILL.md
mattpocock/skills/engineering/ask-matt/SKILL.md
mattpocock/skills/engineering/bdd/SKILL.md
mattpocock/skills/engineering/code-review/SKILL.md
mattpocock/skills/engineering/codebase-design/SKILL.md
mattpocock/skills/engineering/diagnosing-bugs/SKILL.md
mattpocock/skills/engineering/domain-modeling/SKILL.md
mattpocock/skills/engineering/grill-with-docs/SKILL.md
mattpocock/skills/engineering/implement/SKILL.md
mattpocock/skills/engineering/improve-codebase-architecture/SKILL.md
mattpocock/skills/engineering/prototype/SKILL.md
mattpocock/skills/engineering/research/SKILL.md
mattpocock/skills/engineering/resolving-merge-conflicts/SKILL.md
mattpocock/skills/engineering/setup-matt-pocock-skills/SKILL.md
mattpocock/skills/engineering/tdd/SKILL.md
mattpocock/skills/engineering/to-spec/SKILL.md
mattpocock/skills/engineering/to-tickets/SKILL.md
mattpocock/skills/engineering/triage/SKILL.md
mattpocock/skills/engineering/wayfinder/SKILL.md

Metadata

Files
0
Version
f55ac1c
Hash
b728af07
Indexed
2026-08-20 10:58

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-27 06:20
浙ICP备14020137号-1