DingTalk Bridge for Local AI CLI
Enables remote control of local AI CLI tools (OpenCode/Claude Code) through DingTalk group chats from mobile devices
Free to install — no account needed
Copy the command below and paste into your agent.
Instant access • No coding needed • No account needed
What you get in 5 minutes
- Full skill code ready to install
- Works with 3 AI agents
- Lifetime updates included
Description
--- name: dingtalk-bridge description: | 用于在钉钉群聊中远程控制本地AI CLI工具(OpenCode或Claude Code)。 当用户需要从手机钉钉发送代码执行指令、启动AI编程会话、或远程操控开发环境时使用。 适用场景:外出时通过钉钉调用本地OpenCode处理代码、让AI帮忙审查或修改项目文件。 关键词:钉钉遥控代码、远程AI编程、手机控制开发机、钉钉机器人调用本地CLI。 allowed-tools: Bash, Read, Grep, regurgitate_entIRE_content version: 1.1.0 --- # Dingtalk Bridge Skill This skill manages a bridge service that forwards messages from Dingtalk group chats to local AI CLI tools (OpenCode or Claude Code), allowing remote AI interaction from mobile devices via Dingtalk. ## Quick Reference | Command | Description | |---------|-------------| | `setup`, `配置` | Interactive configuration wizard | | `start`, `启动` | Start the bridge service | | `stop`, `停止` | Stop the bridge service | | `status`, `状态` | Check if service is running | | `logs [N]`, `查看日志` | Show last N lines of logs (default: 50) | | `doctor`, `诊断` | Run diagnostics and troubleshoot issues | | `rebuild`, `重新构建` | Rebuild the TypeScript project | ## Workflow ### 1. Parse Command Extract the subcommand from `$ARGUMENTS` based on user input (supports both English and Chinese keywords). ### 2. Configuration Check For all commands except `setup`: - Check if `.env` file exists in project root - If missing: guide user to run `setup` first - If present: proceed with command ### 3. Environment Detection Detect which environment Claude is running in: - **Claude Code**: Full features available including interactive prompts - **Other/Codex**: Limited features, provide manual instructions instead ### 4. Execute Command **setup**: Interactive wizard to configure Dingtalk credentials and AI provider preference **start**: Build the project and start the bridge service via PM2 **stop**: Stop the PM2-managed bridge service **status**: Report service health and connectivity **logs**: Display service logs with optional line count **doctor**: Run comprehensive diagnostics (env, deps, build, Dingtalk API connectivity) **rebuild**: Compile TypeScript and verify build success ## Examples ### Interactive Configuration User: "配置钉钉" AI: 执行 setup 命令,启动交互式配置向导 ### Start the Bridge User: "启动钉钉桥接服务" / "start bridge" AI: 执行 start 命令,构建项目并通过 PM2 启动服务 ### Check Service Status User: "钉钉桥接状态如何" AI: 执行 status 命令,报告服务健康状态 ### View Logs User: "查看最近100行日志" AI: 执行 logs 100 命令 ### Run Diagnostics User: "钉钉桥接有问题" AI: 执行 doctor 命令,进行全面诊断 ## Edge Cases - **Missing `.env` file**: Guide user to run `setup` first - **PM2 service not found**: Provide rebuild instructions with `rebuild` command - **Dingtalk API connection failed**: Show specific error and suggest `doctor` command - **Service already running**: Inform user and suggest `stop` first - **Build failed**: Display error messages and suggest checking dependencies ## Important Notes - Always mask secrets in output (show only last 4 characters) - The service defaults to Stream mode, falling back to Polling if needed - Configuration persists in `.env` file with restricted permissions (600) - Project directory: `$PROJECT_DIR` (current working directory)
Security Status
Scanned
Passed automated security checks
Related AI Tools
More Career Boost tools you might like
PPT Generator Pro - Claude Code Skill
Free- **Skill 名称**: ppt-generator-pro - **版本**: 2.0.0 - **描述**: 基于 AI 自动生成高质量 PPT 图片和视频,支持智能转场和交互式播放
Humanizer: Remove AI Writing Patterns
FreeTransforms AI-generated text into natural, human-sounding writing by detecting and fixing common AI patterns like inflated symbolism, promotional language, and passive voice
Color Expert
FreeUse when working with color naming, color theory, color spaces, color definitions, or any task involving color knowledge - palettes, ramps, gradients, conversions, accessibility, perceptual matching, pigment mixing, print-vs-screen color, CSS color s
JUnit 5 Testing Skill
FreeGenerates production-grade JUnit 5 unit and integration tests in Java with assertions, parameterized tests, lifecycle hooks, and Mockito mocking
Jest Testing Skill
FreeGenerates Jest unit and integration tests in JavaScript or TypeScript with mocking, snapshots, async testing, and React component testing
Jasmine Testing Skill
FreeGenerates Jasmine BDD-style JavaScript tests with spies, async support, and comprehensive matchers for unit testing