agentleFS
iblaiiblai/base/CLAUDE.md

base

CLAUDE.md222 starsChanged 9 days agoMITView on GitHub

Guidance for AI assistants working in iblai/vibe — the toolkit for building apps on the ibl.ai platform and for operating the platform headlessly. One install, two skill families: iblai-vibe-* (kind ui/ops/guide — mount the SDK's visual components, build, ship) and iblai-api-* (kind api — exact REST endpoints, no screen; the former iblai/api repository). Every skill's metadata.kind says which (docs/skill-kinds.md). A builder brings an organization (from ibl.ai/join) and an idea; the platform brings SSO, agents, RAG, LLMs, memory, analytics, and a…

  • Reads credentials
  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this CLAUDE.md into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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
  1. Distinctive:

    Every origin the app runs on must be in the org's allowed redirect origins, or sign-in never returns.

    line 91
  2. Very specific:

    Write iblai.env (DOMAIN, PLATFORM, TOKEN, IBLAI_USERNAME) and .env.local (NEXT_PUBLIC_MAIN_TENANT_KEY ← PLATFORM, IBLAI_API_KEY ← TOKEN).

    line 111
  3. Distinctive:

    Before using a hook or component name, confirm it exists:

    line 383
  4. Very specific:

    Add the Tauri shell (see /iblai-vibe-ops-build), then run Tauri directly:

    line 522

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md 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
CLAUDE.md

CLAUDE.md

Guidance for AI assistants working in iblai/vibe — the toolkit for building apps on the ibl.ai platform and for operating the platform headlessly. One install, two skill families: iblai-vibe-* (kind ui/ops/guide — mount the SDK's visual components, build, ship) and iblai-api-* (kind api — exact REST endpoints, no screen; the former iblai/api repository). Every skill's metadata.kind says which (docs/skill-kinds.md). A builder brings an organization (from ibl.ai/join) and an idea; the platform brings SSO, agents, RAG, LLMs, memory, analytics, and a Stripe-backed credit meter; vibe brings the components and the skills that wire them in. The promise: sign-in, an agent to talk to, users and admins, custom user and org data, memory, analytics, billing — as one app on web, macOS, Windows, iOS, and Android — in about twenty minutes.

Start here — what the user says → what to do

The user says…Do this
"I want to build…", "start", "where do I start", "add ibl.ai to my project", or describes an app without saying who signs in/iblai-vibe-start — four questions (new/existing · single-org/multi-org/headless · members/public · users/memories/agents/organizations), recorded in iblai.env as PROJECT, ARCHITECTURE, ACCESS, DOMAIN_FOCUS; every later skill reads them
"new app", "start a project", "scaffold"/iblai-vibe-ops-init — copies vibe-starter, asks only for the org key and a Platform API Token (refuses main), verifies both, writes the env files
"chat", "talk to the agent", "assistant"The starter's / already chats; it needs an agent — /setup (pick or create) or /iblai-vibe-agent-create; customize with /iblai-vibe-agent-chat
"an assistant on every page", "Default Agent in the header", "agent beside the page", "side panel chat", "master agent"/iblai-vibe-agent-assistant — the SDK's Assistant (MasterAgentProvider, MasterAgent, MasterAgentPanel): a header button opening the Default Agent in a resizable panel beside the page
"turn on web search / image generation / code interpreter for the agent", "agent capabilities", "where did the Tools tab go"/iblai-vibe-agent-tool — the map of where each capability is switched now (Settings, Datasets, Grader, Support, Screen, MCP, Voice)
"create an agent", "another agent"/iblai-vibe-agent-create ★ → /iblai-vibe-agent-setting ★; every tab via /iblai-vibe-agent
"users", "admins", "roles", "invite", "who can"/iblai-vibe-admin (User/Admin mode, /admin/users), /iblai-vibe-invite, /iblai-vibe-rbac
"store something per user", "preferences", "onboarding progress", "custom user fields"/iblai-vibe-user-metadata ★ — never localStorage, never your own DB
"organization setting", "white-label", "per-org config"/iblai-vibe-org-metadata ★ (GET-merge-PUT) + /iblai-vibe-account
"profile", "avatar", "résumé"/iblai-vibe-profile ★
"remember", "memory", "personalize"/iblai-vibe-memory-guide ★ → /iblai-vibe-memory, /iblai-vibe-agent-memory
"incognito", "private mode", "don't save this chat", "PII", "redact personal data"/iblai-vibe-incognito (the toggle + the four tiers) → /iblai-vibe-agent-privacy (PII filtering + the agent's Incognito policy), the Profile › Privacy tab in /iblai-vibe-profile
"analytics", "usage", "costs", "transcripts", "who changed what"/iblai-vibe-analytics ★, /iblai-vibe-agent-audit, /iblai-vibe-history
"charge", "pricing", "paywall", "credits", "spend limit"/iblai-vibe-pricing → the rail it picks
"out of credits", "402", "plan picker", "upgrade plan", "free trial"/iblai-vibe-credit-exhaustion — what the app shows when credits run out (vibe-starter ships it), the free-trial gate, the hand-off from <agent-ai> (once the OS ships iblai/os#677)
"embed the agent", "embed the OS agent", "iframe", "<agent-ai>", "put the agent on another site"/iblai-vibe-agent-embed (the agent's Embed tab in your app) → /iblai-api-agent-embed (the <agent-ai> element: its attributes, SSO and the frames it posts)
"deploy", "URL", "share it"/iblai-vibe-ops-deploy
"iOS", "Android", "Mac", "Windows", "Surface", "Linux", "App Store"/iblai-vibe-ops-build, /iblai-vibe-ops-release, /iblai-vibe-windows-msix
"code mode", "let the agent edit my files / run commands", "opencode", "Code from my phone"/iblai-vibe-os-agent-code-mode (needs the Tauri shell from /iblai-vibe-ops-build)
"Cowork", "computer use", "let the agent use my screen / click and type for me", "Accessibility / Screen Recording permission", "record a skill"/iblai-vibe-os-agent-cowork — the SDK chat's Cowork pill, its consent and macOS setup (needs the Tauri shell from /iblai-vibe-ops-build)
"workflow", "multi-step agent", "branch / loop an agent", "route / classify a request", "chain agents", "state variables"/iblai-vibe-workflow — WorkflowsList + WorkflowEditor from /web-containers/next; the list is organization-wide, opened from an agent
"sandbox", "run code", "virtual machine", "what can the agent reach", "give the agent an API key"/iblai-vibe-agent-sandbox (pick the kind) → /iblai-vibe-agent-virtual-machine (one agent's egress, network, environment variables), /iblai-vibe-virtual-machine (the org's networks + environment variables)
"MCP", "connector", "connect GitHub / Google Drive / Linear to the agent", "let users switch a connector off", "OAuth client id for a connector"/iblai-vibe-agent-mcp — the tab (Featured / Directory, per-agent switch, sign-in scope, the org's own OAuth app) and the chat's MCP panel; REST in /iblai-api-agent-mcp
"Studio", "Open edX", "xblock", "build a course on our LMS", section / subsection / unit, grading policy, publish/iblai-api-studio — the index; /iblai-api-studio-auth first (browser session → studio.env), then the iblai-api-studio-* skill for the piece
anything with no component/iblai-vibe-api — server route + Api-Token, and the matching iblai-api-* skill (same repo)
"configure / operate the org from the terminal, a script, CI" (no app)/iblai-api-login, then the iblai-api-* skill for that family — curl, never UI
"chat with a deployed agent from my assistant"/iblai-api-agent-chat (hosted MCP server) or /iblai-api-agent-session (raw REST/SSE)
"is it done?", "show me"/iblai-vibe-ops-test first: pnpm build, pnpm test, then its touch test — the route in a real browser, every new control, the console, the phone width
"looks off-brand", "the font", "font size", "match the OS look", "page header", "empty state", "status badge"/iblai-vibe-component — House components; diverging from the ibl.ai look is a question for the user, not a decision
"make an ibl.ai official app" (said in those words)/iblai-vibe-house-journeys — the OS's first-run journeys: a main-only user gets the app trial-gated with Upgrade for free, a visitor on another organization a preview with Join / Create your own, an admin the SDK setup flow then the Stripe path. Never for any other app

Freshness rule: skills are a copy. If .claude/skills/start/iblai-vibe/SKILL.md is older than 14 days, or older than the latest release (curl -s https://api.github.com/repos/iblai/vibe/releases/latest | grep published_at), suggest /iblai-vibe-ops-upgrade (re-runs npx skills add iblai/vibe --all and bumps the SDK) before starting substantial work.

Rules that never change: SDK components → shadcn/ui → custom, in that order; pnpm install --ignore-scripts; lowercase project names; ask for a real agent UUID, never invent one; never print a token; the generated app lives in the current directory. Terms: organization (org), org key, agent, member, admin — see docs/glossary.md; keep wire names (platform_key, mentor, tenant) verbatim in code.

The three architectures (decide once, in /iblai-vibe-start)

ARCHITECTUREWho signs inOrg keyWhat vibe gives you
single-org (most apps)members of one organization; tenant=<org> on every sign-in; a non-member is refused (or pays to join)pinned NEXT_PUBLIC_MAIN_TENANT_KEY; one server-to-server IBLAI_API_KEYvibe-starter as shipped
multi-org (the os.ibl.ai model)users of many organizations; org from the URL; switcher; re-auth per org; anonymous per agentmain as the community org + the route param/iblai-vibe-auth → "Going multi-org"; the OS as reference
headlessnobody; scripts, CI, a backendIBLAI_ORG per call/iblai-api-login + the api family

Sign-in mechanics (the app / redirect-to / tenant / logout parameters, data= on return, AuthProvider middleware for public routes, TenantProvider re-auth and saveUserTokens, visiting organizations, organization lock, native return schemes): docs/auth-model.md. The entities apps are built on — users (profile, metadata, memories), agents (settings and tabs), organizations (metadata, people, billing) — hook by hook: docs/domain-model.md.

The platform lifecycle in ten lines

  1. ibl.ai/join creates the account and the user's organization. Everyone is also in the shared main org — never build on it.
  2. os.ibl.ai/platform/<org-key>/… is the reference app and the org's admin console (User/Admin toggle top-right).
  3. Org key: on login.iblai.app/me, or the path segment after /platform/. Check: GET https://api.iblai.app/dm/api/core/orgs/<key>/metadata/ → 200 (public).
  4. Platform API Token: OS → Admin → Integrations → API → Add API Key (shown once), or /iblai-api-login, or an org secret. Check: GET /dm/api/core/token/verify/ with Authorization: Api-Token … → 200 + username.
  5. Credits: prepaid, rechargeable, a hard ceiling; a free trial, then a plan picked in the app (Free, Pro, Max, Ultra); spend caps at org/agent/user scope.
  6. LLM keys: OS → Integrations → Secrets → LLMs — more models for agents.
  7. Agents: created in the OS, on /setup, or via the API; the UUID at the end of the OS URL is what every chat skill needs.
  8. People: OS → Management → Users (Admin/User + policies), invites; the same surface /iblai-vibe-admin mounts.
  9. Every origin the app runs on must be in the org's allowed redirect origins, or sign-in never returns.
  10. Charging your users is a separate decision: /iblai-vibe-pricing.

Full guide with screenshots: docs/platform-lifecycle.md. Credentials, tokens, and why session tokens live in localStorage: docs/security-model.md.

Credentials — the ladder every skill follows

Both families use the same three values. ui/ops skills read iblai.env (DOMAIN, PLATFORM, TOKEN, IBLAI_USERNAME) and .env.local; api skills read .env (IBLAI_ORG, IBLAI_USERNAME, IBLAI_API_KEY). IBLAI_ORG = PLATFORM = NEXT_PUBLIC_MAIN_TENANT_KEY; IBLAI_API_KEY = TOKEN. /iblai-api-login writes both files; the shell snippet in docs/api-skills.md loads either.

  1. /iblai-vibe-connect — the browser round trip (login.iblai.app/connect → loopback callback → files written, token never shown); falls back to the rungs below when the hosted page is unavailable (docs/connect-flow.md).
  2. iblai.env already has real PLATFORM and TOKEN → use them.
  3. The host exports IBLAI_PLATFORM_KEY, IBLAI_API_KEY, IBLAI_USERNAME (the ibl.ai desktop app does) → use them, never ask.
  4. Otherwise ask for what is missing, saying where it comes from (lifecycle steps 3–4). Verify both with the two curls before writing. Refuse main and placeholders.
  5. Write iblai.env (DOMAIN, PLATFORM, TOKEN, IBLAI_USERNAME) and .env.local (NEXT_PUBLIC_MAIN_TENANT_KEY ← PLATFORM, IBLAI_API_KEY ← TOKEN). Both are gitignored. Confirm with a masked value only.

iblai.env is not a .env.local replacement — it holds the platform shorthand; Next.js reads .env.local. The API/auth/websocket URLs default to hosted iblai.app in lib/iblai/config.ts; when DOMAIN is anything else, also map NEXT_PUBLIC_PLATFORM_BASE_DOMAIN ← DOMAIN, NEXT_PUBLIC_API_BASE_URL ← https://api.<DOMAIN>, and the sign-in URL from the session guidance (the auth host is not derivable from the domain). IBLAI_API_KEY is server-side only; it is also a standard OpenAI-style key on https://asgi.data.<domain>/api/ai-mentor/orgs/<org>/v1 (Bearer).

The core app — what vibe-starter already is

/iblai-vibe-ops-init copies skills/start/iblai-vibe-ops-init/assets/vibe-starter: Next.js 16 + Tailwind v4 + shadcn/ui with SSO; home = chat with the app's agent; /agents; /profile + per-user app preferences; User/Admin mode with an admin area (/admin/users + invites, /admin/analytics/*, /admin/billing, /admin/memory, /admin/organization + org settings); /setup (admins name the app, pick or create the agent); typed useUserSettings / useOrgSettings on the platform; lib/iblai/platform.ts for REST without a component; Vitest + Playwright journeys. Its AGENTS.md is the CLAUDE.md that ops-init writes into projects.

The Core Twelve

★ = the six core families almost every app reads or writes — the generated table in docs/catalogue.md#core is the source of truth (core in scripts/skill-categories.json; deepest skills; each links its headless twin, the iblai-api-* skill for the same data).

#CapabilitySDK surfaceSkill
1Sign-in, session, org resolutionAuthProvider, TenantProvider, SsoLogin, useUserData, useIsAdmin/iblai-vibe-auth (starter)
2Home that chats with the app's agentChat (/next), AppSidebar, NavBar/iblai-vibe-agent-chat (starter /)
3Find / pick agentsAgentSearch/iblai-vibe-agent-search (starter /agents)
4 ★Create + configure an agentCreateAgentForm (fields per the person's permissions), server route; AgentSettingsProvider + AgentSettingsTab (+24 tabs)/iblai-vibe-agent-create, /iblai-vibe-agent-setting, /iblai-vibe-agent
5 ★The user's own profileProfile, UserProfileDropdown, useGetUserMetadataQuery/iblai-vibe-profile (starter)
6 ★Custom per-user datauseGetUserPlatformMetadataQuery, useUpdateUserPlatformMetadataMutation/iblai-vibe-user-metadata (starter)
7 ★Org settings + custom org dataAccount → OrganizationTab; useGetTenantMetadataQuery, useUpdateTenantMetadataMutation/iblai-vibe-org-metadata, /iblai-vibe-account (starter)
8Users vs admins: directory, invites, roles, User/Admin modeAdmin, UsersTab, RolesTab, PoliciesTab, InviteUserDialog, checkRbacPermission/iblai-vibe-admin (starter), /iblai-vibe-invite, /iblai-vibe-rbac
9 ★Memory: user-global, per-agent, agent knowledgeuseGetGlobalMemoriesQuery, useGetUserMemorySettingsQuery, AgentMemoryTab, Account targetTab="memory"/iblai-vibe-memory-guide, /iblai-vibe-memory (starter), /iblai-vibe-agent-memory
10 ★Analytics, transcripts, costs, audit, reportsAnalyticsLayout + tabs, AgentAnalyticsTab/iblai-vibe-analytics (starter), /iblai-vibe-agent-analytics, /iblai-vibe-agent-audit, /iblai-vibe-history
11NotificationsNotificationDropdown, NotificationDisplay/iblai-vibe-notification (starter)
12Money: credits, spend caps, your own pricingCreditBalance, BillingTab, UpgradePackageModal + use402ErrorCheck (what happens when credits run out), spend-cap hooks; paywall assets/iblai-vibe-pricing, /iblai-vibe-credit, /iblai-vibe-billing, /iblai-vibe-credit-exhaustion (starter), /iblai-vibe-agent-billing, /iblai-vibe-monetization-app-paywall
+Ship everywhere—/iblai-vibe-ops-deploy, /iblai-vibe-ops-build, /iblai-vibe-ops-release
+No component?lib/iblai/platform.ts/iblai-vibe-api

Platform data most apps lean on

Most apps on the platform read or write the same six REST families. Each entry: what it gives your app → the SDK entry points that call it from the browser → the /iblai-vibe-* skill that mounts the UI → the iblai-api-* skill (raw SKILL.md: endpoints, bodies, errors). Ask @iblai/mcp (get_api_query_info, get_component_info) for the full hook/prop surface.

  • Per-user metadata — one schemaless JSON object per user × org (…/dm/api/core/users/platform-metadata/?platform_key=). Preferences, feature flags, onboarding progress, app state — without localStorage or a database of your own. Auto-created on first GET ({}); PATCH merges (metadata + delete_keys), PUT replaces, DELETE resets; org admins add &username= to target another user. SDK: useGetUserPlatformMetadataQuery, useUpdateUserPlatformMetadataMutation (PATCH only — PUT, DELETE and delete_keys need a direct call). OnboardingWizard (/web-containers) saves its answers here under onboarding; os.ibl.ai keeps its per-user coding-mode preference here. No /iblai-vibe-* skill wraps this family — call the hooks. REST: profile-metadata
  • Agent settings — one agent’s identity (name, description, categories, image), visibility, feature flags (anonymous, featured, LTI, attachments, voice, memory, multi-query RAG, forkable) and the ten capability_* flags, one per capability (web search, image and video generation, code interpreter, Plan, enhanced document retrieval, grading, lesson completion, human support, screen sharing), each saved on its own by its switch; /iblai-vibe-agent-tool maps which tab has each switch. Everything saves through one PUT …/mentors/{mentor}/settings/ (multipart, only the changed fields); fork copies the agent into any org you admin; delete is destructive. SDK: useGetMentorSettingsQuery, useEditMentorMutation (that PUT), useForkMentorMutation, useDeleteMentorMutation, useGetMentorCategoriesQuery. UI: AgentSettingsProvider + AgentSettingsTab (/web-containers/next) — the provider is the context every /iblai-vibe-agent-* tab skill mounts. Skill: /iblai-vibe-agent-setting. REST: agent-setting
  • Agent memory — three stores: global memories (per user, every agent), agent memories (per user × agent, filed under categories with extraction prompts), and agent knowledge — the Memory tab's Shared Memory (per agent, no user, curated, injected into every chat as ## Agent Knowledge). Show users what an agent remembers, let them add or delete facts, toggle capture/recall (auto_capture_enabled, use_memory_in_responses); the org flag enable_memsearch gates it all. SDK (features/memory): useGetUserMemorySettingsQuery / useUpdateUserMemorySettingsMutation, useGetGlobalMemoriesQuery, useGetMentorMemoriesListQuery, useCreateMentorMemoryMutation, useGetMemsearchStatusQuery, useGetSharedMemoriesQuery / useCreateSharedMemoryMutation (agent knowledge). UI: AgentMemoryTab (/next; Personal Memories + Shared Memory sub-tabs), the Profile Memory tab, Account targetTab="memory". Skills: /iblai-vibe-agent-memory (one agent), /iblai-vibe-memory (whole org). REST: agent-memory
  • Analytics — one /dm/api/analytics/ family; mentor_unique_id present = one agent, absent = the whole org. Usage and engagement KPIs, transcripts, catalog engagement, costs (already marked-up USD), per-user learning snapshots (self-access needs no grant), audit logs of agent changes, async Data Reports (POST → poll → CSV/JSON). SDK (features/analytics): useGetTopicsStatsQuery, useGetUsersStatsQuery, useGetSessionStatsQuery, useGetFinancialStatsQuery, useGetTranscriptsMessagesQuery, useGetLearnerDetailsQuery, useTimeTrackingMutation; reports useGetReportsQuery / useCreateReportMutation; audit useGetAuditLogsQuery; llm-usage/ (per-model/-user cost, tokens, latency) is REST-only. UI: AnalyticsLayout, AnalyticsOverview, AnalyticsUsersStats, AnalyticsFinancialStats, AnalyticsTranscriptsStats, AnalyticsReports, AnalyticsAuditLogStats, AgentAnalyticsTab. Skills: /iblai-vibe-analytics, /iblai-vibe-agent-analytics, /iblai-vibe-agent-audit. The live schema is the contract: https://api.iblai.app/dm/api/docs/schema/. REST: analytics
  • Profile — the signed-in user’s own record: account fields (name, bio, language, social links, image) on the LMS host via merge-patch+json, career records (education, experience, résumé) under …/dm/api/career/…, and their own memory toggles. Any “me” page, avatar/dropdown, or résumé feature. vibe-starter’s /profile page only reads the SSO cache (localStorage.userData) — for live or editable data use the hooks or mount Profile. SDK: useGetUserMetadataQuery, useUpdateUserMetadataEdxMutation, useUploadProfileImageMutation (features/user); useGetUserEducationQuery, useGetUserExperienceQuery, useGetUserResumeQuery (features/career). UI: Profile (+ EducationTab / ExperienceTab / ResumeTab), UserProfileDropdown, UserProfileModal, Account (/next). Skills: /iblai-vibe-profile, /iblai-vibe-account, /iblai-vibe-history. REST: profile
  • Organization metadata — one JSON object per organization (…/dm/api/core/orgs/<key>/metadata/; public GET, admin PUT that replaces, so always GET-merge-PUT). Branding (name, logos, support email), feature toggles, the default agent, anything your app needs once per organization. SDK: useGetTenantMetadataQuery, useUpdateTenantMetadataMutation (tuple args [{ org }]); the starter's typed useOrgSettings wraps them. UI: Account → OrganizationTab. Skills: /iblai-vibe-org-metadata, /iblai-vibe-account. REST: org

Auth on the wire. In the browser the SDK sends Authorization: Token <dm_token> (session tokens in localStorage dm_token / axd_token), so every hook above works with the signed-in user’s session and permissions — no API key. The REST skills send Authorization: Api-Token $IBLAI_API_KEY, a Platform API Token (TOKEN in iblai.env, IBLAI_API_KEY in .env.local): server-side only, never in client code. REST base is https://api.iblai.app/dm (profile account fields: …/lms).

Skill catalogue by tier

Skills live in skills/<folder>/<name>/SKILL.md — ten folders by what a builder is doing (start, agents, users, organizations, billing, monetization, analytics, content, ship, security; scripts/skill-categories.json is the list). The generated, complete catalogue with one line per skill is docs/catalogue.md; invoke any skill with / in Claude Code. Tier decides position and depth: Tier 0/1 skills get screenshots, the feature template (templates/skill-template-feature.md), and ≤ 400 lines.

Tier 0 — run first

SkillDescription
/iblai-vibe-startThe first conversation: four questions that set architecture, access, and focus
/iblai-vibeStart here — what you want → which skill
/iblai-vibe-ops-initNew project from vibe-starter; credentials ladder; writes the project CLAUDE.md
/iblai-vibe-authSSO auth for an existing Next.js app (providers, store, lib/iblai/*)
/iblai-vibe-ops-testTest before showing work: Vitest, Playwright journeys, a touch test in a real browser (Claude in Chrome or the Chrome DevTools MCP)
/iblai-vibe-ops-deployDeploy through the platform's hosting API (Vercel-backed), containers, static hosts

Tier 1 — the core app (journey order)

SkillDescription
/iblai-vibe-agent-chatThe in-process chat surface (message stream, canvas, voice, prompts)
/iblai-vibe-agent-chat-sidebarWrap the chat with the SDK sidebar (projects, pinned/recent)
/iblai-vibe-agent-assistantThe Assistant: a header button that docks the organization's Default Agent beside every page (resizable, full screen, phone overlay)
/iblai-vibe-projectProjects surface (files, instructions, assigned agents)
/iblai-vibe-agent-searchAgent browser (starred, featured, custom, all)
/iblai-vibe-agent-create ★Create an agent from the app (the SDK's Create Agent form, showing only the fields each person may set; server route + setup screen)
/iblai-vibe-agent-setting ★Agent identity, visibility, copy, delete
/iblai-vibe-agentFamily index for all 25 agent settings tabs
/iblai-vibe-profile ★Profile dropdown + settings page
/iblai-vibe-user-metadata ★Custom per-user data on the platform
/iblai-vibe-accountAccount/org settings page (Organization, Management, Invites, Onboarding, Apps, API, Secrets, Network, Billing, Memory, Advanced)
/iblai-vibe-virtual-machineThe org's Network page and Secrets → Environment Variables: the networks and keys agents' virtual machines draw on
/iblai-vibe-org-metadataCustom org data; GET-merge-PUT; where branding lives
/iblai-vibe-adminUser/Admin mode and the admin area
/iblai-vibe-inviteInvitation dialogs and the Invites tab
/iblai-vibe-rbacRoles, policies, action definitions, checkRbacPermission
/iblai-vibe-navbarResponsive navbar (logo, links, bell, profile)
/iblai-vibe-notificationNotification bell + center
/iblai-vibe-memory-guide ★What memory means for your app; which surface for which audience
/iblai-vibe-memoryOrg-wide memory admin
/iblai-vibe-agent-memory ★One agent's Memory tab
/iblai-vibe-analytics ★Analytics dashboard (org-wide or per agent)
/iblai-vibe-agent-auditAgent audit log
/iblai-vibe-historyThe user's own conversation history + exports
/iblai-vibe-incognitoIncognito: the chat-header toggle, the mid-conversation dialog, and how org / agent / user / session tiers resolve
/iblai-vibe-pricingHow money works; which rail to charge users
/iblai-vibe-creditCredit balance widget
/iblai-vibe-billingOrg Billing: plan & credits, spend limits, agent limits, user limits + the default for new users
/iblai-vibe-credit-exhaustionOut of credits: the plan picker, Billing or the contact-admin notice; the free-trial gate; the hand-off from an embedded OS agent
/iblai-vibe-agent-billingOne agent's spend cap and per-user caps
/iblai-vibe-monetization-app-paywallPay-to-enter on the org's own Stripe key
/iblai-vibe-apiREST without a component: server route + Api-Token; map to the iblai-api-* twin

Tier 2 — agent configuration (after you have an agent): /iblai-vibe-agent indexes the 25 tabs — access, analytics, api, audit, billing, dataset, disclaimer, embed, evals, grader, history, llm, lti, mcp, memory, privacy, prompt, safety, sandbox, screenshare, setting, skills, support, task, voice — each /iblai-vibe-agent-<tab>. There is no Tools tab since @iblai/iblai-js 3.0: each capability (web search, image generation, code interpreter, MCP, …) has its own switch in one of those tabs, mapped by /iblai-vibe-agent-tool.

Tier 3 — vertical / optional: /iblai-vibe-monetization (family index for selling items via Stripe Connect: /iblai-vibe-monetization-onboard, /iblai-vibe-monetization-configure, /iblai-vibe-monetization-checkout, /iblai-vibe-monetization-subscription, /iblai-vibe-monetization-analytics), /iblai-vibe-application (admissions gate), /iblai-vibe-course-access, /iblai-vibe-course-create, /iblai-vibe-crm-overview, /iblai-vibe-workflow, /iblai-vibe-onboard, /iblai-vibe-house-journeys (official apps only: the OS's three first-run journeys), /iblai-vibe-local-llm, /iblai-vibe-os-agent-code-mode (the OS app's agentic Code mode in a Tauri build — opencode, Codex, Claude Code, Approvals, permission cards), /iblai-vibe-os-agent-cowork (Cowork: the agent sees the screen and clicks and types, with a guided macOS setup).

Tier 4 — ops and polish: /iblai-vibe-ops-build (macOS, Windows, iOS, Android via Tauri v2), /iblai-vibe-ops-release (App Store / Play), /iblai-vibe-windows-msix, /iblai-vibe-iconography, /iblai-vibe-ops-upgrade, /iblai-vibe-readme, /iblai-vibe-design, /iblai-vibe-deslop, /iblai-vibe-scaffold, /iblai-vibe-component, /iblai-vibe-credential.

Tier 5 — security (unrelated to building on the platform; authorized use only): /iblai-vibe-security-recon, /iblai-vibe-security-owasp-audit, /iblai-vibe-security-osint-recon, /iblai-vibe-security-disk-forensics, /iblai-vibe-security-incident-triage, /iblai-vibe-security-cloud-audit, /iblai-vibe-security-dependency-audit, /iblai-vibe-security-prompt-injection.

The headless family — iblai-api-* (kind api; two guides). Exact REST endpoints, no UI; connect once with /iblai-api-login, then:

AreaSkills (/iblai-api-<name>)
Setuplogin — org key, username, Platform API Token → .env + iblai.env; org secrets for CI
One agent★ agent-setting, ★ agent-memory, agent-create, agent-prompt, agent-llm, agent-dataset, agent-tool, agent-access, agent-embed, agent-mcp, agent-safety, agent-privacy, agent-disclaimer, agent-history, agent-audit, agent-eval, agent-skill, agent-sandbox, agent-support, agent-voice
Talk to an agentagent-session (REST/SSE/WebSocket), agent-chat (hosted MCP server), inference (OpenAI-compatible /v1)
Organizationorg, management, rbac, invite, scim, token, integration, notification, feature, billing, spend-caps, crm, external-service-proxy
The signed-in user★ profile, ★ profile-metadata
Content, discovery, analytics★ analytics, search, catalog, catalog-media, catalog-invitation, course-create, milestone, credential, apply, heygen (avatar video, voice cloning, streaming avatars)
Other LMSscanvas-course-builder (Canvas REST API)
Open edX Studio (session auth, no Api-Token)studio (index), studio-auth, studio-course-create, studio-outline (bulk build), studio-section, studio-subsection, studio-unit, studio-html, studio-pdf, studio-problem, studio-settings, studio-team, studio-grading, studio-publish, studio-lms
Deploy & hostinghosting — upload a build, poll it live, custom domains (headless twin of /iblai-vibe-ops-deploy)
Guidesecosystem, infrastructure (self-hosting)

Authoring contract (Reads/Writes structure, urls.py as source of truth, the /dm gateway prefix, "APIs not UIs", org/org-key terminology): docs/api-skills.md. Tutorials that chain several of them: tutorials/. The hosted chat MCP server: mcp/iblai-agent-chat/.

Companion repos

  • The former iblai/api is merged here (skills/iblai-api-*, mcp/, tutorials/) — there is no separate install.
  • iblai/os — the Agentic OS: reference implementation and the org's admin console.
  • iblai/vibe-agent — a finished one-agent app with its own paywall; the model for user-first app writing.
  • iblai/vibe-marketing — 43 marketing skills (CRO, copywriting, SEO, paid ads, lifecycle, growth) plus platform CLIs and integration guides (npx skills add iblai/vibe-marketing).

Verifying the SDK surface

.mcp.json configures @iblai/mcp (pnpm dlx @iblai/mcp in pnpm projects); the Claude Code plugin (.claude-plugin/plugin.json, marketplace iblai) declares the same server. Before using a hook or component name, confirm it exists:

get_component_info("Chat")                    # Props, usage, examples
get_hook_info("useAdminMode")                 # (host hooks aren't in MCP — read the file)
get_api_query_info("useGetUserPlatformMetadataQuery")
get_provider_setup("auth")

or grep the installed .d.ts (node_modules/.pnpm/@iblai+*/…/dist/**/*.d.ts). The .d.ts lags the runtime in places — verify against the bundle when a documented prop is missing.

Architecture

Provider Chain

AuthProvider > TenantProvider > {children}

initializeDataLayer must be called with 5 arguments (data-layer v1.2+):

initializeDataLayer(dmUrl, lmsUrl, legacyLmsUrl, storageService, httpErrorHandler)

SDK Imports

import { initializeDataLayer, mentorReducer } from "@iblai/iblai-js/data-layer";
import { AuthProvider, TenantProvider, useChat } from "@iblai/iblai-js/web-utils";
import { Loader, TenantSwitch } from "@iblai/iblai-js/web-containers";
import { SsoLogin, UserProfileDropdown } from "@iblai/iblai-js/web-containers/next";

Redux Store

@reduxjs/toolkit is deduplicated via webpack resolve.alias in next.config.ts. Without deduplication, SDK components use a different ReactReduxContext and RTK Query hooks silently return undefined.

Brand

  • Primary: #0058cc (brand blue)
  • Gradient: linear-gradient(135deg, #00b0ef, #0058cc)
  • Button: bg-gradient-to-r from-[#2563EB] to-[#93C5FD] text-white
  • Font: Open Sans (--font-open-sans on <html>, mapped to --font-sans; semibold renders 500, bold 600)
  • Style: shadcn/ui base-nova (Base UI), neutral base, Lucide icons

See BRAND.md for the complete brand guidelines.

Commands

pnpm dev                # Start dev server (localhost:3000)
pnpm build              # Production build
pnpm lint               # ESLint
pnpm typecheck          # TypeScript type checking
pnpm test:e2e           # Playwright E2E tests

Platform config lives in iblai.env; map it into .env.local (see Environment above).

Skills

Skills live in skills/<folder>/<name>/ — one directory per skill, SKILL.md canonical, the folder chosen by what a builder is doing (CONTRIBUTING.md has the placement table). Local Claude Code sessions see them flat through the per-skill links in .claude/skills/; npx skills add and the plugin manifest discover the nested layout natively. node scripts/build-catalogue.mjs regenerates docs/catalogue.md.

Cursor / Codex adapters are generated from the canonical SKILL.md files. To regenerate after editing skills:

node scripts/build-adapters.mjs

This reads every skills/<name>/SKILL.md and writes:

  • adapters/cursor/<name>.mdc — Cursor rule format (description + globs + alwaysApply + body)
  • adapters/codex/<name>.md — Codex instruction format (heading + description blockquote + body)

The canonical SKILL.md files ARE the Claude Code format — no separate adapter needed for Claude. Use templates/skill-template.md as the starting point when authoring a new skill.

Skill validation & testing (details in TESTING.md; CI runs the first three on PRs labeled run-tests, a label every PR needs — skills-ci's deterministic check must pass to merge):

bash scripts/validate-skills.sh           # spec conformance: name/description/frontmatter, ≤500 lines, off-spec dirs
node scripts/check-sdk-pins.mjs           # no @iblai/* version mention may drift from vibe-starter's package.json (--fix rewrites drifted mentions)
node scripts/check-links.mjs              # every github.com/iblai cross-repo link must still resolve (404/410 fail, transient warns)
node scripts/test-skills-render.mjs       # skill assets + SKILL.md ts/tsx fences typecheck against the pinned SDK
bash scripts/test-tauri-shell.sh          # the Tauri shell /iblai-vibe-ops-build ships: fmt, warnings denied, guard tests, AppImage, headless guard run (Linux)
scripts/test-skills-agent.sh --changed    # headless-agent execution of changed skills (needs claude CLI)
bash scripts/validate-skills-official.sh  # deeper audit via the upstream skills-ref Python library (manual)

Prose vocabulary everywhere: organization / org key, agent, user — tenant, mentor, learner appear only as verbatim wire names in backticks (scripts/sweep-terms.py enforces the sweep; docs/glossary.md explains the mapping). Every skill declares metadata.kind (ui · api · guide · ops · security), checked by node scripts/check-skill-kinds.mjs; ui skills follow templates/skill-template-feature.md, api skills follow the contract in docs/api-skills.md (Reads/Writes, verified endpoints, no UI language). Asset-bearing skills map their templates to app paths in skills/<name>/test.json; justified typecheck skips live in scripts/skill-render-skips.json. Screenshot conventions: docs/screenshots/README.md. scripts/check-skill-tables.mjs fails when a skill directory is missing from this catalogue or vice versa.

Reviewing pull requests

To review or re-review a PR on this repo, use the iblai-vibe-pr-review skill. It is for maintainers: a real directory in .claude/skills/ (the other entries there link into skills/), marked metadata.internal so installers skip it, and outside the catalogue. Name it without a leading slash in this file: check-skill-tables.mjs reads every slash-prefixed iblai- name as a product skill.

Deployment

ibl.ai hosting (Vercel)

Deploy through the platform's hosting API — see /iblai-vibe-ops-deploy. It zips the app (project source; for static output: 'export' builds, out/), uploads it with the platform API key, polls until READY, and writes the URL into tauri.conf.json for the native builds. No Vercel token or CLI.

Docker

docker build -t my-app .
docker run -p 3000:3000 my-app

Desktop/Mobile (Tauri v2)

Add the Tauri shell (see /iblai-vibe-ops-build), then run Tauri directly:

pnpm exec tauri dev          # Dev mode
pnpm exec tauri build        # Production build
pnpm exec tauri ios init     # iOS project setup

App Store / Google Play submission

Generate a Makefile + Fastlane config that builds and submits to the Apple App Store and Google Play — see /iblai-vibe-ops-release (make ios-release, make android-release; handles App Store Connect API key and Play service-account credentials).

THIS PROJECT ALREADY HAS GIT INITIALIZED. DO NOT INITIALIZE GIT.

Learn from a live organization

AI Assistant: When the user says something like “You’re also logged into https://os.ibl.ai/platform/<tenant>/<agent-uuid> as <email>”, that sentence is configuration plus a reference app. Act on it; do not ask again for anything it already contains.

  1. Decode the URL. In iblai/os the route is app/platform/[tenantKey]/[mentorId] — “chat with this agent in this organization”; the agent-scoped pages (analytics, notifications, …) nest under it. So <tenant> → PLATFORM / NEXT_PUBLIC_MAIN_TENANT_KEY, <agent-uuid> → NEXT_PUBLIC_DEFAULT_AGENT_ID, and os.ibl.ai runs on the hosted platform → DOMAIN=iblai.app (api.iblai.app, login.iblai.app). A self-hosted OS host implies another domain — ask.
  2. Get a token from the session, never a password. With a browser tool (claude --chrome, or the chrome-devtools server in .mcp.json): open the URL, confirm the user is signed in, read dm_token and userData.user_nicename (the username) from localStorage, then mint a Platform API Token exactly as /iblai-api-login step 2 documents — POST https://api.iblai.app/dm/api/core/platform/api-tokens/ with Authorization: Token <dm_token> and body { username, name, key: "", platform_key: <tenant>, created, expires: "" }; the secret is shown once. Write it to the gitignored iblai.env as TOKEN (plus IBLAI_USERNAME), map it into .env.local as IBLAI_API_KEY, and verify with GET …/dm/api/core/platform/users/?platform_key=<tenant> under Authorization: Api-Token … → 200. No browser tool? Ask the user to paste a Platform API Token instead.
  3. Learn shapes from live data. Call the families in Platform data most apps lean on (below) against that organization and copy field names from real responses instead of guessing. For the surface you are building, watch the OS page’s network calls to see which endpoints and params the production app actually uses.
  4. Learn wiring from source. The same iblai/os route mounts the SDK components the /iblai-vibe-agent-* skills install — components/modals/edit-mentor-modal/settings-tab.tsx wraps AgentSettingsTab in AgentSettingsProvider; …/[mentorId]/analytics/page.tsx renders AnalyticsOverview. Read it before inventing props.
  5. Keep it out of git. The token (and dm_token) live only in gitignored env files; keep the organization key and email out of docs, screenshots, and commit messages. No new env key is needed for the reference URL — rebuild it from PLATFORM and NEXT_PUBLIC_DEFAULT_AGENT_ID.

THIS PROJECT ALREADY HAS GIT INITIALIZED. DO NOT INITIALIZE GIT.

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.