Skip to main content

summarize-google-docs

Reads internal documents and creates a summary.

소스 정보

저장소
warpdotdev/competitive-intelligence-agent-oss
최근 소스 활동
2026년 7월 8일 15:39
감지된 SKILL.md 언어
영어
스타
3
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
3 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
summarize_google_docs
description
Reads internal documents and creates a summary.
Use the provided python script to read recent google docs from the last 7 days and summarize the output. the required credentials are stored as an environment variable. Don't mention upcoming milestones or DRI's. Make note of important themes across the documents. if there are potential conflicts, also make note of that. ## After Completing Summary 1. **Save the report** to `reports/google_doc_summaries/google_doc_summary_YYYY-MM-DD.md`, then create a PR. Here are instructions for using the google docs python scripts: # Google Docs Service A Python service that connects to the Google Docs API and retrieves documents modified in the last week. ## Setup 1. **Install dependencies:** ```bash pip install -r requirements.txt ``` 2. **Run the service:** ```bash python google_docs_service.py ``` The credential to run the service can be found in the environment variable GOOGLE_OAUTH_TOKEN ## Usage ### Basic Usage ```python from google_docs_service import GoogleDocsService # Initialize service service = GoogleDocsService() # Get documents from last 7 days recent_docs = service.get_recent_documents(days=7) for doc in recent_docs: print(f"Document: {doc['name']}") print(f"Link: {doc['webViewLink']}") ``` ### Reading Document Content ```python # Get full document content document_content = service.get_document_content(document_id) # Extract plain text text = service.extract_text_from_document(document_content) print(text) ``` ### Custom Time Range ```python # Get documents from last 30 days recent_docs = service.get_recent_documents(days=30) ``` ## Features - OAuth2 authentication with token caching - Query documents modified within a specified time range - Fetch document metadata (name, ID, modified time, link) - Retrieve full document content - Extract plain text from documents ## Files - `google_docs_service.py` - Main service implementation - `requirements.txt` - Python dependencies ## API Scopes The service requests the following scopes: - `drive.readonly` - Read-only access to Drive files - `documents.readonly` - Read-only access to Google Docs ## Notes - The service uses UTC time for date calculations - Maximum 100 documents are returned per query (can be adjusted) - Documents are ordered by modification time (most recent first)
GitHub에서 보기