iblai-vibe-agent-disclaimer
Skill222 starsChanged 13 days agoMITView on GitHub
Add the agent Disclaimers tab (a User Agreement users must accept before chatting, an Advisory note shown in the chat, and the list of who agreed) to your Next.js app. Use when the user mentions disclaimers, terms users must accept, an AI notice in the chat, or who accepted an agent's agreement. For the REST contract see /iblai-api-agent-disclaimer.
- 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-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
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 12
Add the agent Disclaimers tab -- the notices users see when they chat with the agent.
- Distinctive: line 37
Search matches the exact username.
- Very specific: line 55
Look for iblai.env in the project root with PLATFORM, DOMAIN, and TOKEN.
- Very specific: line 220
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-disclaimer
Add the agent Disclaimers tab -- the notices users see when they chat
with the agent. Scope: per agent. Two cards sit side by side: the User
Agreement (text users must accept, with an Active switch) and the
Advisory (a short note shown in the chat, such as "AI can make
mistakes"). This is one tab in the agent-settings family indexed by
/iblai-vibe-agent; it shares the AgentSettingsProvider wrapper with every
other tab.
Disclaimers -- both cards with Edit and Copy. The User Agreement
card and View Agreements need the agent's #view_disclaimers grant
(Step 2). View Agreements shows only once the agreement is Active.
Image: Disclaimers tab -- overview
Edit User Agreement -- the first save creates the agreement; later saves update it. Save stays disabled while the text is blank.
Image: Disclaimers tab -- Edit User Agreement
Edit Advisory -- the Advisory is one field on the agent's settings. It cannot be saved blank, so it cannot be cleared from this tab.
Image: Disclaimers tab -- Edit Advisory
Agreements -- who accepted the User Agreement and when, 20 per page. Search matches the exact username.
Image: Disclaimers tab -- Agreements
Common setup (brand, conventions, env files, verification): see docs/skill-setup.md.
Prerequisites
- Auth set up (
/iblai-vibe-auth, or vibe-starter). AgentSettingsProviderwraps the route (/iblai-vibe-agent§1).@iblai/iblai-js@^3.1.0(resolves@iblai/web-containers2.1.0). Check withpnpm why @iblai/web-containers.- A real agent UUID. Ask the user; never invent one.
- The signed-in user needs the agent's
#view_disclaimersgrant (org admins have it) to see the User Agreement.
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 AgentDisclaimersTab
The User Agreement card and View Agreements are gated on the RBAC grant
/mentors/<agent db id>/#view_disclaimers, read from the provider's
rbacPermissions -- even with enableRBAC={false}. Without it only the
Advisory card renders. Load the grants for the agent and pass them to a
nested provider:
// app/(app)/agents/[mentorId]/disclaimers/page.tsx
"use client";
import { useEffect, useState } from "react";
import {
AgentDisclaimersTab,
AgentSettingsProvider,
useAgentSettings,
} from "@iblai/iblai-js/web-containers/next";
import {
useGetMentorSettingsQuery,
useGetRbacPermissionsMutation,
} from "@iblai/iblai-js/data-layer";
export default function AgentDisclaimersPage() {
const settings = useAgentSettings();
const { tenantKey, mentorId, username } = settings;
const [grants, setGrants] = useState<object>({});
const [getRbacPermissions] = useGetRbacPermissionsMutation();
const { data } = useGetMentorSettingsQuery({
mentor: mentorId,
org: tenantKey,
// @ts-expect-error userId is accepted at runtime
userId: username,
});
const mentorDbId = (data as { mentor_id?: number } | undefined)?.mentor_id;
useEffect(() => {
if (!mentorDbId) return;
getRbacPermissions({
requestBody: {
platform_key: tenantKey,
resources: [`/mentors/${mentorDbId}/`],
},
})
.unwrap()
.then((permissions) => setGrants({ ...permissions }))
.catch(() => {});
}, [mentorDbId, tenantKey, getRbacPermissions]);
return (
<div className="flex h-full flex-col bg-white">
<AgentSettingsProvider {...settings} rbacPermissions={grants}>
<AgentDisclaimersTab />
</AgentSettingsProvider>
</div>
);
}The grant path uses the agent's numeric mentor_id from its settings, not
the UUID. If your layout already loads the agent's grants into the provider,
mount <AgentDisclaimersTab /> directly.
Markdown and a starting text (optional)
Both cards render plain text by default, so line breaks collapse. Pass
renderContent to render Markdown, and defaultDisclaimerContent to
prefill the User Agreement before one exists:
import ReactMarkdown from "react-markdown";
import { AgentDisclaimersTab } from "@iblai/iblai-js/web-containers/next";
<AgentDisclaimersTab
defaultDisclaimerContent="By chatting with this agent you agree to our terms."
renderContent={(content) => <ReactMarkdown>{content}</ReactMarkdown>}
/>;Step 3: Customize Labels (Optional)
The tab renders with the default agent-facing copy
(AGENT_DISCLAIMERS_TAB_LABELS, localized through the SDK's i18n). Pass a
partial labels object to change any string:
import { AgentDisclaimersTab } from "@iblai/iblai-js/web-containers/next";
<AgentDisclaimersTab
labels={{
header: { title: "Notices" },
userAgreement: { title: "Terms of use" },
}}
/>;Label groups (DisclaimersTabLabels): header (title, description),
infoBox, userAgreement (title, tooltip, active, inactive, and the
edit dialog's editTitle, editLabel, editPlaceholder), advisory
(title, tooltip, editTitle, editLabel, editPlaceholder), actions
(edit, save, saving, cancel, viewAgreements), toasts (success and
error for each save and toggle), and agreements (the Agreements dialog:
title, totalAgreements(count), summaryDescription, search, column and
empty-state copy).
Step 4: Use MCP Tools for Customization
get_component_info("AgentDisclaimersTab")
get_component_info("AgentSettingsProvider")<AgentDisclaimersTab> Props
Import from @iblai/iblai-js/web-containers/next.
| Prop | Type | Required | Description |
labels | DeepPartial<DisclaimersTabLabels> | No | Override user-visible strings |
defaultDisclaimerContent | string | No | User Agreement text shown before one exists. Defaults to '' |
renderContent | (content: string) => ReactNode | No | Render both cards' text as rich content (e.g. Markdown). Defaults to plain text |
Identity and grants come from AgentSettingsProvider (tenantKey,
mentorId, username, rbacPermissions, enableRBAC).
Related Exports
From @iblai/iblai-js/web-containers/next:
AGENT_DISCLAIMERS_TAB_LABELS-- the default label bundle.AgentDisclaimersTabProps,DisclaimersTabLabels-- types.
How it saves
| Action | Request |
| Load | GET …/disclaimers/?mentor_id=<uuid>&scope=mentor (the first result is the User Agreement) and the agent's settings (disclaimer, mentor_id) |
| Save the User Agreement | First time: POST …/disclaimers/ with content, mentors: [uuid], scope: "mentor" (created active). Then: PATCH …/disclaimers/{id}/ with content |
| Active switch | PATCH …/disclaimers/{id}/ with active; with no agreement yet it creates one from defaultDisclaimerContent, and the default '' gets a 400 |
| Save the Advisory | PUT mentors/{uuid}/settings/ with disclaimer |
| View Agreements | GET …/disclaimer-agreements/?disclaimer={id}&mentor_id=<uuid>&page_size=20 (plus username when searching) |
The tab has no delete. The API cannot delete a User Agreement either, and will not detach its last agent: turn it off with the switch.
Platform data
| Hook | Purpose |
useGetDisclaimersQuery | The agent's User Agreement |
useCreateDisclaimerMutation / useUpdateDisclaimerMutation | Create it, edit its text, switch it on or off |
useGetDisclaimerAgreementsQuery | Who accepted it |
useGetMentorSettingsQuery / useEditMentorMutation | Read and save the Advisory |
useGetRbacPermissionsMutation | Load the #view_disclaimers grant (Step 2) |
REST twin: /iblai-api-agent-disclaimer.
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>/disclaimersin the browser as/iblai-vibe-ops-testsays, signed in as an org admin: both cards render; Edit the User Agreement and Save -- it is created Active and View Agreements appears (on a fresh agent the switch alone shows "Failed to update user agreement"); read the console; check the phone width.
Important Notes
- Per agent: both notices apply to everyone who chats with this agent.
- Saving creates it live: the first User Agreement save creates it already Active, so users must accept it on their next chat. Switch it off if the text is still a draft.
- No undo: a User Agreement cannot be deleted, only switched off. Try it on a test agent.
- Shared provider: mount
AgentSettingsProvideronce at the layout level (/iblai-vibe-agent§1); do not wrap each tab. - Peer deps:
sonnerand@iblai/iblai-web-mentor(pnpm add sonner @iblai/iblai-web-mentor). - 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.

