/lark:takeoverfrom lark
Take over the Lark WebSocket connection from another Claude Code session. Use when Lark messages are going to a different session, or when you want to switch Lark to the current session.
Ships in lark. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Takes the Lark WebSocket connection from another session and assigns it to this one. The other session will detect the takeover and disconnect within a few seconds.
Arguments passed: $ARGUMENTS
Read the session registry at ~/.claude/channels/lark/sessions/.
Each file is {pid}.json containing { pid, ppid, cwd, startedAt }.
List all files and read them. Skip files where the process is dead.
Read ~/.claude/channels/lark/ws.lock to show the current lock owner.
Find this session's entry. The entry whose cwd matches the
current working directory is most likely this session. If ambiguous
(multiple sessions with same cwd), show the list and ask the user
to pick by PID.
Write the takeover signal file:
mkdir -p ~/.claude/channels/lark
Write ~/.claude/channels/lark/takeover with this session's ppid
value from the registry (the bun run wrapper PID).
The server.ts poll loop checks if this matches process.ppid and
takes over the lock if it does.
Confirm: "Takeover requested. The Lark connection will switch to this session within a few seconds."
status — show current state~/.claude/channels/lark/ws.lock.~/.claude/channels/lark/sessions/ and display
each session's PID, cwd, and startedAt. Mark which one holds the lock.server.ts registers itself at startup by writing
~/.claude/channels/lark/sessions/{pid}.json.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub moca-love/claude-code-lark --plugin lark3 skills in this plugin
/accessManage Lark channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Lark channel./configureSet up the Lark channel — save the app credentials and review access policy. Use when the user asks to configure Lark, provides app credentials, asks "how do I set this up" or "who can reach me," or wants to check channel status.Other plugins' skills for the same job