agentleFS
iblaiiblai/base/skills/agents/iblai-api-agent-create/SKILL.md

iblai-api-agent-create

Skill222 starsChanged 10 days agoMITView on GitHub

Create a new ibl.ai agent from a template via the platform API — set name, display name, description, categories, visibility, prompts, and LLM provider; returns the new agent's unique id. Read which create fields the caller may write (field-permissions) first, since a create that sends a forbidden field is refused. Use when creating an agent from scratch, checking what a user may set when creating one, then configure it with the other /iblai-api-agent-* skills.

  • Reads credentials
  • Sends data out

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create a brand-new agent from a template.

    line 13
  2. Very specific:

    Not connected yet? Run /iblai-api-login first to populate IBLAI_ORG, IBLAI_USERNAME, and IBLAI_API_KEY.

    line 24
  3. Very specific:

    Create a data-science agent from the default ai-mentor template, then capture its unique_id for follow-up configuration:

    line 67

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

iblai-api-agent-create

★ Core family. With a screen: /iblai-vibe-agent-create mounts the in-app create flow and /setup screen — this skill is the headless twin (same data, exact endpoints).

Create a brand-new agent from a template. This is the step before configuring an agent: it mints a new agent and returns its unique_id, which you then hand to the /iblai-api-agent-* skills (settings, llm, prompts, datasets, …) to configure further. To duplicate an existing agent instead of starting from a template, use /iblai-api-agent-setting (fork).

Auth & conventions

  • Base URL: https://api.iblai.app
  • Header: Authorization: Api-Token $IBLAI_API_KEY on every request.
  • Path vars: {org} = $IBLAI_ORG, {username} = $IBLAI_USERNAME.
  • Not connected yet? Run /iblai-api-login first to populate IBLAI_ORG, IBLAI_USERNAME, and IBLAI_API_KEY.

Reads

  • GET https://api.iblai.app/dm/v1/agents/settings/field-permissions — which fields of the create call the caller may set. Mounted at the /dm root (not under /api/ai-mentor/). The header iblai-org: {org} is required only for service accounts; every other caller, a Platform API Token included, is scoped to its token's organization, so the header can only confirm it (403 if it names another). Returns one entry per create field, { "<field>": { "write": true|false } } — e.g. new_mentor_name, display_name, description, categories, metadata, uploaded_profile_image, template_name, mentor_visibility, system_prompt, proactive_prompt, guided_prompt_instructions, moderation_system_prompt. A field left out of the answer is writable. 403 = the caller may not create agents at all.
  • GET https://api.iblai.app/dm/api/search/orgs/{org}/users/{username}/mentors/ — list existing agents in the org (useful to pick a fork source or confirm names are free).
  • GET https://api.iblai.app/dm/api/ai-mentor/orgs/{org}/users/{username}/mentor/categories/ — category options (to assign after creation via /iblai-api-agent-setting).

Writes

  • POST https://api.iblai.app/dm/api/ai-mentor/orgs/{org}/users/{username}/mentor-with-settings/ — create a new agent from a template (returns the created agent with its unique_id):

    {
      "template_name": "string (required, e.g. ai-mentor)",
      "new_mentor_name": "string (required)",
      "display_name": "string",
      "description": "string",
      "system_prompt": "string",
      "llm_provider": "string"
    }

    The create call refuses the whole request (403) when it carries a field the caller may not write. Read field-permissions first and leave those fields out: an omitted optional field keeps the agent's default. The two required fields are the exception: a caller barred from template_name or new_mentor_name cannot create agents at all, since leaving either out is a 400 ("This field is required.") and sending it is the 403.

Example

Create a data-science agent from the default ai-mentor template, then capture its unique_id for follow-up configuration:

curl -X POST \
  "https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mentor-with-settings/" \
  -H "Authorization: Api-Token $IBLAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template_name": "ai-mentor",
    "new_mentor_name": "Data Science Tutor",
    "description": "Helps users with statistics and Python."
  }'
# → response includes "unique_id"; use it as {mentor} in the other skills

Notes

  • Field permissions are per caller. The organization's RBAC policies decide them, so two members can get different answers; read them for the caller you are creating as, not once for the organization.
  • template_name is required, usually ai-mentor (the default template on most orgs); the create call accepts any template the org exposes.
  • Creation is intentionally minimal — set only name + a couple of fields here, then drive the rest with the focused skills: /iblai-api-agent-setting, /iblai-api-agent-llm, /iblai-api-agent-prompt, /iblai-api-agent-dataset, /iblai-api-agent-tool, etc., using the returned unique_id as {mentor}.
  • To copy an existing agent rather than start from a template, use the fork endpoint in /iblai-api-agent-setting.
  • End-to-end example: the iblai/quickstarts Python client wraps these calls — create an agent, open a session, and chat with it from a script (see also /iblai-api-agent-session for the chat transport).

Reference material

Doc-sourced material preserved from the developer docs:

  • references/quickstart.md — the iblai/quickstarts Python client outlined: env vars and the create-agent → open-session → chat-over-WebSocket flow, with the runnable client (quickstart.py + api.py) preserved in assets/.
  • references/agent-file-format.md — the .iblai Markdown agent-file format (iblai/standard pointer).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.