/iblai-vibe:iblai-vibe-agent-analyticsfrom ibl.ai vibe
Adds an agent-scoped Analytics tab (AgentAnalyticsTab) to a Next.js app. Shows report cards for Overview, Users, Topics, Transcripts, Memory, Costs, Audit, and Data Reports; clicking a card navigates to the corresponding analytics page scoped to that agent.
Ships in ibl.ai vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Add the agent Analytics tab (AgentAnalyticsTab) -- a launcher, not a
dashboard. Scope: per agent. It shows one card per analytics report
(Overview, Users, Topics, Transcripts, Memory, Costs, Audit, Data Reports);
clicking a card calls your onNavigate(value) so the host routes to that
report, scoped to this agent. The reports themselves are the
AnalyticsLayout pages from /iblai-vibe-analytics. This is one tab in the
agent-settings family indexed by /iblai-vibe-agent.
Hub -- an info box, then the cards. Here Memory and Audit are excluded because the host has no route for them (vibe-starter's case).

Destination -- Overview routed to vibe-starter's
/admin/analytics?agent=<uuid>, the org dashboard narrowed to this agent.

Common setup (brand, conventions, env files, verification): see docs/skill-setup.md.
/iblai-vibe-auth, or vibe-starter).@iblai/iblai-js@^3.6.0 (resolves @iblai/web-containers 2.6.0)./admin/analytics/*, or the
agent-scoped layout in /iblai-vibe-analytics ("One agent instead of the
org"), mounted at /agents/<uuid>/dashboards.Look for iblai.env in the project root with PLATFORM, DOMAIN, and
TOKEN. If it is missing, tell the user:
"You need an iblai.env with your platform configuration. Download the
template and fill in your values:
curl -o iblai.env https://raw.githubusercontent.com/iblai/vibe/refs/heads/main/iblai.env"
AgentAnalyticsTabThe tab fetches nothing and does not read AgentSettingsProvider; it only
needs onNavigate. Map each card's value to a route you have, and exclude
the ones you do not:
// app/(app)/agents/[mentorId]/analytics/page.tsx
"use client";
import { AgentAnalyticsTab } from "@iblai/iblai-js/web-containers/next";
import { useParams, useRouter } from "next/navigation";
export default function AgentAnalyticsPage() {
const router = useRouter();
const { mentorId } = useParams<{ mentorId: string }>();
return (
<div className="flex h-full flex-col bg-white">
<AgentAnalyticsTab
// vibe-starter has no Memory or Audit analytics routes.
excludeTabs={["memory", "audit"]}
onNavigate={(value) =>
router.push(`/admin/analytics${value ? `/${value}` : ""}?agent=${mentorId}`)
}
/>
</div>
);
}
With the agent-scoped layout from /iblai-vibe-analytics, route to
/agents/${mentorId}/dashboards/${value} (plain …/dashboards for
Overview) instead and
drop excludeTabs for the reports you added. Keep the dashboards off
/agents/<uuid>/analytics/: that route is this hub, and the Overview card
(value "") would route back to it. Hide audit unless the viewer holds
/mentors/{mentorDbId}/#view_audit_logs (/iblai-vibe-rbac), as the OS
does. In a modal, close it before router.push.
There is no labels prop: the copy comes from the SDK's i18n
(analyticsTabLabels.*). To change a card's text, icon, or order, pass your
own tabs (start from DEFAULT_ANALYTICS_HUB_TABS):
import {
AgentAnalyticsTab,
DEFAULT_ANALYTICS_HUB_TABS,
} from "@iblai/iblai-js/web-containers/next";
<AgentAnalyticsTab
tabs={DEFAULT_ANALYTICS_HUB_TABS.map((t) =>
t.value === "financial" ? { ...t, label: "Spend" } : t,
)}
onNavigate={(value) => console.log("open", value)}
/>;
get_component_info("AgentAnalyticsTab")
get_component_info("AnalyticsLayout")
<AgentAnalyticsTab> PropsImport from @iblai/iblai-js/web-containers/next.
| Prop | Type | Required | Description |
|---|---|---|---|
onNavigate | (value: string) => void | Yes | Called with the card's value; the host navigates |
tabs | AnalyticsHubTab[] ({ value, label, description, icon? }) | No | Replace the cards. Defaults to the localized standard set |
excludeTabs | string[] | No | Card values to hide (e.g. audit without permission) |
Card values (they match the AnalyticsLayout routes): "" Overview,
users, topics, transcripts, memory, financial (Costs), audit,
reports (Data Reports).
From @iblai/iblai-js/web-containers/next:
DEFAULT_ANALYTICS_HUB_TABS -- the English card list (value, label,
description, icon).AGENT_ANALYTICS_TAB_LABELS -- the English fallback copy: header
(title, description), infoBox, openAria(label), and tabs
(label and description per card key: overview, users, topics,
transcripts, memory, financial, audit, reports).AnalyticsHubTab, AnalyticsTabLabels, AgentAnalyticsTabProps -- types.The tab itself calls no API. The pages it opens read the analytics
endpoints with mentor_unique_id set to the agent: see /iblai-vibe-analytics
for the hooks and the REST twin
/iblai-api-analytics.
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:
pnpm build -- must pass with zero errors.pnpm test -- vitest must pass./agents/<uuid>/analytics in the browser as /iblai-vibe-ops-test says,
signed in as an admin: the cards render; click each one -- none may 404, and each
lands on a report for this agent; read the console; check the phone width./iblai-vibe-analytics.value your app does not serve,
or the click 404s.?agent=: its
app/(app)/admin/analytics/layout.tsx routes tabs without the query, so
after landing on a report, switching tabs shows the whole organization.
Carry ?agent= through its onTabChange if you need the scope to stick.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
166 skills in this plugin
/iblai-api-agent-accessManage role-based access to an ibl.ai agent via the platform API — list role policies, search users/groups, and grant/revoke editor, chat, or analytics_viewer roles for users, groups, and emails. Use when controlling who can edit, chat with, or view analytics for an agent./iblai-api-agent-auditRead an ibl.ai agent's audit log via the platform API — a who-changed-what trail filterable by action, actor email, and date range. Read-only. Use when investigating configuration changes to an agent./iblai-api-agent-chatSet up live chat with a deployed ibl.ai agent by wiring the hosted iblai-api-agent-chat MCP server into the project (.mcp.json / claude mcp add) using the .env Api-Token and a chosen agent's unique id, or by signing in from claude.ai, ChatGPT or Claude Desktop with only the URL. Use to enable runtime conversations with an agent, and to list or disconnect the apps a user has connected. The actual chatting then happens through the MCP server's tools.npx claudepluginhub iblai/base --plugin iblai-vibeOther plugins' skills for the same job