iblai-vibe-agent-create
Skill222 starsChanged 13 days agoMITView on GitHub
Create an ibl.ai agent from inside your app — the SDK's Create Agent form (CreateAgentForm / CreateAgentModal, with Settings and Prompts tabs, showing only the fields each person may set through the field-permissions endpoint), the server route (org authority, admin-verified) that calls the platform's mentor-with-settings endpoint, and the pick-or-create setup screen vibe-starter uses to choose the app's default agent; then hand off to /iblai-vibe-agent-setting and the agent tabs. Use when the user says create an agent, new agent, let admins or members create agents, agent from a template, which fields a user may set when creating an agent, or the app has no agent yet. For editing an existing agent see /iblai-vibe-agent; for chatting see /iblai-vibe-agent-chat.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- iblai/baseword for word, first seen Nov 22, 2026
Other versions1 project uses a version of this.
Word for word · 1
- iblai/base★ 222100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository166 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- iblai-vibe-pr-reviewSkill
- iblai-api-agent-accessSkill
- iblai-api-agent-auditSkill
- iblai-api-agent-chatSkill
- iblai-api-agent-createSkill
- iblai-api-agent-datasetSkill
- iblai-api-agent-disclaimerSkill
- iblai-api-agent-embedSkill
- iblai-api-agent-evalSkill
- iblai-api-agent-historySkill
- iblai-api-agent-llmSkill
- iblai-api-agent-mcpSkill
- iblai-api-agent-memorySkill
- iblai-api-agent-privacySkill
- iblai-api-agent-promptSkill
- iblai-api-agent-safetySkill
- iblai-api-agent-sandboxSkill
- iblai-api-agent-sessionSkill
- iblai-api-agent-settingSkill
- iblai-api-agent-skillSkill
- iblai-api-agent-supportSkill
- iblai-api-agent-toolSkill
- iblai-api-agent-voiceSkill
- iblai-api-inferenceSkill
- iblai-api-searchSkill
- iblai-vibe-agent-accessSkill
- iblai-vibe-agent-analyticsSkill
- iblai-vibe-agent-apiSkill
- iblai-vibe-agent-assistantSkill
- iblai-vibe-agent-auditSkill
- iblai-vibe-agent-billingSkill
- iblai-vibe-agent-chat-sidebarSkill
- iblai-vibe-agent-chatSkill
- iblai-vibe-agent-datasetSkill
- iblai-vibe-agent-disclaimerSkill
- iblai-vibe-agent-embedSkill
- iblai-vibe-agent-evalsSkill
- iblai-vibe-agent-graderSkill
- iblai-vibe-agent-historySkill
- iblai-vibe-agent-llmSkill
- iblai-vibe-agent-ltiSkill
- iblai-vibe-agent-mcpSkill
- iblai-vibe-agent-memorySkill
- iblai-vibe-agent-privacySkill
- iblai-vibe-agent-promptSkill
- iblai-vibe-agent-safetySkill
- iblai-vibe-agent-sandboxSkill
- iblai-vibe-agent-screenshareSkill
- iblai-vibe-agent-searchSkill
- iblai-vibe-agent-settingSkill
- iblai-vibe-agentSkill
- iblai-vibe-agent-skillsSkill
- iblai-vibe-agent-supportSkill
- iblai-vibe-agent-taskSkill
- iblai-vibe-agent-toolSkill
- iblai-vibe-agent-virtual-machineSkill
- iblai-vibe-agent-voiceSkill
- iblai-vibe-incognitoSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 107
Before showing the form it asks the platform which fields this person may write: GET ${dmUrl}/v1/agents/settings/field-permissions with the …
- Distinctive: line 114
When none of the three prompts may be written, the Prompts tab goes away and the Settings tab's Next becomes Save.
- Very specific: line 226
Run /iblai-vibe-ops-test before telling the user the work is ready, and give every page, control and state this skill added its own …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/iblai-vibe-agent-create
First time here? If
iblai.envhas noARCHITECTURE=, run/iblai-vibe-startfirst (four questions; two minutes) — it decides single-org / multi-org / headless and who signs in, and every skill reads the answer.
An agent is created with one platform call and returns a unique_id — the
UUID every other agent skill needs. Two ways to put creation in an app:
- The SDK's Create Agent form (
CreateAgentForm, orCreateAgentModalaround it) — Settings and Prompts tabs, run as the signed-in person, and showing only the fields that person may set. For anyone who creates agents from the app. - A server route plus a small form — vibe-starter's
/setup, which picks or creates the app's default agent with the organization's authority. Admin-only.
Image: Create Agent — Settings
Image: /setup — pick or create the app's agent
Common setup (brand, conventions, env files, verification): see docs/skill-setup.md.
Prerequisites
- Auth in place (
/iblai-vibe-auth). @iblai/iblai-js@^3.1.0. The field permissions below are not in releases before 2.65.0, which show every field to everyone.- The person creating must be allowed to: an org admin, or a member holding
MENTOR_CREATORS(/iblai-vibe-rbac; the org togglerbac/student-agent-creation/status/decides whether plain members may). - For the server route only:
IBLAI_API_KEYin.env.local(server-only) andlib/iblai/platform.tsfrom/iblai-vibe-api(requireAdmin,platformFetch).
Step 1: Mount the SDK's Create Agent form
// app/(app)/agents/new/page.tsx
"use client";
import { useState } from "react";
import { useRouter } from "next/navigation";
import { toast } from "sonner";
import { CreateAgentForm } from "@iblai/iblai-js/web-containers";
import { useUsername } from "@iblai/iblai-js/web-utils";
import { resolveAppTenant } from "@/lib/iblai/tenant";
export default function NewAgentPage() {
const router = useRouter();
const [tenantKey] = useState(resolveAppTenant);
const username = useUsername();
if (!username) return null;
return (
<div className="mx-auto w-full flex-1 overflow-auto px-4 py-8 md:w-[75vw] md:px-0">
<div className="rounded-lg border border-[var(--border-color)] bg-white p-6">
<CreateAgentForm
org={tenantKey}
username={username}
onCreated={(agent) => {
if (agent.unique_id) router.push(`/?agent=${agent.unique_id}`);
}}
onError={() => toast.error("Couldn't create the agent.")}
/>
</div>
</div>
);
}CreateAgentModal takes the same props plus isOpen and onClose, for a
"Create Agent" button. The form owns its state, the categories query and
the create call (useCreateMentorMutation, as the signed-in person); toasts
and navigation are yours, through the callbacks.
| Prop | Type | Required | Description |
org | string | Yes | Organization key the agent is created in |
username | string | Yes | The person creating it |
onCreated | (agent: CreatedAgent) => void | No | With the new agent (unique_id) |
onError | (error: unknown) => void | No | When the create call fails |
onBeforeCreate | () => boolean | Promise<boolean> | No | Gate before the request (a paywall, a trial check); false stops it |
initialValues | Partial<CreateAgentFormValues> | No | Prefill any field |
showBaseModel | boolean | No | Show the Base select (template: Default, OpenAI, Gemini); off by default |
modelOptions | CreateAgentOption[] | No | Replace the Base select's options (visibilityOptions is @deprecated and ignored: a new agent is visible to administrators only) |
defaultPrompts | Partial<AgentPromptDefaults> | No | The prompts the form starts with |
labels | DeepPartial<CreateAgentLabels> | No | Any UI string |
What it renders. Settings: Name, Description, Category and an image
upload, then Next. A new agent is visible to administrators only; open
it to users or the public afterwards in /iblai-vibe-agent-setting. Prompts:
System, Proactive and Guided prompts, each with Edit, then Save.
Fields each person may set
Before showing the form it asks the platform which fields this person may
write: GET ${dmUrl}/v1/agents/settings/field-permissions with the header
iblai-org: <org>, answered as { "<field>": { "write": true|false } }.
The organization's RBAC policies decide the answer (/iblai-vibe-rbac).
- A field the person may not write is hidden, no longer required, and left out of the request; an optional field left out keeps its default.
- When none of the three prompts may be written, the Prompts tab goes away and the Settings tab's Next becomes Save.
- Two fields stop creation outright when barred, so a policy meant to
let someone create agents must leave both writable:
- the name (
new_mentor_name,display_name): always asked for and always sent, so the call is refused (403); - Base (
template_name): the create call requires it, so the form always sends it (the default template when Base is hidden,showBaseModeloff), and a policy that bars it refuses the request (403).
- the name (
- While the answer is unknown it fails open, showing every field: an older platform (404), a person who may not create agents at all (403), a network failure.
The create call refuses the whole request (403) when it carries a field the person may not write, so a form of your own must leave those out too:
| Form field | Sent as |
| Name | new_mentor_name (required), display_name |
| Description | description |
| Category | categories (and metadata.category, permitted as metadata) |
| Image | uploaded_profile_image |
| Base | template_name (required, always sent) |
| System / Proactive / Guided prompt | system_prompt, proactive_prompt, guided_prompt_instructions |
| Moderation prompt (not shown) | moderation_system_prompt |
For a custom form, the SDK's own pieces do that work:
// lib/iblai/create-agent-body.ts
"use client";
import { useCreateAgentFieldPermissions } from "@iblai/iblai-js/web-containers";
import { buildCreateAgentPayload, type CreateAgentFieldValues } from "@iblai/iblai-js/web-utils";
export function useCreateAgentBody(org: string) {
// visibility.description, .category, .systemPrompt, … and .anyPrompt say what to show.
const { permissions, visibility, isLoading } = useCreateAgentFieldPermissions({ org });
const toBody = (values: CreateAgentFieldValues) => buildCreateAgentPayload(values, permissions);
return { visibility, isLoading, toBody };
}canWriteAgentField(permissions, field), getCreateAgentFieldVisibility
and CREATE_AGENT_FIELD_MAP come from the same web-utils entry; the raw
query is useGetAgentSettingsFieldPermissionsQuery({ org }) from
@iblai/iblai-js/data-layer, already in mentorReducer / mentorMiddleware.
Step 2: The server route and /setup (admin-only)
Copy the assets:
| Asset | Destination | Does |
admin-agents-route.ts | app/api/admin/agents/route.ts | GET lists the org's agents; POST creates one |
admin-client.ts | lib/iblai/admin-client.ts | browser adminFetch() that forwards the session token |
setup-screen.tsx | components/setup/setup-screen.tsx | name the app → pick or create the agent → save to org metadata |
setup-page.tsx | app/setup/page.tsx | admin-only page, outside the navbar |
The setup screen saves through useOrgSettings (/iblai-vibe-org-metadata)
and uses the SDK's OnboardingShell / StepHeader. Needs shadcn input, label.
The call
// server, after requireAdmin(req)
const agent = await platformFetch<{ unique_id: string; name: string }>(
`/dm/api/ai-mentor/orgs/${org}/users/${caller.username}/mentor-with-settings/`,
{
method: "POST",
body: {
template_name: "ai-mentor", // the default template on most orgs
new_mentor_name: name,
display_name: name,
description,
system_prompt, // optional; refine later in the Prompts tab
// llm_provider: "openai", // optional; set later in the LLM tab
},
},
);Listing existing agents (for a picker):
GET /dm/api/search/orgs/{org}/users/{username}/mentors/.
From the browser:
import { adminFetch } from "@/lib/iblai/admin-client";
const { unique_id } = await adminFetch<{ unique_id: string }>("/api/admin/agents", {
method: "POST",
json: { name: "Support Assistant", description: "Answers order questions." },
});The route runs with the organization's Platform API Token, not as the person
on the page, so keep it admin-only; members create through the SDK form,
which honours their own field permissions. To copy an existing agent instead, use fork in
/iblai-vibe-agent-setting.
Step 3: After creation
- Store the id where the app reads it:
NEXT_PUBLIC_DEFAULT_AGENT_ID(env, wins) or the org settingdefaultAgentId(what/setupwrites). - Configure it:
/iblai-vibe-agent-setting(identity, visibility), then Prompts, LLM, Datasets, Memory — all via/iblai-vibe-agent; turn capabilities (web search, image generation, code interpreter, MCP, …) on in the tabs/iblai-vibe-agent-toolmaps them to. - Chat with it: the home page in vibe-starter, or
/iblai-vibe-agent-chat.
Verify
Run /iblai-vibe-ops-test before telling the user the work is ready, and give
every page, control and state this skill added its own checkpoint — one Playwright
test titled <ID> · … in e2e/journeys/, listed in e2e/coverage.json;
pnpm e2e:coverage must pass. Then:
pnpm typecheck && pnpm build.- As an admin, open the Create Agent page, fill both tabs, Save, and
land on
/chatting with the new agent; it appears on os.ibl.ai → Explore → Custom. - As a member whose policies deny some optional fields (anything but the name and Base), the same page hides them (and the Prompts tab when no prompt is allowed), and Save succeeds.
- As an admin, open
/setup, create an agent there too; as a member,POST /api/admin/agentsanswers403.
Platform data
| Call | Purpose |
GET /dm/v1/agents/settings/field-permissions (header iblai-org) | which create fields this person may write |
POST …/orgs/{org}/users/{username}/mentor-with-settings/ | create from template → unique_id |
GET …/search/orgs/{org}/users/{username}/mentors/ | list agents |
GET …/orgs/{org}/users/{username}/mentor/categories/ | categories to assign afterwards |
POST …/users/{username}/mentors/{mentor}/fork/ | copy an agent |
REST references: agent-create, agent-setting.
Related skills
/iblai-vibe-agent— the tabs to configure it/iblai-vibe-agent-setting— identity, visibility, fork, delete/iblai-vibe-agent-search— the browser members pick from/iblai-vibe-api— the server-route pattern
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

