plugins/feishu-channel/skills/feishu-channel-configure/SKILL.md
设置飞书频道 — 保存应用凭证、查看访问策略和频道状态。当用户提供飞书应用凭证、要求配置飞书、问"怎么设置"或"谁能联系我"、或想查看频道状态时使用。
npx skillsauth add pangcheng1849/g-claude-code-plugins feishu-channel-configureInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
将应用凭证写入 ~/.claude/channels/feishu/.env,并引导用户了解访问策略。服务器在启动时读取这两个文件。
注意:.env 文件优先级高于 shell 环境变量。如果 .env 中配置了凭证,会覆盖 .zshenv 等设置的同名变量。
传入参数:$ARGUMENTS
显示当前凭证配置:
凭证 — 先检查 ~/.claude/channels/feishu/.env 中的 MY_LARK_APP_ID(优先)。如未设置,检查 shell 环境变量 MY_LARK_APP_ID / MY_LARK_APP_SECRET。显示已设置/未设置及来源(.env / 环境变量);如已设置,显示前 8 位掩码(cli_a8e1...)。
下一步 — 根据凭证状态给出提示:
/feishu-channel-configure <appId> <appSecret>。"/feishu-channel-access 查看访问控制状态。"<appId> <appSecret> — 保存凭证$ARGUMENTS 解析为两个空格分隔的值。mkdir -p ~/.claude/channels/feishu.env(如存在);更新/添加 MY_LARK_APP_ID= 和 MY_LARK_APP_SECRET= 行,保留其他配置。写回,不加引号。MY_LARK_BRAND=feishu(国际版用 lark)。/mcp 重新连接 MCP 使配置生效(仅 /reload-plugins 不够,需要重连 MCP 以重启服务器进程)。"clear — 清除凭证从 .env 中删除 MY_LARK_APP_ID= 和 MY_LARK_APP_SECRET= 行。
当用户询问如何设置时,提供以下步骤:
im.message.receive_v1(接收消息)im:message — 接收消息im:message:send_as_bot — 以机器人身份发送消息im:resource — 下载消息资源(图片/文件)im:chat — 访问会话信息im:message.reactions:operate — 添加/移除表情回应(可选)/feishu-channel-configure <appId> <appSecret> 设置.env(先检查 shell 环境变量)。凭证变更需要 /mcp 重连 MCP(重启 bun 进程),仅 /reload-plugins 不会重启 MCP server。access.json 在每条入站消息时重新读取 — 通过 /feishu-channel-access 的策略变更立即生效,无需重启。development
Design failing tests for complex features using Independent Evaluation — dispatches a context-free agent that sees only the requirement spec and code paths (not the implementation approach), then returns executable failing tests. Use when starting TDD for a non-trivial feature, when the requirement is ambiguous enough that biased tests are a risk, or when the user asks for independent test design.
tools
Plan how to slice a non-trivial coding task across parallel subagents. Returns a dispatch plan (file assignments, dependencies, output-format contracts) — the main Agent then executes it with the Agent tool + `isolation: "worktree"`. Invoke only when work justifies multi-agent overhead: (a) greenfield 0→1 across multiple independent modules, (b) change touches ≥3 modules, or (c) ≥5 files each with >50 lines of diff. Small changes write inline.
development
在 macOS + Chrome 上排查公网 IPv4/IPv6 出口、国家/地区、ASN/组织、DNS、默认路由、utun 状态,以及浏览器侧 Server Response 与 WebRTC 暴露情况。适用于用户要求检查 IP、地区一致性、VPN/代理接管情况、IPv6 问题或浏览器网络暴露,并输出详细运维报告与复查链接。
tools
通过 Gemini CLI 将编码、审查、诊断、规划和结构化输出任务委派给独立的 Gemini 会话。使用场景包括 `gemini -p` 非交互执行、`gemini -r latest` 续接最近会话、`gemini -r "<session-id>"` 指定会话恢复,以及需要 `--output-format json` / `stream-json`、`--approval-mode plan` 只读审查、`--sandbox` 隔离执行,或 `--worktree` 在独立 git worktree 中跑任务的 scripted / CI 调用。