Corex navigation

From corex-ui/corex · View interactive version

Corex navigation is an AI agent skill from the GitHub repository corex-ui/corex. Load when using .navigate with type navigate or patch, .action for buttons, redirect on select menu combobox listbox tree_view pagination, Corex.List.Item.new or Corex.Tree.Item.new with to redirect :href :navigate :patch, language_switch locale paths, or guides/localize language switcher pattern.

How to use this skill

Skill file

Corex navigation

Three patterns: links, buttons, redirect-on-select.

Links

<.navigate to={~p"/dashboard"} type="navigate" class="link ui-accent">Dashboard</.navigate>
<.navigate to={~p"/items?page=2"} type="patch" class="link">Page 2</.navigate>

Redirect on select

<.select id="language-switch" class="select ui-size-sm" items={items} value={[dest]} redirect>
  <:item :let={item}>{item.label}</:item>
</.select>
Corex.List.Item.new(%{value: dest, label: "English", to: dest, redirect: :navigate})
<.tree_view id="docs-tree" class="tree-view" redirect items={Corex.Tree.new([…])} />

Per-item :redirect — :href, :patch, :navigate, or false (atom on the item). Build menu / tree_view with Corex.Tree. Server logic before navigate → on_value_change + redirect/2 instead.

Full checklist: sub-rule corex:navigation.

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.