Loading...
Loading...
Use when a Google Sheets URL (docs.google.com/spreadsheets/d/) or raw spreadsheet ID is present, or when the user says "read the sheet", "fetch spreadsheet", "convert sheet", "doc sheet", "import from Google Sheet", "get data from sheet", "đọc sheet", "doc sheet", "lay du lieu tu sheet", "lay data tu google sheet", or wants to export, document, or convert Google Sheet data into markdown, a table, a report, or documentation. Do NOT trigger for: Excel (.xlsx), CSV, Google Docs (docs.google.com/document), databases, or how-to questions about Google Sheets.
npx skill4agent add datht-hblab-company/convert-sc-design-hblab convert-sc-design-hblabSPREADSHEET_ID~/.config/google-sheets/oauth-token.jsonclient_idclient_secretrefresh_token./docs./docsSKILL_DIRSKILL.mdscripts/read_sheet.pyhttps://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit#gid=0/d//1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms# Extract from URL (bash)
SPREADSHEET_ID=$(echo "$URL" | sed 's|.*/d/\([^/]*\).*|\1|')python3 "$SKILL_DIR/scripts/read_sheet.py" --spreadsheet-id "$SPREADSHEET_ID" --sheet-name <SHEET_NAME>python3 "$SKILL_DIR/scripts/read_sheet.py" --spreadsheet-id "$SPREADSHEET_ID" --gid <GID>--sheet-name--sheet-name--gid--gid--sheet-namepython3 "$SKILL_DIR/scripts/read_sheet.py" \
--spreadsheet-id "$SPREADSHEET_ID" \
--format json| Shape | Signs | Recommended approach |
|---|---|---|
| Tabular | Row 0 = headers, rows 1+ = records | |
| Key-value / config | Two columns (key, value) | Don't use a table — render as |
| Pivot / cross-tab | First col = label, remaining = categories | |
| Free text / notes | Irregular rows, no clear header | |
# <Spreadsheet Title or User-Provided Name>
> Source: Google Sheet — <Sheet Name> (ID: <SPREADSHEET_ID>)
## <Section heading derived from content>
<Formatted content>./docs/<sheet-name-kebab-case>.md./docsmkdir -p ./docs| Parameter | Required | Description |
|---|---|---|
| Yes | The Google Spreadsheet ID |
| No | Sheet name to read. Defaults to the first sheet. |
| No | Google Sheets tab id / |
| No | OAuth credentials path. Defaults to |
| No | Output file path. Defaults to stdout. |
| No | Output format: |
| No | Keep empty columns instead of cleaning them. |
# Fetch as JSON
python3 "$SKILL_DIR/scripts/read_sheet.py" \
--spreadsheet-id "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms" \
--gid "0"
# Fetch as markdown table
python3 "$SKILL_DIR/scripts/read_sheet.py" \
--spreadsheet-id "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms" \
--sheet-name "Sheet1" \
--format table
# Save raw output directly into the current workspace docs folder
mkdir -p ./docs
python3 "$SKILL_DIR/scripts/read_sheet.py" \
--spreadsheet-id "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms" \
--gid "0" \
--format table \
--output ./docs/sheet1.md{
"type": "oauth",
"client_id": "your-client-id.apps.googleusercontent.com",
"client_secret": "your-client-secret",
"refresh_token": "your-refresh-token"
}~/.config/google-sheets/oauth-token.jsonhttps://www.googleapis.com/auth/spreadsheets.readonlymkdir -p ~/.config/google-sheets
# Write the JSON with client_id, client_secret, refresh_tokendocs/troubleshooting.md