agentleFS
yjwongyjwong/lark-cli/skills/contacts/SKILL.md

contacts

Skill54 starsChanged 11 months agoMITView on GitHub

Look up employee information via Lark - find colleagues by ID, list department members, search users by name, search departments. Use when user asks about a person, colleague, job title, department, or org structure.

3 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 1

    1. seahyc/lark-cowork-plugin★ 094% same

    Wrote their own version · 2

    1. wende/macbeth★ 4same name
    2. l3rowniecakez/Claude_Skill★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository8 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Look up employee information via the lark CLI.

    line 8
  2. Very specific:

    Ensure lark is in your PATH, or use the full path to the binary.

    line 12
  3. Distinctive:

    When showing calendar events with attendees, you can enrich attendee info:

    line 110
  4. Very specific:

    Use contact get <open_id> to fetch job title and department

    line 113
  5. Distinctive:

    All commands output JSON. Format appropriately when presenting to user.

    line 129

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Contacts Lookup Skill

Look up employee information via the lark CLI.

Running Commands

Ensure lark is in your PATH, or use the full path to the binary. Set the config directory if not using the default:

lark contact <command>
# Or with explicit config:
LARK_CONFIG_DIR=/path/to/.lark lark contact <command>

Commands Reference

Get User by ID

# Look up by open_id (default)
lark contact get ou_xxxx

# Look up by user_id
lark contact get 12345 --id-type user_id

Output:

{
  "user_id": "ou_xxx",
  "open_id": "ou_xxx",
  "name": "Jane Doe",
  "en_name": "Jane Doe",
  "email": "jane@example.com",
  "job_title": "Data Analyst",
  "department": "Business Intelligence"
}

List Users in Department

# List users in root department
lark contact list-dept

# List users in specific department
lark contact list-dept od_xxxx

Output:

{
  "contacts": [
    {
      "user_id": "ou_xxx",
      "name": "Alice",
      "job_title": "Engineer",
      "department": "Engineering"
    }
  ],
  "count": 1
}

Search Users by Name

lark contact search "Jane"
lark contact search "John Smith"

Output:

{
  "contacts": [
    {
      "user_id": "ou_xxx",
      "open_id": "ou_xxx",
      "name": "Jane Doe",
      "department": "Engineering"
    }
  ],
  "count": 1
}

Search Departments

lark contact search-dept "Engineering"

Output:

{
  "departments": [
    {
      "department_id": "od_xxx",
      "name": "Engineering",
      "member_count": 42
    }
  ],
  "count": 1
}

Integration with Calendar

When showing calendar events with attendees, you can enrich attendee info:

  1. Get attendee open_id from calendar event
  2. Use contact get <open_id> to fetch job title and department
  3. Present enriched attendee info to user

Example workflow:

# Get event with attendees
lark cal show <event_id>
# Returns attendees with open_id

# Look up each attendee
lark contact get ou_attendee_id
# Returns name, job_title, department

Output Format

All commands output JSON. Format appropriately when presenting to user.

Error Handling

Errors return JSON:

{
  "error": true,
  "code": "ERROR_CODE",
  "message": "Description"
}

Common error codes:

  • AUTH_ERROR - Need to run lark auth login
  • SCOPE_ERROR - Missing contacts permissions. Run lark auth login --add --scopes contacts
  • NOT_FOUND - User or department not found
  • API_ERROR - Lark API issue

Required Permissions

This skill requires the contacts scope group. If you see a SCOPE_ERROR, the user needs to add contacts permissions:

lark auth login --add --scopes contacts

To check current permissions:

lark auth status

Notes

  • The search and search-dept commands require user authentication (OAuth via lark auth login)
  • The get and list-dept commands use tenant token (no login required)
  • Department IDs typically start with od_
  • User open_ids typically start with ou_

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.