Create and edit OntoPlato agent definitions (prompt, model, skills, accessible object classes, external MCP services, and default automation identity) via live page operations or direct CLI outside the platform.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Ontoplato Agent Builder?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ontomato-ai-ontoplato-agent-builder)
---
name: ontoplato-agent-builder
description: Create and edit OntoPlato agent definitions (prompt, model, skills, accessible object classes, external MCP services, and default automation identity) via live page operations or direct CLI outside the platform.
compatibility: Requires Node.js 24+. Inside the platform the runtime injects service URLs and credentials; outside it, set ONTOMATO_URL with ONTOMATO_TK or ONTOMATO_API_KEY.
---
# Agent Builder
The Agent Settings page manages all agent definitions in the current domain (the Ontology Manager product layer shares the same page): `/agents/settings` (or `/ontology/agents`) lists agents, `/agents/settings/<id>` opens one agent, and `/agents/settings/new` creates a new one.
## Connection and CLI
Run `node <this-skill>/scripts/page.mjs <command>` from the workspace root (where `<this-skill>` is the directory containing this `SKILL.md`). The script adapts connections automatically: inside the platform it uses host-injected URLs and credentials; outside the platform it reads `ONTOMATO_URL` (the workbench base URL) and either `ONTOMATO_TK` or `ONTOMATO_API_KEY` (set only one).
```sh
node <this-skill>/scripts/page.mjs list
node <this-skill>/scripts/page.mjs get <id>
node <this-skill>/scripts/page.mjs skills '<id or draft>'
node <this-skill>/scripts/page.mjs models
node <this-skill>/scripts/page.mjs execution-users [keyword]
```
See [pages](references/pages.md) for read commands and page addresses, [forms](references/forms.md) for form fields, validation, and direct write commands, and [tasks](references/tasks.md) for typical procedures.
## Field specification
| Field | Meaning |
| --- | --- |
| `name`, `description`, `icon` | Identity in the agent list; `description` is a single line. |
| `enabled` | Whether the agent is available in conversations. |
| `systemPrompt` | The agent's own prompt: role, which capability to use for which question, and answer format. |
| `modelSelection` | `{"modelId":"<provider>/<model>","reasoningLevel":"low"}` (a `type: "chat"` model from `models`, with `reasoningLevel` in that model's `levels`, or omitted to send no reasoning parameters); `{"modelId":null}` follows the domain default model and reasoning level without its own `reasoningLevel`. |
| `skills` | The agent's skill selection, each `{namespace, name}` copied verbatim from the `skills` catalog. Sending an array replaces the whole selection, `[]` clears it, and omitting it on update keeps the stored skills. |
| `classNames` | Ontology object classes the agent may query (data scope); an empty array means unrestricted. |
| `enabledMcpServiceIds` | Array of external MCP service IDs the agent may call. |
| `sortOrder` | Display order in the list. |
| `executionUserId` | Default execution identity for automated/unattended runs only (`null` by default); interactive conversations always inherit the signed-in user's permissions. |
Read `models` and `skills` before choosing catalog entries, and write names, descriptions, and prompts in the user's language. Fill only the requested fields in the live form; a direct CLI update requires the complete definition input (see [forms](references/forms.md)).
### Protected skills and execution identity rules
- **Protected skills**: some skills (such as `selectionScope: "system-only"`) are hidden from callers who may not view them; the page, `get`, and catalogs show only skills visible to the current caller. If an agent holds an invisible skill, any update that includes `skills` is refused as a whole (other fields in that request are not written either, and the refusal does not name the skill). Omit `skills` unless the user explicitly asks to change skills; if an explicit skills change is refused, report that someone who can see the complete selection must make the change — never send back the subset returned by `get` as a workaround.
- **Default automation identity (`executionUserId`)**: only a domain governance administrator may add, remove, or replace this field (check `canSetExecutionUser` from `execution-users`). Other editors who try to change it are rejected with 403, while omitting it or keeping the stored value succeeds; new forms default to `null`. If the configured user is later disabled, deleted, or removed from the domain, automated runs fail explicitly rather than falling back to the reader.
## Create, edit, and delete
- **Create permission prerequisite**: creating a new agent definition requires the `AGENT` `CREATE` object grant on the caller's role. If creation returns `403 CREATE_FORBIDDEN`, grant `AGENT` `CREATE` first via `ontoplato-permission` (`postType=3` object policy API `POST /authorization/policies/entries:grant`, or `/governance/policies`).
- **Live page inside the platform**: follow `ontoplato-page-operator` to operate the live Agent Settings page; see [forms](references/forms.md) for this page's specific paths, form member (`form`), and operation IDs (`form.save`, `remove.delete`).
- **Platform background or delegated runs (no page tools)**: no headless write callback is exposed; return the target ID and a structured proposed change or deletion to the user or assigning agent.
- **Outside the platform**: use the [direct write commands](references/forms.md#direct-writes) (`create`, `update`, `delete`) in `scripts/page.mjs`.
## Page context and links
When current page context names a selected item, that value is the agent definition ID (the `:id` in `/agents/settings/<id>`), not the display name. Run `get <id>` before making changes instead of guessing by name (nothing is selected on `/agents/settings` or `/agents/settings/new`). Write site-relative links directly, such as `[Customer assistant](/agents/settings/<id>)`.