Install
$ agentstack add skill-abhatt-rh-redhat-docs-agent-tools-docs-convert-gdoc-md ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Convert Google Docs, Slides, or Sheets
Export Google content using the gcloud CLI for authentication:
- Google Docs → Markdown (
.md) - Google Slides → Markdown (
.md) via PPTX with slide titles, bullet points, tables, and speaker notes - Google Sheets → CSV (
.csv)
Prerequisites
- The Red Hat Docs Agent Tools marketplace is installed
gcloudCLI is installed- User is authenticated via
gcloud auth login --enable-gdrive-access python-pptxis installed for Slides export (python3 -m pip install python-pptx)
Instructions
- The user provides a Google Docs, Slides, or Sheets URL.
- Run the conversion script with the URL as the argument.
- Read the output file and present the content to the user.
Run the script
The script is at ${CLAUDE_SKILL_DIR}/scripts/gdoc2md.py.
Always quote the URL and output file arguments:
python3 ${CLAUDE_SKILL_DIR}/scripts/gdoc2md.py [--comments] [--include-resolved] "" [""]
- The script auto-detects the URL type:
/document/d/→ Google Docs → Markdown/presentation/d/→ Google Slides → Markdown (via PPTX)/spreadsheets/d/→ Google Sheets → CSV- If no output file is specified, it defaults to
.mdor.csv.
Include Google Docs comments
Use --comments to pull comment threads from the document and insert them as Markdown footnotes:
python3 ${CLAUDE_SKILL_DIR}/scripts/gdoc2md.py --comments ""
- Each comment with a highlighted text anchor becomes a footnote reference placed after the quoted text in the Markdown body.
- Comments without an anchor appear as footnotes at the end.
- Reply threads are included under the parent comment.
- By default, resolved comment threads are excluded. Add
--include-resolvedto include them. - The
--commentsflag only applies to Google Docs. The script ignores it for Slides and Sheets.
Error handling
- 401: Authentication expired. Tell the user to run
gcloud auth login --enable-gdrive-access. - 403: No permission. The user needs access to the document.
- 404: Wrong URL or the document doesn't exist.
- ImportError:
python-pptxnot installed. Tell the user to runpython3 -m pip install python-pptx.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: abhatt-rh
- Source: abhatt-rh/redhat-docs-agent-tools
- License: Apache-2.0
- Homepage: https://redhat-documentation.github.io/redhat-docs-agent-tools/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.