fix-drive-errors

Scan Google Drive directories and apply the .nosync trick to resolve sync errors.

9|1|Updated Jul 19, 2022
One-click install
npx skills add https://github.com/benthamite/dotfiles --skill fix-drive-errors
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-drive-errors
Source: https://github.com/benthamite/dotfiles/tree/main/claude/skills/fix-drive-errors
Command: npx skills add https://github.com/benthamite/dotfiles --skill fix-drive-errors

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill resolves Google Drive synchronization errors caused by specific types of directories (like node_modules or build outputs) by applying the .nosync trick and restarting the Google Drive client.

Core Features & Use Cases

  • Automated Scanning: Identifies problematic directories within ~/My Drive/ based on common patterns and Google Drive logs.
  • .nosync Application: Renames problematic directories and creates symlinks to exclude them from Google Drive sync.
  • .gitignore Updates: Automatically updates .gitignore files in affected Git repositories.
  • Google Drive Restart: Gracefully quits and restarts the Google Drive application to refresh its sync status.
  • Use Case: When Google Drive displays persistent sync errors, this skill can be invoked to clean up the sync queue and restore normal operation.

Quick Start

Run the fix-drive-errors skill to scan your Google Drive for problematic directories and apply the .nosync trick.

Frequently Asked Questions about fix-drive-errors

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix Google Drive sync errors caused by node_modules and build artifacts?

Google Drive sync errors caused by node_modules and build artifacts are fixed by scanning for problematic directories, applying the .nosync trick via symlinks, and restarting the Google Drive client.

What is the .nosync trick for excluding directories from Google Drive synchronization?

The .nosync trick for excluding directories from Google Drive synchronization involves renaming problematic directories and creating symlinks to exclude them from syncing. It targets large data folders like caches and build outputs.

How do I stop Google Drive from syncing git repositories and large cache directories?

You can stop Google Drive from syncing git repositories and large cache directories by running an automated scan that applies the .nosync trick to exclude them, and subsequently updates the .gitignore files in affected repositories.

Does fixing Google Drive sync errors require shell commands and access to Google Drive logs?

Yes, fixing Google Drive sync errors requires shell commands for file system operations and git for version control. It also requires knowledge of Google Drive's log and database structure for advanced error tracing.

What are the limitations of using the .nosync trick for Google Drive sync errors?

A limitation of using the .nosync trick for Google Drive sync errors is that it relies on renaming directories and creating symlinks, which permanently excludes the targeted caches and build outputs from cloud synchronization.