跪拜 Guibai
← All articles
Backend · Programmer · Artificial Intelligence

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

By cxuanAI ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

These commands close practical gaps in AI-assisted development: /learn turns scattered preferences into versioned rules, /grill-me forces requirement clarity before code generation, and the two multi-agent modes show token-efficient ways to parallelize work. The token breakdown for /run-workflow demonstrates a concrete cost advantage over single-threaded context-heavy sessions.

Summary

A working developer walks through six Gemini slash commands that solve everyday agent friction. /learn automatically routes your habits into a global GEMINI.md and on-demand SKILL.md files, with review confirmation before saving. /grill-me replaces vague prompts with an interviewer-style loop that clarifies boundaries and trade-offs; in a test it took ten rounds to conclude a 3A game was infeasible under a one-person, under-100k budget and 2-4 year timeline.

/run-workflow lets the agent write a Python orchestration script to launch parallel subagents. In a real audit, 8 concurrent reviewers ran on a cheaper model tier, cutting token consumption to about 1.5-2% of a weekly quota. /swarm, by contrast, runs a multi-agent team on a shared message board with @mentions, letting idle members sleep and wake only when needed. /btw forks a read-only side branch for quick questions that don't disturb the main task or pollute its context, and /generative_ui generates interactive HTML prototypes directly in the chat.

The post includes a comparison of how ChatGPT, Claude Code, and Gemini handle memory persistence, and offers concrete usage advice: start with /grill-me and /btw for daily gains, then bring in /run-workflow and /swarm for large multi-file projects.

Takeaways
— /learn writes always-apply rules to global GEMINI.md and splits task-specific flows into on-demand SKILL.md files, with review before saving.
— /grill-me conducts an interview-style loop; in the example, ten rounds clarified a 3A game's budget and timeline, concluding it was infeasible under the given constraints.
— /run-workflow generates a Python orchestration script to run parallel subagents; a test with 8 reviewers used 21 rounds on Gemini 4 Neon and 73 rounds on Gemini 4 Hydrogen, consuming about 1.5-2% of the weekly quota.
— /swarm uses a shared message board with @mentions; idle agents sleep and wake only when @'d, and a monitor role can be assigned to a different model to prevent deadlocks.
— /btw forks a read-only side branch that shares context up to that moment, returning answers without interrupting the main task or polluting its transcript.
— /generative_ui produces interactive HTML components like sliders and toggles directly in the chat, useful for rapid prototypes.
Conclusions

The comparison of memory mechanisms exposes a design spectrum: ChatGPT stores scattered personal habits, Claude Code flattens rules into a single markdown file, and Gemini's /learn auto-routes by scope and load timing, which is a more scalable approach for growing project conventions.

/run-workflow's token efficiency comes from avoiding context snowballing in each subagent, not just from concurrency; the numbers show parallel lightweight reviewers can beat a single heavy session on cost.

The choice between /run-workflow and /swarm is a control trade-off: deterministic pipelines suit well-defined batch tasks, while swarm-style collaboration shines when requirements are open and need back-and-forth between roles.

/btw's read-only side branch is a pragmatic solution to context pollution; tracking Side Questions separately preserves main-context integrity without sacrificing access to the working state.

Concepts & terms
GEMINI.md
A global file where Gemini's /learn command stores always-applicable rules, such as mandatory image-hosting behavior or style preferences.
SKILL.md
A per-task skill file that /learn creates for specific workflows; it is loaded on demand and does not occupy context normally.
Dynamic workflow
A /run-workflow mode where the agent writes a Python orchestration script to coordinate multiple subagents in a programmable pipeline.
Swarm
A /swarm mode where multiple agents collaborate via a shared message board and @mentions, with idle agents sleeping to save tokens.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗