lark-shared

lark-shared is a skill for Claude Code, Codex from Pinvou/pinvou-agent. It costs 128 tokens per session (1,727 once invoked), scanned A, original, MIT.

A shared set of rules for using lark-cli, a command-line tool for accessing Lark, the collaboration platform also known as Feishu. It covers setup, login, identity selection, permissions, JSON output, and authorization errors.

In plain words
What is it for?
Use it when another Lark add-on needs authentication, authorization, identity or configuration help, or when lark-cli is being used for the first time.
Why use it?
It provides a consistent way to handle sign-in and access problems before using other Lark tools. It also explains how to check who is signed in and which permissions are available.

Skill for Claude CodeCodex

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

Good fit Use it when another Lark add-on needs authentication, authorization, identity or configuration help, or when lark-cli is being used for the first time.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pinvou/pinvou-agent/lark-shared
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 · 3,048 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-shared
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-shared

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pinvou/pinvou-agent/lark-shared"><img src="https://agentmods.dev/badge/skills/pinvou/pinvou-agent/lark-shared.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,727 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00128 $0.01727
Opus 5.5 $0.00051 $0.00691
Sonnet 5.5 $0.00026 $0.00345
Haiku 4.5 $0.00013 $0.00173

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

Security

Grade A, and why

lark-shared 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.

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

How it starts

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

lark-cli 共享规则

所有 lark-* skill 共享的底座:身份、认证、输出契约与高风险操作。

通用准则

  1. 调用前先确认用法:执行前读对应 reference 或跑 --help,别猜 flag 盲调。

  2. 身份决定你代表谁操作:--as user 代表用户本人(能看到、也能操作其日历、云空间/云盘/云存储等个人资源),--as bot 代表应用自己,应用级操作,只能访问bot自己的资源,bot 查用户资源会返回空成功而非报错。动手前先搞清楚身份identity。身份模型和权限管理 → lark-shared-identity-and-permissions.md。

  3. 授权 / 配置类 URL 必须配二维码:当命令输出 verification_url、verification_uri_complete、console_url 等 URL 字段时,必须用 lark-cli auth qrcode 生成并在回复中展示,URL 在前二维码在后;优先生成 PNG(--output),仅当用户明确要求时才使用 ASCII(--ascii)。URL 原样转发——不编解码、不加标点、不重拼 query,二维码和链接请一起展示给用户。

  4. --format json(默认)下,判断成功用 ok == true(或进程退出码 0),不要用 code == 0:成功信封没有顶层 code / msg 字段,code 只出现在错误信封的 error 内。按 OpenAPI 老格式 {"code": 0, "msg": "ok"}判断会把所有成功调用误判为失败——封装写入类命令时尤其危险。JSON 输出契约 → lark-shared-output-contract.md。

  5. CLI 未安装 / 未登录时不要自行排障:lark-cli 命令不存在或执行报「找不到命令」时,由品悟应用代管安装——不要自行安装或升级,提示用户在品悟「插件中心 → 飞书(Lark)」卡片重新点「连接」,由应用完成安装/升级后重试。未登录、登录态过期或权限不足时,按 lark-shared-identity-and-permissions.md 的按需授权两段式处理(发起授权的回合只发链接,不在同一轮跑阻塞式登录;后续轮按该 reference 完成 --device-code 登录),也不要因未登录直接断定技能不可用。

  6. 限流(rate limit)默认处理:错误码 / 错误消息命中 rate_limit、99991400、HTTP 429,或 hint 提示频率受限时,不要立即重试:按返回的 retry_after_seconds / hint 等待后做指数退避,总尝试次数控制在约 3 次(1 次初始 + 2 次重试)以内;批量 / 分页场景改用更小批次、放慢翻页规避。个别接口有专属限流口径的(如 drive 导出任务的等待与续查规则),以对应 reference 为准。

安全规则

  1. 禁止输出密钥(appSecret、accessToken等)到终端明文。

  2. 写入/删除操作前必须确认用户意图。

  3. 目标命令支持 --dry-run 时,用 --dry-run 预览危险请求。

  4. 退出码 10 是高风险确认门禁(risk: "high-risk-write"),不是错误:停下 → 向用户确认(展示 action、risk 和关键参数)→ 取得用户显式同意后,将 hint 指出的确认 flag 追加到你原始 argv 的末尾后重试;绝不静默加确认 flag 绕过 → lark-shared-high-risk-approval.md。

  5. 文件路径只接受相对路径:--file、--output、--output-dir、@file 等路径参数只接受 cwd 下的相对路径,传绝对路径会报 unsafe file path。数据输入(@file、大 JSON)优先用 stdin 传入,避免路径和转义问题。

Read the full file on GitHub · 56 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. 1mo ago Changed · +4 lines · +3 tokens per session 8ada0d3d90fd
  2. 1mo ago Changed · +4 tokens per session be31328ecef9
  3. 2mo ago Changed · -193 lines 676f3fdec68e
  4. 3mo ago First seen · 245 lines · 121 tokens per session scan A 2031dca33e20

Subscribe to this mod's changes

lark-shared is a skill published in the GitHub repository Pinvou/pinvou-agent (3,048 stars, last pushed yesterday), licensed MIT. It adds 128 tokens to every session and 1,727 once invoked, about $0.0005 per session on Opus 5.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-30.

Related

lark-shared compared with skills from other repositories

lark-shared next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lark-sharedPinvou/pinvou-agentSkill3.0kyesterdayMITA128Claude Code, Codex
create-agentPM-Shawn/Abu-CoworkSkill4252d agoApache-2.0A13Claude Code
infographicPM-Shawn/Abu-CoworkSkill4252d agoApache-2.0A71Claude Code
pptxPM-Shawn/Abu-CoworkSkill4252d agoApache-2.0A152Claude Code, Codex
initPM-Shawn/Abu-CoworkSkill4252d agoApache-2.0A21Claude Code
prd-doctorPM-Shawn/Abu-CoworkSkill4252d agoApache-2.0A43Claude Code
Abu-BrowserPM-Shawn/Abu-CoworkSkill4252d agoApache-2.0A51Claude Code