{"slug": "gemini-write-delegate-drafting-rewriting-or-proofreading-to-gemini-through-cli-a", "title": "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.", "summary": "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.", "body_md": "| name | gemini-write | \n|---|---|\n| 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. | \n\nRequires an installed, authenticated `agy`. This file is the complete skill; no helper scripts are needed.\n\n1. 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.\n2. Run `agy` directly from a fresh temporary directory to avoid loading the current project's instructions. Use`gemini-3.8-flash-medium` unless the user specifies a model. If availability is uncertain, check`agy models` ; do not silently substitute.\n\nExample for Bash, with an absolute path to the prepared prompt:\n\n```\nprompt_file=/absolute/path/to/prompt.txt\nrun_dir=$(mktemp -d)\n(\n  cd \"$run_dir\" || exit 1\n  agy --model gemini-3.8-flash-medium \\\n    --disable-slash-commands --output-format text \\\n    --print-timeout 180s --print \"$(cat \"$prompt_file\")\" \\\n    > output.md 2> stderr.txt\n)\n```\n\nKeep 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.\n\n1. 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.\n2. 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.\n\nOn 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.\n\nAGY 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.", "url": "https://wpnews.pro/news/gemini-write-delegate-drafting-rewriting-or-proofreading-to-gemini-through-cli-a", "canonical_source": "https://gist.github.com/laiso/06f57b212db3a96bc57bfe8c4816e3c1", "published_at": "2026-09-13 09:46:16+00:00", "updated_at": "2026-09-13 15:44:28.890376+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "large-language-models", "generative-ai", "developer-tools"], "entities": ["Gemini", "Antigravity CLI", "agy", "gemini-3.8-flash-medium"], "alternates": {"html": "https://wpnews.pro/news/gemini-write-delegate-drafting-rewriting-or-proofreading-to-gemini-through-cli-a", "markdown": "https://wpnews.pro/news/gemini-write-delegate-drafting-rewriting-or-proofreading-to-gemini-through-cli-a.md", "text": "https://wpnews.pro/news/gemini-write-delegate-drafting-rewriting-or-proofreading-to-gemini-through-cli-a.txt", "jsonld": "https://wpnews.pro/news/gemini-write-delegate-drafting-rewriting-or-proofreading-to-gemini-through-cli-a.jsonld"}}