<< All versions

Skill v1.0.1

currentAutomated scan100/100
corex-ui/corex/corex-installation

+3 new

──Details
PublishedAugust 26, 2026 at 05:15 PM
Content Hashsha256:dfb24cfc568a4842...
Git SHA694796eb5572
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 1.5 KB)
SKILL.md1.5 KBactive
SKILL.md · 46 lines · 1.5 KB

version: "1.0.1" name: corex-installation description: >- 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 select.css for mode/theme pickers, or toast_group layout in root layout.


Corex installation

New project

sh
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
javascript
const liveSocket = new LiveSocket("/live", Socket, {
params: { _csrf_token: csrfToken },
hooks: { ...colocatedHooks, ...corex },
})

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

Design + optional toast

sh
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.

← v1.0.0All versions