driverag

Use the Google Drive RAG CLI to search your synced personal documents, add tracking folders, or check the service account status.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "driverag" with this command: npx skills add eladrave/driverag

Google Drive RAG CLI Skill

When to use

Use this skill when the user asks you to search their personal documents via the Google Drive RAG API. This includes questions like "What is my Aetna ID?", "Search my drive for...", "Sync my drive", "What is the status of my sync?", "What is the service account email?", or "Renew my token".

Setup and Initialization

This skill includes a self-contained Python CLI tool in its directory.

Before running any commands, you MUST verify the environment is set up:

  1. Check if ~/.agents/skills/driverag/.env exists.
    • If it DOES NOT exist, you MUST ask the user to provide their API_URL and JWT_TOKEN.
    • Once they provide them, create the .env file in the skill directory (~/.agents/skills/driverag/.env) with those values.
  2. Check if the virtual environment exists (~/.agents/skills/driverag/venv).
    • If it DOES NOT exist, create it: cd ~/.agents/skills/driverag && python3 -m venv venv
    • Then install the requirements: source venv/bin/activate && pip install -r requirements.txt

Instructions

Once the environment is validated and the .env file is created, you can interact with the RAG system using the CLI tool.

ALWAYS run the CLI from the skill directory (~/.agents/skills/driverag/) and ALWAYS activate its virtual environment first.

Here are the commands you can run:

  1. Search documents:

    cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py search "$ARGUMENTS"
    

    If the user passes specific folders, append them: python3 cli.py search "$ARGUMENTS" -f "Folder Name"

  2. List all Indexed Files in the RAG Database:

    cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py list-files
    
  3. Check Sync Status:

    cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py status
    
  4. Sync documents:

    cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py sync
    

    To force a complete re-download and re-indexing of all files: python3 cli.py sync --force

  5. Get Service Account Email:

    cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py service-account
    
  6. Renew Token:

    cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py renew-token
    
  7. Add a folder manually:

    cd ~/.agents/skills/driverag && source venv/bin/activate && python3 cli.py add-folder "$ARGUMENTS"
    

Important notes

  • Do NOT hallucinate answers. ALWAYS run the cli.py search command to get the exact answer from the RAG system and output the exact response it gives you.
  • CRITICAL: If the user asks "What files do you have", "List my files", or "What documents are in the database", DO NOT use the search command! You MUST use the list-files command instead, because RAG semantic search cannot generate file lists.
  • If the CLI returns a 401 Unauthorized or warns that the token is about to expire, inform the user and automatically run the renew-token command to update their .env file.
  • When outputting the RAG search results to the user, ensure you include the citations/source documents exactly as the CLI returns them so the user knows where the information came from.

Examples

  • "Search my drive for my Aetna ID" -> Run the search command with "What is my Aetna ID?"
  • "What files do you have in the database?" -> Run the list-files command.
  • "What is the status of my sync?" -> Run the status command.
  • "What email should I share my folders with?" -> Run the service-account command.
  • "Renew my token" -> Run the renew-token command.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Cloudflare Manager

Manage Cloudflare DNS records, Tunnels (cloudflared), and Zero Trust policies. Use for pointing domains, exposing local services via tunnels, and updating in...

Registry SourceRecently Updated
Coding

Node Red Manager

Manage Node-RED instances via Admin API or CLI. Automate flow deployment, install nodes, and troubleshoot issues. Use when user wants to "build automation", "connect devices", or "fix node-red".

Registry SourceRecently Updated
Coding

Yt Dlp

A robust CLI wrapper for yt-dlp to download videos, playlists, and audio from YouTube and thousands of other sites. Supports format selection, quality control, metadata embedding, and cookie authentication.

Registry SourceRecently Updated
Coding

Daily Dev Agentic

daily.dev Agentic Learning - continuous self-improvement through daily.dev feeds. Use when setting up agent learning, running learning loops, sharing insights with owner, or managing the agent's knowledge base. Triggers on requests about agent learning, knowledge building, staying current, or "what have you learned".

Registry SourceRecently Updated