agentleFS
iblaiiblai/base/skills/agents/iblai-vibe-agent-lti/SKILL.md

iblai-vibe-agent-lti

Skill222 starsChanged 13 days agoMITView on GitHub

Add the agent LTI tab (put the agent inside an LMS course with LTI 1.3 -- the launch switch, the agent's LTI link, the organization's signing keys and LMS tools, and the endpoints to register) to your Next.js app. Use when the user mentions LTI, Canvas, Brightspace, Blackboard, Moodle, deep linking, or adding the agent to an LMS course. For the agent's other settings see /iblai-vibe-agent.

  • Reads credentials
  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 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.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add the agent LTI tab -- let an LMS (Canvas, Brightspace, Blackboard, Moodle) launch the agent inside a course with LTI 1.3.

    line 12
  2. Very specific:

    Look for iblai.env in the project root with PLATFORM, DOMAIN, and TOKEN.

    line 80
  3. Very specific:

    Every call needs platform_key: in the query on GET and DELETE, in the body on POST and PUT.

    line 178
  4. Very specific:

    All from @iblai/iblai-js/data-layer, with the LtiAgentLink and LtiAgentLinkStatus types.

    line 193
  5. Very specific:

    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 …

    line 199
  6. Distinctive:

    Delete order: remove or re-key a tool before deleting its key.

    line 216

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/iblai-vibe-agent-lti

Add the agent LTI tab -- let an LMS (Canvas, Brightspace, Blackboard, Moodle) launch the agent inside a course with LTI 1.3. Scope: mixed. The switch and the Links sub-tab belong to this agent; Keys and Tools are shared by the whole organization; Tool Endpoints are fixed for the organization. This is one tab in the agent-settings family indexed by /iblai-vibe-agent; it shares the AgentSettingsProvider wrapper with every other tab.

Links -- the switch (the agent's is_lti_accessible setting; while off, the sub-tabs stay visible but grayed out) and the agent's LTI link: Name, Target Link URI (with copy), Status and an edit action. An agent has one link: Create LTI Link shows only while there is none. A new link builds in the background -- Pending or Building with a spinner and a Refresh button, then Ready or Failed (with Retry).

Image: LTI tab -- Links

Edit LTI Link -- one field, the name shown when a teacher picks this agent during deep linking. Only Ready links can be edited.

Image: LTI tab -- Edit LTI Link

Keys -- the organization's RSA signing keys (name and public key), with Create LTI Key (name only; the key pair is generated) and an Edit / Delete menu per row.

Image: LTI tab -- Keys

LTI Key -- rename the key and copy its Public Key (PEM) or Public JWK. A key still used by a tool cannot be deleted.

Image: LTI tab -- LTI Key

Tools -- the organization's LMS registrations (Name, Issuer, Client ID) with Create LTI Tool and an edit action.

Image: LTI tab -- Tools

Create LTI Tool -- the values the LMS gives you: Name, Issuer, Client ID, Auth Login URL, Auth Token URL, Auth Audience (optional), the LMS public keys (a JWKS URL, recommended, or Raw JWKS JSON), a Signing Key from the Keys sub-tab, and Deployment IDs (one per line or comma-separated).

Image: LTI tab -- Create LTI Tool

Tool Endpoints -- the four URLs to paste into the LMS, each with copy: Redirect URI, Login Initiations Endpoint, Deep Linking Endpoint and JWKS Endpoint. They are built from lmsDomain (Step 2).

Image: LTI tab -- Tool Endpoints

Common setup (brand, conventions, env files, verification): see docs/skill-setup.md.

Prerequisites

  • Auth set up (/iblai-vibe-auth, or vibe-starter).
  • AgentSettingsProvider wraps the route (/iblai-vibe-agent §1).
  • @iblai/iblai-js@^3.1.0 (resolves @iblai/web-containers 2.1.0). Check with pnpm why @iblai/web-containers.
  • A real agent UUID. Ask the user; never invent one.
  • An organization admin signed in: Links, Keys and Tools are admin-only, so an agent's owners and editors get 403 here.
  • The organization's edX LMS host for lmsDomain. vibe-starter has it as config.legacyLmsUrl(); elsewhere 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 AgentLtiTab

// app/(app)/agents/[mentorId]/lti/page.tsx
"use client";

import { AgentLtiTab } from "@iblai/iblai-js/web-containers/next";
import config from "@/lib/iblai/config";

export default function AgentLtiPage() {
  return (
    <div className="flex h-full flex-col bg-white">
      <AgentLtiTab lmsDomain={config.legacyLmsUrl()} />
    </div>
  );
}

The tab reads tenantKey, mentorId and username from AgentSettingsProvider (each can be passed as a prop instead) and does its own fetching and saving. Pass lmsDomain -- the edX LMS host (learn.*), not the API base: without it the Tool Endpoints are bare paths. The JWKS endpoint uses the organization's code from the platform info; pass orgShortName to override it.

Step 3: Customize Labels (Optional)

The tab renders with the default agent-facing copy (AGENT_LTI_TAB_LABELS, localized through the SDK's i18n). Pass a partial labels object to change any string:

import { AgentLtiTab } from "@iblai/iblai-js/web-containers/next";
import config from "@/lib/iblai/config";

<AgentLtiTab
  lmsDomain={config.legacyLmsUrl()}
  labels={{
    header: { title: "LMS integration" },
    subTabs: { agentLinks: "Launch link" },
  }}
/>;

Label groups (LtiTabLabels): header (title, description), capability (the switch and its toasts), subTabs (agentLinks, keys, tools, toolEndpoints), common (shared buttons, column headings and form copy), links (the links table, status badges, refresh and retry, the link dialog), keys (the keys table, create, detail and delete dialogs), tools (the tools table and the tool dialog fields), endpoints (the four endpoint names and descriptions), and toasts.

Step 4: Use MCP Tools for Customization

get_component_info("AgentLtiTab")
get_component_info("AgentSettingsProvider")

<AgentLtiTab> Props

Import from @iblai/iblai-js/web-containers/next.

PropTypeRequiredDescription
lmsDomainstringRecommendedThe edX LMS host the Tool Endpoints are built on, e.g. config.legacyLmsUrl()
orgShortNamestringNoOrganization code in the JWKS URL. Defaults to the platform info's org, then the organization key
labelsDeepPartial<LtiTabLabels>NoOverride user-visible strings
tenantKeystringNoOrganization key; defaults to AgentSettingsProvider
mentorIdstringNoAgent UUID; defaults to AgentSettingsProvider
usernamestringNoSigned-in username; defaults to AgentSettingsProvider
enableRBACbooleanNoAccepted for parity; SDK 2.36.2 gates no LTI control on it

Related Exports

From @iblai/iblai-js/web-containers/next:

  • AGENT_LTI_TAB_LABELS -- the default label bundle.
  • AgentLtiTabProps, LtiTabLabels -- types.

How it saves

ActionRequest
The switchPUT /api/ai-mentor/orgs/{org}/users/{username}/mentors/{uuid}/settings/ with is_lti_accessible
Create a linkPOST /api/core/lti/1p3/provider/lti-mentors/ with the name, the agent and platform_key, plus async_create: true -- answers 202 with { id, status: "pending" }
Edit / Retry a linkPUT …/lti-mentors/{id}/; Retry deletes the failed link and creates it again
KeysGET / POST (name) on /api/core/lti/1p3/provider/lti-keys/; PUT / DELETE on …/lti-keys/{id}/
ToolsGET / POST on /api/core/lti/1p3/provider/lti-tools/; PUT on …/lti-tools/{id}/, with launch_gate (the tab sends { "allow_all_within_org": true })
Tool EndpointsRead-only: {lmsDomain}/lti/1p3/launch/, …/login/, …/deep-linking/launch/, …/pub/orgs/{org code}/jwks/

Single-item GET, PUT and DELETE exist only on the {id}/ routes. Every call needs platform_key: in the query on GET and DELETE, in the body on POST and PUT. Tools also require launch_gate. The tab asks for page_size=10, but the API forwards only the organization and the agent to the LMS, so pages follow the LMS's own defaults.

Platform data

HookPurpose
useGetMentorSettingsQuery / useEditMentorMutationThe switch
useGetLtiMentorsQuery, useCreateLtiMentorMutation, useUpdateLtiMentorMutation, useDeleteLtiMentorMutation, useGetLtiMentorDetailQueryThe agent's link (poll the detail until ready or failed)
useGetLtiKeysQuery, useCreateLtiKeyMutation, useUpdateLtiKeyMutation, useDeleteLtiKeyMutationKeys
useGetLtiToolsQuery, useCreateLtiToolMutation, useUpdateLtiToolMutationTools
useGetPlatformInfoQueryThe organization code for the JWKS URL

All from @iblai/iblai-js/data-layer, with the LtiAgentLink and LtiAgentLinkStatus types. There is no iblai-api-* REST twin for LTI yet; the endpoints above are in the live schema.

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:

  1. pnpm build -- must pass with zero errors.
  2. pnpm test -- vitest must pass.
  3. Touch test /agents/<uuid>/lti in the browser as /iblai-vibe-ops-test says, signed in as an org admin: the switch and four sub-tabs render, and Tool Endpoints shows full https:// URLs on your LMS host; read the console; check the phone width.

Important Notes

  • Keys and Tools are organization-wide: changing them here changes them for every agent. Only the link is per agent.
  • Link creation is slow: it builds an LMS course in the background; wait for Ready before sharing the Target Link URI.
  • Delete order: remove or re-key a tool before deleting its key.
  • LTI tools are not agent tools: the Tools sub-tab holds the organization's LMS registrations. The agent settings have had no Tools tab since @iblai/iblai-js 3.0.0; each capability has its own switch in one of the remaining tabs (/iblai-vibe-agent-tool).
  • Shared provider: mount AgentSettingsProvider once at the layout level (/iblai-vibe-agent §1); do not wrap each tab.
  • Peer deps: sonner and @iblai/iblai-web-mentor (pnpm add sonner @iblai/iblai-web-mentor).
  • Brand guidelines: BRAND.md

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.