AI Learn
Google · Gemini Tutorial

Gemini: Create a reusable custom Gem in Gemini

Turn a repeated prompt pattern into a reusable Gem with stable instructions, optional knowledge and a test loop.

Reviewed September 19, 2026Independent tutorialFeatures may vary
Not official support. AI Learn is an independent education site and is not affiliated with Google. Check the provider’s current documentation for plan-specific limits, pricing and feature availability.
Before you start

A Gem is useful for repeated tasks where the role, rules or output format stay relatively stable. Some creation features are web-only or account-dependent.

1. Start from a repeated task

Choose a task you already perform several times, such as editing, briefing, study review or a recurring analysis format.

2. Create a new Gem

Open Gems / Explore Gems and create a new Gem. Give it a name that describes the job rather than a personality.

3. Write durable instructions

Specify task, context, format, quality rules and what the Gem should do when information is missing.

4. Add knowledge only when it is truly reusable

Attach stable reference files when they should guide many future chats. Keep temporary case-specific material out of the permanent knowledge set.

5. Preview with edge cases, then save

Test a normal example, a missing-information example and a difficult example. Revise the Gem instructions before saving.

Try this prompt

Gem instructions: Job: [repeat task]. Audience: [audience]. Always ask for [missing critical inputs] before starting. Use this output structure: [format]. Use knowledge files as references, but flag conflicts. Never invent missing numbers, dates or citations.

Common mistakes

Turning every one-off prompt into a Gem; placing temporary client data in permanent knowledge; making instructions so long that priorities conflict; never testing failure cases.

Finish check

A good Gem should make a repeated task faster while remaining predictable when the input is incomplete or unusual.

开始之前

当角色、规则或输出格式长期稳定时,Gem 很适合处理重复任务。部分创建能力可能只在网页端或特定账号提供。

1. 从真正重复的任务开始

选择你已经会反复做的任务,例如改稿、简报、学习复习或固定格式分析。

2. 创建一个新 Gem

进入 Gems / Explore Gems,新建 Gem。名称最好描述“它负责什么工作”,而不是只写一个人格。

3. 写长期有效的说明

写清任务、背景、输出格式、质量规则,以及信息不足时应该怎么处理。

4. 只有长期复用的资料才加入 Knowledge

真正会被很多未来对话反复使用的稳定资料才放进 Knowledge;一次性材料留在具体对话里。

5. 用边界案例预览,再保存

至少测试一个正常案例、一个信息缺失案例和一个困难案例。根据结果修改说明后再保存。

可以直接套用的提示词

Gem 说明:任务:[重复任务]。读者:[受众]。开始前如果缺少[关键输入]必须先指出。固定输出结构:[格式]。Knowledge 文件作为参考;发现冲突要标出。不要编造缺失的数字、日期或引用。

常见错误

每个一次性提示词都做成 Gem;把临时客户资料放进长期 Knowledge;说明太长导致优先级互相冲突;只测顺利案例,不测失败情况。

完成检查

一个好的 Gem 应该让重复任务更快,同时在输入不完整或异常时仍然行为可预测。

開始之前

當角色、規則或輸出格式長期穩定時,Gem 很適合處理重復任務。部分建立能力可能只在網頁端或特定帳號提供。

1. 從真正重復的任務開始

選擇你已經會反復做的任務,例如改稿、簡報、學習復習或固定格式分析。

2. 建立一個新 Gem

進入 Gems / Explore Gems,新建 Gem。名稱最好描述“它負責什麼工作”,而不是只寫一個人格。

3. 寫長期有效的說明

寫清任務、背景、輸出格式、品質規則,以及資訊不足時應該怎麼處理。

4. 只有長期重複使用的資料才加入 Knowledge

真正會被很多未來對話反復使用的穩定資料才放進 Knowledge;一次性材料留在具體對話里。

5. 用邊界案例預覽,再保存

至少測試一個正常案例、一個資訊缺失案例和一個困難案例。根據結果修改說明後再保存。

可以直接套用的提示詞

Gem 說明:任務:[重復任務]。讀者:[受眾]。開始前如果缺少[關鍵輸入]必須先指出。固定輸出結構:[格式]。Knowledge 檔案作為參考;發現衝突要標出。不要編造缺失的數字、日期或引用。

常見錯誤

每個一次性提示詞都做成 Gem;把臨時客戶資料放進長期 Knowledge;說明太長導致優先級互相衝突;只測順利案例,不測失敗情況。

完成檢查

一個好的 Gem 應該讓重復任務更快,同時在輸入不完整或異常時仍然行為可預測。

Official references

Check current product details at the source

Related practical tutorials

Continue with another single-task workflow.

All tutorials →