一键导入
layer-10-navigation
Expert knowledge for Navigation Layer modeling in Documentation Robotics
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Expert knowledge for Navigation Layer modeling in Documentation Robotics
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Expert knowledge for Data Store Layer modeling in Documentation Robotics
Graph-based code intelligence for using dr analyzer subcommands to understand codebase structure, discover elements, and verify model alignment
Expert knowledge for Application Layer modeling in Documentation Robotics
Expert knowledge for Motivation Layer modeling in Documentation Robotics
Expert knowledge for Business Layer modeling in Documentation Robotics
Expert knowledge for Security Layer modeling in Documentation Robotics
| name | LAYER_10_NAVIGATION |
| description | Expert knowledge for Navigation Layer modeling in Documentation Robotics |
| triggers | ["navigation","routing","route","flow","navigation guard","redirect","navigation flow"] |
| version | 0.7.0 |
Layer Number: 10 Specification: Metadata Model Spec v0.7.0 Purpose: Defines multi-modal navigation flows, routes, guards, and transitions between views.
The Navigation Layer captures navigation and routing:
This layer uses Multi-Modal Navigation supporting web, mobile, voice, and other modalities.
Central Entity: The Route (URL path to view) is the core modeling unit.
| Entity Type | Description |
|---|---|
| Route | URL path mapped to view |
| NavigationGuard | Authorization/validation before navigation |
| NavigationFlow | Multi-step navigation sequence |
| NavigationTransition | Transition between routes |
| FlowStep | Step in navigation flow |
| ContextVariable | Navigation context data |
| DataMapping | Data passing between routes |
| NotificationAction | Navigation-triggered notifications |
| ProcessTracking | Business process tracking |
| FlowAnalytics | Navigation analytics |
Activate when the user:
Outgoing (Navigation → Other Layers):
view-ref → UX Layer (which view does this route show?)business.realizes-process → Business Layer (what process does this flow realize?)security.required-roles → Security Layer (authorization requirements)apm.flow-metrics → APM Layer (navigation analytics)Incoming (Other Layers → Navigation):
# Add route
dr add navigation route --name "User Profile Route" --property path=/profile/:id
# Add navigation guard
dr add navigation navigation-guard --name "Auth Guard"
# Add navigation flow
dr add navigation navigation-flow --name "Checkout Flow"
# List routes
dr list navigation route
# Validate navigation layer
dr validate --layer navigation
# Export navigation map
dr export --layer navigation --format mermaid
id: navigation.route.user-profile
name: "User Profile Route"
type: route
properties:
path: /profile/:userId
view-ref: ux.view.user-profile
guards:
- navigation.guard.authentication
- navigation.guard.profile-ownership
parameters:
- name: userId
type: string
format: uuid
required: true
meta:
title: "User Profile"
requiresAuth: true
allowedRoles:
- user
- admin
contextVariables:
- name: currentUserId
source: auth.user.id
dataMapping:
- source: route.params.userId
target: view.data.userId
security:
required-roles:
- security.role.authenticated-user
business:
realizes-process: business.process.profile-management
apm:
flow-metrics:
- apm.metric.profile-view-count
- apm.metric.profile-load-time
id: navigation.flow.checkout
name: "Checkout Flow"
type: navigation-flow
properties:
steps:
- id: cart-review
route: /checkout/cart
view: ux.view.cart-review
onNext: validate-cart
- id: shipping-address
route: /checkout/shipping
view: ux.view.shipping-form
onNext: validate-address
- id: payment
route: /checkout/payment
view: ux.view.payment-form
onNext: validate-payment
- id: confirmation
route: /checkout/confirm
view: ux.view.order-confirmation
final: true
transitions:
- from: cart-review
to: shipping-address
trigger: next-button
guard: cart-not-empty
- from: shipping-address
to: payment
trigger: next-button
guard: valid-address
- from: payment
to: confirmation
trigger: submit
guard: payment-successful
context:
- cartId
- selectedAddress
- paymentMethod
analytics:
trackStepCompletion: true
trackAbandonmentRate: true
business:
realizes-process: business.process.checkout