/lykomi-ui:lykomi-author-chat-modulefrom lykomi-ui
Author a LYKOMI UI ChatModule — the unit of composition for bootstrapShell() apps. Use when adding a feature module to an app built on @lykomi/web-shell (new pages, tool UIs, theme layers, providers, nav items, or chat persistence), or when wiring an existing feature into the shell instead of hardcoding it.
Ships in lykomi-ui. 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.
A ChatModule is how features plug into a LYKOMI UI app. The shell stays
generic; modules contribute everything feature-specific. Never hardcode
feature wiring into the shell — compose it as a module.
@lykomi/web-shell)import { defineChatModule, type ChatModule } from "@lykomi/web-shell";
export const myModule = defineChatModule({
name: "my-feature",
useInit, // hook body run inside the layout — cross-store sync, nav registration
toolUIs, // ReactNode inside <AGUIRuntimeProvider> — makeAssistantToolUI instances
layoutExtras, // ReactNode inside the layout — banners, dialogs, popovers
wrappers, // ComponentType[] applied outer→inner — context providers
useThemeLayers, // hook returning ThemeLayer[] — stacked on the static theme
pages, // { path, element }[] — appended to Routes (host app wins on collision)
fetchInterceptor, // zero-arg installer called before createRoot
chatConversation, // URL-driven chat persistence (below)
});
Then: bootstrapShell({ modules: [myModule], pages, theme }).
useInit is a React hook body — rules of hooks apply (no conditionals around it).useInit via useNavStore.getState().setConfig(...) — there is no declarative nav field.wrappers order is outer→inner from the array; the shell renders
BrowserRouter → AuthProvider → wrappers → AGUIRuntimeProvider → toolUIs → Routes.pages beat module pages on path collision — never rely on a module owning /.chatConversation with pathPattern (regex capturing the conversation id), optional useStickyConversationId() (keeps the runtime alive across non-chat navigation), and buildHistoryAdapter({ urlMatch, aguiThreadId }) returning an assistant-ui ThreadHistoryAdapter. Selection: URL match → first registered config → in-memory.makeAssistantToolUI(...) (assistant-ui 0.15.x) and are registered by rendering them inside toolUIs.Check the current types in @lykomi/web-shell (the package's
.d.ts or packages/web-shell/AGENTS.md)
— the module contract is pre-1.0 and evolves. If your change also touches
@assistant-ui/* or @ag-ui/* APIs, run the lykomi-verify-agent-apis
skill first.
For multi-step forms or resumable processes, read the wizard/process guidance
in the bundled UX contract. It covers the shared
ProcessSteps/ProcessGuide pattern, host-authored actions, returning to
completed steps, locked-state explanations and checking API availability.
Before authoring form UI, read the framework form UX contract.
Follow its defaults unless the user explicitly requests a different UX. This bundled
reference is generated from docs/FORM_UX.md; do not duplicate its rules here.
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/lykomi-build-agent-formsBuild forms in a LYKOMI UI app with automatic field context, explicit editing, validation and guarded agent tools. Use when adding or changing forms or field-level agent interactions./lykomi-build-workbenchCompose LYKOMI UI tabs, panels, tables and guided processes with context that matches the visible work. Use when adding a workbench surface or connecting its selection to an agent./lykomi-verify-agent-apisGround yourself in the CURRENT APIs before writing or editing code that touches @assistant-ui/*, @ag-ui/*, @lykomi/*, or the Microsoft Agent Framework. This stack moves fast and training data on it is stale — always verify against live docs/samples first. Use before implementing tool UIs, AG-UI transports, agent endpoints, or upgrading any of these packages.Other plugins' skills for the same job
npx claudepluginhub lykomi/ui --plugin lykomi-ui