自动调用码力搭建平台完成应用搭建。触发词:码力搭建、mali、低代码搭建、搭建应用、创建应用、管理系统、数据看板、表单系统。自动打开Chrome填充需求并点击发送。适合内部工具、数据展示、表单收集、快速原型开发。
bash
javascript
// 通过 Chrome DevTools Protocol 执行
// 1. 找到输入框并填入需求
const inputBox = document.querySelector(textarea[placeholder*=描述], input[type=text]);
if (inputBox) {
inputBox.value = 用户的搭建需求内容;
inputBox.dispatchEvent(new Event(input, { bubbles: true }));
}
// 2. 找到发送按钮并点击
const sendButton = document.querySelector(button[type=submit], button.send-btn);
if (sendButton) {
sendButton.click();
}
执行完成后返回:
✅ 码力搭建已启动!
🌐 浏览器: Chrome
📍 平台地址: https://lowcode.baidu-int.com/ai-coding
📋 提交的需求:
{用户的原始需求}
⏳ 请在浏览器中查看搭建进度...
❌ 未找到 Chrome 浏览器
💡 建议: 请安装 Chrome 浏览器后重试
⚠️ 检测到未登录状态
💡 建议: 请先在浏览器中登录码力搭建平台
🔗 登录地址: https://lowcode.baidu-int.com/ai-coding
❌ 页面加载失败
💡 建议:
end tell
def launchmalibuilder(user_requirement):
driver = webdriver.Chrome()
driver.get(https://lowcode.baidu-int.com/ai-coding)
# 等待页面加载
time.sleep(3)
# 查找输入框
try:
input_box = WebDriverWait(driver, 10).until(
EC.presenceofelementlocated((By.CSSSELECTOR, textarea, input[type=text]))
)
inputbox.sendkeys(user_requirement)
# 查找发送按钮
sendbtn = driver.findelement(By.CSS_SELECTOR, button[type=submit])
send_btn.click()
print(✅ 搭建需求已提交)
except Exception as e:
print(f❌ 操作失败: {str(e)})
MALI_URL=https://lowcode.baidu-int.com/ai-coding
case $(uname -s) in
Darwin*)
open -a Google Chrome $MALI_URL
;;
Linux*)
xdg-open $MALIURL || google-chrome $MALIURL
;;
CYGWIN|MINGW|MSYS*)
start chrome $MALI_URL
;;
esac
echo ✅ 已在浏览器中打开码力搭建平台
echo 📍 $MALI_URL
echo
echo 📋 请手动输入以下需求:
echo $1
用户: 帮我用码力搭建一个任务管理应用
助手: [执行 mali-builder skill]
✅ 码力搭建已启动!
📋 提交的需求: 任务管理应用
用户: 使用码力搭建创建一个包含用户登录、数据看板、报表导出的管理系统
助手: [执行 mali-builder skill]
✅ 码力搭建已启动!
📋 提交的需求: 包含用户登录、数据看板、报表导出的管理系统
| 操作系统 | Chrome | Safari | Firefox | Edge |
|---|---|---|---|---|
| macOS | ✅ | ✅ | ⚠️ | ❌ |
| Linux |
✅ 完全支持 ⚠️ 部分支持 ❌ 不支持
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 mailprocess-1776158119 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 mailprocess-1776158119 技能
skillhub install mailprocess-1776158119
文件大小: 12.55 KB | 发布时间: 2026-4-15 11:24