Corex installation

From corex-ui/corex · View interactive version

Corex installation is an AI agent skill from the GitHub repository corex-ui/corex. Load when running mix corex.new, mix corex.design.build, adding {:corex} to mix.exs, configuring esbuild --format=esm --splitting, LiveSocket with csrfToken and hooks: { ...colocatedHooks, ...corex } in assets/js/app.js, use Corex in lib/*_web.ex, type="module" on app.js script tag, toggle.css selec

How to use this skill

Skill file

Corex installation

New project

mix corex.new my_app

Existing app — order matters

  1. {:corex, "~> 0.2.0"} → esbuild ESM splitting → LiveSocket + hooks → type="module" script → use Corex → mix assets.build
const liveSocket = new LiveSocket("/live", Socket, {
  params: { _csrf_token: csrfToken },
  hooks: { ...colocatedHooks, ...corex },
})

Lazy hooks: PascalCase keys (Dialog: () => import("corex/dialog")).

Design + optional toast

mix corex.design.build

Import toggle.css / select.css when using mode/theme/lang pickers.

MCP: plug Corex.MCP in dev only — see corex-mcp. Prefer --no-mcp for locked-down scaffolds. Never set allow_remote_access: true casually.

Also see: updating Corex → Hexdocs update.html / skill pointers under corex-installation; accessibility/theming → corex-design; language switcher → corex-navigation; Tableau Bandit port → corex-mcp.

Full checklist: sub-rule corex:installation. MCP installation_guide when server is running.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.