lark

lark is a skill for Claude Code, Codex from Haili321/haili-auto-mkt. It costs 68 tokens per session (904 once invoked), scanned A, original, MIT.

A Python client for reading and writing Lark documents, spreadsheets, drive files, and messages. Lark, also called Feishu, is a workplace collaboration platform with documents and messaging.

In plain words
What is it for?
Use it to read or update Lark content, push spreadsheet data, manage drive files, and send or retrieve messages through Python.
Why use it?
It handles the access methods needed for automated Lark work, including app-only access and user login with token refresh.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to read or update Lark content, push spreadsheet data, manage drive files, and send or retrieve messages through Python.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/haili321/haili-auto-mkt/lark
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Haili321/haili-auto-mkt --skill lark
Clone the repo
git clone --depth 1 https://github.com/Haili321/haili-auto-mkt

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lark

README.md
[![agentmods](https://agentmods.dev/badge/skills/haili321/haili-auto-mkt/lark/github.svg)](https://agentmods.dev/skills/haili321/haili-auto-mkt/lark)
Your own site
<a href="https://agentmods.dev/skills/haili321/haili-auto-mkt/lark"><img src="https://agentmods.dev/badge/skills/haili321/haili-auto-mkt/lark/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lark

Your own site · 80×15
<a href="https://agentmods.dev/skills/haili321/haili-auto-mkt/lark"><img src="https://agentmods.dev/badge/skills/haili321/haili-auto-mkt/lark.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 904 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.00904
Opus 5 $0.00034 $0.00452
Sonnet 5 $0.00014 $0.00181
Haiku 4.5 $0.00007 $0.00090

Measured 12d ago against content hash 99eb31e3add9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

lark scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/lark_auth.py, scripts/lark_client.py, scripts/push_to_sheet.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/lark/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Lark (Feishu International) Client

Use this skill when you need to read or write Lark docs, sheets, drive files, or messages programmatically. The skill ships a LarkClient Python library plus a one-time OAuth helper and a generic spreadsheet pusher.

Boundary

  • Never commit lark_config.json (contains your app secret) or .lark_tokens.json (contains a user refresh token). Both are gitignored.
  • All API calls go through LarkClient so token refresh and error handling stay consistent.
  • For org-internal automation prefer tenant tokens (as_user=False); use user tokens (as_user=True) only when the API endpoint requires it.

Setup

  1. Create an app in the Lark Open Platform, give it the scopes you need.

  2. Copy templates/lark_config.example.json to lark_config.json in your working directory (or set LARK_CONFIG=/path/to/config.json). Fill in app_id and app_secret.

  3. For user-token endpoints, run a one-time OAuth dance:

    python3 skills/lark/scripts/lark_auth.py
    

    Browser opens, you approve. The script caches refresh_token in .lark_tokens.json (also gitignored). After this, LarkClient will auto-refresh.

Quick recipes

Read a doc (raw text):

from lark_client import LarkClient
client = LarkClient()
text = client.get_doc_raw_content("DOC_TOKEN", as_user=True)

Read a sheet range:

data = client.get_sheet_values("SHEET_TOKEN", "Sheet1!A1:D10", as_user=True)
for row in data["valueRange"]["values"]:
    print(row)

Write to a sheet range:

client.update_sheet_values(
    "SHEET_TOKEN",
    "Sheet1!A1:B2",
    [["name", "score"], ["Alice", 95]],
    as_user=True,
)

Send a chat message by email:

client.send_to_email("[email protected]", "Hi there!", as_user=True)

Push a JSON file straight into a sheet range:

python3 skills/lark/scripts/push_to_sheet.py \
  --sheet-token SHEET_TOKEN \
  --range "Sheet1!A1" \
  --json-file ./rows.json

Read the full file on GitHub · 116 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 116 lines · 68 tokens per session scan A 99eb31e3add9

Subscribe to this mod's changes

lark is a skill published in the GitHub repository Haili321/haili-auto-mkt (2 stars, last pushed 3mo ago), licensed MIT. It adds 68 tokens to every session and 904 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.