Yida Nav Shell logo

Yida Nav Shell

Organization
openyida
yida-nav-shell

为应用或独立前台页面编写自己的顶部、侧边等导航菜单时使用。只改现有导航颜色和样式用 yida-design,整理菜单分组和顺序用 yida-nav-group。只做前台菜单时保留管理端的宜搭导航;整个应用都使用自定义菜单时,才隐藏应用导航。

Overview

Publisheropenyida
Repositoryopenyida
Skill nameyida-nav-shell
Stars
228
Forks
50
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by openyida on GitHub. Read the source before you install it.

Installation

Install the Yida Nav Shell AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/openyida/openyida/tree/main/yida-skills/skills/yida-nav-shell
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/openyida/openyida.git /tmp/openyida
mkdir -p .claude/skills
cp -r /tmp/openyida/yida-skills/skills/yida-nav-shell .claude/skills/yida-nav-shell
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Yida Nav Shell in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Yida Nav Shell on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Yida Nav Shell is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

yida-nav-shell

导航形态必须与所选主题兼容:按 主题与导航兼容规则 核对openyida design-plan catalog --json 返回的 supportedNavigationLayouts。自绘菜单也按实际 variant 检查;只支持侧边的主题不能改成顶部或 mixed,不能通过隐藏平台导航绕过限制。

先判断

先看需求和方案:只有需要编写自己的导航菜单时才使用本技能。调整已有导航的颜色、圆角、边框或阴影用 yida-design;整理菜单分组和顺序用 yida-nav-group。同一个应用可以让前台使用自己的菜单、管理端继续使用宜搭菜单。用户已有明确要求时直接沿用;尚未确定时按 导航决策 选择。

用户需求怎么处理
现有导航配色不搭,或需要调整圆角、边框、阴影用 yida-design 更新应用主题,不重写导航
导航分组、页面排序、隐藏/显示导航项用 yida-nav-group
页面内 tab、分段、筛选、卡片切换当前页内容结构,不用本技能
独立前台要自己的顶部/侧边菜单用本技能,只配置该页面独立展示,后台保留平台导航
整个应用采用自绘应用级导航用本技能,按应用级范围隐藏应用导航
用户只说隐藏应用导航执行 update-app --hide-app-nav;需要自绘导航时再用本技能
用户只说全屏、无导航、isRenderNav=false这是页面级隐藏,优先用 yida-page-config

关键区别:

  • 应用导航隐藏:hideAppNav='y',通过应用基础设置控制。
  • 页面持久配置:写入 isRenderNav=false,回读 renderNav=false;与原生提交/详情 URL 上的 isRenderNav 参数分开,见字段口径。
  • 不要用 isRenderNav=false 代替 hideAppNav。
  • 不要让平台应用导航和自绘应用级导航同时出现。

平台导航下的管理页只实现业务内容,不默认使用本技能或导航壳片段;同任务分类使用页内 Tab,跨模块由平台菜单切换。管理入口的任务清单不等于页面菜单,详见管理页面边界。

必做配置

先读 PRD 的应用 navigationType 与当前页 pageSpecHandoff.entryMode/navigation,分别处理:

仅独立前台菜单

前后台场景默认考虑在前台导航操作区或头像菜单提供按身份可见的业务后台入口,见 设计建议;已有入口复用,不增加按钮存在性检查或发布门禁。需要让应用管理员返回业务管理时,使用 管理员工作台入口 的 canvas-admin-entry,放在导航操作区并跟随主题。按当前访问者与当前应用的身份展示,指向真实业务管理页面;这只是访问态入口,不是开发后台按钮,不自动授予或调整管理员权限。

应用为 platform-top/platform-side/platform-l-shape、当前页为 standalone 时,只对该页面执行下面的 update-form-config 和回读;不调用 update-app --hide-app-nav,不批量隐藏后台表单或其他页面。需要应用级主题更新时继续保留平台导航。发布后分别验证前台页面链接与后台 workbench 链接;前台仍出现平台菜单时,先排查实际访问路径与页面配置,不能通过全局隐藏“修复”。

整个应用自定义导航

需求规划采用自定义导航后,就将应用导航隐藏纳入应用基础设置更新:新建应用时,等 app-theme.css 生成后,将 --hide-app-nav 与主题、Logo、布局等设置合并到同一次 update-app,按 应用设置同步 执行并回读。已有应用只需切换导航时执行:

bash
openyida update-app <appType> --hide-app-nav

只有整个应用采用自定义导航时,才对 PRD 本轮范围内全部普通表单、流程表单、自定义页面及其他支持页面配置的资源逐页执行;使用已解析的真实 formUuid 和原页面标题:

bash
openyida update-form-config <appType> <formUuid> false "<页面标题>"
openyida get-form-config <appType> <formUuid> --json

每页回读 renderNav=false 才完成;仅缺少 renderNav 时兼容 isRenderNav,布尔值及字符串 "false" 均表示隐藏,缺失或无效值不算成功。失败时修复该页配置并重读。表单及自定义页面在创建或复用并取得真实 formUuid 后立即配置,可与页面代码开发并行,不等待页面发布。发布后只回读核对;若发布改变了配置才补写修复,最终按 PRD 清单逐项核对。create-page --hide-nav 已包含配置、回读及一次补写,navigationVerification.verified=true 可作为创建时的证据,无需重复配置;URL 参数不能代替持久化设置。

访问态入口与权限

前台和管理端可以使用不同的菜单,管理端也可以直接打开业务列表,无需首页。菜单显示什么与用户能操作什么要分别处理:平台隐藏的菜单项,仍可能是前台需要的任务;能看到一个页面,也不代表能提交或修改数据。

公开内容的纯页内视图使用本地数组直接切换,或 mode=local,不请求平台菜单接口;叶子项需 key/viewKey/targetType=local。沿用平台菜单范围时使用 platform 模式并绑定真实资源 ID;按资源权限独立组织任务时使用 independent 模式,并查询当前用户的真实权限。local 中声明的 access 也必须校验,不得删除声明规避权限;业务查询、提交和管理操作继续校验平台权限。权限查询尚未接通时,不放行相关菜单,明确记录未完成项。字段和步骤见 前台与管理端的菜单规则。

实现要点

本节的 iframe 与原生表单打开规则用于计划选择复用原生页面的工作区。全码前台默认在同一页面切换业务视图、完成填写与结果展示,连接真实数据;不把默认 iframe 当作全码前台。菜单只包含该入口的有效任务,不能把后台菜单自动带入前台。

先读取 页面与导航连续性,落实 design.md 中的共同画布、滚动归属及往返状态。导航布局与内容切换共同设计;不要只生成菜单外形。

  • MUST:应用内切换保留导航壳:点击自定义导航后,导航必须仍然可见且可继续操作;默认只切换主内容区。原生提交页、数据管理页嵌入主内容 iframe,本地工作台切换 React 内容。只有确认目标页面也承载同一套导航壳时才允许整页跳转;不能直接跳到隐藏导航的原生页面。外链和用户主动新窗口打开单独处理。见 保留导航壳的最小示例。

  • 按场景选择内容布局:先执行 openyida sample openyida-page-template canvas-nav-content 并整体合并 CanvasNavigationContent,保持 .openyida-nav-layout / .openyida-nav-content 布局结构。业务工作区使用默认 layout="workspace",从壳到 main、iframe 建立完整 flex 高度链,每个可收缩层设置 min-height:0;工作台内容区滚动,原生页仅 iframe 内滚动。沉浸官网或连续展示页使用 layout="document",导航与首屏叠在共同画布上、沿用页面滚动,不套定高内滚动工作区。顶部导航通过 navigation 接入,提取 canvas-nav-top 时传 headerOnly,有首屏背景再传 overlay;不能再嵌一整套带 main 的导航壳。document 的 main/content 使用自然高度,禁止套用 workspace 的 flex 零基准或定高内滚动。见 连续展示页 和 主内容撑满剩余空间。

  • 画布与间距:宿主消费 --pod-page-bg-color,内部画布按 design.md 配色和材质,只作用于当前页,不改全局变量。根用 flow-root 或 flex/grid;沉浸页遵循共同背景规则,工作区按主题保证导航可读。

  • 先选形态,再写 UI:根据已确认的 PRD、design.md 和用户参考确定布局。模块多用侧栏,模块少且内容需要宽度用顶部,两级业务用顶部+侧边,沉浸展示可用悬浮 Dock,同模块视图用标签。已确认的选择直接沿用,不重新提问。

  • 自定义顶部导航默认贴顶通栏,不默认浮导;胶囊或悬浮栏仅按明确设计选用。有首屏背景图时默认叠加背景、初始透明,滚动后增加遮罩底色,回顶恢复透明;展开菜单保持可读底色。工作区导航占位。定位方式与外观分开选择,遵循 连续性规则,不改变导航归属。

  • 需要布局方向和小段代码时读 导航壳形态目录。按场景设计和手写实现,不强制复制任何导航组件。已有导航符合设计时直接复用,只补缺失功能;不能仅因存在新示例而替换现有外观。

  • 自定义侧边导航(含顶部+侧边)的 PC 端必须支持折叠/展开和拖拽调宽;展开恢复折叠前宽度,宽度变化时内容区同步调整。移动端改为可展开/收起的菜单,详见 侧栏交互。

  • 菜单数量、名称、顺序、分组和入口用途来自 PRD,默认落点按当前入口任务确定;平台模式用当前访问者的 getAccessableNavs.json 过滤展示,独立资源菜单及任何声明 access 的菜单必须接入真实权限适配,详见 导航数据来源。数据逻辑可直接复用,不要求采用同一套 UI。

  • 只在当前页切视图时用 React 状态;需要分享、刷新恢复、前进后退时同步 URL hash。跨真实页面时沿用应用路由与数据桥,详见 菜单契约。hashchange、matchMedia 等监听必须 cleanup。

  • 满足导航壳保留条件后的跨页跳转,避免重复应用前缀:完整的 /APP_xxx/workbench/FORM_xxx 地址通过数据桥调用 router.push(href, params, false, true),第三参 false 表示不新开标签,第四参 true 表示 URL 模式。数据桥已修复省略第四参时的自动识别,但不会覆盖显式传入的 false;生成代码仍须明确传 true,详见 路由模式与数据桥兜底。

  • 导航项保存真实资源 ID、入口用途和 params;办理任务、数据管理与页面内新增/详情按钮按 入口用途与嵌入页面 分别处理。用 URL / URLSearchParams 保留 corpid、locale 和业务参数。

UI 和验收

  • 导航表达应用身份、业务层级和当前位置;选中态清晰,图标使用 lucide-react 或 @ant-design/icons,不用 emoji、字母占位或 CSS 拼图标。
  • 视觉按 导航与应用框架 落实 design.md 的导航差异 token(未声明项沿用平台绑定);背景、文字、悬停/选中、边界、形状、字体和间距与表单、详情和内容区协调。对照用户参考检查位置、比例及首屏/滚动态,样式由当前导航组件消费应用主题。
  • 导航按连续目录排列,普通菜单项默认透明,不逐项加边框或投影;悬停时给轻微反馈,选中项清晰可辨。边框和阴影按设计需要添加,不是必填项。导航直接使用应用主题;PC 七档与移动端四档品牌变量由 yida-design 和 CLI 完整提供,不在导航组件里另配一套颜色。
  • 导航选中态已标明当前页时,内容区从业务开始;独立页头只补充对象、任务说明或操作,避免重复菜单标题。
  • 侧栏已验证折叠、恢复宽度、拖拽上下限和内容联动;顶部窄屏可展开菜单,Dock 不遮内容和主要操作。
  • 按范围验收:应用级自定义导航核验应用 hideAppNav 与各页 renderNav=false;仅前台菜单核验该页独立展示,并确认后台应用导航仍可用。配置均需持久化并回读;菜单可见性、选中态、内容与路由一致,深链、刷新及前进后退正常。
  • 逐项点击应用内导航,确认导航壳、当前选中项和主内容同时正确;切换后还能返回工作台。不能只验证目标页面打开成功。
  • 实际滚动到页脚并回顶,确认 main 没有塌缩到导航高度;检查首屏、第二屏与窄屏菜单展开态,无背景断带、遮挡或双滚动;测试往返、快速连点、重复点击、刷新、前进后退、加载失败及未保存输入,按连续性规则核验状态和焦点。
  • 完整检查见 验证清单。本地编译后按 yida-publish-page 发布并检查实际页面,编译通过不等于视觉验收通过。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Yida Nav Shell AI skill do?

为应用或独立前台页面编写自己的顶部、侧边等导航菜单时使用。只改现有导航颜色和样式用 yida-design,整理菜单分组和顺序用 yida-nav-group。只做前台菜单时保留管理端的宜搭导航;整个应用都使用自定义菜单时,才隐藏应用导航。

Why use Yida Nav Shell on TypingMind?

Because you install it once and use it with any model. Yida Nav Shell is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Yida Nav Shell in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/openyida/openyida/tree/main/yida-skills/skills/yida-nav-shell. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Yida Nav Shell?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Yida Nav Shell?

As many as you like. As long as a model supports skills, you can use Yida Nav Shell with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Yida Nav Shell AI skill free?

Yes. It is published on GitHub by openyida under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇