Back to Blog

automation

Automate Attendance Lookup with lark-attendance

Query your own Lark attendance records via CLI with this agent skill, auto-filling parameters and handling auth.

OpenAgentSkillPublished:

Where this fits

You're a developer who spends half the day in a terminal and the other half in meetings. You just realized you forgot to clock in this morning—again. Instead of opening the Lark app, you want your agent to check your attendance record instantly. The lark-attendance skill from larksuite/cli lets your agent query your own attendance tasks directly from the command line, using the official Lark CLI under the hood.

Why agents benefit

  • Fully automated parameter injection: The skill enforces default values like employee_type="employee_no" and user_ids=[]—no need to ask the user or guess field formats.
  • Auth handled by shared skill: It requires reading lark-shared/SKILL.md first, which standardizes authentication and permission handling across all Lark skills.
  • Schema-driven API calls: The skill instructs agents to run lark-cli schema before each call, eliminating trial-and-error when building request payloads.
  • Read-only scope: It only needs attendance:task:readonly, so you can safely delegate without granting write access to sensitive attendance data.
  • Single-purpose design: Focused on querying user attendance records, making it easy to reason about and integrate into larger agent workflows.

Practical scenarios

Daily standup check-in

Your agent runs a morning routine that pulls your attendance status and includes it in the daily standup message. With one command, it fetches your latest clock-in time and flags if you're late—no manual app checking.

HR report generation

An HR agent needs to compile attendance summaries for a team. It can iterate over employee IDs, query each user's tasks, and aggregate the results into a report—all without leaving the CLI environment.

Personal productivity audit

You want to correlate your attendance patterns with your focus time. Your agent queries your attendance history and merges it with calendar data to identify trends like frequent late starts on Mondays.

Add it to your agent workflow

Install the skill with:

npx skills add larksuite/cli --skill lark-attendance

Then, before any call, your agent reads the shared auth skill and runs the schema command:

lark-cli schema attendance.user_tasks.query

Finally, query your attendance records:

lark-cli attendance user_tasks query --params '{"employee_type":"employee_no"}' --data '{"user_ids":[]}'

The skill automatically injects the required fields, so you only supply optional filters like date ranges.

Compare before adopting

Before adding this skill, evaluate it against other attendance automation options. Look at the repo's star count (16,669) and check how recently it was updated—Lark's CLI is actively maintained, but verify the lark-attendance skill itself hasn't drifted. Consider whether you need only read access or also write capabilities (e.g., clocking in), which this skill does not cover. Also compare with REST API wrappers or custom scripts—this skill is ideal if you're already using the Lark CLI ecosystem.

Why it is worth tracking

This skill is part of the official larksuite/cli repository, which has strong community momentum and regular updates. Its strict adherence to schema validation and shared auth patterns makes it a reliable building block for any agent that needs to interact with Lark attendance data. Track it if you're building productivity or HR automation agents—and check out its profile on OpenAgentSkill for community feedback and usage examples. Re-evaluate it whenever Lark updates its attendance API or if you need to extend beyond read-only queries.

Featured Skill

lark-attendance

Skill by larksuite