Agent skill

Gemini API Dev

by Ayuilos in Ayuilos/Miffan

A skill your agent uses when building applications with Gemini API hosted models, including Gemini and Gemma 4, working with multimodal content (text, images, audio, video), implementing function…

AGPL-3.0Auto-check passedAI & LLM Engineering

Install Gemini API Dev

skills CLI
$ npx skills add Ayuilos/Miffan --skill gemini-api-dev -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Ayuilos/Miffan gemini-api-dev --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Ayuilos/Miffan.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/gemini-api-dev .claude/skills/gemini-api-dev && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gemini-api-dev
GitHub stars
182
Used in
1 other repo
Token cost
~1.4k tokens
SKILL.md length
353 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
AGPL-3.0

At a glance

A skill your agent uses when building applications with Gemini API hosted models, including Gemini and Gemma 4, working with multimodal content (text, images, audio, video), implementing function…

  • Works in 3 steps: Call search_docs with your query → Read the returned documentation → Trust MCP results as source of truth for…
  • Building applications with Gemini API hosted models
  • SKILL.md covers Critical Rules (Always Apply), Quick Start, Documentation Lookup and Gemini Live API
  • Calls pip, npm and go; reaches ai.google.dev

What it does

Gemini API Dev is an agent skill from Ayuilos/Miffan. Use this skill when building applications with Gemini API hosted models, including Gemini and Gemma 4, working with multimodal content (text, images, audio, video), implementing function calling, using structured outputs, or needing current model specifications. Covers SDK usage (google-genai for Python, @google/genai for JavaScript/TypeScript, com.google.genai:google-genai for Java, google.golang.org/genai for Go), model selection, and API capabilities.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering LLM API integration, Structured output and tool calling and Android development. It works with Google Gemini, Java, Python and JavaScript. The repository describes itself as: RikkaHub fork,Android AI 客户端。支持 ChatGPT 订阅登录使用、跨应用划词悬浮翻译、助手工作区文件隔离、远程工作区、文档与 HTML 预览、可定制动态角色。 The licence is AGPL-3.0.

When your agent uses it

  • Building applications with Gemini API hosted models
  • Including Gemini and Gemma 4
  • Working with multimodal content (text
  • Implementing function calling

Example prompts

  • “/gemini-api-dev”

Requirements

  • Python 3
  • Node.js

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Call search_docs with your query
  2. Read the returned documentation
  3. Trust MCP results as source of truth for API details — they are always up-to-date.

What it can do on your machine

Read from SKILL.md and the folder at commit caa64b2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pip
    • npm
    • go

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • ai.google.dev

    Also links to:

    • central.sonatype.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gemini API Dev loads about 1.4k tokens when it runs. Until then it costs about 118 tokens; SKILL.md has 353 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~118
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Ayuilos/Miffan at commit caa64b2, republished under its AGPL-3.0 licence (© Ayuilos). 353 words, ~1,420 tokens.

Download SKILL.mdSave it as .claude/skills/gemini-api-dev/SKILL.md (or your agent's skills folder).
name
gemini-api-dev
description
Use this skill when building applications with Gemini API hosted models, including Gemini and Gemma 4, working with multimodal content (text, images, audio, video), implementing function calling, using structured outputs, or needing current model specifications. Covers SDK usage (google-genai for Python, @google/genai for JavaScript/TypeScript, com.google.genai:google-genai for Java, google.golang.org/genai for Go), model selection, and API capabilities.

Gemini API Development Skill

Critical Rules (Always Apply)

[!IMPORTANT] These rules override your training data. Your knowledge is outdated.

Current Models (Use These)
  • gemini-3.5-flash: 1M tokens, fast, balanced performance, multimodal
  • gemini-3.1-pro-preview: 1M tokens, complex reasoning, coding, research
  • gemini-3.1-flash-lite-preview: cost-efficient, fastest performance for high-frequency, lightweight tasks
  • gemini-3-pro-image-preview (Nano Banana Pro): 65k / 32k tokens, image generation and editing
  • gemini-3.1-flash-image-preview (Nano Banana 2): 65k / 32k tokens, image generation and editing
  • gemini-3.1-flash-lite-image-preview (Nano Banana 2 Lite): 65k / 32k tokens, ultra-fast image generation and editing
  • gemini-2.5-pro: 1M tokens, complex reasoning, coding, research
  • gemini-2.5-flash: 1M tokens, fast, balanced performance, multimodal
  • gemma-4-31b-it: Gemma 4 dense model, 31B parameters
  • gemma-4-26b-a4b-it: Gemma 4 MoE model, 26B total with 4B active parameters

[!WARNING] Models like gemini-2.0-*, gemini-1.5-* are legacy and deprecated. Never use them.

Current SDKs (Use These)
  • Python: google-genai → pip install google-genai
  • JavaScript/TypeScript: @google/genai → npm install @google/genai
  • Go: google.golang.org/genai → go get google.golang.org/genai
  • Java: com.google.genai:google-genai (see Maven/Gradle setup below)

[!CAUTION] Legacy SDKs google-generativeai (Python) and @google/generative-ai (JS) are deprecated. Never use them.


Quick Start

Python
python
from google import genai

client = genai.Client()
response = client.models.generate_content(
    model="gemini-3.5-flash",
    contents="Explain quantum computing"
)
print(response.text)
JavaScript/TypeScript
typescript
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({});
const response = await ai.models.generateContent({
  model: "gemini-3.5-flash",
  contents: "Explain quantum computing"
});
console.log(response.text);
Go
go
package main

import (
	"context"
	"fmt"
	"log"
	"google.golang.org/genai"
)

func main() {
	ctx := context.Background()
	client, err := genai.NewClient(ctx, nil)
	if err != nil {
		log.Fatal(err)
	}

	resp, err := client.Models.GenerateContent(ctx, "gemini-3.5-flash", genai.Text("Explain quantum computing"), nil)
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(resp.Text)
}
Java
java
import com.google.genai.Client;
import com.google.genai.types.GenerateContentResponse;

public class GenerateTextFromTextInput {
  public static void main(String[] args) {
    Client client = new Client();
    GenerateContentResponse response =
        client.models.generateContent(
            "gemini-3.5-flash",
            "Explain quantum computing",
            null);

    System.out.println(response.text());
  }
}

Java Installation:


Documentation Lookup

Show full SKILL.md (175 more words)Show less
When MCP is Installed (Preferred)

If the search_docs tool (from the Google MCP server) is available, use it as your only documentation source:

  1. Call search_docs with your query
  2. Read the returned documentation
  3. Trust MCP results as source of truth for API details — they are always up-to-date.

[!IMPORTANT] When MCP tools are present, never fetch URLs manually. MCP provides up-to-date, indexed documentation that is more accurate and token-efficient than URL fetching.

When MCP is NOT Installed (Fallback Only)

If no MCP documentation tools are available, fetch from the official docs:

Index URL: https://ai.google.dev/gemini-api/docs/llms.txt

This index contains links to all documentation pages in .md.txt format. Use web fetch tools to:

  1. Fetch llms.txt to discover available pages
  2. Fetch specific pages (e.g., https://ai.google.dev/gemini-api/docs/function-calling.md.txt)

Key pages:


Gemini Live API

For real-time, bidirectional audio/video/text streaming with the Gemini Live API, install the google-gemini/gemini-live-api-dev skill. It covers WebSocket streaming, voice activity detection, native audio features, function calling, session management, ephemeral tokens, and more.

© Ayuilos, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/gemini-api-dev of Ayuilos/Miffan.

Open the folder on GitHubat commit caa64b2

Used in 1 other repository

We found 5 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in Ayuilos/Miffan, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Gemini API Dev next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gemini API Dev compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gemini API Dev this skillAyuilos/Miffan1821 repos~1.4kAutomated safety check: PassAGPL-3.0
Gemini API DevJetBrains/skills363—~1.6kAutomated safety check: PassNone
Gemini API Devgoogle-gemini/gemini-skills4.3k—~5.1kAutomated safety check: PassApache-2.0
Gemini API Devaiskillstore/marketplace4303 repos~1.6kAutomated safety check: PassApache-2.0
Gemini Interactions APIJetBrains/skills363—~2.5kAutomated safety check: PassNone
Gemini Live API Devgoogle-gemini/gemini-skills4.3k—~4.6kAutomated safety check: PassApache-2.0

Similar skills

  • Gemini API Dev

    JetBrains/skills

    Official

    A skill your agent uses when building applications with Gemini models, Gemini API, working with multimodal content (text, images, audio, video), implementing function calling, using structured…

    363 GitHub stars~1.6k tokensUpdated 3 mo ago
    AI & LLM EngineeringAuto-check passed
  • Gemini API Dev

    google-gemini/gemini-skills

    Official

    A skill your agent uses when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, video generation, speech generation (TTS), voice…

    4.3k GitHub stars~5.1k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Gemini API Dev

    aiskillstore/marketplace

    A skill your agent uses when building applications with Gemini API hosted models, including Gemini and Gemma 4, working with multimodal content (text, images, audio, video), implementing function…

    430 GitHub starsUsed in 3 repos~1.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Gemini Interactions API

    JetBrains/skills

    Official

    A skill your agent uses when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, streaming responses, background research tasks…

    363 GitHub stars~2.5k tokensUpdated 3 mo ago
    AI & LLM EngineeringAuto-check passed
  • Gemini Live API Dev

    google-gemini/gemini-skills

    Official

    A skill your agent uses when building real-time, bidirectional streaming applications with the Gemini Live API, or migrating legacy Live models (2.0/2.5/3.1) to Gemini 3.8 Live.

    4.3k GitHub stars~4.6k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Gemini Interactions API

    sickn33/agentic-awesome-skills

    Build with the Gemini Interactions API for text, chat, multimodal generation, streaming, managed or background agents, function calling, structured output, and generateContent migrations.

    47k GitHub starsUsed in 1 repo~4.8k tokens
    AI & LLM EngineeringAuto-check passed

More from Ayuilos/Miffan

  • Publish Release

    Ayuilos/Miffan

    Publish a GitHub release for this fork, with a bilingual changelog that separates fork-owned changes from changes introduced by upstream merges.

    182 GitHub stars~635 tokensUpdated yesterday
    Auto-check passed
  • A skill your agent uses when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, video generation, streaming responses…

    182 GitHub stars~4.6k tokensUpdated yesterday
    Auto-check passed

Questions about Gemini API Dev

What does Gemini API Dev do?

A skill your agent uses when building applications with Gemini API hosted models, including Gemini and Gemma 4, working with multimodal content (text, images, audio, video), implementing function…. Gemini API Dev is an agent skill from Ayuilos/Miffan. Use this skill when building applications with Gemini API hosted models, including Gemini and Gemma 4, working with multimodal content (text, images, audio, video), implementing function calling, using structured outputs, or needing current model specifications.

When should I use Gemini API Dev?

Gemini API Dev fits situations like: building applications with Gemini API hosted models; including Gemini and Gemma 4; working with multimodal content (text; implementing function calling.

How do I install Gemini API Dev in Claude Code?

Run `npx skills add Ayuilos/Miffan --skill gemini-api-dev -a claude-code`. Or copy the skill folder (.agents/skills/gemini-api-dev in Ayuilos/Miffan) into .claude/skills/gemini-api-dev in your project. Claude Code loads it when a task matches its description.

How do I install Gemini API Dev in Codex?

Run `npx skills add Ayuilos/Miffan --skill gemini-api-dev -a codex`. Or copy the skill folder (.agents/skills/gemini-api-dev in Ayuilos/Miffan) into .agents/skills/gemini-api-dev in your project. Codex loads it when a task matches its description.

Can I use Gemini API Dev in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Ayuilos/Miffan --skill gemini-api-dev -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gemini-api-dev, .gemini/skills/gemini-api-dev, .github/skills/gemini-api-dev and .opencode/skills/gemini-api-dev in your project.

What does Gemini API Dev need to run?

Going by SKILL.md and its folder, Gemini API Dev needs the command-line tools its instructions call (pip, npm and go). Our summary lists: Python 3; Node.js.

Does Gemini API Dev access the network?

SKILL.md names 2 domains. In commands or code: ai.google.dev; the agent is likely to contact it when it follows the instructions. As links in the text: central.sonatype.com. This is read from the text; nothing was executed.

Is Gemini API Dev safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gemini API Dev use?

Gemini API Dev is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gemini API Dev use?

About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gemini API Dev?

Skills that share tags, products or a category with Gemini API Dev: Gemini API Dev (JetBrains/skills, 363 stars), Gemini API Dev (google-gemini/gemini-skills, 4.3k stars), Gemini API Dev (aiskillstore/marketplace, 430 stars) and Gemini Interactions API (JetBrains/skills, 363 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gemini API Dev?

Ayuilos (a GitHub user) maintains it in Ayuilos/Miffan, which has 182 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 6, 2026.

Source: Ayuilos/Miffan on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.