Loading...
Loading...
Update the project CLAUDE.md with ibl.ai platform guidance
npx skill4agent add iblai/vibe iblai-initCLAUDE.mdCLAUDE.mdCLAUDE.md## ibl.ai Platform#### CLAUDE.md
This project is built on the ibl.ai platform using the `@iblai/iblai-js` SDK.
## Component Priority
When adding UI features, follow this priority order:
1. **ibl.ai components** (`@iblai/iblai-js`) -- always use these first
2. **shadcn/ui** (`npx shadcn@latest add`) -- for everything else
3. **Custom/third-party** -- only when no ibl.ai or shadcn component exists
### When the user asks to add...
| Feature | Use this | NOT this |
|---------|----------|----------|
| Profile page / dropdown | `/iblai-profile` skill + `Profile`, `UserProfileDropdown` from SDK | Custom profile form |
| Account / org settings | `/iblai-account` skill + `Account` from SDK | Custom settings page |
| Analytics dashboard | `/iblai-analytics` skill + `AnalyticsOverview`, `AnalyticsLayout` from SDK | Chart library from scratch |
| Notifications | `/iblai-notification` skill + `NotificationDropdown` from SDK | Custom notification system |
| Chat / AI assistant | `/iblai-chat` skill + `<mentor-ai>` web component | Custom chat UI |
| Auth / login | `/iblai-auth` skill + `AuthProvider`, `SsoLogin` from SDK | Custom auth flow |
| Invite users | `/iblai-invite` skill + `InviteUserDialog` from SDK | Custom invite form |
| Workflow builder | `/iblai-workflow` skill + workflow components from SDK | Custom node editor |
| Onboarding flow | `/iblai-onboard` skill | Custom onboarding from scratch |
| Buttons, forms, modals, tables | shadcn/ui (`npx shadcn@latest add button dialog table`) | Raw HTML or other UI libraries |
| Page sections / blocks | shadcn/ui blocks (`npx shadcn@latest add @shadcn-space/hero-01`) | Custom layout from scratch |
### Key rule
Do NOT build custom components when an ibl.ai SDK component exists.
Do NOT use raw HTML or third-party UI libraries when shadcn/ui has an equivalent.
ibl.ai and shadcn share the same Tailwind theme -- they render in brand colors automatically.
## SDK Imports
```typescript
// Data layer
import { initializeDataLayer, mentorReducer } from "@iblai/iblai-js/data-layer";
// Auth & utilities
import { AuthProvider, TenantProvider, useChatV2 } from "@iblai/iblai-js/web-utils";
// Framework-agnostic components
import { Profile, AnalyticsLayout, NotificationDropdown } from "@iblai/iblai-js/web-containers";
// Next.js-specific components
import { SsoLogin, UserProfileDropdown, Account } from "@iblai/iblai-js/web-containers/next";/iblai-auth # SSO authentication (run first)
/iblai-chat # AI chat widget
/iblai-profile # Profile dropdown + settings page
/iblai-account # Account/org settings page
/iblai-analytics # Analytics dashboard
/iblai-notification # Notification bell
/iblai-invite # User invitation dialogs
/iblai-workflow # Workflow builder
/iblai-onboard # Onboarding questionnaire flow
/iblai-build # Desktop/mobile builds (Tauri v2)
/iblai-test # Test before showing work
/iblai-component # Browse all available components/iblai-authiblai add authiblai.envDOMAINPLATFORMTOKENNEXT_PUBLIC_*.env.local.env.localiblai.env#0058cclinear-gradient(135deg, #00b0ef, #0058cc)var(--sidebar-bg, #fafbfc)bg-white rounded-lg border border-[var(--border-color)] overflow-hiddenw-full px-4md:w-[75vw] md:px-0globals.csspadding-top: env(safe-area-inset-top)app/layout.tsxviewport: "width=device-width, initial-scale=1, viewport-fit=cover"pnpmnpmpnpm dev # Dev server
pnpm build # Production build
iblai config show # View configuration
iblai add <feature> # Add a feature
---
## Step 3: Confirm
After writing the file, tell the user:
> Updated `CLAUDE.md` with ibl.ai platform guidance. Claude Code will now
> prioritize ibl.ai SDK components over custom implementations and use the
> correct skills when adding features.