lark-shared

lark-shared is a skill for Claude Code, Codex from EthanYoQ/Skill-hub. It costs 48 tokens per session (1,784 once invoked), scanned A, a copy of lark-shared, MIT.

A set of shared rules for setting up and using the lark-cli command-line tool with Feishu or Lark. It covers login, choosing between a user and an app identity, permissions, and command output.

In plain words
What is it for?
Use it before running other Lark skills to initialize configuration, sign in, switch identities, diagnose missing permissions, update the tool, and handle notices in JSON output.
Why use it?
It prevents common setup and access mistakes, such as using an app identity for a user's private files or overlooking a required permission. It also explains how to handle authorization links and permission errors.

Skill for Claude CodeCodex

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

Good fit Use it before running other Lark skills to initialize configuration, sign in, switch identities, diagnose missing permissions, update the tool, and handle notices in JSON output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ethanyoq/skill-hub/lark-shared
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 EthanYoQ/Skill-hub --skill lark-shared
Clone the repo
git clone --depth 1 https://github.com/EthanYoQ/Skill-hub

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/ethanyoq/skill-hub/lark-shared/github.svg)](https://agentmods.dev/skills/ethanyoq/skill-hub/lark-shared)
Your own site
<a href="https://agentmods.dev/skills/ethanyoq/skill-hub/lark-shared"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/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/ethanyoq/skill-hub/lark-shared"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/lark-shared.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,784 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.00048 $0.01784
Opus 5.5 $0.00019 $0.00714
Sonnet 5.5 $0.00010 $0.00357
Haiku 4.5 $0.00005 $0.00178

Measured 2mo ago against content hash e14ad43ce4b3, 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 2mo 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-shared — 21 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.

archives/user-installed-skills/lark-shared/7804769af79d5e40/lark-shared/SKILL.md · 145 lines

How it starts

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

lark-cli 共享规则

本技能指导你如何通过lark-cli操作飞书资源, 以及有哪些注意事项。

配置初始化

首次使用需运行 lark-cli config init 完成应用配置。

当你帮用户初始化配置时,使用background方式使用下面的命令发起配置应用流程,启动后读取输出,从中提取授权链接并发给用户。

URL 转发规则:当命令输出 verification_url、verification_uri_complete、console_url 等 URL 字段时:必须生成二维码:你必须调用 lark-cli auth qrcode 将 URL 转为二维码并展示给用户,这是必须步骤,不要跳过。优先生成 PNG 二维码(--output);仅当用户明确要求时才使用 ASCII(--ascii)。URL 输出规则:将 URL 视为不可修改的 opaque string,不要做任何修改(包括 URL 编码/解码、添加空格或标点、重新拼接 query),二维码和链接请一起展示给用户。

# 发起配置(该命令会阻塞直到用户打开链接并完成操作或过期)
lark-cli config init --new

认证

身份类型

两种身份类型,通过 --as 切换:

身份 标识 获取方式 适用场景
user 用户身份 --as user lark-cli auth login 等 访问用户自己的资源(日历、云空间/云盘/云存储等)
bot 应用身份 --as bot 自动,只需 appId + appSecret 应用级操作,访问bot自己的资源

身份选择原则

输出的 [identity: bot/user] 代表当前身份。bot 与 user 表现差异很大,需确认身份符合目标需求:

  • Bot 看不到用户资源:无法访问用户的日历、云空间(云盘/云存储)文档、邮箱等个人资源。例如 --as bot 查日程返回 bot 自己的(空)日历
  • Bot 无法代表用户操作:发消息以应用名义发送,创建文档归属 bot
  • Bot 权限:只需在飞书开发者后台开通 scope,无需 auth login
  • User 权限:后台开通 scope + 用户通过 auth login 授权,两层都要满足

权限不足处理

遇到权限相关错误时,根据当前身份类型采取不同解决方案。

错误响应中包含关键信息:

  • permission_violations:列出缺失的 scope (N选1)
  • console_url:飞书开发者后台的权限配置链接
  • hint:建议的修复命令
Bot 身份(--as bot)

将错误中的 console_url 原样提供给用户,引导去后台开通 scope。禁止对 bot 执行 auth login。

User 身份(--as user)
lark-cli auth login --domain <domain>           # 按业务域授权
lark-cli auth login --scope "<missing_scope>"   # 按具体 scope 授权(推荐,符合最小权限原则)

规则:auth login 必须指定范围(--domain 或 --scope)。多次 login 的 scope 会累积(增量授权)。

Agent 代理发起认证(推荐)

当你作为 AI agent 需要帮用户完成认证时,优先使用 split-flow,避免在同一轮对话中阻塞等待用户授权:

# 发起授权(立即返回 device_code 和 verification_url)
lark-cli auth login --scope "calendar:calendar:readonly" --no-wait --json

拿到 verification_url 后,将它原样作为本轮最终消息发给用户,并结束本轮/交还控制权。不要在同一轮中展示 URL 后立刻执行 --device-code 阻塞轮询;在不透传中间输出的 agent harness 里,这会导致用户永远看不到 URL。

用户回复已完成授权后,再在后续步骤执行:

lark-cli auth login --device-code <device_code>

Read the full file on GitHub · 145 lines

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. 2mo ago First seen · 145 lines · 48 tokens per session scan A e14ad43ce4b3

Subscribe to this mod's changes

lark-shared is a skill published in the GitHub repository EthanYoQ/Skill-hub (12 stars, last pushed 3d ago), licensed MIT. It adds 48 tokens to every session and 1,784 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 81% identical to lark-shared, differing in 21 lines, and is treated as a copy.

Related

lark-shared compared with skills from other repositories

lark-shared next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lark-sharedEthanYoQ/Skill-hubSkill123d agoMITA48Claude Code, Codex
housecleanSethGammon/CitadelSkill9434d agoMITA89Claude Code
scheduleSethGammon/CitadelSkill9434d agoMITA41Claude Code
compassspacedock-dev/spacedockSkill874d agoApache-2.0A51Claude Code
artifact-accessChisiki1/objective-integrity-frameworkSkill2429d agoApache-2.0A48Codex
cool-workflowcoo1white/cool-workflowSkill26d agoBSD-2-ClauseA50Claude Code
handoffYSAA1/harness-workflowSkill31mo agoMITA80Claude Code, Codex