Skip to content
Back to skills

Agent Creation

ASecurity

How to author an agent template folder and install it as a new agent - folder layout, manifest fields, persona rules, shipped apps and checks, and the scaffold-validate-create flow. Use when asked to create, build, or set up a new agent.

  • 207 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 19, 2026
ai-agentsrustgosqlnodeawsgitapidatabase

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add OtoDock/oto-dock --skill agent-creation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Creation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Creation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/otodock-agent-creation/badge)](https://www.skillsdirectory.com/skills/otodock-agent-creation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-creation
description: How to author an agent template folder and install it as a new agent - folder layout, manifest fields, persona rules, shipped apps and checks, and the scaffold-validate-create flow. Use when asked to create, build, or set up a new agent.
---

# Creating a new agent

You create an agent by **writing a template folder** and installing it. The
template carries everything the new agent starts life with: who it is, which
tools it gets, what it knows, what it runs on a schedule, and how it onboards
its users.

This requires the `agent-creator-mcp` tools (`search_community_agents`,
`list_departments`, `propose_install`, `propose_department_install`,
`propose_move`, `check_card`, `list_building_blocks`,
`validate_agent_template`, `create_agent`). They are only present in a chat
session driven by a platform **creator** or **admin** — if you can't see them,
you can't create agents in this session, and you should say so rather than
improvising.

## The community first

Before writing anything, `search_community_agents` with a few words about
the job. The catalog holds ready agent templates and **department sets**
(several agents installed as one department, each at its level, the
head's library shared, the schedules paused). When one fits, propose it:
`propose_install` for a template (optionally into a department at a
level, from `list_departments`), `propose_department_install` for a set
(with the department's name: a boat's, a team's). Each draws a **card in
the chat**; the person presses its button and the platform installs with
their own role. Nothing is installed by the call: say so, and read
`check_card` only when the person says they pressed it. A template's apps
wait for approval on their cards and its checks are offered.

Write a new agent from a folder only when nothing in the catalog fits or
the person declines what fits. An existing agent moves into a department
through `propose_move` (an admin, or a creator who manages the agent and
made the department or manages all its agents, presses it). Propose a department or several agents only when the person
asks to automate a company function, a department or several projects
with different people: an idea, a research task or one job gets one agent.

## Company patterns

Three shapes cover most companies. Each lists its steps in order: the
cards the setup agent draws for the person to press, and the tools it
calls itself. Every card runs with the person's own role. The agent only
proposes.

**A head agent with project agents.** One head agent (Shared + personal:
the shared workspace is its desk) holds the company method in a knowledge
library and gives each project its own agent. Each project agent is
Personal + shared with its own people (a contributor from the field,
editors in the office, the manager). Their drafts stay personal, finals
are handed to the team's workspace, and the project app is a copy that
follows the head's app. The head reads the project agents' Notebook
entries. Siblings do not delegate to each other. The steps, in order:

1. The `create_department` card with `mode: "down"` and two levels
   (Head, Team).
2. `list_departments` for the department's id and its levels' ids. The
   card's outcome does not give them.
3. Each project agent: `create_agent` (a tool, it installs the agent at
   once) or the `propose_install` card. Write each project persona so the
   agent draws the `hand_files` card when work is final, and never moves
   or copies a document itself.
4. The `move_agent` card for the head to the Head level, then one for each
   project agent to the Team level.
5. The head's method shared as a library. The head shares its own folder
   with `share_knowledge_folder` (an admin or a creator in the chat), or
   the person does it at Agent Settings → Configuration → Shared Knowledge.
   `attach_library` refuses a folder that is not shared yet.
6. The `attach_library` card of that library to each project agent
   (read-only).
7. The `share_app` card of the project app.

Then `hand_files` in daily work, and the copy's follow card when the
head's app releases again.

**A department of one function.** Several agents of one function
(accounting, legal) in one department at their levels. The mode decides
who hands work to whom: `down` for a head and a team, `down_across` when
peers share work. The head's library is attached to the rest, and the
routines run as agent-scope tasks with an audience. The steps:
`create_department`, `list_departments` for the ids, the agents,
`move_agent` for each one, the library shared, `attach_library`, then
the schedules through the tasks tool.

**A single agent for a single job.** An idea, a research task, one job,
or one person's assistant: one agent, Personal only or Personal + shared,
no department. Most requests are this one.

A multi-agent setup is proposed only when the person asks to automate a
company function, a department or several projects with different people.
Which mode fits which team, and where each artifact lives, is the platform
skill's company page ("Setting a team up").

## The flow

1. **Interview the user** — what should this agent do, for whom, what does it
   need access to? Don't guess a persona from one line of brief.
2. **`list_building_blocks`** — the canonical MCP names and skill packages
   available on THIS platform, plus taken slugs. Never invent an MCP name.
3. **Write the folder** somewhere you can write: `/workspace/<something>/` for
   a shared agent, or your own `/users/<you>/workspace/<something>/`. On a
   remote machine it must be inside the synced workspace, otherwise the
   platform cannot read it; the check reads it from the machine, so you can
   validate in the same turn you wrote it. The platform copies the folder before reading
   it: at most 300 files, 1 MB a file, 20 MB in all; dotfiles,
   `node_modules` and an app's `data/` are left out, a symlink is refused.
4. **`validate_agent_template`** — fix what it reports, repeat until clean.
   It changes nothing; validate as often as you like.
5. **`create_agent`** — installs it. You become the new agent's manager.
6. **Report back**: what was created, its link, what an admin still needs to
   approve, and what setup remains.

## Folder layout

```
<slug>/
├── agent.json          # required — the manifest
├── agent.md            # required — the persona
├── mcps.json           # required — which MCPs the agent needs
├── README.md           # required — what this agent is for
├── skills.json         # optional — standalone skill packages
├── tasks.json          # optional — scheduled tasks
├── triggers.json       # optional — webhook-fired tasks
├── notifications.json  # optional — scheduled notifications
├── setup.md            # optional — one-time setup guide for a manager
├── user-setup.md       # optional — per-user onboarding
├── dashboards.json     # optional — app dashboards to seed + pin
├── dashboards/         # optional — the dashboards' *.html files
├── apps/               # optional — shared folder apps, one folder each
├── user-apps/          # optional — per-member folder apps, one folder each
├── checks/             # optional — agent checks, one folder each
└── context/            # optional — *.md / *.txt, always loaded
```

### `dashboards.json` — template-shipped dashboards

```json
{"dashboards": [{
  "slug": "team-board", "title": "Team Board", "file": "board.html",
  "visibility": "agent", "auto_pin_for_new_users": true
}]}
```

Ships a ready-made app dashboard with the agent (≤4 per template, ≤1MB
each, bare `*.html` names under `dashboards/`; `{agent_slug}` is
substituted). `visibility: "agent"` = ONE shared dashboard pinned for every
user of the installed agent; `"user"` = each user gets their own personal
copy — the installer now, later joiners automatically when
`auto_pin_for_new_users` (default true). The visibility must be one the
template's mode offers (an `"agent"` dashboard on a Personal-only template
is a validation error). HTML-only: seeded dashboards carry no action
buttons (nothing to approve); the installed agent can re-pin with actions
later. Author them mobile-responsive with Tailwind, exactly like `pin_app`
apps (see the display-mcp app-authoring skill).

### `apps/` and `user-apps/` — folder apps the agent ships with

```
apps/board/                # ONE shared app: every member opens the same copy
├── app.json               # required — the manifest deploy_app takes (title, actions, egress, files…); a folder without one is ignored
├── blueprint.json         # optional — {"format": 1, "tasks": [...], "triggers": [...], "auto_create_for_new_users": true, "roles": null}
├── client/index.html      # required — the page every viewer opens
└── server/index.ts        # optional — a Bun server with its own SQLite
user-apps/home/            # ONE app PER MEMBER: each gets their own copy and data
└── …same layout…
```

A folder under `apps/` is deployed once for the agent; a folder under
`user-apps/` is deployed for the installer and, when `blueprint.json` says
`auto_create_for_new_users` (default true; `roles` narrows it), for every
member attached later — exactly the folder apps of the display-mcp
app-authoring skill, so write them the same way (`app.json` keys, the
`/_health` route, `window.otodock.*` in the page). Each member's copy has
its own database; the template's copy stays under the new agent's
`config/community/user-apps/<slug>/` for later members, and a seeded
server is not started at install — the first open starts it.
`blueprint.json` also lists the tasks the app's `fire_task` buttons fire
(`tasks`, by slug — a button says `"task": "<slug>"`), the way
`export_app` writes them; they are seeded for the scope with the app. Its
`triggers` (`[{slug, handler, description}]`, at most eight, each aimed at
one of the manifest's `handlers.on_trigger` names) are seeded the same
way: one trigger per copy, owned by that member (a personal app) or by
the agent (a shared one), aimed at the copy — so a personal app can wake
on a webhook of its member's own; an app with handlers is each member's
to approve, and its trigger waits with the copy until they do. The
visibility must be one the template's mode offers: a Personal-only
template ships `user-apps/` only, a Shared-only one `apps/` only. Rules
the platform enforces: at most 4 apps per template across both folders,
one slug namespace (1–40 chars of `[a-z0-9-]`, starting alphanumeric);
dotfiles, `.env`, `data/` and `node_modules` inside an app folder never
ship; a per-user app never takes an inbound hook and never declares `files` under `knowledge/` (it may wake on a trigger — the blueprint's `triggers` above, one seeded per copy). Leave
`deploy_requires_approval` unset: `true` parks every seeded copy on its
card even when a person consented. Validation runs the deploy's own
checks over each app before the agent exists (the manifest validator and
the static checks — a failure is reported with its file and line,
warnings are not); an `mcp_tool` action may name an MCP that `mcps.json`
or the app's own `requires.mcps` lists.

An app may also declare `files.create`: a folder the platform makes once
the app's release is approved. The app-authoring skill's "A folder the app
needs" says how. For an `apps/` app it lands in the new agent's workspace.
For a `user-apps/` app it lands in each member's own workspace when their
copy is approved. A template with such an app sets `"platform_min_version":
"1.9.0"` in `agent.json`, since an older platform refuses the app. An
export method floored at `contributor` needs the same. An app with a button
or a method floored `external` (open to outside people) sets
`"platform_min_version": "2.0.0"`.

**Consent is a person's, never yours.** A catalog install carries the
installer's checkbox; `create_agent` carries none. So apps you ship land
deployed but **waiting for approval** on their cards (a manager approves a
shared app, each member approves their own copy — the installer's
included) and become live the moment someone approves; until then the
app's page says its first release waits on the card. The one exception is
an app whose `app.json` declares nothing to approve: it goes live at
once. Say so in your report, and never claim an app is live because you
created it. A copy its owner removed (their delete, an `unpin_app`) is not
seeded again; `pin_app(slug)` in that member's session brings it back
from the template's copy.

**An app can be the agent's setup page.** A per-user app that reads the
platform method `setup.status` and calls `setup.complete` shows each new
member a welcome (what the agent does, a Setup button) and then its normal
dashboard, in place of walking them through `user-setup.md` in chat; the
answer names the agent and grades every MCP the app's manifest names — its
`requires.mcps` and the `mcp` of any tool button — (enabled for the agent, connected for the member, what
would fix it), so a card greys out where a tool is missing. The
app-authoring skill's "setup page" bullet has the contract. Keep
`user-setup.md` beside it: it is the chat path, and a platform before 1.7
installs the template without the app. Keep that app's manifest free of
anything that acts as the member (`mcp_tool` or `fire_task` buttons,
`files.write`, handlers, steps, inbound hooks, secrets), so a person's
consent on a catalog install can approve every member's copy and the
welcome opens without a card first. Tell the new agent in `context/` how
the app keeps its data and how to change it from a chat: `list_apps` →
the personal app's id → the app's own `/v1/apps/<id>/api/…` routes with
the session's proxy key (the current user's copy only), never a second
copy of that data in memory.

### `checks/` — checks the agent runs on its own work

```
checks/coding/
├── check.json             # the document set_check takes (name = the folder's)
└── lint.sh                # the script it names, if any
```

Each folder is one check in the shape of the checks-mcp examples
(`list_building_blocks` lists them); at most 8 per template. The
document's `name` must be the folder's; `script.run` names a file in the
folder (UTF-8, at most 256 KB); a `handler.app` may name one of the
template's own apps. A check's `mandatory: true` is a request: without a
person's consent the platform installs it **offered**, and a manager
makes it mandatory from the dashboard — `create_agent` carries no
consent, so every check you ship lands offered. Ship a check only when
the agent's work has a rule a script or a rubric can hold it to; a check
runs on every turn it applies to.

A template whose agents build apps with a server ships the judge check
`app-server-review` as `checks/app-server-review/check.json`. It reads the
server code on each turn that changes it. Its document is in the
app-authoring skill under "Guard what the server does".

## `agent.json`

```json
{
  "schema_version": "1",
  "slug": "research-assistant",
  "display_name": "Research Assistant",
  "description": "Digs through sources and writes briefs.",
  "color": "#3B82F6",
  "version": "1.0.0"
}
```

`slug` (lowercase + hyphens, 3–40 chars), `display_name` and `version` are
required; `description` and `color` (`#RRGGBB`) are strongly recommended —
they are what a user sees on the agent card.

Optional, and worth a deliberate choice:

| Field | Meaning |
|---|---|
| `default_scope` | `"user"` (default) or `"agent"` — whose workspace and chats the agent works in. `"user"` for a team whose members work alone and hand finals over. `"agent"` for a department's desk, where the shared workspace is home. Content still decides per file, memory and app. |
| `collaborative` | Default `true`. `false` + `default_scope: "user"` = **personal-only** (every user gets private chats and their own workspace, and a whole team can work privately there). `false` + `default_scope: "agent"` = **shared-only** (one shared space for the whole team — service agents). |
| `core_mcps` | Default `"all"`: the platform's core toolkit is added automatically on top of `mcps.json`. `"none"`: the agent gets only what `mcps.json` lists — for narrow single-purpose agents. |
| `category` | `productivity` / `infrastructure` / `creative` / `research` / `customer-support` / `experimental`. |
| `tags` | Lowercase, searchable. |
| `summary` | What the agent does for a person, in one or two short sentences on one line, at most 200 characters. The store's card and the install dialog show it in place of the description. |
| `highlights` | Up to six things it does, each `{"icon": "video", "text": "Full videos"}`: an icon name from the dashboard's icon set (`calendar`, `document`, `video`, `mic`, `mail` and the others of the after-update cards) and a few words, at most 60 characters. The catalog's lint refuses a name the set lacks. |

Never pin an engine or model for the agent — the platform picks what is
connected and the user can change it later (one task may pin its own:
`tasks.json` below). `default_for_new_users` is admin-only on locally
authored templates; if you set it as a creator it is ignored and reported.

## `agent.md` — the persona

This is the agent's identity, and the single highest-leverage file. Write it
as instructions to the agent itself, in second person.

**Include**: its role and purpose, who it works for, how it should think and
decide, its standards and tone, the boundaries of what it should and should
not do on its own.

**Leave out**:
- **Capability lists.** Every MCP ships its own instructions; listing "you can
  send email, you can make charts" duplicates them, goes stale the moment
  tools change, and buys nothing.
- **Day-to-day facts** (people, projects, current state). Those belong in the
  agent's memory, which it maintains itself, or in `context/` if they are
  genuinely stable.
- **Process boilerplate** the platform already injects (permissions, paths,
  scope rules).

A good persona is usually 20–60 lines of judgment and role, not a manual.

If the user hands you raw material — a job description, docs, their own
notes — read it and distill a persona from it rather than pasting it in.

## `mcps.json`

```json
{
  "required": [
    {"name": "schedules-mcp"},
    {"name": "file-tools", "skills": ["file-tools-usage"]},
    {"name": "github-mcp"}
  ]
}
```

- `name` must be the **canonical platform name** from
  `list_building_blocks` — folder names and labels are not always the same.
- **Never list core MCPs** (memory, schedules, notifications, display,
  file-tools, meetings, triggers, agent config, and this one). They are
  assigned automatically when the agent is installed — the platform fills in
  its own core set. Listing them is harmless but noise.
- **Single-purpose agents can opt out of the core set entirely**: put
  `"core_mcps": "none"` in `agent.json` and the new agent gets ONLY what
  `mcps.json` lists — possibly nothing at all. Use it for narrow personas
  (e.g. a phone caller agent that should not schedule tasks, browse tools or
  keep memory). Normal assistants should leave it unset: the default
  (`"all"`) is right for almost every agent.
- `skills` (optional) narrows which of that MCP's skills load. Omit it to get
  the defaults — right for almost every agent.
- `limits` (optional, platform 2.0.0) narrows what the agent may use of an MCP,
  by the MCP's canonical name: `"runs"` for the agent's own runs (its tasks, its
  phone line), `"chats"` for everything a person runs (their chats, tasks and app
  buttons), each `"read_only"` (the functions the maker labels as only reading)
  or a list of function names. An MCP named here need not be required: the limit
  waits until the tool is enabled. Never an `outside` limit: a template opens
  nothing to outside people. Example, a mail tool that may read and draft but
  never send:

  ```json
  {
    "required": [],
    "limits": {
      "google-workspace": {
        "runs": ["search_gmail_messages", "get_gmail_message_content", "draft_gmail_message"],
        "chats": "read_only"
      }
    }
  }
  ```
- MCPs the platform doesn't have yet are installed for you if you are an
  admin, or queued for an admin's approval if you are a creator. The new
  agent works either way; those particular tools appear after approval.

## `skills.json` (optional)

```json
{"required": [{"name": "theme-factory"}]}
```

Standalone skill packages — knowledge without tools. A package that isn't
installed on the platform yet can only be added by an admin; validation tells
you when that blocks you.

## `tasks.json` / `triggers.json` / `notifications.json` (optional)

```json
{"tasks": [{
  "slug": "morning-brief",
  "description": "Morning brief",
  "scope": "user",
  "prompt": "Summarise what needs attention today.",
  "schedule": {"type": "cron", "cron": "0 8 * * *"},
  "default_state": "paused",
  "auto_create_for_new_users": true
}]}
```

`scope: "user"` creates one per user (each user's own); `scope: "agent"`
creates a single shared row. Schedules are `cron`, `interval` (with
`interval_seconds`) or `run_at`. Write a cron for the company clock: an
agent-scope task fires in the platform timezone (and follows it if an admin
changes it); a user-scope task fires in that user's own zone. Never encode
a zone offset into the hour. Default new tasks to `"paused"` unless the
user explicitly wants them live immediately — an agent that starts firing
schedules nobody asked for is a bad first impression.

A task can say how it runs and who hears about it (platform 1.9 and later;
an older platform installs the task without these):

- `notification_mode` — `"manual"` (the default: the task's agent sends its
  own notification with the results), `"auto"` (a plain "task complete"
  notice) or `"none"`. A digest people read wants `manual`; a silent
  housekeeping job wants `none`.
- `audience` (platform 1.9.1 and later: an older platform ignores it), for an
  agent-scope task or trigger: who is told, the lowest role on the agent its
  notifications reach. Leave it out and editors and managers are told.
  `"viewer"` tells everyone who uses the agent, `"contributor"` everyone but
  viewers, `"manager"` managers only. Platform admins are always told. A task
  whose prompt reports to the whole team needs `"viewer"`.
- `override_model` (a model id such as `claude-fable-5-2`) and `layer` (an
  engine id such as `claude-code-cli`) — the one exception to "never pin a
  model": a task that needs a stronger or a cheaper model than the agent's
  own work (a cheap default agent with one judgement-heavy weekly brief).
  The installed agent must be able to run the pair. An installed agent
  allows every engine, so a `layer` holds whenever the model is turned on
  for that engine on this install. A model pin alone holds when any engine
  this install turns the model on for is allowed, and it runs on the engine
  the task would take unpinned (its person's own engine, else the agent's
  default) when that engine offers it, else on the first engine of the
  agent's own order that does, so name the `layer` when
  the same model is on two engines and the engine matters.
- `permission_mode` (`dontAsk`, the default, or `autoReview`: the engine's
  own reviewer checks a tool that needs approval, the choice for a task that
  reads untrusted input such as mail or a CV) and `timeout_seconds` (how long
  a run waits for work it left running in the background, 600 by default and
  at most 7200; less than 600 changes nothing). An engine with no reviewer
  runs the task on Don't Ask and the install reports it. A blueprint task
  (`blueprint.json`) takes the same two fields.
  `list_building_blocks` lists this install's engines, which one an install
  picks and the model ids each takes. A pin the agent cannot run is dropped
  at install, the task runs with no model choice (on its person's own engine
  or the agent's default engine), and `create_agent` lists it.

`triggers.json` is the same shape without a schedule (fired by webhook, so
default them paused — the upstream system needs the URL first).
`notifications.json` takes `title` (≤80 chars), `body` (≤500), optional
`deep_link`, and the same scope/schedule fields.

## `setup.md` and `user-setup.md` (optional)

- **`setup.md`** — one-time configuration a *manager* does (connect an
  account, paste an API key). It auto-loads into the agent's context until
  the manager confirms it's done and the agent calls `complete_setup`.
- **`user-setup.md`** — onboarding each *individual* user goes through. Every
  user who joins gets their own copy, auto-loaded only into their own chats,
  removed when that user completes it.

Write both as instructions to the new agent about how to walk a person
through it — a conversation, not a checklist dump. Keep them short: they cost
context on every turn until completed.

## `context/` (optional)

Markdown or text that should be in the agent's head on every single turn —
stable operational rules, vocabulary, business context. It auto-loads
forever, so anything volatile belongs in memory instead.

## After creating

Tell the user plainly: the agent's name and link, whether any MCP is waiting
on an admin, which apps wait for approval on their cards and which checks
are offered, and what they should do next (finish setup, invite users,
attach it to people). If the new agent needs users attached or a role
granted, that is a platform-admin action in the dashboard — say so rather
than implying you did it.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.