بنقرة واحدة
layer-09-ux
Expert knowledge for UX Layer modeling in Documentation Robotics
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Expert knowledge for UX 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_09_UX |
| description | Expert knowledge for UX Layer modeling in Documentation Robotics |
| triggers | ["UX","user interface","UI","view","component","screen","form","user experience","state machine"] |
| version | 0.7.0 |
Layer Number: 09 Specification: Metadata Model Spec v0.7.0 Purpose: Defines user experience using Three-Tier Architecture, specifying views, components, state machines, and interactions.
The UX Layer captures user experience design:
This layer uses Three-Tier Architecture (v0.5.0+):
Central Entity: The View (routable screen) is the core modeling unit.
Library Tier:
Application Tier:
Experience Tier:
Activate when the user:
Outgoing (UX → Other Layers):
motivation.* → Motivation Layer (UX supports goals)business.* → Business Layer (UX realizes business processes)api.* → API Layer (API calls from components)data.* → Data Model Layer (form validation rules)navigation.* → Navigation Layer (routing to views)Incoming (Other Layers → UX):
# Add view
dr add ux view --name "User Profile" --property route=/profile
# Add component instance
dr add ux component-instance --name "Profile Form"
# List views
dr list ux view
# Validate UX layer
dr validate --layer ux
# Export UX documentation
dr export --layer ux --format markdown
id: ux.view.login
name: "Login View"
type: view
properties:
route: /login
layout:
type: centered
maxWidth: 400px
components:
- id: login-form
componentRef: library.component.form-field
dataBinding:
source: api.operation.login
submitAction: POST /api/auth/login
fields:
- name: email
type: email
required: true
validation:
- type: email-format
- type: required
- name: password
type: password
required: true
validation:
- type: min-length
value: 8
actions:
- id: submit-button
type: button
label: "Login"
action: submit-form
target: login-form
- id: forgot-password
type: link
label: "Forgot password?"
navigation: /forgot-password
states:
- id: idle
initial: true
onEnter: []
- id: submitting
onEnter:
- action: disable-form
- action: show-spinner
- id: success
onEnter:
- action: navigate
target: /dashboard
- id: error
onEnter:
- action: show-error
- action: enable-form
transitions:
- from: idle
to: submitting
trigger: submit
- from: submitting
to: success
trigger: success
- from: submitting
to: error
trigger: failure
- from: error
to: idle
trigger: retry
motivation:
supports-goals:
- motivation.goal.user-authentication
api:
operationId: login
navigation:
route-ref: navigation.route.login