.claude/skills/klytos-menus-and-navigation/SKILL.md
Guide for managing site navigation menus in Klytos CMS. Use when adding, modifying, or removing menu items, creating menus, building navigation, associating items with pages, or creating dropdown submenus.
npx skillsauth add joseconti/klytos klytos-menus-and-navigationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
[
'id' => string, // Auto-generated hex ID
'label' => string, // Display text
'url' => string, // Link URL (default '#')
'target' => string, // '_self' or '_blank'
'icon' => string, // Icon name (optional)
'order' => int, // Sort order
'children' => array, // Nested items (recursive)
]
{
"items": [
{"label": "Home", "url": "/", "order": 0},
{"label": "Services", "url": "/services/", "order": 1, "children": [
{"label": "Marketing", "url": "/services/marketing/", "order": 0},
{"label": "Design", "url": "/services/design/", "order": 1}
]},
{"label": "About", "url": "/about/", "order": 2},
{"label": "Contact", "url": "/contact/", "order": 3}
]
}
{"label": "Blog", "url": "/blog/", "order": 4}
{"id": "abc123"}
$menu = klytos_app()->getMenuManager();
$menu->get(); // Get menu
$menu->set([...items...]); // Replace all
$menu->addItem(['label' => 'Blog', 'url' => '/blog/', 'order' => 3]);
$menu->removeItem('abc123'); // Remove by ID
$html = $menu->toHtml('/'); // Generate HTML
Use the page's URL path as the menu item URL:
| Page slug | Menu URL |
|---|---|
| about | /about/ |
| services/marketing | /services/marketing/ |
| External | https://example.com |
| Anchor | #section |
| Class | Element | Description |
|---|---|---|
| .klytos-nav | <nav> | Container |
| .klytos-menu | <ul> | Main list |
| .klytos-menu-item | <li> | Item |
| .has-children | <li> | Has submenu |
| .klytos-submenu | <ul> | Nested list |
<nav class="klytos-nav">
<ul class="klytos-menu">
<li class="klytos-menu-item"><a href="/">Home</a></li>
<li class="klytos-menu-item has-children">
<a href="/services/">Services</a>
<ul class="klytos-submenu">
<li class="klytos-menu-item"><a href="/services/marketing/">Marketing</a></li>
</ul>
</li>
</ul>
</nav>
Submenus: display: none by default, shown on .has-children:hover.
core/menu-manager.phpcore/mcp/tools/menu-tools.phpdevelopment
Guide for working with dates, times, and timezones in Klytos CMS. Use when formatting dates, converting timezones, scheduling actions with timestamps, displaying local time, working with UTC storage, building timezone selectors, or using any klytos_date/klytos_gmdate/klytos_timezone functions.
tools
Guide for developing and extending the Klytos web terminal. Use when modifying terminal commands, adding terminal commands from plugins, fixing terminal bugs, extending the pseudo-terminal, working with TerminalExecutor class, registering custom permissions, adding custom category labels, or managing terminal UI and security.
development
--- name: klytos-site-builder description: Guide for building a complete website from scratch with Klytos CMS. Use when creating a new site, configuring a site after installation, setting up design/content/SEO/navigation, or when the user pastes the post-install prompt. Covers 9 phases: discovery, design reference, global config, theme, content structure, templates, content creation, additional features, and launch. --- # Klytos Site Builder ## Overview The Site Builder is a conversational AI
development
Use when creating or editing page content in Klytos CMS. Ensures every page has proper SEO structure, HTML semantics, meta tags, structured data, accessibility for maximum search engine visibility. Apply when writing page titles, descriptions, content, headings, images, internal links, JSON-LD schema, or following the SEO checklist before publishing pages.