lark-cli CLAUDE.md

lark-cli CLAUDE.md is an instructions file for coding agents from yjwong/lark-cli. It costs 1,056 tokens per session, scanned A, original, MIT.

Repository instructions for Lark, a Go command-line tool for interacting with Lark APIs. They describe its folders, build and test commands, coding conventions, configuration, and main commands.

In plain words
What is it for?
Use them when building, testing, configuring, or extending Lark's authentication, calendar, mail, API, and command-line features.
Why use it?
They give the coding agent the project-specific rules needed to make compatible changes and use the correct development commands.

Instructions file

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.

agentmods
npx agentmods add instructions/yjwong/lark-cli/claude-md
Clone the repo
git clone --depth 1 https://github.com/yjwong/lark-cli

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-cli CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yjwong/lark-cli/claude-md.svg)](https://agentmods.dev/instructions/yjwong/lark-cli/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/yjwong/lark-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/yjwong/lark-cli/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,056 This file is loaded in full into every session.
When invoked 1,056 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01056 $0.01056
Opus 5 $0.00528 $0.00528
Sonnet 5 $0.00211 $0.00211
Haiku 4.5 $0.00106 $0.00106

Measured 4d ago against content hash 8cb1e78ea967, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lark-cli CLAUDE.md 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 4d 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.

CLAUDE.md · 109 lines

How it starts

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

Claude Code Instructions for lark

A Go CLI tool for interacting with Lark APIs, designed for use by Claude Code.

Project Structure

cmd/lark/         # Main entry point
internal/
  api/            # Lark API client
  auth/           # OAuth authentication
  cmd/            # Cobra command implementations
  config/         # Configuration handling
  conflicts/      # Conflict detection
  mail/           # IMAP mail client with caching
  output/         # JSON/human-readable output formatting
  time/           # Date/time parsing

Build & Test

make build        # Build binary to ./lark
make test         # Run tests
make deps         # Tidy and download dependencies
make install      # Install to $GOPATH/bin

Code Conventions

  • JSON output by default
  • Error responses use structured format: {"error": true, "code": "...", "message": "..."}
  • Date parsing supports ISO 8601 formats
  • Config in .lark/config.yaml, secrets via LARK_APP_SECRET env var
  • Use Cobra for commands, Viper for config

Commands

See USAGE.md for full CLI documentation. Main commands:

Auth

  • auth login|status|logout - Authentication

Calendar (cal)

  • cal list - List events (supports --week, --from, --to)
  • cal show <id> - Show event details
  • cal create - Create event
  • cal update <id> - Update event
  • cal delete <id> - Delete event
  • cal search <query> - Search events
  • cal freebusy - Query availability
  • cal lookup-user - Get user ID from email
  • cal common-freetime - Find mutual availability
  • cal rsvp <id> - Accept/decline invitation

Contacts (contact)

  • contact get <user_id> - Get user info by ID
  • contact list-dept [dept_id] - List users in department
  • contact search-dept <query> - Search departments by name

Messages (msg)

  • msg history - Get chat message history
  • msg resource - Download message attachments
  • msg send - Send messages to users or chats
  • msg recall - Recall/delete a message
  • chat search - Find chats and groups

Read the full file on GitHub · 109 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. 4d ago First seen · 109 lines · 1,056 tokens per session scan A 8cb1e78ea967

Subscribe to this mod's changes

lark-cli CLAUDE.md is an instructions file published in the GitHub repository yjwong/lark-cli (53 stars, last pushed 5mo ago), licensed MIT. It adds 1,056 tokens to every session, about $0.0053 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-30.