/iblai-vibe:iblai-api-agent-datasetfrom ibl.ai vibe
Manages an ibl.ai agent's RAG training datasets via the platform API. Lists training docs, adds resources (file, URL, YouTube, Blackboard, website crawl, GitHub), trains/untrains, sets visibility and retrain schedule, and deletes datasets.
Ships in ibl.ai vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Manage an agent's training datasets (RAG) through the API: list an agent's training documents, add new resources to its knowledge base, train / untrain and set visibility, configure a retrain schedule, and delete datasets. Use when feeding an agent knowledge.
https://api.iblai.appAuthorization: Api-Token $IBLAI_API_KEY on every request.{org} = $IBLAI_ORG, {username} = $IBLAI_USERNAME,
{mentor} = the agent's unique id (e.g. d17dc729-60fd-4363-81a0-f67d9318b03e),
used here as the pathway.…/dm/api/ai-index/…./iblai-api-login first to populate IBLAI_ORG,
IBLAI_USERNAME, and IBLAI_API_KEY.https://api.iblai.app/dm/api/ai-index/orgs/{org}/users/{username}/documents/pathways/{mentor}/?limit=5&offset={n}&search={q} — list training docs. Poll this every 2s while any document is pending. Each row names who trained it with username, user_email and user_full_name; the last two are null when the stored username matches no user (a service-account upload, or a deleted user).https://api.iblai.app/dm/api/ai-index/orgs/{org}/users/{username}/documents/{document_id}/settings/ — retrain schedule.https://api.github.com/repos/{owner}/{repo}/branches — list GitHub branches for a repo resource (external, no auth).https://api.iblai.app/dm/api/ai-index/orgs/{org}/users/{username}/documents/train/ — add a training resource (multipart/form-data); type varies:
{
"file": "File (required)",
"pathway": "{mentor}",
"type": "file|<ext>",
"user_image_description": "string"
}
{
"type": "url|youtube|blackboard",
"pathway": "{mentor}",
"url": "string (required)"
}
{
"type": "webcrawler",
"pathway": "{mentor}",
"url": "string",
"crawler_max_depth": "number",
"crawler_max_pages_limit": "number",
"crawler_match_patterns": "string[]",
"crawler_pattern_type": "glob|regex"
}
{
"url": "repo url",
"branch": "string",
"pathway": "{mentor}",
"type": "github"
}
custom_metadata (optional, works with every type above) — a flat JSON
object of tags stored on the document, later usable as a hard retrieval filter at chat
time via document_filter (see /iblai-api-agent-session). Send it as a nested object
on a JSON body, or — because train/ is multipart/form-data — as a JSON-encoded
string form field:
{ "custom_metadata": { "stateCode": "CA", "productGroup": "LICENSING", "year": 2026 } }
Rules (rejected with a validation error otherwise): keys must be flat and
alphanumeric/underscore (^\w+$, no __); values must be scalars (string, number, or
boolean) — no nested objects, arrays, or null. Stored on the document as
metadata.custom_metadata and echoed back by the list endpoint above. Leave a tag
off documents that should be exempt from a filter on that key — a document_filter
only excludes documents that carry the key with a different value, so untagged/generic
material always survives (see /iblai-api-agent-session ## Schema).https://api.iblai.app/dm/api/ai-index/orgs/{org}/users/{username}/documents/{document_id}/ — train / untrain + visibility (+ retag):
{
"pathway": "{mentor}",
"url": "string",
"train": "boolean",
"access": "public|private",
"crawler_extra_headers": { "User-Agent": "string (optional, web crawls)" },
"custom_metadata": { "stateCode": "CA" }
}
custom_metadata here replaces the document's stored tags (same validation as train/);
omit it to leave existing tags unchanged.https://api.iblai.app/dm/api/ai-index/orgs/{org}/users/{username}/documents/{document_id}/settings/ — set retrain schedule:
{
"retrain_interval_days": "number (required)"
}
Only re-fetchable documents (URL, YouTube, GitHub, web crawl) retrain; uploaded
files and cloud-drive documents do not.https://api.iblai.app/dm/api/ai-index/orgs/{org}/users/{username}/documents/{document_id}/ — delete a dataset. Destructive — confirm with the user first.Add a YouTube video to an agent's knowledge base:
curl -X POST \
"https://api.iblai.app/dm/api/ai-index/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/documents/train/" \
-H "Authorization: Api-Token $IBLAI_API_KEY" \
-F "type=youtube" \
-F "pathway=$MENTOR" \
-F "url=https://www.youtube.com/watch?v=dQw4w9WgXcQ"
Upload a file tagged with custom_metadata (JSON-encoded string in the form field), so a
chat turn can later scope retrieval to it with document_filter: {"stateCode":"CA"}:
curl -X POST \
"https://api.iblai.app/dm/api/ai-index/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/documents/train/" \
-H "Authorization: Api-Token $IBLAI_API_KEY" \
-F "type=file" \
-F "pathway=$MENTOR" \
-F "[email protected]" \
-F 'custom_metadata={"stateCode":"CA","productGroup":"LICENSING"}'
pending so
newly added resources flip to trained as soon as processing finishes.pathway is the agent's {mentor} unique id on every train/PUT call.api.github.com/repos/{owner}/{repo}/branches endpoint to populate branch.orgs/{org}/users/{username}/; the older
…/ai-index/documents/{document_id}/ form does not exist.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
iblai, rag, training-datasets, knowledge-base, api-management
npx claudepluginhub iblai/base --plugin iblai-vibe166 skills in this plugin
/iblai-api-agent-accessManage role-based access to an ibl.ai agent via the platform API — list role policies, search users/groups, and grant/revoke editor, chat, or analytics_viewer roles for users, groups, and emails. Use when controlling who can edit, chat with, or view analytics for an agent./iblai-api-agent-auditRead an ibl.ai agent's audit log via the platform API — a who-changed-what trail filterable by action, actor email, and date range. Read-only. Use when investigating configuration changes to an agent./iblai-api-agent-chatSet up live chat with a deployed ibl.ai agent by wiring the hosted iblai-api-agent-chat MCP server into the project (.mcp.json / claude mcp add) using the .env Api-Token and a chosen agent's unique id, or by signing in from claude.ai, ChatGPT or Claude Desktop with only the URL. Use to enable runtime conversations with an agent, and to list or disconnect the apps a user has connected. The actual chatting then happens through the MCP server's tools.Other plugins' skills for the same job