◉GEMINI LABJP
●2.5 ROUTE — From today, 12/1, calls to gemini-2.5-pro and 2.5-flash are rerouted to newer models automatically●CLI 0.71.1 — Gemini CLI stable is still v0.71.1, with a 0.73 nightly published on 11/30●INTRO END — Introductory pricing for 3.8, 3.7 and 3.6 Flash ends on 12/31. 30 days left●VERTEX — Developers are asking how to run Gemini CLI with Vertex AI credentials●NEON — Gemini 4 Neon became generally available on 11/18 (paid tier only)●IMAGE TEXT — A new test shows text inside an image can sway Gemini's answer●2.5 ROUTE — From today, 12/1, calls to gemini-2.5-pro and 2.5-flash are rerouted to newer models automatically●CLI 0.71.1 — Gemini CLI stable is still v0.71.1, with a 0.73 nightly published on 11/30●INTRO END — Introductory pricing for 3.8, 3.7 and 3.6 Flash ends on 12/31. 30 days left●VERTEX — Developers are asking how to run Gemini CLI with Vertex AI credentials●NEON — Gemini 4 Neon became generally available on 11/18 (paid tier only)●IMAGE TEXT — A new test shows text inside an image can sway Gemini's answer
Articles/Gemini Basics
◉ Gemini Basics/2026-04-27Intermediate

Mastering Custom Instructions in Gemini Gems — What Actually Works After Two Months of Testing

Custom instructions in Gemini Gems can change how steady a Gem feels. Rebuilding a copyediting Gem taught me a five-part structure and a checking order for when the instructions seem to be ignored.

Gemini99Gems4Custom Instructions4Prompt Engineering5Google AI14

I ran the same draft through my copyediting Gem twice and got two different edits. The first pass only evened out the tone. The second rewrote a phrase I had deliberately left alone.

The instructions had grown past 500 characters by then — "keep a polite tone," "cut redundancy," "write in first person," each added the moment I thought of it. I had assumed that the more precisely I wrote, the more faithfully the Gem would follow.

I only saw how wrong that was the day after I cut the instructions down. Here is the path I took while rebuilding that Gem, and the lines I now draw.

Piling on Rules Made the Gem Hesitate

What I'd like to say first: if it isn't settled what the Gem is for, stacking more conditions won't steady it.

I cut the 500 characters down to two sentences:

Copyedit this post into natural, polite English.
Keep the flow between paragraphs, and don't over-edit.

Responses settled within the day. With ten conditions on the table, I suspect the model was re-deciding every time which one mattered most. With a single axis, there's less room to hesitate.

This is what happened with my copyediting use case, so I may be missing something for yours. Still, when instructions start to grow, I ask "what is this Gem's job, in one sentence?" before adding another line.

The Five Parts That Worked

After a few rebuilds, I found that splitting instructions into five parts made them easier to diagnose.

  1. Role — one stance to reason from, such as "blog editor."
  2. Primary task — something you can say in one sentence: "Copyedit this post."
  3. Constraints — written in positive form: "keep the polite tone." A pile of "don't…" lines pushes the model to think about what to avoid.
  4. Output format — the shape of the answer: "show before and after side by side," "return JSON only."
  5. Context — a clue about what matters, like "the reader is new to development."

Not every Gem needs all five. I use them as a menu: when responses wobble, I check which part is missing.

Write the Role as Behavior

The role is the part people (including past me) tend to treat lightly.

"You are a prompt engineer" leaves the model to decide what that person does. So I add how they behave:

You are a prompt engineer who draws out vague requests.
Before answering, ask three questions to dig into the request.
Finish by confirming: "Is this what you meant?"

Now the model acts as one consistent person — a specialist who values confirmation. Write the behavior, not just the title.

The same goes when a constraint collides with the role. "You are an editor, but don't hurt academic accuracy" pulls in two directions. Folding it into the role — "an editor who puts academic accuracy first while making the text approachable" — reduced the hesitation.

Output Format Moved the Needle Most

Of the five, output format is the one I touch most often.

When I built a Gem to classify incoming text, I started by just asking "which of A, B, or C is it?" The shape of the answer changed every time, so whatever consumed it couldn't be written reliably.

Reply in this JSON format only. No explanatory text.

{
  "category": "A" | "B" | "C",
  "confidence": 0.8,
  "reasoning": "one sentence"
}

Fixing the shape also steadied the judgment itself. Drawing a line around the model's freedom seems to remove the guesswork about which format is preferred.

One failure belongs here too. For a while I wrote "JSON, if possible." The model heard "another format might be fine" and sometimes answered in prose. If a format is required, say it is required. Writing "reply in this format only" was enough to change things.

Three Traps I Fell Into

Instructions that were too long, roles tangled with constraints, formats left as wishes — all three came up above, and all three were mine. In short:

  • Too long: the model had to re-select what really mattered inside a wall of text, and responses swayed. I now treat a long instruction as a sign to revisit the Gem's design.
  • Role mixed with constraints: fold the constraint into the role, as in the editor example.
  • Format as a wish: say "must" and "only."

All three got fixed by cutting or by stating things flatly. I can hardly remember a case that was fixed by adding more.

When It Seems the Instructions Aren't Applied

When a rewrite changes nothing, my first instinct is to blame the wording. The things to check first were elsewhere.

  1. Is the Gem I'm chatting with the one I edited? With several Gems, it's easy to test the wrong one and conclude the instructions don't work. I look at the Gem name at the top first.
  2. Was it saved? I reopen the editor and confirm the contents are really there.
  3. Do the instructions contradict each other? "Sound professional" and "sound friendly" rarely hold together. I reread for pairs like that.
  4. Is the conversation overriding the Gem? Even if the Gem says JSON, a later "just answer in plain text" can win. I treat that as by design.
  5. Is there a length limit? The input field has a cap, and the number can change. If I've packed too much in, the tail may stop mattering — I check what the screen shows.

Clearing the cache or trying another browser is worth a shot as a last resort. In my case, steps 1 and 2 solved most of it. Doubting the instructions can wait until after that.

For signs that a Gem needs a proper rewrite, I've gathered notes in When to Rewrite a Gemini Gems Custom Instruction.

Change One Sentence at a Time

Instructions aren't done once they're written.

Once a week I reread the response logs of the Gems I run. When I spot a pattern — "it drifts on this kind of input" — I add exactly one sentence.

My copyediting Gem went through a stretch where input mixing polite and plain styles produced output that mixed them too. One added line — "If the input is polite, keep everything polite and fix plain-form sentences" — cleared it up.

One change at a time. Change several at once and you can't tell which helped and which hurt. Right after a change, responses can feel a little unsettled, so I wait a few days before the next sentence. That slowness turned out to be the fastest route.

Starter Templates

Here are two starting points. Please don't use them as they are; trim them to your own use.

Copyediting

Role: blog editor
Task: copyedit the input into natural, polite English.
Constraint: keep the author's phrasing; no heavy rewrites.
Output: before and after side by side, with a short reason for each change.
Context: the reader is new to development.

Classification

Role: inquiry triage
Task: classify the input as A, B, or C.
Output: JSON only (category / confidence / reasoning).

Both keep the five parts to one line each. When a template starts to grow, I check whether one of those lines is carrying two jobs.

What to Do in the First Week

When you build your next Gem, I'd suggest starting with the five parts, one short line each. A week later, reread the response logs and add a single sentence where it drifted.

Instructions aren't grown by adding; they're cut, stated flatly, and fixed one sentence at a time. I intend to keep to that line, however many Gems I end up with.

Share

Thank You for Reading

Gemini Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

If you found this article helpful, a small tip ($1.50) would mean a lot to us. Your support helps keep this site ad-free and covers server and hosting costs.

Related Articles

◉ Gemini Basics2026-07-01
Selling Gemini Gems as Enterprise Prompt Products — Turning Custom Instructions into Monthly Contracts
A complete strategy for indie developers and small studios who want to package and sell Gemini Gems as enterprise prompt products. Covers design framework, pricing, contract models, support operations, and customer success case studies — written from real operating experience.
◉ Gemini Basics2026-10-27
Gemini for Windows Opens with Alt + Space. Count What Already Owns That Key Before You Install
The Gemini app for Windows is summoned with Alt + Space, and its help page says nothing about what to do when the key does nothing. Here is what to count before installing, and a five-step order for the day it fails.
◉ Gemini Basics2026-10-24
When Model Names Stop Making Sense: Reading Them in Four Parts
How to read a long Gemini model name like gemini-3.8-flash-lite-tts as generation, line, variant and release stage, plus a short script and where to check words you can't read.