supabase
Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...
google-docs-automation
Use when automating Google Workspace (Docs, Sheets, Slides) operations - covers authentication, common patterns, and best practices for gspread and googleapiclient
Full skill instructions
Invoke this skill when you need to:
.env files (never commit)from google.oauth2.service_account import Credentials
from dotenv import load_dotenv
import os
load_dotenv('.env')
# For Google Sheets (using gspread)
scope = [
'https://spreadsheets.google.com/feeds',
'https://www.googleapis.com/auth/drive'
]
creds_file = os.getenv('GOOGLE_SERVICE_ACCOUNT_FILE')
credentials = Credentials.from_service_account_file(creds_file, scopes=scope)
Create .env file:
GOOGLE_SERVICE_ACCOUNT_FILE=path/to/credentials.json
GOOGLE_SHEET_ID=your_sheet_id_here
GOOGLE_DOC_ID=your_doc_id_here
CRITICAL: Add .env and *.json credential files to .gitignore
import gspread
# Authorize and open spreadsheet
gc = gspread.authorize(credentials)
spreadsheet = gc.open_by_key(os.getenv('GOOGLE_SHEET_ID'))
worksheet = spreadsheet.worksheet('Sheet1')
# Read operations
value = worksheet.acell('A1').value
row_data = worksheet.row_values(1)
col_data = worksheet.col_values(1)
all_data = worksheet.get_all_values()
# Write operations
worksheet.update_acell('A1', 'New Value')
worksheet.update('A1:C3', [
['Name', 'Age', 'City'],
['Alice', 30, 'NYC'],
['Bob', 25, 'SF']
])
# Format cells
worksheet.format('A1:C1', {
'backgroundColor': {'red': 0.2, 'green': 0.2, 'blue': 0.2},
'textFormat': {'bold': True, 'foregroundColor': {'red': 1, 'green': 1, 'blue': 1}}
})
# Set column width
worksheet.set_column_width(1, 200)
# Merge cells
worksheet.merge_cells('A1:C1')
from googleapiclient.discovery import build
sheets_service = build('sheets', 'v4', credentials=credentials)
chart_request = {
'addChart': {
'chart': {
'spec': {
'title': 'Revenue vs Expenses',
'basicChart': {
'chartType': 'LINE',
'legendPosition': 'RIGHT_LEGEND',
'axis': [
{'position': 'BOTTOM_AXIS', 'title': 'Month'},
{'position': 'LEFT_AXIS', 'title': 'Amount'}
],
'series': [
{'series': {'sourceRange': {'sources': [{'sheetId': 0, 'startRowIndex': 0, 'endRowIndex': 12, 'startColumnIndex': 0, 'endColumnIndex': 1}]}}},
{'series': {'sourceRange': {'sources': [{'sheetId': 0, 'startRowIndex': 0, 'endRowIndex': 12, 'startColumnIndex': 1, 'endColumnIndex': 2}]}}}
]
}
},
'position': {'overlayPosition': {'anchorCell': {'sheetId': 0, 'rowIndex': 2, 'columnIndex': 5}}}
}
}
}
sheets_service.spreadsheets().batchUpdate(
spreadsheetId=os.getenv('GOOGLE_SHEET_ID'),
body={'requests': [chart_request]}
).execute()
from googleapiclient.discovery import build
docs_service = build('docs', 'v1', credentials=credentials)
drive_service = build('drive', 'v3', credentials=credentials)
doc_id = os.getenv('GOOGLE_DOC_ID')
# Get document content
document = docs_service.documents().get(documentId=doc_id).execute()
title = document.get('title')
content = document.get('body', {}).get('content', [])
# Get comments
comments = drive_service.comments().list(
fileId=doc_id,
fields='comments(content,quotedFileContent,author,createdTime,resolved)'
).execute().get('comments', [])
for comment in comments:
author = comment.get('author', {}).get('displayName')
text = comment.get('content')
quoted = comment.get('quotedFileContent', {}).get('value')
print(f"{author}: {text} on '{quoted}'")
# Insert text at beginning
requests = [{
'insertText': {
'location': {'index': 1},
'text': 'New paragraph at start\n'
}
}]
docs_service.documents().batchUpdate(
documentId=doc_id,
body={'requests': requests}
).execute()
# Format text
format_request = [{
'updateTextStyle': {
'range': {'startIndex': 1, 'endIndex': 20},
'textStyle': {
'bold': True,
'fontSize': {'magnitude': 14, 'unit': 'PT'}
},
'fields': 'bold,fontSize'
}
}]
docs_service.documents().batchUpdate(
documentId=doc_id,
body={'requests': format_request}
).execute()
slides_service = build('slides', 'v1', credentials=credentials)
# Create new presentation
presentation = slides_service.presentations().create(
body={'title': 'My Presentation'}
).execute()
presentation_id = presentation.get('presentationId')
# Add slide
requests = [{
'createSlide': {
'slideLayoutReference': {'predefinedLayout': 'TITLE_AND_BODY'}
}
}]
response = slides_service.presentations().batchUpdate(
presentationId=presentation_id,
body={'requests': requests}
).execute()
slide_id = response.get('replies')[0].get('createSlide').get('objectId')
# Add text to slide
text_requests = [{
'insertText': {
'objectId': slide_id,
'insertionIndex': 0,
'text': 'Slide Title'
}
}]
slides_service.presentations().batchUpdate(
presentationId=presentation_id,
body={'requests': text_requests}
).execute()
def list_worksheets(spreadsheet_id):
"""List all worksheets in a spreadsheet"""
gc = gspread.authorize(credentials)
spreadsheet = gc.open_by_key(spreadsheet_id)
for worksheet in spreadsheet.worksheets():
print(f"- {worksheet.title} (ID: {worksheet.id})")
from gspread.exceptions import SpreadsheetNotFound, WorksheetNotFound
from googleapiclient.errors import HttpError
try:
worksheet = spreadsheet.worksheet('Sheet1')
value = worksheet.acell('A1').value
except SpreadsheetNotFound:
print("Spreadsheet not found - check ID and sharing permissions")
except WorksheetNotFound:
print("Worksheet 'Sheet1' does not exist")
except HttpError as e:
print(f"API error: {e.resp.status} - {e.content}")
except Exception as e:
print(f"Unexpected error: {e}")
# BAD: Multiple API calls in loop
for row in data:
worksheet.update_acell(f'A{i}', row[0]) # Slow!
# GOOD: Single batch update
cell_list = worksheet.range('A1:A100')
for i, cell in enumerate(cell_list):
cell.value = data[i][0]
worksheet.update_cells(cell_list) # One API call
.env file.env and *.json files in .gitignoreSee comprehensive examples in:
/path/to/projects/work/synth/google-automation/sheets/financial/, sheets/dashboards/docs/onepagers/, docs/general/presentations/Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...
Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.
Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.
A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.
Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.
Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.
Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.
Send, read, and manage Gmail messages, drafts, labels, and account settings.
Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.
Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.
Discover your celebrity doppelgänger with StarByFace!
GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams
Detect AI-generated voices to protect against audio fraud.
Ensure Your Content's Originality with AI Plagiarism Checker
Upscale images by 400% without quality loss
Protect your social media from copyright disputes
Accurately Detect AI-Generated Content with TheChecker.AI
Chrome extension that detects and flags AI-generated content