sheets
Skill54 starsChanged 11 months agoMITView on GitHub
Read and query Lark Sheets (spreadsheets) - list sheets in a spreadsheet, read cell data. Use when user asks about a spreadsheet, wants to read data from a Lark sheet, or mentions a spreadsheet URL/ID.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- seahyc/lark-cowork-pluginedited, first seen Apr 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- seahyc/lark-cowork-plugin★ 030% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Read and query Lark Sheets (spreadsheets) via the lark CLI.
- Distinctive: line 16
Run from the vault root directory with required env var:
- Very specific: line 104
Use the fileToken with sheet download to download these attachments.
- Distinctive: line 208
All commands output JSON. Format appropriately when presenting to user.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lark Sheets Skill
Read and query Lark Sheets (spreadsheets) via the lark CLI.
Tool Location
tools/bin/larkRun from the vault root directory with required env var:
LARK_CONFIG_DIR=tools/lark/.lark tools/bin/lark sheet <command>Commands Reference
List Sheets in a Spreadsheet
tools/bin/lark sheet list <spreadsheet_token>Lists all sheets (tabs) within a Lark spreadsheet. Returns sheet IDs, titles, dimensions, and hidden status.
Output:
{
"spreadsheet_token": "T4mHsrFyzhXrj0tVzRslUGx8gkA",
"sheets": [
{
"sheet_id": "abc123",
"title": "Sheet1",
"index": 0,
"row_count": 100,
"column_count": 10
},
{
"sheet_id": "def456",
"title": "Sheet2",
"index": 1,
"hidden": true,
"row_count": 50,
"column_count": 5
}
],
"count": 2
}Fields:
sheet_id: The unique ID of the sheet (use this with--sheetflag)title: Display name of the sheetindex: Position of the sheet (0-indexed)hidden: Whether the sheet is hidden in the UIrow_count/column_count: Dimensions of the sheet
Read Sheet Data
tools/bin/lark sheet read <spreadsheet_token> [--sheet <sheet_id>] [--range A1:Z100]Reads cell values from a Lark spreadsheet.
Options:
--sheet: Sheet ID to read from (default: first sheet by index)--range: Cell range to read (e.g.,A1:Z100). Default: all data up to 1000 rows
Output:
{
"spreadsheet_token": "T4mHsrFyzhXrj0tVzRslUGx8gkA",
"sheet_id": "abc123",
"range": "abc123!A1:D10",
"row_count": 10,
"column_count": 4,
"values": [
["Header1", "Header2", "Header3", "Header4"],
["Value1", "Value2", 123, true],
["Row2Val1", null, 456, false]
]
}Note: Cell values preserve their types (string, number, boolean). Empty cells may appear as null or be omitted from rows. Some cells with rich formatting may return structured objects instead of plain values.
Cells containing file attachments return structured objects like:
{
"fileToken": "JwhmbXFVeoeIkixnmMKlguhzgLe",
"mimeType": "application/pdf",
"size": 930948,
"text": "Contract.pdf",
"type": "attachment"
}Use the fileToken with sheet download to download these attachments.
Download Cell Attachments
tools/bin/lark sheet download <file_token> --spreadsheet <spreadsheet_token> -o <output_path>Downloads a file attachment embedded in a spreadsheet cell. The file_token is the fileToken from sheet read output.
Options:
--spreadsheet: Spreadsheet token the attachment belongs to (required)-o/--output: Output file path (required)
Output:
{
"file_token": "JwhmbXFVeoeIkixnmMKlguhzgLe",
"filename": "/tmp/contract.pdf",
"content_type": "application/pdf",
"size": 930948
}Extracting IDs from URLs
The spreadsheet_token is from the spreadsheet URL:
- URL:
https://xxx.larksuite.com/sheets/T4mHsrFyzhXrj0tVzRslUGx8gkA - Token:
T4mHsrFyzhXrj0tVzRslUGx8gkA
The sheet_id can be found in the URL query parameter:
- URL:
https://xxx.larksuite.com/sheets/T4mHsrFyzhXrj0tVzRslUGx8gkA?sheet=abc123 - Sheet ID:
abc123
Which Command to Use
| Use Case | Command | Notes |
| Browse sheets/tabs | sheet list | See all sheets and dimensions |
| Read specific data | sheet read --range | Target specific cells |
| Read full sheet | sheet read --sheet | Up to 1000 rows |
| Read first sheet | sheet read | Auto-selects first by index |
| Download attachment | sheet download | From cell fileToken |
Workflow Examples
Get Overview of a Spreadsheet
# List all sheets first
LARK_CONFIG_DIR=tools/lark/.lark tools/bin/lark sheet list T4mHsrFyzhXrj0tVzRslUGx8gkA
# Then read specific sheet
LARK_CONFIG_DIR=tools/lark/.lark tools/bin/lark sheet read T4mHsrFyzhXrj0tVzRslUGx8gkA --sheet abc123 --range A1:D20Read Header Row Only
LARK_CONFIG_DIR=tools/lark/.lark tools/bin/lark sheet read T4mHsrFyzhXrj0tVzRslUGx8gkA --range A1:Z1Read First 50 Rows of Specific Sheet
LARK_CONFIG_DIR=tools/lark/.lark tools/bin/lark sheet read T4mHsrFyzhXrj0tVzRslUGx8gkA --sheet def456 --range A1:Z50Efficient Extraction with jq
For large spreadsheets, use jq to extract specific data without loading everything into context.
Get Column Headers
LARK_CONFIG_DIR=tools/lark/.lark tools/bin/lark sheet read <token> --range A1:Z1 | jq '.values[0]'Get Row Count
LARK_CONFIG_DIR=tools/lark/.lark tools/bin/lark sheet read <token> | jq '.row_count'Extract Specific Column (Column B)
LARK_CONFIG_DIR=tools/lark/.lark tools/bin/lark sheet read <token> | jq '[.values[] | .[1]]'Find Rows Matching a Value
LARK_CONFIG_DIR=tools/lark/.lark tools/bin/lark sheet read <token> | jq '[.values[] | select(.[0] == "SearchValue")]'Get First N Rows
LARK_CONFIG_DIR=tools/lark/.lark tools/bin/lark sheet read <token> | jq '.values[:10]'Output Format
All commands output JSON. Format appropriately when presenting to user.
Error Handling
Errors return JSON:
{
"error": true,
"code": "ERROR_CODE",
"message": "Description"
}Common error codes:
AUTH_ERROR- Need to runlark auth loginSCOPE_ERROR- Missing documents permissions. Runlark auth login --add --scopes documentsAPI_ERROR- Lark API issue (often permissions)NO_SHEETS- Spreadsheet has no sheets
Required Permissions
This skill requires the documents scope group (uses drive:drive:readonly). If you see a SCOPE_ERROR, the user needs to add documents permissions:
LARK_CONFIG_DIR=tools/lark/.lark tools/bin/lark auth login --add --scopes documentsTo check current permissions:
LARK_CONFIG_DIR=tools/lark/.lark tools/bin/lark auth statusLimitations
- Maximum 1000 rows read by default (use
--rangefor specific cells) - Column letters limited to A-Z (26 columns) when auto-detecting range
- Rich text cells may return structured objects instead of plain strings
- Some merged cells may have unexpected value placement
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

