一键导入
ux-lessons
Use when: turning a UI iteration session into saved lessons and reusable ux-patterns that later feed ux-evidence-validator and ui-prototyping-studio.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when: turning a UI iteration session into saved lessons and reusable ux-patterns that later feed ux-evidence-validator and ui-prototyping-studio.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when deciding whether work merits a governed multi-agent dispatch and, when it does, proposing, tension-checking, confirming, registering, running, closing, and observing that dispatch through repository-local bindings.
Use when deciding whether work merits a governed multi-agent dispatch and, when it does, proposing, tension-checking, confirming, registering, running, closing, and observing that dispatch through repository-local bindings.
The design principle behind Principle 5 (pairwise tension) of the subagents-strategy constitution. Use when designing the angle set for an n≥2 subject group (role investigate or evaluate) so the agents' micro-vectors are structurally opposed and their correlated bias cancels under composition — not merely non-overlapping. This is the design/theory layer; check-tension is the executable gate that enforces it before the human confirm.
Use when: building a compact, task-ready context pack from selector-level evidence and obligation-linked excerpts.
Route repository work through installed Arcanum capabilities and execute validated capability-bound dispatches through host-native operations.
Route repository work through installed Arcanum capabilities and execute validated capability-bound dispatches through host-native operations.
| name | ux-lessons |
| description | Use when: turning a UI iteration session into saved lessons and reusable ux-patterns that later feed ux-evidence-validator and ui-prototyping-studio. |
| argument-hint | <session-or-pattern-ref> [--mode capture|distill|promote|emit-validator|emit-studio] |
| tier | arcana |
| domain | frontend-ux-learning |
| version | 0.1.0-seed |
| origin | created from the 2026-06-23 refine run (arcana/ux-lessons/development/refinement-runs/2026-06-23-ux-lessons) using the x-ray HTML iteration session as the founding fixture |
| allowed-tools | Read, Write, Glob, Grep |
lesson schema,ux-pattern schema,emit-validator, emit-studio),It COMPOSES (never re-implements) these owners:
| Concern | Owner (composed) |
|---|---|
| session signal capture | signal-observer / observed-invocation-loop |
| session → analysis shape | workflow-reflect (shape borrowed) |
| lesson → pattern reduction | distill |
| reusable pattern store mechanics | architecture-pattern-inventory (cards under a ux tag) |
| residue ledger | residuality-spec |
It NEVER: runs Playwright validation (that is ux-evidence-validator), or mutates studio sessions / generates variants (that is ui-prototyping-studio). UX Lessons emits cards and intents; the consumers own execution.
One captured iteration unit, still contextual.
emit-studio-fitnessis PARKED. The mapping is designed and falsification-tested (development/refinement-runs/2026-06-23-ux-lessons-w8-studio-fitness/RESULT.md) but not built. Un-park only when ui-prototyping-studio ships a per-candidate axe/layout evaluator in the cycle AND resolves OQ-5 (soft-score weights). Until then it emits nothing.
lesson_id: # kebab id, e.g. L-xray-02
session_ref: # pointer to the session (path / run-id / signal ref)
context: # what was being built and for whom
iteration_step: # which move in the session
trigger: # what prompted the change
failure_mode: # the problem the change fixed
change: # what was done
before_after:
before_ref: # artifact/screenshot before
after_ref: # artifact/screenshot after
screenshot_refs: [] # evidence images
evidence: [] # enum-constrained, see below
signal_strength: # anecdote | repeated | cross_session
generalizable_principle: # the reusable claim
residue: # what is unresolved / parked
promoted_to: # pattern_id | null
Evidence enum (evidence[] values must be one of) — the replayable shapes ux-evidence-validator already consumes:
dom_measurement | aria_snapshot | screenshot_diff | trace_event.
Honesty rule: signal_strength: anecdote ⇒ promoted_to may NOT target a validator hard_gate. Anecdote lessons can feed soft_flag / screenshot_review only.
pattern_id: # kebab id, e.g. detail-beside-the-subject
name:
intent:
problem:
solution:
when_to_use:
anti_pattern:
forces: []
evidence_link: # lesson_id(s) + evidence refs
status: # seed | calibrated | promoted
residue:
consumer_intake:
validator: # one or more
- claim_class: # hard_gate | soft_flag | screenshot_review | human_study | not_automatable
mode: # ux-evidence-validator mode entered, e.g. spec
feeds_field: # the exact validator field/claim this feeds
studio:
intent: # e.g. reposition | reword | restructure
comment_event_template: # CommentEvent shape
mutation_task: # MutationTask shape
Anti-overbuild guard: a consumer_intake entry may only assert a check if it names the exact consumer field it feeds. No speculative fields.
ux-evidence-validator as validator-safe claims,ui-prototyping-studio as annotation intents,ux-evidence-validator),ui-prototyping-studio),workflow-reflect),architecture-pattern-inventory),capture,lesson records for distill,ux-pattern id for promote / emit-*,emit-*,lesson / ux-pattern artifacts that conform to the schemas,evidence[] within the enum,consumer_intake entry feeds,ux-tagged inventory cards, not a new store,ux-pattern at seed until usage evidence supports promotion,ux-pattern with no backing lesson,consumer_intake fields that name no consumer field,architecture-pattern-inventory,Recommended signal fields: sigil name, mode, lessons captured, patterns distilled, pattern status changes, honesty-rule enforcements, consumer emitted, blocked reasons, reflection trigger state.
UX Lessons is promotion-ready only after experiment evidence shows:ux-pattern distilled and emitted to BOTH consumers with zero invented fields,anecdote → repeated → cross_session) demonstrated,ux-evidence-validator --mode spec,ui-prototyping-studio SPEC.
## UX Lessons Result
- Mode: capture | distill | promote | emit-validator | emit-studio
- Session/pattern ref: <ref>
- Lessons captured: <n or n/a>
- Pattern: <pattern_id and status, or n/a>
- Honesty rule: enforced | not-triggered
- Consumer emitted: ux-evidence-validator | ui-prototyping-studio | none
- Composed owners touched: <list>
- Evidence boundary: <source vs inference note>
- Status: pass | flag | block
- Next: <recommended next mode or route>