feishu-cli-platform

Manages Feishu CLI authentication, profiles, OpenAPI schema lookup, raw API calls, and global search.

1.4k|142|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/riba2534/feishu-cli --skill feishu-cli-platform
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feishu-cli-platform
Source: https://github.com/riba2534/feishu-cli/tree/main/skills/feishu-cli-platform
Command: npx skills add https://github.com/riba2534/feishu-cli --skill feishu-cli-platform

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AI agents and developers working with Feishu (Lark) need a reliable way to handle OAuth Device Flow login, token lifecycle, multi-app profiles, and discovery of the 2500+ OpenAPI endpoints before they can run any business operation. This Skill provides the platform foundation: authentication, diagnostics, schema browsing, raw API passthrough, global search, and directory queries.

Core Features & Use Cases

  • Authentication & Token Management: Device Flow login with a two-step non-blocking mode for AI agents, scope prechecks via auth check, token export for curl/Python, and multi-app profile isolation.
  • OpenAPI Schema + Raw API Passthrough: Query local/remote OpenAPI catalogs for paths, parameters, and scopes, then call any endpoint with feishu-cli api including dry-run, pagination, jq filtering, and error-code translation.
  • Global Search & Directory: Search docs, messages (with enrichment and p2p chat support), and apps, plus read-only user and department lookups.
  • Use Case: An AI agent needs to call an unwrapped Feishu endpoint. It runs schema to find the path and required scope, prechecks with auth check --scope, performs a two-step Device Flow login, then executes the call with api --as user --dry-run before sending the real request.

Quick Start

Ask the agent to check Feishu login status and search docs for a keyword, for example: "Check my Feishu auth scopes and search docs for 'quarterly report' using feishu-cli."

Frequently Asked Questions about feishu-cli-platform

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I log in to Feishu CLI from an AI agent without blocking?

Use the two-step Device Flow: run `feishu-cli auth login --recommend --no-wait --json` to get a verification link, send it to the user, then resume with `feishu-cli auth login --device-code <code> --json` after authorization. Repeating step one invalidates the previous link.

How do I call a Feishu OpenAPI endpoint that has no dedicated CLI command?

First run `feishu-cli schema <service>.<resource>.<method>` to find the path, parameters, and required scopes, then call it with `feishu-cli api <METHOD> <path>` using flags like --data, --as user, and --dry-run for safe preview.

How do I search Feishu messages including private chats?

Use `feishu-cli search messages "keyword" --chat-type p2p_chat` with the search:message scope. Add --enrich to include message content and sender names, and --page-all with --page-limit for controlled pagination.

Does feishu-cli support multiple Feishu apps or bots?

Yes, profiles isolate config.yaml and token.json per app. Run `feishu-cli profile list --json` to see available bots, then target one per command with `--profile <name>` instead of changing the global default with profile use.

Why does Feishu CLI return error 99991672 or 99991679?

99991672 means the access token is invalid or expired, so log in again. 99991679 means the app lacks the required scope, which must be enabled on the Feishu open platform before re-authenticating with that scope.

When should I not use the platform skill for Feishu operations?

Do not use it for document content, drive files, messaging, sheets, bitable, calendar, approval, mail, or meetings. Those business domains belong to dedicated skills like feishu-cli-docs, feishu-cli-messaging, feishu-cli-work, and feishu-cli-meetings.