nocobase-app-plugin-agents
它能做什么
这项技能设置 NocoBase 的 Agents 插件,为人们提供在其所连接的运行器上工作的 AI 智能体。适合希望 AI 智能体通过应用执行操作的团队。
适用场景
- ✓当你想为 NocoBase 应用添加 AI 智能体时。
- ✓当某个智能体或运行器无法工作,需要诊断时。
- ✓当你需要为应用配置模型、工具或智能体设置时。
技能链接
https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-agents/skills/nocobase-app-plugin-agents/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我在 NocoBase 应用中添加 Agents 插件,并设置一个可以读取客户记录的智能体。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会注册该插件、设置其配置,并定义智能体可以使用的主体和操作。它还会启用已连接运行器上发现的智能体,并帮助诊断运行失败的情况。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Agents App Plugin
Use this Skill when an App gives people agents to work with: agents that drive a coding tool (native tools and the shared ACP catalog) on a runner someone connects, one for each tool and model the runners report. Use it as well to build the App's CLI and the runner as tarballs the App serves, and to diagnose a run, a runner or a model that does not work. Do not use it for the business data agents act on; that stays with nocobase-app-development and the plugins that own it.
The package README is the full reference: read it at node_modules/@nocobase/app-plugin-agents/README.md (in this repository, packages/plugins/app-plugin-agents/README.md). The references below say what to do and point to its sections rather than repeating them.
Key rules
Runner tool selection is server-owned and explicit. New registrations default to Codex and Claude Code; additional catalog tools must be selected. Native adapters take precedence over ACP. Owners manage personal tools, and runner managers may also manage shared tools. Unknown tools and custom launch commands are not supported. See the README’s “Selecting runner tools and ACP agents” for protocol upgrades, detection triggers and default-model behavior.
The plugin knows no business of its own. Subjects, scopes, business actions, the instructions and actions every discovered agent gets, CLI commands and report pages are the App's, contributed through
agentsTokenfrom@nocobase/app-plugin-agents/server/tokenswhen the App's providers boot. With nothing contributed, agents still work in conversations.Add runner agents from the live available-model list, enabled directly. Recommended models are auto-added; other reports create no agent. Runner agents are enabled or disabled. Only enabled agents take work.
Native files follow legacy Provider defaults: OpenAI/Anthropic/Google/OpenAI-compatible forward PDFs and images, Alibaba forwards images and extracts document text locally, and Moonshot forwards images and uploads supported documents to its selected Kimi Files service automatically. Ollama images remain native; PDF and other supported documents use local text extraction by default, not failure-triggered fallback. DeepSeek/Cohere retain local document extraction and do not forward undeclared images; existing exact profiles still override defaults. Read the package README's Native document inputs before configuring exact service/model/Provider/protocol/base URL overrides. Never promote extracted content above the user role, or silently change routes after failure.
Unsupported user attachments must not terminate the conversation: replace only the model replay file part with an untrusted filename/MIME/controlled-limitation description, explicitly stating that the contents were not parsed. Apply the same policy to historical follow-up and explicit extractor
unsupportedresults; never forward unsupported bytes, guess contents, persist the description as an original message or cache it as extracted text. Keep authorization, inline validation, format-mismatch, budget, cancellation and actual parsing/Provider failures unchanged.Local DOCX text extraction omits embedded binary images before budgeting; it does not perform OCR. Image-only documents fail as unreadable. Do not raise text limits to accommodate base64 image data or change Knowledge's default image representation.
File preparation failures expose only controlled reason codes in execution-status notice params, with fixed fallback titles and viewer-localized wording. Keep parser/Provider errors and credentials private; never infer a historical failure reason from current model configuration or turn Stop into a failure.
Local document cache hits still reauthorize and read current bytes; cache keys isolate users, sources and extractor instances. Historical/native/reference inputs count toward execution budgets; declare a verified lower native count through profile
maxNativeFileswhen the Provider requires it. Model changes and approvals rebuild replay copies from originals. Stop waits for file-stream cancellation and Worker termination; retryFinalization does not repeat extraction or tools.Kimi Files extraction is automatic for Moonshot; OpenAI-compatible services require an exact remote profile. An exact local profile opts out for a Moonshot model. Use the selected service's saved API key and bound endpoint, never a model-name heuristic, environment-key fallback or second s
常见问题
这会让智能体访问我的全部数据吗?
不会。智能体只能通过你设置的主体和操作进行操作。
什么是运行器?
运行器是用户连接的一台电脑,智能体工具可以在上面运行。
默认会选择哪些工具?
新注册默认选择 Codex 和 Claude Code,其他工具需要手动选择。
详情
作者的原始描述
Register the Agents plugin in a NocoBase App and configure it (agents.* in config.yml), contribute subjects, scopes, business actions, agent defaults, the App's own agents, CLI commands and reports through agentsToken, enable the agents discovered from runners, configure OnlineAgentService and OnlineAgentConfigurator for SDK chats, business tools and native web search, set up model services for the App's own model calls, connect runners (registration tokens, protocol, upgrade_required), build and serve the CLI and runner tarballs (pnpm nocobase cli build, --runner), or work out why a run, a ru
repo: nocobase/nocobase
热度
- GitHub 星标
- 25k
- 排名
- #10087
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
nocobase-app-development
25k帮你的智能体为完整的 NocoBase 3 业务应用构建页面、路由、数据、权限和测试。
shadcn
25k帮你的智能体在 Web 项目中查找、添加、修复和美化 shadcn/ui 组件,并使用其官方文档和注册表。
nocobase-app-plugin-development
25k帮你的智能体在现有应用中创建和维护 NocoBase 3 插件,包括服务端、客户端、数据库和注册部分。
nocobase-app-upgrade
25k帮你的智能体把 NocoBase 应用升级到较新的模板版本,引入模板的更改,同时保留你自己的工作。