Skills2026年3月30日·1 分钟阅读

Lark CLI Skill: Skill Maker — Create Custom Skills

Lark/Feishu CLI skill for creating reusable custom skills. Wrap atomic APIs or orchestrate multi-step workflows.

Agent 就绪

这个资产会安全暂存

这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。

Stage only · 17/100策略:需暂存
Agent 入口
任意 MCP/CLI Agent
类型
CLI Tool
安装
Stage only
信任
信任等级:Community
入口
Lark CLI Skill: Skill Maker — Create Custom Skills
安全暂存命令
npx -y tokrepo@latest install 065a3ce6-0c95-4a75-a009-ae5c90ce5ffa --target codex

先暂存文件;激活前需要读取暂存 README 和安装计划。

TL;DR
Lark/Feishu CLI skill that creates reusable custom skills by wrapping atomic APIs or orchestrating multi-step workflows.
§01

What it is

The Lark CLI Skill Maker is a skill for creating reusable custom skills on the Lark (Feishu) platform. It enables developers to wrap atomic API calls or orchestrate multi-step workflows into shareable skill definitions that other users and AI agents can invoke.

The skill targets teams building automation on Lark/Feishu who want to encapsulate common operations (sending messages, creating documents, managing calendars) into reusable, composable building blocks.

§02

How it saves time or tokens

Instead of writing the same Lark API integration code for every project, the Skill Maker packages it into a reusable skill definition. Other developers or AI agents can invoke the skill by name without understanding the underlying API details.

The composable skill architecture means complex multi-step workflows (like 'create a project channel, invite members, and post a kickoff message') become single skill invocations.

Additionally, the project's well-structured documentation and active community mean developers spend less time troubleshooting integration issues. When AI coding assistants generate code for this tool, they can reference established patterns from the documentation, producing correct implementations with fewer iterations and lower token costs.

§03

How to use

  1. Define a skill by specifying the API calls and parameters:
name: create-project-channel
description: Create a Lark group chat for a new project
parameters:
  - name: project_name
    type: string
    required: true
  - name: member_ids
    type: array
    required: true
steps:
  - action: create_group_chat
    params:
      name: '{{project_name}} Channel'
  - action: add_members
    params:
      chat_id: '{{steps[0].result.chat_id}}'
      members: '{{member_ids}}'
  1. Register the skill with the Lark CLI:
lark-cli skill register ./create-project-channel.yaml
  1. Invoke the skill:
lark-cli skill run create-project-channel \
  --project_name 'Q2 Launch' \
  --member_ids '["user1", "user2"]'
  1. Share the skill with your team for reuse.
§04

Example

# Programmatic skill invocation
from lark_cli import SkillRunner

runner = SkillRunner()
result = runner.run('create-project-channel', {
    'project_name': 'Q2 Launch',
    'member_ids': ['user1', 'user2']
})
print(f'Channel created: {result["chat_id"]}')
§05

Related on TokRepo

§06

Common pitfalls

  • Creating skills that are too specific. Design skills with configurable parameters so they can be reused across different projects and contexts.
  • Not handling API rate limits in multi-step skills. Lark APIs have rate limits. Add delays or retry logic between steps to avoid throttling.
  • Skipping error handling in skill definitions. Multi-step skills should define rollback behavior when intermediate steps fail.
  • Failing to review community discussions and changelogs before upgrading. Breaking changes in major versions can disrupt existing workflows. Pin versions in production and test upgrades in staging first.

常见问题

What is Lark/Feishu?+

Lark (known as Feishu in China) is ByteDance's enterprise collaboration platform. It provides messaging, video conferencing, document editing, project management, and API-driven automation. The CLI skill system enables programmatic interaction with Lark services.

Can skills call multiple Lark APIs?+

Yes. Skills can orchestrate multiple API calls in sequence, passing results from one step to the next. This enables complex workflows like creating a document, sharing it with a group, and posting a notification, all in a single skill invocation.

Are skills shareable across teams?+

Yes. Skill definitions are YAML files that can be version-controlled and shared. Teams can maintain a library of reusable skills for common operations, reducing duplication across projects.

Can AI agents invoke these skills?+

Yes. The skill definitions are designed to be invocable by AI agents. An agent can discover available skills, understand their parameters from the YAML description, and invoke them programmatically.

Does the Skill Maker require coding knowledge?+

Basic YAML knowledge is sufficient for simple skills. Complex skills with conditional logic or error handling benefit from programming experience. The YAML-based approach makes skill creation accessible to non-developers for straightforward workflows.

引用来源 (3)
🙏

来源与感谢

Created by LarkSuite. Licensed under MIT. larksuite/cli — 4,100+ GitHub stars

Part of the Lark CLI Official Skills Collection on TokRepo.

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产