gsearch
Skill0 starsChanged 5 months agoMITView on GitHub
Use when the user explicitly asks to search Google or look something up on Google (e.g. says "Googleで調べて" / "Googleで検索して"). Runs a Gemini google_search grounded search: Gemini forms its own search queries, searches Google, and returns a grounded answer with the queries it used and source URLs. Invoke on request — not as an automatic replacement for the built-in WebSearch. Reuses GEMINI_API_KEY (AI Studio) or GOOGLE_APPLICATION_CREDENTIALS (Vertex AI SA key); no extra key, no MCP.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- dqtx760/skills-managetheir own version, first seen May 27, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- dqtx760/skills-manage★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- gooseSkill
- jetdb-cliSkill
- loki-activitySkill
- tgltrkSkill
The file
Files
gsearch — Gemini(google_search) で web 検索
自然文の質問を投げると、Gemini が自分で検索キーワードを組んで Google を検索し、グラウンディングされた回答+使った検索クエリ+ソースURL を返す。内蔵 WebSearch の代替(品質・クエリ自動生成で優れる)。
前提
- node v18+(global fetch / webcrypto / AbortSignal.timeout を使う)。
- 認証情報を次のいずれかで env にセットする(この skill はキーを保持しない。env から読むだけ):
GEMINI_API_KEY… AI Studio キー(優先される)。GOOGLE_APPLICATION_CREDENTIALS… Vertex AI のサービスアカウント JSON のパス。PROJECT_IDは SA キー JSON のproject_idから自動取得する。GEMINI_LOCATIONでリージョン上書き(既定us-central1)。
- 両方ある場合は AI Studio が優先される。両方未設定だとエラー終了する。
使い方
plugin install 経由なら gsearch コマンドが PATH に乗る:
gsearch "<検索したい質問(自然文でよい)>"任意でモデルを第 2 引数に渡せる:
gsearch "<質問>" gemini-2.5-flash- 質問は自然文でよい。検索キーワードは Gemini が咀嚼して自動で組む。
- 既定モデルは経路ごとに分けている。AI Studio 経路は
gemini-3.5-flash、Vertex AI 経路はgemini-2.5-flash(Vertex AI 側にgemini-3.5-flashが存在しないため)。両方ともGEMINI_MODELenv または第 2 引数で上書きできる。 - 出力は stdout(回答 → Gemini が使った検索クエリ → ソースURL)。
tailで切らず全文を扱う。 - 所要 ~15〜20秒(grounding のため)。タイムアウトは 120 秒に設定済み。Vertex AI 経路では追加で access token 取得 (約 1〜2 秒) が入る。
挙動
- Gemini API の google_search グラウンディングを単発で1回呼ぶ(ループしない)。
- AI Studio 経路: tools
[{ google_search: {} }]。 - Vertex AI 経路: tools
[{ googleSearch: {} }](camelCase)。SA キー JSON から RS256 JWT を webcrypto で自前署名し、oauth2.googleapis.com/tokenで access token を交換する(外部 npm 依存なし)。
- AI Studio 経路: tools
- ソースは grounding の redirect URL を実URLに解決して表示(best-effort)。
いつ使うか
- 「Googleで調べて」等、ユーザーが明示的に Google 検索を求めたときに使う。
- 内蔵 WebSearch の自動全置換ではない。指示があったら本 skill で検索する。
- 用途: 最新情報・事実確認の web 検索、根拠付き回答、セカンドオピニオン。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

