自动调用码力搭建平台完成应用搭建。触发词:码力搭建、mali、低代码搭建、搭建应用、创建应用、管理系统、数据看板、表单系统。自动打开Chrome填充需求并点击发送。适合内部工具、数据展示、表单收集、快速原型开发。
码力搭建 Skill是一项面向实际任务的技能,主要用于该 Skill 用于调用码力搭建平台(Mali App Builder),自动化完成以下操作:;在用户的 Chrome 浏览器中打开码力搭建平台;
用户明确要求使用"码力搭建"、"Mali"或"低代码搭建";用户提出应用搭建需求,且适合使用低代码平台实现;步骤 1: 打开码力搭建平台。它将相关步骤、工具调用和结果整理方式集中到统一流程中,帮助使用者更快完成目标并减少重复操作。
从功能定位来看,该技能强调把分散的操作要求整理成清晰、可复用的处理流程,使用户能够围绕既定目标快速准备输入、选择执行方式并获得结构化结果。实际使用前应先确认任务范围、数据来源、运行环境、必要权限和关键参数,再依据技能说明逐步执行;若输入条件不完整,应先补齐信息或采用保守配置,避免因错误假设导致结果偏离需求。执行过程中需要关注工具调用是否成功、接口或依赖是否可用、输出格式是否符合预期,并对异常提示、缺失字段和边界情况进行处理;涉及批量任务时,还应保存进度,避免中断后重复操作。
该 Skill 用于调用码力搭建平台(Mali App Builder),自动化完成以下操作:
使用 AppleScript(macOS)或其他系统命令打开 Chrome 浏览器并导航到码力搭建平台:
# macOS 使用 AppleScript
osascript -e 'tell application "Google Chrome"
activate
open location "https://lowcode.baidu-int.com/ai-coding"
end tell'
# Linux 使用 xdg-open
xdg-open "https://lowcode.baidu-int.com/ai-coding"
# Windows 使用 start
start chrome "https://lowcode.baidu-int.com/ai-coding"
等待 3-5 秒确保页面完全加载,并检查用户登录状态。
使用 Chrome DevTools Protocol 或 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
❌ 页面加载失败 💡 建议: 1. 检查网络连接 2. 确认是否在公司内网环境 3. 手动访问平台进行搭建
tell application "Google Chrome"
activate
set myTab to make new tab at end of tabs of window 1
set URL of myTab to "https://lowcode.baidu-int.com/ai-coding"
delay 3
execute myTab javascript "
const input = document.querySelector('textarea, input[type="text"]');
if (input) {
input.value = '用户需求内容';
input.dispatchEvent(new Event('input', {bubbles: true}));
const btn = document.querySelector('button[type="submit"]');
if (btn) btn.click();
}
"
end tell
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
def launch_mali_builder(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.presence_of_element_located((By.CSS_SELECTOR, "textarea, input[type='text']"))
)
input_box.send_keys(user_requirement)
# 查找发送按钮
send_btn = driver.find_element(By.CSS_SELECTOR, "button[type='submit']")
send_btn.click()
print("✅ 搭建需求已提交")
except Exception as e:
print(f"❌ 操作失败: {str(e)}")
#!/bin/bash
# 简单地打开浏览器到指定页面
# 用户需要手动输入需求
MALI_URL="https://lowcode.baidu-int.com/ai-coding"
case "$(uname -s)" in
Darwin*)
open -a "Google Chrome" "$MALI_URL"
;;
Linux*)
xdg-open "$MALI_URL" || google-chrome "$MALI_URL"
;;
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 | ✅ | ❌ | ⚠️ | ❌ |
| Windows | ✅ | ❌ | ⚠️ | ✅ |
✅ 完全支持 ⚠️ 部分支持 ❌ 不支持
相关专题
热门下载
相关下载
精品课程
共6课时 | 54.7万人学习
共89课时 | 134.1万人学习
共49课时 | 82.6万人学习
最新文章