archive/skills/gemini-cli/SKILL.md
Run autonomous dev tasks using Gemini CLI (gemini-cli) with Maxime's free Google quota. Use for programming projects where MARS needs to delegate agentic coding work — file edits, code gen, refactoring, analysis — to Gemini in a project directory.
npx skillsauth add maximebaudette/agent-skills gemini-cliInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Delegate autonomous dev tasks to Gemini CLI using Maxime's free Google OAuth quota.
~/bin/gemini (v0.34.0)
Auth is pre-configured via OAuth personal (~/.gemini/settings.json). No API key needed.
Use this skill when Maxime assigns a coding task on a local project and wants Gemini to do the heavy lifting — code generation, refactoring, file edits, analysis, etc.
Good fit:
Not a fit: web search, emails, calendar, anything outside a local project directory.
Run a single task and get output back:
cd /path/to/project
gemini -p "your task description here" --output-format text -y
Key flags:
-p — headless/non-interactive prompt-y — auto-approve all file edits (use for trusted project dirs only)--output-format text — clean text output (also: json, stream-json)-m — override model (e.g. -m gemini-2.5-pro)Pipe file content as additional context:
cat src/main.py | gemini -p "refactor this to use async/await" -y --output-format text
gemini --approval-mode auto_edit -p "add error handling to all API calls" -y
gemini --resume latest -p "continue where we left off"
gemini --list-sessions # list available sessions
cd ~/projects/myapp
gemini -p "There's a bug where X happens when Y. Find and fix it." -y --output-format text
cd ~/projects/myapp
gemini -p "Create a FastAPI endpoint at /health that returns {status: ok, uptime: <seconds>}" -y --output-format text
cd ~/projects/myapp
gemini --approval-mode plan -p "Review the auth logic in src/auth/ and identify security issues" --output-format text
cd ~/projects/myapp
gemini -p "List all functions in src/ with no docstrings. Output as JSON array." --output-format json
cd to the project directory before running — Gemini CLI operates in the cwd~/.gemini/ — use --resume to continue long tasks--output-format stream-json streams progress in real time-y on trusted project directoriesdevelopment
Compile LaTeX documents using the Tectonic engine. Use this skill whenever the user wants to create, edit, or compile a LaTeX document — letters, articles, CVs, reports. Tectonic is a self-contained compiler that auto-downloads only the packages it needs.
tools
Maintain living stack documentation for the MARS host in the Prime Radiant KB. Use this skill whenever: updating the mars host page after infrastructure changes, appending archive entries for deprecated components, documenting a new service/skill/plugin being added or removed, or when the user asks to 'update stack docs', 'document this change', 'archive this setup', 'what's in the stack', or 'generate stack summary'. Also use when you've just finished installing or removing any service, plugin, skill, tool, or cron — proactively suggest documenting it.
testing
Weekly or on-demand audit of all agent workspaces (Cooper, Andy, MARS). Checks for stale script references, wrong skill paths, snapshot count drift, config vs file drift, and contradictory instructions. Auto-fixes simple unambiguous issues. Emails Maxime only for items requiring judgment. Silent on clean runs. MARS-only — do not invoke as Cooper or Andy.
documentation
Reusable inter-agent dispatch contract; responsible for delivering structured handoff requests from MARS to other sub-agents (Andy, Cooper) via the documented transport path.