rn-navigation
为 React Native 构建 Expo Router 导航
React Native 团队需要在标签页、栈、模态框和深度链接之间实现可预测的导航。此技能提供 Expo Router 模式,用于处理常见路由决策。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "rn-navigation" from https://skillstore.io/skills/cjharmath-rn-navigation.md and its manifest at https://skillstore.io/api/skills/cjharmath-rn-navigation/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“rn-navigation”。 我需要 Home 和 Profile 的底部标签页,外加一个位于标签页之外的 player detail screen。
预期结果:
该技能会建议为 Home 和 Profile 使用标签页组,为 player detail screen 使用根栈,并为 player 标识符使用路由参数。
正在使用“rn-navigation”。 我的深度链接打开了应用,但没有进入预期页面。
预期结果:
该技能会指导检查 app scheme、universal-link 域名设置、路由文件名,以及解析后的传入 URL 路径。
正在使用“rn-navigation”。 登录后,用户可以返回登录页面。
预期结果:
该技能会建议登录后使用替换导航,并添加受保护路由检查,将已认证用户从 auth screens 重定向出去。
安全审计
安全I reviewed the single Markdown skill and found the static alerts are false positives caused by code fences, inline code terms, a placeholder universal-link URL, and route parameter names. The skill contains Expo Router navigation guidance and does not include executable scripts, prompt injection text, data exfiltration instructions, or malicious network behavior.
风险因素
⚙️ 外部命令 (46)
🌐 网络访问 (1)
📁 文件系统访问 (1)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/cjharmath-rn-navigation/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/cjharmath-rn-navigation?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/cjharmath-rn-navigation?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/cjharmath-rn-navigation/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/cjharmath-rn-navigation.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
CJHarmath. (2026). rn-navigation security audit report (audit version 8) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cjharmath-rn-navigation/audits/8BibTeX 引用
@techreport{cjharmath-cjharmath-rn-navigation-2026,
author = {CJHarmath},
title = {rn-navigation security audit report (audit version 8)},
institution = {Skillstore},
year = {2026},
number = {8},
url = {https://skillstore.io/skills/cjharmath-rn-navigation/audits/8},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "rn-navigation security audit report (audit version 8)"
version: "unspecified"
type: report
authors:
- name: "CJHarmath"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/cjharmath-rn-navigation/audits/8"
identifiers:
- type: other
value: "skillstore:cjharmath-rn-navigation:audit:8"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
规划新应用的导航结构
创建清晰的 Expo Router 路由树,包含标签页、栈、动态页面和回退页面。
规范团队路由模式
记录模态框、受保护路由、深度链接和导航参数的一致选择。
调试导航行为
当标签页、标题、参数、返回行为或深度链接无法正常工作时,检查常见原因。
试试这些提示
使用 rn-navigation skill 为包含 Home、Profile、Settings 和 Not Found screen 的应用设计一个简单的 Expo Router 路由结构。
使用 rn-navigation skill 展示我应该如何通过类型化路由参数从列表页面导航到详情页面。
使用 rn-navigation skill 规划一个 Expo Router 布局,包含 auth screens、main tabs、booking modal,以及登录后的安全重定向。
使用 rn-navigation skill 审查我的 Expo Router 结构,并找出标签页损坏、标题缺失、参数错误或深度链接失败的可能原因。
最佳实践
- 保持路由名称与 app 目录一致,使文件路径和 URL 保持可预测。
- 在登录、引导流程或已完成且不应保留在历史记录中的流程之后,使用替换导航。
- 将 URL 参数用于简单的可共享状态,将全局状态用于较大的临时对象。
避免
- 当共享状态或缓存数据更安全时,不要通过 URL 参数传递复杂对象。
- 不要在未检查父级布局的情况下,通过禁用标题或手势来掩盖导航问题。
- 在 scheme、universal-link 域名和路由路径经过测试之前,不要假设深度链接可以正常工作。