iblai-vibe-project
Skill222 starsChanged 13 days agoMITView on GitHub
Add the in-process Projects surface (project landing page — chat input + project files + instructions + assigned agents) to a Next.js app
- Reads credentials
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- iblai/vibeword for word, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 1
- iblai/vibe★ 222100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository166 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.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-agent-voiceSkill
- iblai-api-inferenceSkill
- iblai-api-searchSkill
- iblai-vibe-agent-accessSkill
- iblai-vibe-agent-analyticsSkill
- iblai-vibe-agent-apiSkill
- iblai-vibe-agent-assistantSkill
- 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-screenshareSkill
- 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
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 4 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Add the ibl.ai project surface to your Next.js app: project files, project instructions, list of agents assigned to a project, and the …
- Distinctive: line 31
Do NOT add custom styles, colors, or CSS overrides to the SDK components.
- Distinctive: line 33
Do NOT implement dark mode unless the user explicitly asks for it.
- Distinctive: line 50
Create one in the admin UI, or
- Distinctive: line 79
Don't proceed until you confirm:
- Very specific: line 90
If any of these fail, run /iblai-vibe-agent-chat first.
- Very specific: line 94
If /iblai-vibe-agent-chat was set up against an older SDK release, bump the packages so projectId is recognized:
- Very specific: line 107
Run the Pre-flight prop check in *Prerequisites* to confirm projectId?: string is on the Chat Props type.
- Very specific: line 219
If the project resolves, renders <ProjectLandingPage> with the project name, chat input, Project files card (opens ProjectFilesModal), Add …
- Very specific: line 224
If the project 404s, the surface renders empty — you'll see a clean body and a [data-layer] API error in the console.
- Very specific: line 249
Run /iblai-vibe-ops-test before telling the user the work is ready, and give every page, control and state this skill added its own …
- Very specific: line 271
If the project surface renders but the chat WebSocket can't connect, that's a backend issue (LLM config on the agent) — see …
≈ “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.
Files
/iblai-vibe-project
Add the ibl.ai project surface to your Next.js app: project files,
project instructions, list of agents assigned to a project, and the
project-scoped chat input. Reuses the SDK's Chat component — when you
pass a projectId, the SDK automatically swaps its default
welcome/explore surface for ProjectLandingPage. The same <Chat> you
already mounted for /iblai-vibe-agent-chat does both modes; this skill
just adds the routing + URL plumbing.
Image: Project landing Image: Project files modal
What you get: a route at
/agents/[mentorId]/projects/[projectId]that reads both IDs from the URL, hands them to<Chat>, and the SDK renders the project landing page (chat input + Project files / Add project instructions cards + Project Agents grid). Clicking "Project files" opens the SDK'sProjectFilesModal. Clicking "Add project instructions" opensProjectInstructionsModal. "Add Agent" opensAddMentorToProjectModal.
Do NOT add custom styles, colors, or CSS overrides to the SDK components. They ship with their own styling. Keep them as-is. Do NOT implement dark mode unless the user explicitly asks for it.
Common setup (brand, conventions, env files, verification): see docs/skill-setup.md.
Prerequisites
This skill is a thin delta on top of /iblai-vibe-agent-chat. It does
not duplicate the provider/store/peer-dep wiring — most of the
integration cost lives over there. Run /iblai-vibe-agent-chat first.
/iblai-vibe-agent-chatcomplete (providers wrapped, store reducers registered, service worker shipped, peer deps installed). The project surface uses the same<Chat>component, so the same wiring applies.- An agent ID — same as
/iblai-vibe-agent-chat. - A real
projectIdto test against. Either:- Create one in the admin UI, or
- List the user's projects:
GET https://api.$DOMAIN/dm/api/ai-mentor/orgs/<tenant>/users/<username>/projects/?limit=5(useAuthorization: Token <axd_token>;$DOMAINisDOMAINfromiblai.env, defaultiblai.app).
- SDK versions. The
projectIdprop on<Chat>and theProjectLandingPageslot are in@iblai/web-containers1.74.0's typings and later; vibe-starter's@iblai/iblai-js@^3.1.0resolves 2.1.0, and it pins@iblai/agent-ai@^2.15.3for the embed. Pre-flight prop check (do this before writing the route):
grep -q "projectId?: string" \ node_modules/.pnpm/@iblai+web-containers@*/node_modules/@iblai/web-containers/dist/next/index.d.ts \ && echo "projectId prop present" \ || echo "MISSING — upgrade @iblai/web-containers (Step 2)"
What Gets Wired
| File | Change |
package.json | (No new packages — already covered by /iblai-vibe-agent-chat if both are on the same SDK release. If the host is on an older SDK, bump to the versions above.) |
app/agents/[mentorId]/projects/[projectId]/page.tsx | New route rendering <Chat> with projectId={projectId} (Step 3) |
Step 1: Confirm /iblai-vibe-agent-chat is Wired
The project surface inherits all of /iblai-vibe-agent-chat's setup.
Don't proceed until you confirm:
| Check | Command / file |
Auth providers tree wrapped in <ServiceWorkerProvider> | providers/index.tsx |
skip={isSsoLoginRoute} on AuthProvider + TenantProvider | providers/index.tsx |
chat, chatInput, chatSliceShared, files, rbac, subscription, topBanner reducers registered | store/index.ts |
public/sw.js present | ls public/sw.js |
@iblai/agent-ai installed | cat node_modules/@iblai/agent-ai/package.json | grep version |
/agents/[mentorId]/chat-new route renders for an authed user | open in browser |
If any of these fail, run /iblai-vibe-agent-chat first.
Step 2: Bump the SDK if Needed
If /iblai-vibe-agent-chat was set up against an older SDK release, bump
the packages so projectId is recognized:
pnpm add @iblai/iblai-js@^3.1.0 @iblai/agent-ai@^2.15.3(@iblai/iblai-js bundles web-containers, web-utils, and data-layer as
@iblai/iblai-js/* subpaths and pins its own copies — 3.1.0 pins
@iblai/web-containers 2.1.0, @iblai/web-utils 3.0.2, and
@iblai/data-layer 2.1.0. Never add the separate @iblai/web-* or
@iblai/data-layer packages to the app's own dependencies.)
Run the Pre-flight prop check in Prerequisites to confirm
projectId?: string is on the Chat Props type.
Step 3: Create the Route
Create app/agents/[mentorId]/projects/[projectId]/page.tsx:
"use client";
export const dynamic = "force-dynamic";
import { Suspense, useEffect, useState } from "react";
import { useParams, useRouter } from "next/navigation";
import { Chat, type ChatConfig } from "@iblai/iblai-js/web-containers/next";
import {
useUsername,
useAxdToken,
useUserTenants,
useVisitingTenant,
useIsAdmin,
} from "@iblai/iblai-js/web-utils";
import { redirectToAuthSpa } from "@/lib/iblai/auth-utils";
import config from "@/lib/iblai/config";
export default function AgentProjectPageWrapper() {
return (
<Suspense fallback={null}>
<AgentProjectPage />
</Suspense>
);
}
function AgentProjectPage() {
const { mentorId, projectId } = useParams<{
mentorId: string;
projectId: string;
}>();
const router = useRouter();
const [tenantKey, setTenantKey] = useState("");
useEffect(() => {
const appTenant = localStorage.getItem("app_tenant");
const tenant = localStorage.getItem("tenant");
let currentTenant = "";
try {
currentTenant =
JSON.parse(localStorage.getItem("current_tenant") ?? "{}")?.key ?? "";
} catch {}
setTenantKey(
appTenant || currentTenant || tenant || config.mainTenantKey(),
);
}, []);
const username = useUsername();
const axdToken = useAxdToken();
const { userTenants } = useUserTenants();
const { visitingTenant } = useVisitingTenant();
const isAdmin = useIsAdmin();
const chatConfig: ChatConfig = {
baseWsUrl: () => config.wsUrl(),
supportEmail: () =>
process.env.NEXT_PUBLIC_SUPPORT_EMAIL ?? "support@ibl.ai",
authUrl: () => config.authUrl(),
mainTenantKey: config.mainTenantKey(),
navigateToAdminBilling: () =>
router.push(`/agents/${mentorId}/settings?tab=billing`),
navigateToExplore: () => router.push("/agents"),
navigateToMentor: (id) => router.push(`/agents/${id}`),
};
// Gate render until all 3 IDs are available — projectId from URL,
// mentorId from URL, tenantKey from localStorage.
if (!tenantKey || !mentorId || !projectId) return null;
return (
<div className="flex h-screen w-full flex-col">
<Chat
isPreviewMode={false}
mentorId={mentorId}
tenantKey={tenantKey}
projectId={projectId} /* ← only change vs /iblai-vibe-agent-chat */
config={chatConfig}
redirectToAuthSpa={redirectToAuthSpa}
username={username ?? null}
userTenants={userTenants ?? []}
visitingTenant={visitingTenant}
axdToken={axdToken ?? ""}
userIsStudent={!isAdmin}
/>
</div>
);
}Why each piece:
| Item | Why |
Same wrapper / Suspense / dynamic / chatConfig / hooks as /iblai-vibe-agent-chat | The SDK component is the same; only the projectId prop differs. |
mentorId from useParams<{ mentorId; projectId }>() | Project chats are agent-scoped — the WebSocket session still needs an agent. |
projectId from useParams<...>() | Triggers the SDK to render ProjectLandingPage instead of the default welcome surface. |
if (!tenantKey || !mentorId || !projectId) return null | All three are required; render only when all are resolved. |
tenantKey from localStorage (appTenant / current_tenant / tenant / config.mainTenantKey()) | Matches /iblai-vibe-agent-chat's pattern. |
What the SDK Does With projectId
<Chat> itself doesn't change shape. Internally, when projectId is
truthy, the bundled WelcomeChatNew slot switches its render branch:
- Calls
useGetUserProjectDetailsQuery({ id: parseInt(projectId) }) - If the project resolves, renders
<ProjectLandingPage>with the project name, chat input, Project files card (opensProjectFilesModal), Add project instructions card (opensProjectInstructionsModal), and Project Agents grid (opensAddMentorToProjectModalfrom the "Add Agent" button) - If the project 404s, the surface renders empty — you'll see a clean
body and a
[data-layer] API errorin the console. Don't treat that as a bug in this skill; verify theprojectIdexists for the authenticated user/organization.
The chat input you see in the project surface is the same chat input
as the regular <Chat> flow — sending a message creates a session
scoped to this project + agent combo (the WebSocket URL still
uses mentorId).
Props
The full Chat props table is in /iblai-vibe-agent-chat. The
project-relevant delta:
| Prop | Type | Required | Description |
projectId | string | no | Stringified integer matching a project the user has access to. When set, the welcome surface switches to ProjectLandingPage. |
mentorId | string | yes | Still required even with projectId set — the chat session is agent-scoped. |
ChatConfig is identical to /iblai-vibe-agent-chat — no project-specific
fields.
Step 4: Verify
Run /iblai-vibe-ops-test before telling the user the work is ready, and give
every page, control and state this skill added its own checkpoint — one Playwright
test titled <ID> · … in e2e/journeys/, listed in e2e/coverage.json;
pnpm e2e:coverage must pass. Then:
pnpm build— must pass with zero errors.pnpm dev, log in, navigate tohttp://localhost:3000/agents/<mentorId>/projects/<projectId>.- You should see:
- The project name as the page heading (folder icon next to it)
- "AI is capable of making mistakes…" disclaimer
- "Ask anything" chat input with the standard action buttons (Canvas, Prompts, voice, screen-share, send) + Web Search toggle
- "Project files" card showing "N files added"
- "Add project instructions" card
- "Project Agents" section with the assigned agent cards and an "Add Agent" button
- Click "Project files" → SDK's
ProjectFilesModalopens with the datasets table. - Open
/agents/<mentorId>/projects/<bad-id>to confirm graceful 404 handling (empty body + data-layer console error, no app crash).
If the project surface renders but the chat WebSocket can't connect,
that's a backend issue (LLM config on the agent) — see
/iblai-vibe-agent-chat's Known issues.
Brand guidelines: BRAND.md
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.

