/doc-to-md
Convert a PDF, docx, image, or other document to clean Markdown using Antigravity (agy) multimodal Gemini. Saves to docs/agy/converted/.
$ npx -y skills add MarcosNahuel/antigravity-plugin-cc --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/doc-to-md
Context preview
What this command does when you run it.
Convert a PDF, docx, image, or other document to clean Markdown using Antigravity (agy) multimodal Gemini. Saves to docs/agy/converted/.
Command definition
doc-to-md.mddescription: Convert a PDF, docx, image, or other document to clean Markdown using Antigravity (agy) multimodal Gemini. Saves to docs/agy/converted/.
argument-hint: "<file-path> [extraction focus instructions]"
context: fork
allowed-tools: Bash, Write
Route this to the `antigravity:agy-rescue` subagent in MODE: doc-to-md.
Raw user request: $ARGUMENTS
Routing rules
1. **Parse the file path**: the first whitespace-separated token of `$ARGUMENTS` that resolves to an existing file (check with `test -f`) IS the source file. Convert relative paths to absolute. If no valid file is found, ask once: "Which file should I convert?".
2. **Extraction focus**: everything else in `$ARGUMENTS` (anything that's not the path) is optional natural-language guidance on what to focus on (e.g., "extract only the pricing tables and ignore the legal boilerplate"). Empty by default = "produce a faithful full-fidelity markdown conversion".
3. **Detect file type** via extension:
- `.pdf` → PDF (multimodal)
- `.docx`, `.doc` → Word (multimodal or text)
- `.png`, `.jpg`, `.jpeg`, `.webp`, `.gif` → image (multimodal — OCR + structure inference)
- `.html`, `.htm` → HTML (text)
- other → text or warn
4. **Slug**: lowercase the source filename base (without extension), non-alphanumeric → `-`, collapse repeats, trim to 60 chars.
5. **Date**: today in `YYYY-MM-DD` (local time).
6. **Paths** (relative to current working directory):
- `OUTPUT_DIR` = `docs/agy/converted/`
- `WRITE_FILE` = `docs/agy/converted/<date>-<slug>.md`
7. **Pre-flight** (ONE `Bash` call):
mkdir -p docs/agy/converted
8. **Hand off**: pass this header to the subagent:
MODE: doc-to-md
SOURCE_FILE: <absolute path>
FILE_TYPE: pdf|docx|image|html|other
FOCUS: <natural-language focus or empty>
CWD: <absolute path to current working directory>
WRITE_FILE: docs/agy/converted/<date>-<slug>.md
Operating rules
- The subagent invokes agy with `--add-dir <CWD>` so it can write the result.
- For PDF / docx / image, agy uses Gemini's multimodal vision capabilities — preserves tables, lists, headings, code blocks. Inline images become `` placeholders.
- The subagent reports:
1. Saved markdown path. 2. Original file path and detected type. 3. First ~30 lines of the conversion (preview). 4. Pages/sections processed.
- Present that to the user as-is.
- If the file is too large (>200 MB) or the format is unsupported, surface the error verbatim. Suggest splitting or pre-processing.
Notes
- Large PDFs (>100 pages) consume significant input tokens. Consider chunking for very large docs.
- For images, OCR quality is excellent for printed text, decent for handwriting.
- This is NOT a replacement for `pandoc` if you need lossless format conversion — it's for "give me a clean markdown version I can read/edit/reuse".
- For sensitive documents (NDAs, internal contracts), be aware the content is sent to Google's Gemini servers. Use `vertex-creative` skill with Vertex AI ADC if you need stricter data residency control.
Read more
description: Convert a PDF, docx, image, or other document to clean Markdown using Antigravity (agy) multimodal Gemini. Saves to docs/agy/converted/. argument-hint: "<file-path> [extraction focus instructions]" context: fork allowed-tools: Bash, Write
Route this to the `antigravity:agy-rescue` subagent in MODE: doc-to-md.
Raw user request: $ARGUMENTS
Routing rules
1. **Parse the file path**: the first whitespace-separated token of `$ARGUMENTS` that resolves to an existing file (check with `test -f`) IS the source file. Convert relative paths to absolute. If no valid file is found, ask once: "Which file should I convert?".
2. **Extraction focus**: everything else in `$ARGUMENTS` (anything that's not the path) is optional natural-language guidance on what to focus on (e.g., "extract only the pricing tables and ignore the legal boilerplate"). Empty by default = "produce a faithful full-fidelity markdown conversion".
3. **Detect file type** via extension:
- `.pdf` → PDF (multimodal)
- `.docx`, `.doc` → Word (multimodal or text)
- `.png`, `.jpg`, `.jpeg`, `.webp`, `.gif` → image (multimodal — OCR + structure inference)
- `.html`, `.htm` → HTML (text)
- other → text or warn
4. **Slug**: lowercase the source filename base (without extension), non-alphanumeric → `-`, collapse repeats, trim to 60 chars.
5. **Date**: today in `YYYY-MM-DD` (local time).
6. **Paths** (relative to current working directory):
- `OUTPUT_DIR` = `docs/agy/converted/`
- `WRITE_FILE` = `docs/agy/converted/<date>-<slug>.md`
7. **Pre-flight** (ONE `Bash` call):
mkdir -p docs/agy/converted
8. **Hand off**: pass this header to the subagent:
MODE: doc-to-md SOURCE_FILE: <absolute path> FILE_TYPE: pdf|docx|image|html|other FOCUS: <natural-language focus or empty> CWD: <absolute path to current working directory> WRITE_FILE: docs/agy/converted/<date>-<slug>.md
Operating rules
- The subagent invokes agy with `--add-dir <CWD>` so it can write the result.
- For PDF / docx / image, agy uses Gemini's multimodal vision capabilities — preserves tables, lists, headings, code blocks. Inline images become `` placeholders.
- The subagent reports:
1. Saved markdown path. 2. Original file path and detected type. 3. First ~30 lines of the conversion (preview). 4. Pages/sections processed.
- Present that to the user as-is.
- If the file is too large (>200 MB) or the format is unsupported, surface the error verbatim. Suggest splitting or pre-processing.
Notes
- Large PDFs (>100 pages) consume significant input tokens. Consider chunking for very large docs.
- For images, OCR quality is excellent for printed text, decent for handwriting.
- This is NOT a replacement for `pandoc` if you need lossless format conversion — it's for "give me a clean markdown version I can read/edit/reuse".
- For sensitive documents (NDAs, internal contracts), be aware the content is sent to Google's Gemini servers. Use `vertex-creative` skill with Vertex AI ADC if you need stricter data residency control.
A local NotebookLM, multi-agent deep research, and 21 more commands — for Claude Code, powered by Google Antigravity (agy / Gemini 3.x), the official CLI that replaces the now-deprecated gemini-cli.
Repo: MarcosNahuel/antigravity-plugin-cc
Other commands on marcosnahuel-antigravity-plugin-cc.
- /ask
One-shot prompt to Antigravity (agy) — quick question, returns response verbatim. No file persistence to docs/.
Open command - /deep-research
Deep, multi-source, fact-checked web research with agy — reach for it when a decision or design depends on getting it right and a single-shot answer is not enough (architecture / tool / vendor choices, thorough landscape scans, anything you will act on). Builds an evidence
Open command - /design-review
Run a UX/visual design audit of a URL using Antigravity (agy). Captures desktop + mobile screenshots, scores 10 dimensions (hierarchy, typography, color, spacing, a11y, etc.), benchmarks against industry. Saves to docs/agy/design-reviews/.
Open command - /graph
Build a knowledge GRAPH of a folder (code + docs) with Graphify — tree-sitter ASTs + NetworkX + Leiden communities + an interactive graph.html. The code graph is built LOCALLY and costs zero tokens on any assistant; Gemini via agy only names the communities. Then Claude reads
Open command - /media
Ask a question about an AUDIO, VIDEO or IMAGE file (or a YouTube/remote URL) with Antigravity (agy / Gemini 3.x multimodal). Beyond transcription — "what decisions were made in this meeting?", "what happens at 2:30 in the video?", "what's the tone of this voice note?". Claude
Open command - /model
Show or set the agy (Antigravity / Gemini) model by writing ~/.gemini/antigravity-cli/settings.json — the reliable way to switch models (the unreliable --model flag silently falls back to the default). No agy call; takes effect immediately, no plugin reinstall.
Open command

