agentleFS
yjwongyjwong/lark-cli/skills/bitable/SKILL.md

bitable

Skill54 starsChanged 11 months agoMITView on GitHub

Access Lark Bitable databases - list tables, view fields, and read records. Use when user asks about a Bitable, database, or wants to query structured data.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. seahyc/lark-cowork-plugin★ 0100% same

    Edited · 0

    None found.

    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.

  • In this repository8 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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
  1. Very specific:

    Ensure lark is in your PATH, or use the full path to the binary:

    line 12
  2. Very specific:

    Use --limit to avoid fetching too many records at once

    line 180

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Lark Bitable Skill

Access Lark Bitable (database) content via the lark CLI.

Running Commands

Ensure lark is in your PATH, or use the full path to the binary:

lark bitable <command>

Commands Reference

List Tables

lark bitable tables <app_token>

Lists all tables in a Bitable app. The app_token is from the Bitable URL.

For example, if the URL is https://xxx.larksuite.com/base/ABC123xyz, the app_token is ABC123xyz.

Output:

{
  "app_token": "ABC123xyz",
  "tables": [
    {
      "table_id": "tblXYZ789",
      "name": "Projects"
    },
    {
      "table_id": "tblABC456",
      "name": "Tasks"
    }
  ],
  "count": 2
}

List Fields

lark bitable fields <app_token> <table_id>

Lists all fields (columns) in a Bitable table.

Output:

{
  "app_token": "ABC123xyz",
  "table_id": "tblXYZ789",
  "fields": [
    {
      "field_id": "fldAAA111",
      "field_name": "Name",
      "type": "text",
      "is_primary": true
    },
    {
      "field_id": "fldBBB222",
      "field_name": "Status",
      "type": "select"
    },
    {
      "field_id": "fldCCC333",
      "field_name": "Due Date",
      "type": "date"
    }
  ],
  "count": 3
}

Field types: text, number, select, multi_select, date, checkbox, person, phone, url, attachment, link, formula, duplex_link, location, group, created_time, created_user, modified_time, modified_user, auto_number

List Records

lark bitable records <app_token> <table_id> [--limit N] [--view <view_id>] [--filter <expression>]

Lists records (rows) in a Bitable table.

Options:

  • --limit: Maximum number of records to retrieve (default: no limit)
  • --view: View ID to filter records
  • --filter: Filter expression (see Lark API docs for syntax)

Output:

{
  "app_token": "ABC123xyz",
  "table_id": "tblXYZ789",
  "records": [
    {
      "record_id": "recAAA111",
      "fields": {
        "Name": "Project Alpha",
        "Status": "In Progress",
        "Due Date": 1704067200000
      }
    },
    {
      "record_id": "recBBB222",
      "fields": {
        "Name": "Project Beta",
        "Status": "Completed",
        "Due Date": 1703462400000
      }
    }
  ],
  "count": 2,
  "has_more": false
}

Note: Date fields return Unix timestamps in milliseconds.

Extracting IDs from URLs

URL TypeExampleHow to Extract
Bitable apphttps://xxx.larksuite.com/base/ABC123xyzapp_token is ABC123xyz
Specific tablehttps://xxx.larksuite.com/base/ABC123xyz?table=tblXYZ789app_token is ABC123xyz, table_id is tblXYZ789

Workflow Example

# 1. List all tables in the Bitable
lark bitable tables ABC123xyz

# 2. See what fields a table has
lark bitable fields ABC123xyz tblXYZ789

# 3. Read records from the table
lark bitable records ABC123xyz tblXYZ789 --limit 100

Error Handling

Errors return JSON:

{
  "error": true,
  "code": "ERROR_CODE",
  "message": "Description"
}

Common error codes:

  • AUTH_ERROR - Need to run lark auth login
  • SCOPE_ERROR - Missing bitable permissions. Run lark auth login --add --scopes bitable
  • API_ERROR - Lark API issue (often permissions on the specific Bitable)

Required Permissions

This skill requires the bitable scope group with the bitable:app:readonly scope. If you see a SCOPE_ERROR, add the permissions:

lark auth login --add --scopes bitable

To check current permissions:

lark auth status

Best Practices

Reading Large Tables

  • Use --limit to avoid fetching too many records at once
  • For analysis, fetch fields first to understand the schema
  • Filter by view if possible to reduce data transfer

Working with Field Values

  • Text fields return strings
  • Number fields return floats
  • Date fields return Unix timestamps in milliseconds
  • Select fields return the selected option text
  • Person fields return user IDs (use contact get to resolve names)
  • Attachment fields return file metadata arrays

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.