跪拜 Guibai
← Back to the summary

Six Gemini Slash Commands That Go Beyond /plan and /goal

A couple of days ago, while I was having Gemini execute a task, it suddenly wrote a small line after finishing.

"You can use the /learn command to save this image-hosting habit."

image.png

I found this quite interesting; the /learn command isn't something you see every day.

Then I entered /learn, and discovered it directly distilled my requirement into an on-demand Skill.

/learn execution completes, writing to GEMINI.md and an on-demand Skill

You can see that after I entered /learn, Gemini did three things: wrote to the global GEMINI.md to enforce image-hosting uploads; added a drawing skill, using a decent architecture-diagram color scheme skill I cooked up; and added a GitHub article writing style preference skill.

Then when you start a new session or run /skills reload in the CLI, it loads these rules.

Speaking of making AI remember your habits, many people might say other Agents have this too, but the underlying approaches of the three differ quite a bit:

Comparison of ChatGPT, Claude Code, and Gemini /learn memory mechanisms

Beyond that, I found several other interesting commands in Gemini.

/grill-me

This is one I highly recommend.

You've probably encountered this scenario: you have a vague idea in your head but can't fully describe it; if you send it to an Agent, its output often differs wildly from what you want.

At this point, try /grill-me. With this command, the Agent doesn't just start writing; instead it interviews you, asking one by one about vague details and trade-offs, clarifying all the pitfalls before doing anything. Whether you're defining a product plan or choosing an angle for a long-form article, it's extremely useful.

For example, I asked Gemini 4 Neon about how to develop a 3A game.

Gemini 4 Neon asks me detailed questions about my game development plan.

/grill-me interactive questioning around 3A game plan

After roughly ten rounds of questions via /grill-me, it finally produced a conclusion.

/grill-me ten-round questioning converges on budget and timeline boundaries

The final conclusion was that I could not make a 3A blockbuster with 1 member + a budget under 100k + no outsourcing + a development cycle of 2-4 years.

/grill-me output core feasibility conclusion for 3A game

Finally, Gemini 4 Neon still gave very detailed advice; here's the whole grill-me process for everyone.

/grill-me full record of ten rounds and feasibility assessment

A genuine takeaway after using it: many people debate whether to chain /grill-me and /plan. From my testing, /grill-me itself, after the questioning, directly produces a complete conclusion report with boundary constraints, technical trade-offs, and an implementation roadmap, so for daily use I don't think you need to add /plan. Only for large multi-day projects where you need to keep an implementation checklist tracked in the project for a long time is it necessary to chain /plan.

/run-workflow

This is a command that uses Python code to orchestrate multiple Agents, i.e., dynamic workflows.

Usually, subagents are assigned entirely by the large model, but /run-workflow directly has the Agent write a Python orchestration script on the fly and hand it to the underlying engine to run.

For example, I used /run-workflow to do a round of parallel interactive review on one of my previous game projects; this task directly spun up 8 subagents running in parallel.

/run-workflow concurrently launching 8 module review subagents

After it finished, the review plan was extremely high quality; I could follow this execution plan for distributed optimization.

/run-workflow output Three.js comprehensive technical audit report

This run-workflow review centered on 8 Agents consumed a modest amount of quota.

Token breakdown for 8-Agent concurrent review and weekly quota conversion

/swarm

After discussing /run-workflow, I must mention /swarm, which also involves multiple Agents but is positioned completely differently.

If run-workflow is a deterministic pipeline where steps are strictly defined by a Python script, /swarm is more like assembling a research-and-development group with a work chat: members use @mention to directly communicate, question, and accept each other's work; idle members automatically enter a waiting state that doesn't burn tokens, only waking when @'d.

To see its real operation, I opened a new session and did an analysis test on the project's snow scene and torch rendering modules:

/swarm shared message board and multi-model collaboration test view

From the image above, the main coordinator coordinator instantly brought up three roles: snow-analyst, torch-analyst, and verifier, all running on Gemini 4 Hydrogen xhigh, plus a watchdog monitor to prevent deadlocks, which the system assigned Claude Sonnet 5.5. It stays silent usually and only appears when the whole team falls into an infinite loop.

Point-to-point relay, no passing through the coordinator: the coordinator posted rounds 1-4 to the message board and then finished; two minutes later, torch-analyst and snow-analyst directly @verifier on the message board to submit.

If the task boundary is clear and you need stable batch processing and a fixed pipeline, use /run-workflow; if requirements are open and you need dev ↔ review ↔ testing back-and-forth, use /swarm.

/btw

One-sentence summary: can interrupt anytime, but never interrupts the main task.

btw has a very obvious advantage: it instantly forks a read-only branch from the current context and replies in the background, neither interrupting the running main task nor writing into the main conversation history.

That means using btw does not pollute your context.

It's great for casual questions and digging into side details.

For example, in the screenshot below, the main Agent is creating a repair plan, and I opened a /btw to ask about the model collision strategy mentioned earlier.

/btw forking a read-only Side Question branch while the main task runs

You can see that the round of request just made with /btw is listed as Side Questions.

Side Questions archived independently in the right-side Overview panel

It wasn't merged into the main context.

I digged into the underlying transcript log of the main session: the main Agent was continuously scanning source code and generating a repair plan, completely uninterrupted by this question, and no record of "collision model strategy" was mixed into the log; meanwhile, the /btw Side Questions fully shared the context up to that moment.

/generative_ui

One-sentence summary: can directly generate interactive HTML components with sliders and state toggles in the chat stream or sidebar.

Perfect for interactive prototypes.

I tested it in a separate session: combining the previous Web 3D game optimization scenario, I directly used /generative_ui to generate an inline interactive prototype.

/generative_ui test-generated Three.js frame budget interactive simulator

This way, dry explanations become interactive prototypes. Previously, asking AI to discuss performance trade-offs or state transitions would only yield a big block of dry text and formulas; with /generative_ui, reviewing options or quickly validating prototypes is very convenient.

Final Thoughts

Besides the well-known /plan, /goal, /compact, the 6 commands above are the ones I found interesting.

Here's a quick reference chart to help everyone identify and use them faster.

Gemini common advanced commands quick reference

My personal suggestion: start with /grill-me and /btw; they're almost zero-barrier but give the biggest daily boost. When you hit large projects with dozens of files, bring out /run-workflow and /swarm for maximum efficiency.

Comments

Top 1 from juejin.cn, machine-translated. The original thread is authoritative.

HelloWorker

Like