AI Skill
Pass
Audit score 90

lark-attendance

larksuite/cli

Query your Lark attendance clock-in records.

What is lark-attendance?

This skill lets you retrieve your own attendance and clock-in records from Lark (飞书). Use it when you need to check your attendance history, verify punch times, or audit your work hours.

  • Query personal attendance clock-in records
  • Automatically populate required parameters (employee_type and user_ids)
  • Access attendance data via Lark CLI API
  • View attendance task information and history

How to install lark-attendance

npx skills add null --skill lark-attendance
Prerequisites
  • lark-cli installed and configured
  • Valid Lark authentication (see lark-shared skill)
  • attendance:task:readonly permission scope
Claude Code
Cursor
Windsurf
Cline

How to use lark-attendance

  1. 1.Install the skill using: npx skills add null --skill lark-attendance
  2. 2.Ensure you have read the lark-shared/SKILL.md for authentication setup
  3. 3.Run `lark-cli schema attendance.user_tasks.query` to view available parameters
  4. 4.Call `lark-cli attendance user_tasks query` with your desired filters (date range, etc.)
  5. 5.Review the returned attendance records

Use cases

Good for
  • Check your own attendance records for a specific date range
  • Verify clock-in and clock-out times
  • Review attendance history for payroll or compliance purposes
  • Audit personal work hour records
Who it's for
  • Employees using Lark for attendance tracking
  • HR personnel managing their own attendance records
  • Anyone needing to verify their clock-in history

lark-attendance FAQ

Do I need to provide user_ids or employee_type?

No. These parameters are automatically filled: user_ids is always an empty array and employee_type is always 'employee_no'. You should not provide them.

What permission do I need?

You need the attendance:task:readonly scope in your Lark authentication.

Can I query other people's attendance?

This skill queries only your own attendance records. The user_ids parameter is fixed to an empty array, which retrieves your personal data.

How do I check the API parameter structure?

Run `lark-cli schema attendance.user_tasks.query` before making API calls to see the exact --data and --params format.

Full instructions (SKILL.md)

Source of truth, from larksuite/cli.


name: lark-attendance version: 1.0.0 description: "飞书考勤打卡:查询自己的考勤打卡记录" metadata: requires: bins: ["lark-cli"] cliHelp: "lark-cli attendance --help"

attendance (v1)

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

默认参数自动填充规则

调用任何 API 时,以下参数 必须自动填充,禁止向用户询问

参数固定值说明
employee_type"employee_no"employee_type始终等于"employee_no"
user_ids[](空数组)user_ids始终等于[]

填充示例

当构建 --params 参数时,自动注入上述字段:

  • employee_type 保持 "employee_no" 不变

当构建 --data 参数时,自动注入上述字段:

{
  "user_ids": [],
  ...用户提供的参数
}

注意user_ids 数组保持为空[],employee_type 保持 "employee_no" 不变。

API Resources

lark-cli schema attendance.<resource>.<method>   # 调用 API 前必须先查看参数结构
lark-cli attendance <resource> <method> [flags]  # 调用 API

重要:使用原生 API 时,必须先运行 schema 查看 --data / --params 参数结构,不要猜测字段格式。

user_tasks

  • query — 查询用户考勤打卡记录

权限表

方法所需 scope
user_tasks.queryattendance:task:readonly