npx skills add https://github.com/thu-maic/openmaic --skill openmaic请将此作为一份引导式、需多次确认的标准操作流程使用。请勿将整个设置过程压缩为一次回复,也勿在未经用户明确确认的情况下执行任何状态变更操作。
如果存在,请从 ~/.openclaw/openclaw.json 的以下路径读取默认值:
{
"skills": {
"entries": {
"openmaic": {
"enabled": true,
"config": {
"accessCode": "sk-xxx",
"repoDir": "/path/to/OpenMAIC",
"url": "http://localhost:3000"
}
}
}
}
}
accessCode,则默认进入托管模式,并跳过模式选择提示。repoDir 和 仅用作本地模式的默认值。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
url首先检查技能配置中是否存在 accessCode。如果存在,则告知用户已找到存储的访问码,并直接进入托管模式(加载 references/hosted-mode.md,跳过阶段 1–4)。请勿要求用户再次粘贴访问码。
如果配置中没有 accessCode,则询问用户希望如何使用 OpenMAIC:
如果用户选择托管模式,则加载 references/hosted-mode.md 并跳过阶段 1–4。如果用户选择本地模式,则照常进行阶段 1。
当用户尚未安装 OpenMAIC 或需要确认使用哪个本地代码库时使用此阶段。
在确认仓库位置后使用此阶段。展示可用的启动模式,推荐一种,并等待用户选择。
在开始课堂生成之前使用此阶段。推荐一个提供商路径,并明确告知用户需要自行编辑哪个配置文件。如果后续生成因提供商/模型/认证问题而失败,请返回此阶段,并指导用户更新相同的服务器端配置文件。
在核心 LLM 密钥配置完成后,询问用户是否希望启用可选功能(网络搜索、图像生成、视频生成、TTS)。每个功能都需要其自己的提供商密钥——请参阅 provider-keys.md 中的“可选功能”部分。
在用户选择了启动模式并配置好密钥后,使用所选方法启动 OpenMAIC,然后通过 GET {url}/api/health 验证服务。
仅在服务健康后使用此阶段。在读取本地 PDF 前请先确认。如果用户已经明确要求生成,在提交生成作业前请勿再次请求确认,然后遵循轮询循环直到成功或失败。仅发送生成请求所支持的内容字段。对于长时间运行的任务,建议使用稀疏轮询,并告知用户如果本轮对话在任务完成前结束,请稍后再来查看。
每周安装次数
101
仓库
GitHub 星标数
12.3K
首次出现
10 天前
安全审计
安装于
gemini-cli101
kimi-cli101
codex101
cursor101
opencode101
github-copilot101
Use this as a guided, confirmation-heavy SOP. Do not compress the whole setup into one reply and do not perform state-changing actions without explicit user confirmation.
If present, read defaults from ~/.openclaw/openclaw.json under:
{
"skills": {
"entries": {
"openmaic": {
"enabled": true,
"config": {
"accessCode": "sk-xxx",
"repoDir": "/path/to/OpenMAIC",
"url": "http://localhost:3000"
}
}
}
}
}
accessCode is present, default to hosted mode and skip the mode-selection prompt.repoDir and url only as defaults for local mode.First check skill config for accessCode. If present, announce that a stored access code was found and proceed directly to hosted mode (load references/hosted-mode.md, skip phases 1–4). Do not ask the user to paste the code again.
If no accessCode in config, ask the user how they want to use OpenMAIC:
If the user chooses hosted mode, load references/hosted-mode.md and skip phases 1–4. If the user chooses local mode, proceed to phase 1 as usual.
Load references/clone.md.
Use this when the user has not installed OpenMAIC yet or when you need to confirm which local checkout to use.
Load references/startup-modes.md.
Use this after the repo location is confirmed. Present the available startup modes, recommend one, and wait for the user's choice.
Load references/provider-keys.md.
Use this before starting classroom generation. Recommend a provider path and tell the user exactly which config file to edit themselves. If generation later fails due to provider/model/auth issues, return to this phase and direct the user to update the same server-side config files.
After the core LLM key is configured, ask the user if they want to enable optional features (web search, image generation, video generation, TTS). Each requires its own provider key — see the "Optional Features" section in provider-keys.md.
After the user has chosen a startup mode and configured keys, start OpenMAIC using the chosen method, then verify the service with GET {url}/api/health.
Load references/generate-flow.md.
Use this only after the service is healthy. Confirm before reading local PDFs. If the user has already clearly asked to generate, do not ask for a second confirmation before submitting the generation job, and then follow the polling loop until it succeeds or fails. Only send the supported content fields for generation requests. For long-running jobs, prefer sparse polling and tell the user to check back later if the turn ends before completion.
Weekly Installs
101
Repository
GitHub Stars
12.3K
First Seen
10 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
gemini-cli101
kimi-cli101
codex101
cursor101
opencode101
github-copilot101
AI 代码实施计划编写技能 | 自动化开发任务分解与 TDD 流程规划工具
49,000 周安装