lark-shared

lark-shared is a skill for Claude Code from CookiesHaha/ash-claude-skills. It costs 98 tokens per session (1,039 once invoked), scanned A, original, MIT.

A shared guide for using lark-cli, a command-line tool for accessing Feishu resources, including account setup, sign-in, identities, and permissions.

In plain words
What is it for?
Use it when configuring lark-cli, authorizing access, switching identities, setting permission scopes, or diagnosing permission errors.
Why use it?
It helps determine whether an operation should use a user or bot account and explains how to fix missing access rights safely.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ash-workflow plugin — 7 skills, 1 command shipped together

Good fit Use it when configuring lark-cli, authorizing access, switching identities, setting permission scopes, or diagnosing permission errors.

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

Made for: Claude Code.

Or install ash-workflow, the plugin that ships this one along with the rest of its 7 skills, 1 command.

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/cookieshaha/ash-claude-skills/lark-shared/github.svg)](https://agentmods.dev/skills/cookieshaha/ash-claude-skills/lark-shared)
Your own site
<a href="https://agentmods.dev/skills/cookieshaha/ash-claude-skills/lark-shared"><img src="https://agentmods.dev/badge/skills/cookieshaha/ash-claude-skills/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/cookieshaha/ash-claude-skills/lark-shared"><img src="https://agentmods.dev/badge/skills/cookieshaha/ash-claude-skills/lark-shared.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,039 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.00098 $0.01039
Opus 5 $0.00049 $0.00519
Sonnet 5 $0.00020 $0.00208
Haiku 4.5 $0.00010 $0.00104

Measured 11d ago against content hash 42823555351a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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.

plugins/ash-workflow/skills/lark-shared/SKILL.md · 96 lines

What it actually says

lark-cli 共享规则

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

配置初始化

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

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

# 发起配置(该命令会阻塞直到用户打开链接并完成操作或过期)
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 需要帮用户完成认证时,使用background方式 执行以下命令发起授权流程, 并将授权链接发给用户:

# 发起授权(阻塞直到用户授权完成或过期)
lark-cli auth login --scope "calendar:calendar:readonly"

更新检查

lark-cli 命令执行后,如果检测到新版本,JSON 输出中会包含 _notice.update 字段(含 messagecommand 等)。

当你在输出中看到 _notice.update 时,完成用户当前请求后,主动提议帮用户更新

  1. 告知用户当前版本和最新版本号
  2. 提议执行更新(CLI 和 Skills 需要同时更新):
    npm update -g @larksuite/cli && npx skills add larksuite/cli -g -y
    
  3. 更新完成后提醒用户:退出并重新打开 AI Agent以加载最新 Skills

规则:不要静默忽略更新提示。即使当前任务与更新无关,也应在完成用户请求后补充告知。

安全规则

  • 禁止输出密钥(appSecret、accessToken)到终端明文。
  • 写入/删除操作前必须确认用户意图
  • --dry-run 预览危险请求。
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. 11d ago First seen · 96 lines · 98 tokens per session scan A 42823555351a

Subscribe to this mod's changes

lark-shared is a skill published in the GitHub repository CookiesHaha/ash-claude-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 98 tokens to every session and 1,039 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

analytics-strategy

Design measurement frameworks including event taxonomy, KPI hierarchy, dashboard architecture, attribution models, and analytics implementation strategy. Use this skill whenever the user wants to plan analytics, design dashboards, build event taxonomies, define KPIs, set up tracking, or audit existing measurement.…

rampstackco/claude-skills · 126 tokens

content-strategy

Develop a content strategy covering editorial positioning, content pillars, formats, calendar, governance, and topical authority planning. Use this skill whenever the user wants to plan a content program, define content pillars, build an editorial calendar, structure topic clusters, set up content governance, or align…

rampstackco/claude-skills · 120 tokens

incident-response

Manage active production incidents through detection, triage, mitigation, communication, and resolution with structured roles and decision-making. Use this skill whenever the user has an active incident, a production issue, a service outage, a security incident, or needs to plan incident response procedures. Triggers…

rampstackco/claude-skills · 117 tokens

stakeholder-communication

Communicate effectively with stakeholders across functions and seniority levels. Use this skill when writing status updates, preparing executive reviews, sharing technical decisions with non-technical audiences, managing up, communicating bad news, or designing the communication cadence for a project. Triggers on…

rampstackco/claude-skills · 103 tokens

metabot-team

Use for the MetaBot Agent Teams CLI: create and inspect durable Teams, spawn teammates, exchange messages, and manage Tasks and Runs across Sessions.

xvirobotics/metabot · 33 tokens

agb-begriff-vorformuliert-305

Für AGB Begriff Vorformuliert 305: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: agb-begriff-vorformuliert-305.

Klotzkette/claude-fuer-deutsches-recht · 68 tokens