一键导入
add-feishu
Add Feishu (飞书/Lark) as a channel. Uses WebSocket long connection mode — no public URL needed. Bot responds to all messages (no trigger required).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add Feishu (飞书/Lark) as a channel. Uses WebSocket long connection mode — no public URL needed. Bot responds to all messages (no trigger required).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Apply the user's Chinese writing style when writing, translating, editing, proofreading, polishing, or publishing Chinese content, including blog posts, articles, subtitles, captions, tweets/X posts, threads, newsletters, and social posts. Enforce punctuation rules, especially Chinese curved quotes, halfwidth dash " - ", ASCII ellipsis "......", and no leftover fullwidth/English punctuation in Chinese body text.
Turn a user-provided voiceover audio file + SRT subtitle into a finished, narration-synced MP4 using HyperFrames (HTML-to-video). The audio + SRT are the source of truth — scenes are timed to the SRT cues, content is read from the SRT, and the audio is muxed in automatically. Use when the user hands over an mp3/wav + srt and wants a video, says "把音频做成视频", "做一期视频", "audio + srt to video", "把这期早读做成视频", "render this narration into a video", or provides a recording + subtitles for an explainer / daily / 解读 / 口播. NOT for generating the voiceover (that's the user's job here) and NOT for slide decks (use a slides skill).
Produce slides-driven narration videos (口播视频) where each slide maps 1:1 to one voiceover section. Orchestrates a slides-generating skill (PPT, chosen from whatever is available) and `video-planner` (script + publishing materials) with a method-focused production workflow. Use when user wants to make a video that uses slides to explain a topic - e.g. 发布解读 / 产品评测 / 行业观察 / 技术解读 / 趋势分析. Triggers on "做一期视频 + PPT", "slides 视频", "发布解读视频", "深度讲解视频", or similar requests for structured narration videos.
Design typography-driven video cover images using HTML/CSS + Chrome DevTools screenshot. Generates covers in all needed aspect ratios - 16:9 (YouTube), 16:10 (Bilibili), 9:16 and 3:4 (抖音/视频号 竖屏短视频) - with big readable text. Different from `cover-image` (AI hand-drawn aesthetic) - this is precise typography control via code. Use when user asks for "视频封面", "thumbnail", "做封面", "cover design", "缩略图", "横屏/竖屏封面", "抖音封面", "视频号封面".
Manage Claude Code session transcripts from local JSONL storage, including listing candidate sessions, exporting full or selected sessions to organized Markdown, inspecting archives, and summarizing tool-call history. Use when the user asks to scan, parse, archive, inspect, recover, summarize, manage, or convert Claude Code sessions, `~/.claude/projects` data, `.jsonl` transcripts, tool-call history, or hard-to-read Claude Code conversation logs.
Review one completed Claude Code session and propose a skill to create, update, or reuse so similar work goes faster next time. Use when the user asks to "mine a session for skills", "what skill can be created or updated from the session where I…", "extract a skill from this chat", or to review a past session for reusable workflows. Operates on exported session markdown from claude-session-manager. Not for exporting/converting sessions (use claude-session-manager) and not for writing blogs or TODOs from sessions.
| name | add-feishu |
| description | Add Feishu (飞书/Lark) as a channel. Uses WebSocket long connection mode — no public URL needed. Bot responds to all messages (no trigger required). |
This skill adds Feishu (飞书) support to NanoClaw using the skills engine for deterministic code changes, then walks through interactive setup.
Read .nanoclaw/state.yaml. If feishu is in applied_skills, skip to Phase 3 (Setup). The code changes are already in place.
Use AskUserQuestion to collect configuration:
AskUserQuestion: Do you have a Feishu app already, or do you need to create one?
If they have one, collect FEISHU_APP_ID and FEISHU_APP_SECRET now. If not, we'll create one in Phase 3.
Run the skills engine to apply this skill's code package. The package files are in this directory alongside this SKILL.md.
If .nanoclaw/ directory doesn't exist yet:
npx tsx scripts/apply-skill.ts --init
npx tsx scripts/apply-skill.ts .claude/skills/add-feishu
This deterministically:
src/channels/feishu.ts (FeishuChannel class implementing Channel interface)src/index.ts (reads credentials via readEnvFile, creates FeishuChannel if configured)@larksuiteoapi/node-sdk npm dependency.env with FEISHU_APP_ID and FEISHU_APP_SECRET.nanoclaw/state.yamlIf the apply reports merge conflicts, read the intent file:
modify/src/index.ts.intent.md — what changed and invariants for index.tsnpm run build
Build must be clean before proceeding.
If the user doesn't have a Feishu app, tell them:
I need you to create a Feishu bot:
- Go to Feishu Open Platform and create a new app
- Under Credentials, copy the App ID and App Secret
- Under Event Subscriptions, enable Long Connection (WebSocket) mode
- Add the event:
im.message.receive_v1(Receive messages)- Under Permissions, add:
im:message:send_as_bot(Send messages as bot)im:message(Read messages)- Publish the app (or create a version and approve it)
Wait for the user to provide the App ID and App Secret.
Add to .env:
FEISHU_APP_ID=<their-app-id>
FEISHU_APP_SECRET=<their-app-secret>
npm run build
launchctl kickstart -k gui/$(id -u)/com.nanoclaw # macOS
# Linux: systemctl --user restart nanoclaw
Tell the user:
- Start the bot:
npm run dev- Send any message to the bot in Feishu (DM or group)
- Check the logs — the chat_id will appear in the metadata
- The JID format is
{chat_id}@feishu
Or check the database directly:
sqlite3 store/messages.db "SELECT jid FROM chats WHERE jid LIKE '%@feishu'"
Register directly in SQLite:
INSERT INTO registered_groups (jid, name, folder, trigger_pattern, added_at, requires_trigger)
VALUES ('{chat_id}@feishu', 'feishu', 'feishu', '@{ASSISTANT_NAME}', datetime('now'), 0);
Note: requires_trigger is set to 0 (false) so the bot responds to all messages without needing @mention.
Then restart the service to pick up the new registration.
Tell the user:
Send a message to the bot in Feishu. It should respond within a few seconds.
tail -f logs/nanoclaw.log
# Or run interactively:
npm run dev
Look for:
Feishu bot info fetched — bot connected and identified itselfConnected to Feishu via WebSocket — WebSocket establishedFeishu message sent — outbound message deliveredCheck:
FEISHU_APP_ID and FEISHU_APP_SECRET are set in .envsqlite3 store/messages.db "SELECT * FROM registered_groups WHERE jid LIKE '%@feishu'"im.message.receive_v1 is enabledlaunchctl list | grep nanoclaw (macOS) or systemctl --user status nanoclaw (Linux)im:message permissionim.message.receive_v1 is subscribedim:message:send_as_bot permissionNon-critical warning. Bot message detection (filtering own messages) won't work, but message sending/receiving still functions. Usually means the bot API endpoint isn't accessible — check network connectivity.
To remove Feishu integration:
src/channels/feishu.tsFeishuChannel import and creation block from src/index.tsreadEnvFile import if no other channel uses itFEISHU_APP_ID and FEISHU_APP_SECRET from .envsqlite3 store/messages.db "DELETE FROM registered_groups WHERE jid LIKE '%@feishu'"npm uninstall @larksuiteoapi/node-sdknpm run build && launchctl kickstart -k gui/$(id -u)/com.nanoclaw (macOS) or npm run build && systemctl --user restart nanoclaw (Linux)