Logotipo de Gdoc

Gdoc

Comunidad
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.

Descripción general

Editorarsenyinfo
Repositorioskills
Nombre de la habilidadgdoc
Estrellas
29
Forks
1
Archivos incluidos
Solo instrucciones
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por arsenyinfo en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Gdoc en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/arsenyinfo/skills/tree/main/skills/gdoc
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Gdoc en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Gdoc automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Gdoc no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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

Preguntas frecuentes

¿Qué hace la habilidad de IA 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.

¿Por qué usar Gdoc en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Gdoc está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Gdoc en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/arsenyinfo/skills/tree/main/skills/gdoc. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Gdoc?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Gdoc?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Gdoc con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Gdoc?

arsenyinfo la ha publicado en GitHub. Consulta el repositorio para conocer las condiciones de la licencia. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇