iblai-vibe-agent-analytics
Skill222 starsChanged 12 days agoMITView on GitHub
Add the agent Analytics tab (AgentAnalyticsTab, a hub of report cards for one agent that hands off to your full analytics pages) to your Next.js app. Use when the user wants an Analytics tab among the agent settings tabs, links from an agent to its usage, users, topics, transcripts, costs, or reports, or mentions AgentAnalyticsTab. For the dashboards themselves see /iblai-vibe-analytics; for the REST contract see /iblai-api-analytics.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- iblai/vibeword for word, first seen Nov 29, 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-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
- iblai-vibe-incognitoSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Add the agent Analytics tab (AgentAnalyticsTab) -- a launcher, not a dashboard.
- Very specific: line 43
Look for iblai.env in the project root with PLATFORM, DOMAIN, and TOKEN.
- Very specific: line 151
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 …
≈ “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-agent-analytics
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.
Image: Analytics tab -- Overview destination
Common setup (brand, conventions, env files, verification): see docs/skill-setup.md.
Prerequisites
- Auth set up (
/iblai-vibe-auth, or vibe-starter). @iblai/iblai-js@^3.1.0(resolves@iblai/web-containers2.1.0).- Analytics pages to land on: vibe-starter's
/admin/analytics/*, or the agent-scoped layout in/iblai-vibe-analytics("One agent instead of the org"), mounted at/agents/<uuid>/dashboards. - A real agent UUID. Ask the user; never invent one.
Step 1: Check Environment
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"
Step 2: Mount AgentAnalyticsTab
The 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.
Step 3: Change the cards (Optional)
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)}
/>;Step 4: Use MCP Tools for Customization
get_component_info("AgentAnalyticsTab")
get_component_info("AnalyticsLayout")<AgentAnalyticsTab> Props
Import 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).
Related Exports
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), andtabs(labelanddescriptionper card key:overview,users,topics,transcripts,memory,financial,audit,reports).AnalyticsHubTab,AnalyticsTabLabels,AgentAnalyticsTabProps-- types.
Platform data
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.
Step 5: 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:
pnpm build-- must pass with zero errors.pnpm test-- vitest must pass.- Touch test
/agents/<uuid>/analyticsin the browser as/iblai-vibe-ops-testsays, 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.
Important Notes
- A hub, by design: the OS renders this tab inside its edit-agent modal
and leaves the dialog for full-page analytics. Embed the dashboards
themselves with
/iblai-vibe-analytics. - Every card needs a route: exclude any
valueyour app does not serve, or the click 404s. - vibe-starter's tab strip drops
?agent=: itsapp/(app)/admin/analytics/layout.tsxroutes tabs without the query, so after landing on a report, switching tabs shows the whole organization. Carry?agent=through itsonTabChangeif you need the scope to stick. - 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.

