Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

gemini-citationGemini citation 搜索

Agent Skill

gemini-citation 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

6,605

周安装

278

GitHub Stars

公开资料未说明

下载量

2,313
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gemini-citation(Gemini citation 搜索)
来源仓库:https://github.com/guoxh/gemini-citation
安装命令:
openclaw skills install gemini-citation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install gemini-citation

简介

gemini-citation 基于 Gemini 科学引文功能,提供准确 APA 格式参考文献。

  • 适合学术研究与循证写作,支持关键词驱动的文献定位。
  • 安装后按文档设置搜索参数,获取结构化引用列表。
  • 注意搜索结果的时效性与权威性,交叉验证关键数据来源。
  • 适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
gemini-citation
description
Conduct evidence-based research with exact, accurate APA citations using the Gemini API's 'scientific citation' (Google Search grounding) feature. Use when Xiaoyan (Research Assistant) or others need highly factual, cited research summaries, literature reviews, or exact evidence with inline APA citations tied to real web sources.
metadata
{ "openclaw": { "emoji": "📚", "requires": { "bins": ["python3"], "env":["GEMINI_API_KEY"] }, "primaryEnv": "GEMINI_API_KEY" } }

Gemini Citation

Overview

This skill leverages the Gemini API's Google Search Grounding feature to return heavily factual, exact evidence directly tied to search results, along with properly formatted APA inline and trailing citations. It guarantees that generated facts are grounded in live web references rather than model hallucinations.

Quick Start

You can use the provided script to query the Gemini API with search grounding enabled.

1. Requirements

Ensure the GEMINI_API_KEY is set in your environment and the required dependencies are installed:

export GEMINI_API_KEY="your-api-key"
pip install -r requirements.txt

Or install manually:

pip install google-genai

Note: You can get your API key from Google AI Studio.

2. Running a Research Query

Execute the gemini_cite.py script with your research topic. The script automatically forces the Gemini API to use Google Search Grounding and requests strict APA formatting.

Recommended: Use gemini-2.5-flash for faster results:

python scripts/gemini_cite.py "Recent breakthroughs in solid-state battery technology" --model gemini-2.5-flash

Or use gemini-2.5-pro for more detailed responses:

python scripts/gemini_cite.py "Recent breakthroughs in solid-state battery technology" --model gemini-2.5-pro

To see structured JSON output containing the exact source titles and URIs used by the model:

python scripts/gemini_cite.py "Recent breakthroughs in solid-state battery technology" --format json

How It Works

  1. Google Search Grounding: The API call is configured with tools=[{"google_search": {}}]. This forces the model to fetch live information before generating a response.
  2. Strict APA Instructions: The script's prompt injects an explicit requirement to use "Author, Year" inline citations and to list all references in proper APA format at the end.
  3. Grounding Metadata Verification: The script extracts the grounding_chunks from the Gemini API response metadata and displays the exact source URLs and titles that the model used, ensuring that you have an auditable list of sources alongside the generated APA citations.

When to Use

  • Literature Reviews: When Xiaoyan is tasked with gathering current state-of-the-art information on a technical or scientific topic.
  • Fact-Checking: When you need exact evidence and verifiable URLs rather than general knowledge.
  • Academic Writing: When strict APA formatting and inline citations are a requirement for the final output.

Resources

scripts/

  • gemini_cite.py: A Python CLI tool that handles the Gemini API call, enables Google Search grounding, enforces APA citations, and parses the grounding metadata to output verifiable source links.

Advanced Usage

If you prefer to write your own API scripts, the core pattern for enabling exact citations with google-genai is:

from google import genai
from google.genai import types

client = genai.Client(api_key=os.environ.get("GEMINI_API_KEY"))
response = client.models.generate_content(
    model='gemini-2.5-flash',  # Use flash for speed, or pro for detail
    contents='Your research query here...',
    config=types.GenerateContentConfig(
        tools=[{"google_search": {}}]
    )
)

# Access sources
for chunk in response.candidates[0].grounding_metadata.grounding_chunks:
    print(chunk.web.title, chunk.web.uri)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.52%
按下载量换算1,816

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills