cd /news/ai-tools/gemini-write-delegate-drafting-rewri… · home topics ai-tools article
[ARTICLE · art-128361] src=gist.github.com ↗ pub= topic=ai-tools verified=true sentiment=· neutral

gemini-write: Delegate drafting, rewriting, or proofreading to Gemini through authenticated Antigravity CLI (agy). Use when the user requests Gemini writing or a comparison against Gemini output.

A developer published a skill called gemini-write that delegates drafting, rewriting, and proofreading tasks to Gemini via the authenticated Antigravity CLI (agy). The skill instructs agents to prepare UTF-8 prompts in separate sections, run agy from a fresh temporary directory with slash commands disabled, and default to the gemini-3.8-flash-medium model unless the user specifies otherwise. It also directs callers to check exit status, return Gemini's output unpolished, and report authentication or model errors rather than silently retrying.

by read2 min views1 publishedSep 13, 2026
name gemini-write
description Delegate drafting, rewriting, or proofreading to Gemini through authenticated Antigravity CLI (agy). Use when the user requests Gemini writing or a comparison against Gemini output.

Requires an installed, authenticated agy. This file is the complete skill; no helper scripts are needed.

  1. Prepare a UTF-8 prompt containing the user's writing instructions and source text in separate sections. Preserve explicit instructions verbatim. Do not add a tone, structure, or permission to change meaning that the user did not request.
  2. Run agy directly from a fresh temporary directory to avoid the current project's instructions. Usegemini-3.8-flash-medium unless the user specifies a model. If availability is uncertain, checkagy models ; do not silently substitute.

Example for Bash, with an absolute path to the prepared prompt:

prompt_file=/absolute/path/to/prompt.txt
run_dir=$(mktemp -d)
(
  cd "$run_dir" || exit 1
  agy --model gemini-3.8-flash-medium \
    --disable-slash-commands --output-format text \
    --print-timeout 180s --print "$(cat "$prompt_file")" \
    > output.md 2> stderr.txt
)

Keep the prompt as data: use a file-writing tool or quoted heredoc to prepare it, and quote its expansion as shown. Bash command substitution removes trailing newlines; use an argument-preserving process API if those bytes matter.

  1. Check the exit status before treating the output as a completed response. Return Gemini's output without polishing it yourself. Identify any model-generated preface as part of the response, not the input prompt. For comparisons, use the same prompt and source; put your commentary outside the generated text.
  2. When the user requests records, keep the exact prepared prompt, output, diagnostics, and model name in a new local directory and provide links. Otherwise, temporary files are sufficient. Do not publish records without a request to share them.

On authentication failure, ask the user to sign in with agy. On model, timeout, or output errors, report the error without silently retrying or changing the prompt.

AGY may use its normal tools and global configuration, send the prompt to its service, and consume account quota. A fresh directory and --disable-slash-commands do not disable those tools or settings. Do not pass permission-bypass flags or ask Gemini to edit files, publish, or access services unless requested. Local records do not capture AGY's internal system prompt or guarantee identical outputs.

── more in #ai-tools 4 stories · sorted by recency
── more on @gemini 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/gemini-write-delegat…] indexed:0 read:2min 2026-09-13 ·