google-drive-sheets
하는 일
이 스킬은 어시스턴트가 Google 드라이브, 문서, 시트, 슬라이드 파일로 작업하게 합니다. 업무 문서를 Google에 보관하고, 그것을 읽거나 바꾸는 데 도움을 받고 싶은 사람을 위한 스킬입니다.
사용하는 경우
- ✓Google 드라이브에서 파일을 찾아 달라고 어시스턴트에게 요청할 때.
- ✓Google 문서, 시트, 슬라이드를 읽거나 편집하고 싶을 때.
- ✓파일을 열 수 없어서 공유 설정에 도움이 필요할 때.
스킬 링크
https://github.com/yc-software/qm/blob/main/skills-seed/google-drive-sheets/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Google 드라이브에서 제 예산 스프레드시트를 찾아서, 첫 번째 탭의 합계를 요약해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
어시스턴트는 연결된 Google 접근 권한으로 드라이브, 문서, 시트, 슬라이드를 다룹니다. 계정이 접근할 수 있는 파일만 읽거나 바꿉니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Google Drive / Docs / Sheets / Slides
Use this skill when the user asks about Drive files, Google Docs, Google Sheets, Google Slides, sharing/access problems, or reading/editing any of that content.
This is an OAuth connector. The resolved user's Google OAuth token already lives on your computer as an environment variable, one per Google API host (the way a logged-in CLI's cached credential would):
$VAULT_TOKEN_WWW_GOOGLEAPIS_COM— forwww.googleapis.com(Drive)$VAULT_TOKEN_SHEETS_GOOGLEAPIS_COM— forsheets.googleapis.com(Sheets)$VAULT_TOKEN_DOCS_GOOGLEAPIS_COM— fordocs.googleapis.com(Docs)$VAULT_TOKEN_SLIDES_GOOGLEAPIS_COM— forslides.googleapis.com(Slides)
These all carry the same Google token (one OAuth grant spans every Google API), so
if a host-specific var is empty (e.g. an older connection made before that host was
added), $VAULT_TOKEN_WWW_GOOGLEAPIS_COM works as the bearer for any Google API host.
Call the Google APIs directly over https:// with curl and pass the matching token
as a bearer header (-H "Authorization: Bearer $VAULT_TOKEN_..."). Do not ask the user
for a token, log it, or use another principal's credential or a service fallback.
If the variable is empty or the API returns 401/403 or a file is inaccessible, tell the user which Google account/principal needs access and whether they should connect Google or share the file with that account.
Find files
Search Drive by name, owner, MIME type, or recency:
curl -sS --get 'https://www.googleapis.com/drive/v3/files' \
-H "Authorization: Bearer $VAULT_TOKEN_WWW_GOOGLEAPIS_COM" \
--data-urlencode "q=name contains 'deadline' and trashed=false" \
--data-urlencode 'fields=nextPageToken,files(id,name,mimeType,webViewLink,owners(emailAddress,displayName),modifiedTime)' \
--data-urlencode 'corpora=allDrives' \
--data-urlencode 'includeItemsFromAllDrives=true' \
--data-urlencode 'supportsAllDrives=true' \
--data-urlencode 'pageSize=100'
The three allDrives params matter: without them the API searches only "My Drive",
and files living in shared drives — most team docs — are invisible, so you'd wrongly
report a file doesn't exist. If the response has a nextPageToken, keep fetching with
pageToken= before concluding anything is missing.
For a specific file, fetch metadata first:
curl -sS 'https://www.googleapis.com/drive/v3/files/FILE_ID?supportsAllDrives=true&fields=id,name,mimeType,webViewLink,owners(emailAddress,displayName),capabilities' \
-H "Authorization: Bearer $VAULT_TOKEN_WWW_GOOGLEAPIS_COM"
Add supportsAllDrives=true to every per-file call (get, download, PATCH, DELETE) —
without it, operations on shared-drive files 404.
Read files
For uploaded files, download media:
curl -sS 'https://www.googleapis.com/drive/v3/files/FILE_ID?alt=media' \
-H "Authorization: Bearer $VAULT_TOKEN_WWW_GOOGLEAPIS_COM" \
-o inbox/drive-file.bin
For Google Docs/Sheets/Slides, export to a useful format:
curl -sS --get 'https://www.googleapis.com/drive/v3/files/FILE_ID/export' \
-H "Authorization: Bearer $VAULT_TOKEN_WWW_GOOGLEAPIS_COM" \
--data-urlencode 'mimeType=text/plain'
Keep source file ids and links in your answer so claims can be traced.
Read Sheets
Read values from a named range:
curl -sS 'https://sheets.googleapis.com/v4/spreadsheets/SPREADSHEET_ID/values/Sheet1!A1:Z100' \
-H "Authorization: Bearer $VAULT_TOKEN_SHEETS_GOOGLEAPIS_COM"
For workbook structure:
curl -sS 'https://sheets.googleapis.com/v4/spreadsheets/SPREADSHEET_ID?includeGridData=false' \
-H "Authorization: Bearer $VAULT_TOKEN_SHEETS_GOOGLEAPIS_COM"
Writes require approval
Creating, moving, sharing, or editing Drive/Sheets content is a write. Prepare the exact change, summarize the target file/range, and ask for approval before running it.
After approval, update values:
curl -sS -X PUT 'https://sheets.googleapis.com/v4/spreadsheets/SPREADSHEET_ID/values/Sheet1!A1:B2?valueInputOption=USER_ENTERED' \
-H "Authorization: Bearer $VAULT_TOKEN_SHEETS_GOOGLEAPIS_COM" \
-H 'content-type: application/json' \
--data @values.json
Always report the file id/link and the modified range.
Persist a file to Drive (upload)
You can save a file you produced (a report, an export, a generated artifact) into the user's Drive. This is a write — summarize what you're uploading and where, and get approval first.
After
자주 묻는 질문
어시스턴트가 파일을 열 수 없다면 어떻게 하나요?
어떤 Google 계정에 접근 권한이 필요한지 알려 줍니다. 그러면 파일 소유자에게 그 계정과 파일을 공유해 달라고 요청할 수 있습니다.
공유된 문서를 편집할 수 있나요?
네. 계정에 편집 권한이 있다면 가능합니다. 그렇지 않다면 어시스턴트는 파일에 접근할 수 없다고 알려 줍니다.
Google 비밀번호가 필요한가요?
아닙니다. Google을 연결할 때 이미 허용한 접근 권한을 사용합니다.
상세 정보
작성자의 원본 설명
Find, read, export, edit, and manage the user's Google Drive, Docs, Sheets, and Slides through per-user OAuth.
repo: yc-software/qm
인기도
- GitHub 스타
- 16k
- 순위
- #10893
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
deploy-qm
16kQM 패키지를 Fly.io, AWS, Render에 배포한 뒤, 전체 배포 체크리스트에 따라 관리자, 연결 도구, 선택적으로 Slack을 설정합니다.
onboarding
16k새 사용자가 계정을 연결하고, 일하는 방식을 공유하고, 목소리를 고르고, 첫 도움 항목을 설정하도록 짧은 대화로 안내합니다.
admin
16k검증된 조직 관리자가 채팅에서 조직 전체 설정과 다른 범위를 확인하거나 바꿀 수 있게 하며, 각 변경은 적용 전에 확인받습니다.
browse
16k셸에서 실제 스텔스 브라우저를 구동해 로그인이나 양식 작성 같은 웹사이트 작업을 수행하며, 로그인 상태는 사람마다 따로 유지됩니다. 읽기가 아닌 작업용입니다.
비슷한 스킬
feishu-doc
394k에이전트가 문서 도구를 사용해 텍스트, 이미지, 표를 포함한 Feishu 클라우드 문서를 읽고, 만들고, 편집하도록 돕습니다.
feishu-drive
394k에이전트가 봇과 공유된 Feishu 클라우드 폴더의 파일을 찾아보고, 정리하고, 댓글을 달도록 돕습니다.
feishu-perm
394k에이전트가 요청을 충족하는 가장 작은 권한을 골라, Feishu 파일에 누가 접근할 수 있는지 확인하고 바꾸도록 돕습니다.