vibe
CLAUDE.md15 starsChanged 58 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
In this repository158 other files it gives its agents.
- AGENTS.mdAGENTS.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-inferenceSkill
- iblai-api-searchSkill
- iblai-vibe-agent-accessSkill
- iblai-vibe-agent-apiSkill
- iblai-vibe-agent-auditSkill
- iblai-vibe-agent-billingSkill
- iblai-vibe-agent-chat-sidebarSkill
- iblai-vibe-agent-chatSkill
- iblai-vibe-agent-createSkill
- 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-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-local-llmSkill
- iblai-vibe-os-agent-code-modeSkill
- iblai-vibe-projectSkill
- iblai-vibe-workflowSkill
- iblai-api-analyticsSkill
- The first 60 shown.
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
- Distinctive: line 81
Every origin the app runs on must be in the org's allowed redirect origins, or sign-in never returns.
- Very specific: line 101
Write iblai.env (DOMAIN, PLATFORM, TOKEN, IBLAI_USERNAME) and .env.local (NEXT_PUBLIC_MAIN_TENANT_KEY ← PLATFORM, IBLAI_API_KEY ← TOKEN).
- Distinctive: line 357
Before using a hook or component name, confirm it exists:
- Very specific: line 495
Add the Tauri shell (see /iblai-vibe-ops-build), then run Tauri directly:
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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.
Files
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 |
| "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 |
| "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 |
| "deploy", "URL", "share it" | /iblai-vibe-ops-deploy |
| "iOS", "Android", "Mac", "Windows", "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) |
| "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, policy, secrets), /iblai-vibe-virtual-machine (the org's policies + secrets) |
| "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, screenshot |
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)
ARCHITECTURE | Who signs in | Org key | What 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_KEY | vibe-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 agent | main as the community org + the route param | /iblai-vibe-auth → "Going multi-org"; the OS as reference |
| headless | nobody; scripts, CI, a backend | IBLAI_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
ibl.ai/joincreates the account and the user's organization. Everyone is also in the sharedmainorg — never build on it.os.ibl.ai/platform/<org-key>/…is the reference app and the org's admin console (User/Admin toggle top-right).- 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). - Platform API Token: OS → Admin → Integrations → APIs → Add API (shown once), or
/iblai-api-login, or an org secret. Check:GET /dm/api/core/token/verify/withAuthorization: Api-Token …→ 200 +username. - Credits: prepaid, rechargeable, a hard ceiling; plans Free/Trial/Premium; spend caps at org/agent/user scope.
- LLM keys: OS → Integrations → LLMs — more models for agents.
- 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. - People: OS → Management → Users (Admin/User + policies), invites; the same surface
/iblai-vibe-adminmounts. - Every origin the app runs on must be in the org's allowed redirect origins, or sign-in never returns.
- 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.
/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).iblai.envalready has realPLATFORMandTOKEN→ use them.- The host exports
IBLAI_PLATFORM_KEY,IBLAI_API_KEY,IBLAI_USERNAME(the ibl.ai desktop app does) → use them, never ask. - Otherwise ask for what is missing, saying where it comes from (lifecycle steps 3–4). Verify both with the two curls before writing. Refuse
mainand placeholders. - 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).
| # | Capability | SDK surface | Skill |
| 1 | Sign-in, session, org resolution | AuthProvider, TenantProvider, SsoLogin, useUserData, useIsAdmin | /iblai-vibe-auth (starter) |
| 2 | Home that chats with the app's agent | Chat (/next), AppSidebar, NavBar | /iblai-vibe-agent-chat (starter /) |
| 3 | Find / pick agents | AgentSearch | /iblai-vibe-agent-search (starter /agents) |
| 4 ★ | Create + configure an agent | server route; AgentSettingsProvider + AgentSettingsTab (+23 tabs) | /iblai-vibe-agent-create, /iblai-vibe-agent-setting, /iblai-vibe-agent |
| 5 ★ | The user's own profile | Profile, UserProfileDropdown, useGetUserMetadataQuery | /iblai-vibe-profile (starter) |
| 6 ★ | Custom per-user data | useGetUserPlatformMetadataQuery, useUpdateUserPlatformMetadataMutation | /iblai-vibe-user-metadata (starter) |
| 7 ★ | Org settings + custom org data | Account → OrganizationTab; useGetTenantMetadataQuery, useUpdateTenantMetadataMutation | /iblai-vibe-org-metadata, /iblai-vibe-account (starter) |
| 8 | Users vs admins: directory, invites, roles, User/Admin mode | Admin, UsersTab, RolesTab, PoliciesTab, InviteUserDialog, checkRbacPermission | /iblai-vibe-admin (starter), /iblai-vibe-invite, /iblai-vibe-rbac |
| 9 ★ | Memory: user-global, per-agent, agent knowledge | useGetGlobalMemoriesQuery, useGetUserMemorySettingsQuery, AgentMemoryTab, Account targetTab="memory" | /iblai-vibe-memory-guide, /iblai-vibe-memory (starter), /iblai-vibe-agent-memory |
| 10 ★ | Analytics, transcripts, costs, audit, reports | AnalyticsLayout + tabs, AgentAnalyticsTab | /iblai-vibe-analytics (starter), /iblai-vibe-agent-audit, /iblai-vibe-history |
| 11 | Notifications | NotificationDropdown, NotificationDisplay | /iblai-vibe-notification (starter) |
| 12 | Money: credits, spend caps, your own pricing | CreditBalance, BillingTab, spend-cap hooks; paywall assets | /iblai-vibe-pricing, /iblai-vibe-credit, /iblai-vibe-billing, /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 anddelete_keysneed a direct call).OnboardingWizard(/web-containers) saves its answers here underonboarding; 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, and capability flags (anonymous, featured, LTI,
attachments, voice, memory, multi-query RAG, forkable). 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 (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 flagenable_memsearchgates it all. SDK (features/memory):useGetUserMemorySettingsQuery/useUpdateUserMemorySettingsMutation,useGetGlobalMemoriesQuery,useGetMentorMemoriesListQuery,useCreateMentorMemoryMutation,useGetMemsearchStatusQuery; agent knowledge is REST-only today. UI:AgentMemoryTab(/next), theProfileMemory 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_idpresent = 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; reportsuseGetReportsQuery/useCreateReportMutation; audituseGetAuditLogsQuery;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-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/profilepage only reads the SSO cache (localStorage.userData) — for live or editable data use the hooks or mountProfile. 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 typeduseOrgSettingswraps 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 — nine folders by what a
builder is doing (start, agents, users, organizations, billing,
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
| Skill | Description |
/iblai-vibe-start | The first conversation: four questions that set architecture, access, and focus |
/iblai-vibe | Start here — what you want → which skill |
/iblai-vibe-ops-init | New project from vibe-starter; credentials ladder; writes the project CLAUDE.md |
/iblai-vibe-auth | SSO auth for an existing Next.js app (providers, store, lib/iblai/*) |
/iblai-vibe-ops-test | Test before showing work (Vitest, Playwright, screenshots) |
/iblai-vibe-ops-deploy | Deploy through the platform's hosting API (Vercel-backed), containers, static hosts |
Tier 1 — the core app (journey order)
| Skill | Description |
/iblai-vibe-agent-chat | The in-process chat surface (message stream, canvas, voice, prompts) |
/iblai-vibe-agent-chat-sidebar | Wrap the chat with the SDK sidebar (projects, pinned/recent) |
/iblai-vibe-project | Projects surface (files, instructions, assigned agents) |
/iblai-vibe-agent-search | Agent browser (starred, featured, custom, all) |
/iblai-vibe-agent-create ★ | Create an agent from the app (server route + setup screen) |
/iblai-vibe-agent-setting ★ | Agent identity, visibility, copy, delete |
/iblai-vibe-agent | Family index for all 24 agent settings tabs |
/iblai-vibe-profile ★ | Profile dropdown + settings page |
/iblai-vibe-user-metadata ★ | Custom per-user data on the platform |
/iblai-vibe-account | Account/org settings page (Organization, Management, Integrations, Advanced, Billing, Memory, Virtual Machine) |
/iblai-vibe-virtual-machine | Org Virtual Machine settings: the network policies and VM secrets agents' sandboxes draw on |
/iblai-vibe-org-metadata | Custom org data; GET-merge-PUT; where branding lives |
/iblai-vibe-admin | User/Admin mode and the admin area |
/iblai-vibe-invite | Invitation dialogs |
/iblai-vibe-rbac | Roles, policies, action definitions, checkRbacPermission |
/iblai-vibe-navbar | Responsive navbar (logo, links, bell, profile) |
/iblai-vibe-notification | Notification bell + center |
/iblai-vibe-memory-guide ★ | What memory means for your app; which surface for which audience |
/iblai-vibe-memory | Org-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-audit | Agent audit log |
/iblai-vibe-history | The user's own conversation history + exports |
/iblai-vibe-pricing | How money works; which rail to charge users |
/iblai-vibe-credit | Credit balance widget |
/iblai-vibe-billing | Org Billing: plan & credits, spend limits, agent limits |
/iblai-vibe-agent-billing | One agent's spend cap and per-user caps |
/iblai-vibe-monetization-app-paywall | Pay-to-enter on the org's own Stripe key |
/iblai-vibe-api | REST 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 24 tabs — access, api, audit, billing, dataset,
disclaimer, embed, evals, grader, history, llm, lti, mcp,
memory, privacy, prompt, safety, sandbox, setting, skills,
support, task, tool, voice — each /iblai-vibe-agent-<tab>.
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-local-llm, /iblai-vibe-os-agent-code-mode (the OS app's
agentic Code mode in a Tauri build — opencode, permission cards, phone pairing).
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:
| Area | Skills (/iblai-api-<name>) |
| Setup | login — 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 |
| Talk to an agent | agent-session (REST/SSE/WebSocket), agent-chat (hosted MCP server), inference (OpenAI-compatible /v1) |
| Organization | org, 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 LMSs | canvas-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 & hosting | hosting — upload a build, poll it live, custom domains (headless twin of /iblai-vibe-ops-deploy) |
| Guides | ecosystem, 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/apiis 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, useChatV2 } 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: System sans-serif stack
- Style: shadcn/ui new-york variant, 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 testsPlatform 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.mjsThis 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 — not merge-required):
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
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 updates
devUrl. No Vercel token or CLI.
Docker
docker build -t my-app .
docker run -p 3000:3000 my-appDesktop/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 setupApp 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.
- Decode the URL. In
iblai/osthe route isapp/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, andos.ibl.airuns on the hosted platform →DOMAIN=iblai.app(api.iblai.app,login.iblai.app). A self-hosted OS host implies another domain — ask.- Get a token from the session, never a password. With a browser tool (
claude --chrome, or the Playwright server in.mcp.json): open the URL, confirm the user is signed in, readdm_tokenanduserData.user_nicename(the username) from localStorage, then mint a Platform API Token exactly as/iblai-api-loginstep 2 documents —POST https://api.iblai.app/dm/api/core/platform/api-tokens/withAuthorization: Token <dm_token>and body{ username, name, key: "", platform_key: <tenant>, created, expires: "" }; the secret is shown once. Write it to the gitignorediblai.envasTOKEN(plusIBLAI_USERNAME), map it into.env.localasIBLAI_API_KEY, and verify withGET …/dm/api/core/platform/users/?platform_key=<tenant>underAuthorization: Api-Token …→ 200. No browser tool? Ask the user to paste a Platform API Token instead.- 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.
- Learn wiring from source. The same
iblai/osroute mounts the SDK components the/iblai-vibe-agent-*skills install —components/modals/edit-mentor-modal/settings-tab.tsxwrapsAgentSettingsTabinAgentSettingsProvider;…/[mentorId]/analytics/page.tsxrendersAnalyticsOverview. Read it before inventing props.- 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 fromPLATFORMandNEXT_PUBLIC_DEFAULT_AGENT_ID.
THIS PROJECT ALREADY HAS GIT INITIALIZED. DO NOT INITIALIZE GIT.
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.

