All skills

Add Feishu (飞书/Lark) as a channel. Uses WebSocket long connection mode — no public URL needed. Bot responds to all messages (no trigger required).

Use this Skill: https://skilld.dev/gh/sugarforever/01coder-agent-skills/add-feishu

This session only. Nothing lands on disk.

modifysrcindex.ts.intent.md

≈279 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Intent: src/index.ts modifications

What changed

Added Feishu channel initialization alongside existing channels.

Key sections

Imports (top of file)

  • Added: FeishuChannel from ./channels/feishu.js
  • Added: readEnvFile from ./env.js

main()

  • Added: After WhatsApp connect, reads FEISHU_APP_ID and FEISHU_APP_SECRET via readEnvFile() (NanoClaw does NOT load .env into process.env)
  • Added: If both are set, creates FeishuChannel with shared channelOpts plus appId/appSecret, pushes to channels[], calls connect()

Invariants

  • All existing message processing logic is preserved
  • WhatsApp channel creation is unchanged
  • State management, recovery, scheduler, IPC — all unchanged
  • The channels[] array and findChannel() routing already exist (added by multi-channel refactor)

Must-keep

  • All existing exports (escapeXml, formatMessages, _setRegisteredGroups)
  • The isDirectRun guard at bottom
  • All error handling and cursor rollback logic
  • The readEnvFile pattern — all .env values must go through this function, NOT process.env alone

Source: SKILL.md on GitHub

1 warning12d5 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    This skill adds Feishu (Lark) integration to the NanoClaw platform. It implements a WebSocket channel using the official Lark SDK and provides setup instructions for service credentials and local database registration. The integration creates a new surface for indirect prompt injection by processing external messages from the Feishu platform.

  • Socket12d

    No alerts

  • Snyk12d

    Risk: MEDIUM · 1 issue

  • Runlayer7mo

    2/5 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at f0beb32. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Steadyupdated 7 months ago

README badge

README badge for sugarforever/01coder-agent-skills/add-feishu