lark-im

lark-im is a skill for Claude Code, Codex from Pinvou/pinvou-agent. It costs 182 tokens per session (6,462 once invoked), scanned A, a copy of lark-im, MIT.

A messaging and group-chat tool for Lark, also known as Feishu. It works with direct messages, group chats, reply threads, reactions, bookmarks, shared files, images, and interactive message cards.

In plain words
What is it for?
Use it to send or reply to messages, search chat history, manage group members, upload or download files, handle reactions and bookmarks, and work with interactive cards.
Why use it?
It lets an agent work with conversations and their attached resources without switching between separate chat-management tasks. It can also handle group membership and chat organization features.

Skill for Claude CodeCodex

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

Good fit Use it to send or reply to messages, search chat history, manage group members, upload or download files, handle reactions and bookmarks, and work with interactive cards.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pinvou/pinvou-agent/lark-im
About the project

Pinvou/pinvou-agent is an open-source desktop workspace where an AI agent helps with work, visual design, and software development. People use it to work with files and knowledge, create editable visual artifacts, connect coding agents to projects, and extend the workspace with tools, MCP servers, skills, and workflows; the catalogue skills add capabilities to that environment.

Pinvou/pinvou-agent · 2,619 stars · on GitHub · pinvou.com

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 Pinvou/pinvou-agent --skill lark-im
Clone the repo
git clone --depth 1 https://github.com/Pinvou/pinvou-agent

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-im

README.md
[![agentmods](https://agentmods.dev/badge/skills/pinvou/pinvou-agent/lark-im/github.svg)](https://agentmods.dev/skills/pinvou/pinvou-agent/lark-im)
Your own site
<a href="https://agentmods.dev/skills/pinvou/pinvou-agent/lark-im"><img src="https://agentmods.dev/badge/skills/pinvou/pinvou-agent/lark-im/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-im

Your own site · 80×15
<a href="https://agentmods.dev/skills/pinvou/pinvou-agent/lark-im"><img src="https://agentmods.dev/badge/skills/pinvou/pinvou-agent/lark-im.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 182 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,462 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 81% copy Near-identical to another mod 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.00182 $0.06462
Opus 5.5 $0.00073 $0.02585
Sonnet 5.5 $0.00036 $0.01292
Haiku 4.5 $0.00018 $0.00646

Measured 1mo ago against content hash dd625c9984ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lark-im 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 1mo ago.

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.

Origin

This is a copy

81% identical to lark-im — 14 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

pinvou3-app/src-tauri/resources/common/bundle/lark-skills/lark-im/SKILL.md · 281 lines

How it starts

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

im (v1)

CRITICAL — 开始前 MUST 先用 read 读取 ../lark-shared/SKILL.md,其中包含认证、权限处理

Core Concepts

  • Message: A single message in a chat, identified by message_id (om_xxx). Supports types: text, post, image, file, audio, video, sticker, interactive (card), share_chat, share_user, merge_forward, etc.
  • Chat: A group chat or P2P conversation, identified by chat_id (oc_xxx).
  • Thread: A reply thread under a message, identified by thread_id (om_xxx or omt_xxx).
  • Reaction: An emoji reaction on a message.
  • Flag: A bookmark on a message or thread.
  • Feed Shortcut: A chat pinned to the current user's feed sidebar, identified by feed_card_id (an oc_xxx open_chat_id for CHAT type).
  • Feed Group: A tag that groups feed cards in the feed list, identified by feed_group_id (ofg_xxx). Members are feed cards, each identified by feed_id + feed_type. Two types: normal (members managed explicitly) and rule (members auto-derived from rules).

Resource Relationships

Chat (oc_xxx)
├── Message (om_xxx)
│   ├── Thread (reply thread)
│   ├── Reaction (emoji)
│   └── Resource (image / file / video / audio)
└── Member (user / bot)

Important Notes

AppLink and Share Links

Prefer CLI-returned links: use chat_app_link to open joined conversations, message_app_link to open messages, and share_link to invite others to groups. If manually building a joined-conversation AppLink, use https://<applink_host>/client/chat/open?openChatId=<oc_xxx>, never chatId=<oc_xxx> or lark://...chat_id=<oc_xxx>.

Identity and Token Mapping

身份规则见 lark-shared。IM 特有注意:同一 API 用 user/bot 可能一成一败(群成员关系、群主/管理员、租户边界都按当前调用者校验)。

Sender Name Resolution

When fetching messages (+chat-messages-list, +threads-messages-list, +messages-mget, +messages-search), the CLI shows a display name for both user and bot senders:

  • Server-provided name: the read APIs return sender_name (plus the full-i18n sender_i18n_names map) on each message sender; the CLI surfaces it as the sender's name for users and bots alike. No name lookup and no extra permission are needed — no contact scope and no application:bot.basic_info:read.
  • Fallback to id: when the server does not provide a name, the sender is shown by its id and the command still exits 0. There is no contact-directory fallback.

Read the full file on GitHub · 281 lines

Files

What ships with it

60 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. 1mo ago Changed · +68 lines dd625c9984ee
  2. 1mo ago Changed 61a72046678a
  3. 1mo ago Changed 03fbf24715cf
  4. 1mo ago First seen · 213 lines · 182 tokens per session scan A 63b7278d8886

Subscribe to this mod's changes

lark-im is a skill published in the GitHub repository Pinvou/pinvou-agent (2,619 stars, last pushed today), licensed MIT. It adds 182 tokens to every session and 6,462 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 81% identical to lark-im, differing in 14 lines, and is treated as a copy.