🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

DingTalk Bridge

by @mguozhen

DingTalk group chat bridge for Claude Code. Send markdown/text messages to DingTalk groups, receive @mentions and auto-execute via Claude CLI, run a 24/7 Str...

Versionv1.0.0
πŸ’‘ Examples

1. Install

bash "$CLAUDE_SKILL_DIR/scripts/install.sh"

The script will:

  • Install Python dependencies (dingtalk_stream, websockets)
  • Prompt for your DingTalk App Key & Secret (or read from env)
  • Generate config.json
  • Create data/ directory for conversation state
  • Optionally create a macOS LaunchAgent for 24/7 operation
  • 2. Configure

    Set credentials via environment variables (recommended):

    export DINGTALK_APP_KEY="your_app_key"
    export DINGTALK_APP_SECRET="your_app_secret"
    export DINGTALK_WORKDIR="/path/to/your/project"  # optional
    

    Or edit config.json in the skill directory (see config.example.json).

    3. Get Conversation ID

    The bot needs a conversation ID to send messages. Two ways:

    Auto (recommended): Start the Stream bot, then @mention it in a DingTalk group. The conv ID is saved automatically.

    Manual: If you already have the openConversationId and robotCode:

    mkdir -p "$CLAUDE_SKILL_DIR/data"
    echo '{"openConversationId":"YOUR_ID","robotCode":"YOUR_ROBOT_CODE"}' > "$CLAUDE_SKILL_DIR/data/conv.json"
    

    View on ClawHub
    TERMINAL
    clawhub install dingtalk-bridge

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’