Gdoc logo

Gdoc

Community
arsenyinfo
gdoc

Use the local gdoc CLI to find, read, create, edit, review, comment on, share, export, or synchronize Google Docs and Drive files. Trigger for Google Docs or Drive work when gdoc is available; do not use for unrelated local document files or browser-only editing.

Overview

Publisherarsenyinfo
Repositoryskills
Skill namegdoc
Stars
29
Forks
1
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by arsenyinfo on GitHub. Read the source before you install it.

Installation

Install the Gdoc AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/arsenyinfo/skills/tree/main/skills/gdoc
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/arsenyinfo/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/gdoc .claude/skills/gdoc
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Gdoc in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Gdoc on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Gdoc is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

gdoc CLI

Use gdoc through the shell. Do not substitute browser automation or MCP unless the user requests it.

Start safely

  1. Confirm the CLI is available with command -v gdoc. If it is missing, report that and provide the upstream installation command only when useful.
  2. Treat the installed CLI as the syntax authority. Run gdoc --help or gdoc <command> --help before using an unfamiliar option; do not rely on a memorized command catalog.
  3. Accept either a Google Docs/Sheets URL or a bare file ID. Resolve names with gdoc find or gdoc ls; do not guess when multiple files match.
  4. If multiple accounts may be configured, use --account when the user identifies an account. Do not infer an account for sharing or other consequential changes.

Authentication is a user setup boundary. When gdoc reports that authentication is missing or expired, explain the relevant gdoc auth command. Do not delete credential or token files as a troubleshooting shortcut.

Choose output intentionally

  • Use terse default output for ordinary interaction.
  • Use --json when values will be parsed or passed into another operation.
  • Use --plain for stable TSV or raw-text matching.
  • Use --verbose for diagnosis or details, not by default.
  • Avoid --quiet during collaborative editing because it suppresses gdoc's change-awareness checks. Use it only when the user requests reduced API traffic or a controlled batch workflow makes the tradeoff clear.

Read and inspect

  • Start document work with gdoc info DOC and an appropriately scoped gdoc cat DOC.
  • Use gdoc cat DOC --comments when comments or review context could affect the task. Add --all only when resolved comments matter.
  • For multi-tab documents, run gdoc tabs DOC, then target a tab with --tab or deliberately read all tabs with --all-tabs.
  • For spreadsheets, use gdoc tabs and a narrow --range when possible.
  • Use --max-bytes for reconnaissance on large documents, then retrieve the relevant tab or range without truncation before editing it.
  • Use gdoc structure only when native document structure, styles, or exact Docs API ranges are genuinely required.

Modify with the smallest operation

Read the current target immediately before changing it. Pay attention to gdoc's pre-flight banner; if it reports external edits, refresh the relevant content before proceeding.

Prefer operations in this order:

  1. gdoc edit for a targeted committed replacement.
  2. gdoc suggest when the user asks for reviewable suggested edits and the OAuth project supports the required preview API. If suggesting fails, do not silently fall back to a committed edit.
  3. gdoc insert to add content without replacing existing content.
  4. gdoc write only when the user intends to replace an entire document or tab.

For edit, use text observed from the current document. The command matches raw document text; inspect gdoc cat DOC --plain when formatted Markdown output obscures the match. Prefer a unique exact match. Use --all, --normalize, cell addressing, or file-backed text arguments only when their effect is intended.

Full-document write is destructive and can collapse a multi-tab document. Prefer --tab for a scoped replacement. Never use --force or --force-collapse-tabs without explicit user authorization after explaining the consequence.

After a mutation, verify the smallest relevant result with cat, info, comments, or another read-only command. Do not claim success from exit status alone when the resulting content matters.

Comments and collaboration

  • Use comments or cat --comments to understand existing discussion before replying or resolving.
  • Add a comment, reply, resolve, reopen, or delete only when requested or clearly required by the user's stated workflow.
  • Preserve comment IDs exactly. Re-read a thread before resolving it when collaborators may have replied.
  • Treat suggestions and comments differently: a suggestion proposes a content change, while a comment starts or continues discussion.

Sharing and Drive organization

Sharing, moving, renaming, copying, and creating files change external state. Perform them when the user requests that outcome, using the narrowest scope:

  • Prefer sharing with a named email over domain-wide or public access.
  • Use --domain, --anyone, or --discoverable only when explicitly requested.
  • Confirm the intended role (reader, commenter, or writer) rather than defaulting consequential access.
  • Verify the target file and destination folder before mv, rename, or cp when names or IDs are ambiguous.

Local files, revisions, and diffs

  • Prefer pull, push, and export over ad hoc shell redirection when their semantics fit the task.
  • Inspect revisions before selecting a historical revision. Revision IDs are sparse and old unpinned revisions may be unavailable.
  • gdoc diff follows diff(1) semantics: exit code 1 means differences were found, not that the command failed.
  • Do not overwrite an existing local output file unless the user requested it or its replacement is an obvious part of the workflow.

Errors

Preserve the relevant command, exit code, and stderr when diagnosing failures. Distinguish authentication errors, API permissions, missing files, ambiguous matches, conflicts, and transport failures. Use current command help and, when needed, a narrow read-only reproduction before proposing credential resets or broad permission changes.

Upstream documentation: https://github.com/LucaDeLeo/gdoc

Frequently asked questions

What does the Gdoc AI skill do?

Use the local gdoc CLI to find, read, create, edit, review, comment on, share, export, or synchronize Google Docs and Drive files. Trigger for Google Docs or Drive work when gdoc is available; do not use for unrelated local document files or browser-only editing.

Why use Gdoc on TypingMind?

Because you install it once and use it with any model. Gdoc is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Gdoc in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/arsenyinfo/skills/tree/main/skills/gdoc. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Gdoc?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Gdoc?

As many as you like. As long as a model supports skills, you can use Gdoc with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Gdoc AI skill free?

It is published on GitHub by arsenyinfo. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇