krt-interface-warden
Use this skill when designing, implementing, or reviewing a frontend interface that must feel specific, functional, and intentionally designed instead of generic, AI-generated, or template-like.
The mission is not to make screens "pretty." Compose a complete product surface around real content and work: a dossier, map, logbook, control table, workshop, archive, or report that helps people inspect, decide, operate, compare, validate, or navigate.
Use Editorial Product UI as the default design stance: typographic hierarchy, open space, rigorous alignment, purposeful density, and very few artificial surfaces. Identity should come from the content and composition before decoration.
Collaboration Role
Warden operates independently and owns the visual system and implementation decisions. It must infer the user task, constraints, and visual direction itself when no companion artifact exists.
When the companion skills are also active:
- Guardian supplies the functional UX contract and owns its verification gate.
- Inquisitor supplies evidence-based critique and prioritized change inputs.
- Warden records the rationale for accepted, adapted, or deferred findings.
Consume a Guardian UX contract or Inquisitor critique brief only when supplied. Otherwise derive the same minimum product constraints from the request and existing interface. Preserve the primary task, completion signal, persistent context, required states, accessibility/responsive constraints, and established mechanics. Visual distinctiveness must not reduce operability.
For critique-and-fix work with Inquisitor active, implement only after its brief is complete and record which findings were accepted, adapted, or deferred. Without Inquisitor, perform Warden's own pre-design diagnosis and continue. Do not reopen supplied product constraints; surface a conflict when the requested visual change cannot satisfy them.
Core Rules
Do not design the interface as a collection of cards or start by selecting components.
Build hierarchy in this order:
Typography -> space -> alignment -> proportion -> dividers -> subtle background shifts -> borders -> elevation.
Use a closed surface only when those earlier tools cannot express a real semantic boundary. If a card is used, it must behave like an independent object with a clear functional reason. Otherwise replace it with sections, bands, rails, annotated margins, rich rows, definition lists, tables when comparison requires them, or functional layers.
Required Composition Brief
Before choosing components or writing JSX/CSS, record a compact composition brief. Do not skip it for autonomous implementation and do not turn it into an approval checkpoint unless the user asks.
- What supplied Guardian constraints, explicit product requirements, or inferred functional needs are immutable?
- If an Inquisitor brief exists, which findings are accepted, adapted, deferred, or not applicable?
- What is the user's primary task and completion signal?
- What single information element must dominate visually?
- What working-surface metaphor fits the domain?
- Which layout archetype fits the task: editorial page, master-detail, canvas with inspector, staged flow, document with contextual rail, operational list, narrative dashboard, split view, or timeline/feed?
- How do main content, navigation, and contextual information relate?
- Which elements need a closed surface? For each one, state the semantic reason.
- Does the user need to compare columns, sort dense records, or perform bulk actions? If not, do not default to a table.
- What remains visible, what moves behind disclosure, and what becomes a separate view on narrow screens?
- What generic AI/SaaS pattern are you avoiding, and what content-led structure replaces it?
- What makes the composition recognizable without a logo?
If an answer is unclear, infer the most useful composition from the data and workflow. Do not block unless the missing choice would materially change the product behavior.
Surface Metaphors
- Dossier: reviewing one entity, case, user, client, asset, claim, or record.
- Map: navigating relationships, dependencies, flows, ownership, or topology.
- Logbook: reading events, history, activity, changes, incidents, or audit trails.
- Control table: monitoring operations, queues, workloads, states, or live metrics.
- Workshop: creating, editing, composing, transforming, or configuring.
- Archive: searching, filtering, comparing, and retrieving many records.
- Report: explaining findings, recommendations, conclusions, or evidence.
The layout must follow the selected metaphor.
Layout Archetypes
Select one primary archetype before implementation; combine two only when each owns a distinct region.
- Editorial page: executive summary, report, or overview with one dominant fact and a contextual rail.
- Master-detail: entities that must be scanned while one remains open for inspection.
- Canvas with inspector: builders, agents, diagrams, automations, and configurators.
- Staged flow: onboarding, creation, review, and other consequential multi-step work.
- Document with contextual rail: readable evidence, evaluations, agent output, or documentation with annotations.
- Operational list: inboxes, tasks, incidents, queues, and activity organized through rows and separators.
- Narrative dashboard: a metric story led by one measure, supporting measures, visualization, and interpretation.
- Split view: two directly related work zones that must remain visible together.
- Timeline or feed: sequence, provenance, activity, and history where order matters more than column comparison.
Do not default to sidebar + header + KPI card grid + table. Treat a persistent sidebar as navigation infrastructure, not the page's design concept.
Design Directives
- Prefer bands, rails, annotated margins, expressive tables, status marks, layers, legends, and connection lines over standalone cards.
- Keep the base background visible across roughly 60-70% of the viewport when the product context permits.
- Allow at most one dominant contained surface per viewport and two visible elevation levels.
- Never nest cards. Do not combine border, contrasting background, and shadow on the same container without an exceptional functional reason.
- Use color as signage: action, state, risk, grouping, navigation, priority. Do not use decorative gradients unless they encode real information.
- Use typography as the primary identity: readable sans for work, optional serif for selected editorial titles or protagonist figures, and mono or semi-mono for metadata, codes, dates, statuses, and technical values.
- Give one metric narrative priority. Place supporting measures in aligned rows or bands instead of identical KPI cards.
- Use tables only for column comparison, sorting/filtering dense records, pattern recognition, or bulk action. Otherwise prefer rich lists, master-detail, timelines, grouped states, definition lists, or charts with detail on demand.
- Make states part of the identity: empty, loading, error, blocked, success, partial data, too much data, review, and conflict states should match the surface metaphor.
- Use depth through functional layers: main panel, inspector, drawer, review overlay, timeline, comparison view. Do not rely on soft shadows for personality.
- On narrow screens, reprioritize the task and move secondary context into disclosure, panels, or separate views. Do not merely stack every desktop container or turn every row into a card.
- Keep accessibility non-negotiable: contrast, keyboard navigation, visible focus, semantic structure, responsive behavior, tables that remain understandable, and signals that do not depend on color alone.
- Reuse established components, tokens, and interaction mechanics unless evidence or a supplied critique identifies them as the source of the problem. Explain any deliberate departure.
For every material design, redesign, or implementation, read references/visual-grammar.md before completing the composition brief. It contains the surface budget, component decisions, typography/tokens, responsive transformations, and final self-critique.
Default Replacements
- Metric card -> protagonist figure with an aligned supporting band, margin counter, or dense summary row.
- Feature card -> editorial block with a rule line, number, concrete example, or workflow step.
- User card -> compact dossier record with metadata and state marks.
- Project card -> rich row with status, owner, date, risk, and next action.
- Dashboard card -> editorial section, narrative data view, or integrated operational region.
- Pricing card -> comparison table or contract-like plan sheet.
- News card -> logbook entry.
- Task card -> operational line with priority, state, and owner.
- Product card -> technical sheet or inventory record.
Delivery Requirements
When generating or materially changing an interface, include:
- UX and product constraints honored, whether supplied or inferred.
- Inquisitor findings accepted, adapted, or deferred with concise reasons, only when a brief exists.
- Composition brief: task, dominant information, surface metaphor, layout archetype, region relationship, and responsive transformation.
- Surface and table ledger: each card/table retained and its semantic reason.
- Visual rules and main components applied.
- Replacements made to avoid generic cards or other AI/SaaS patterns.
- Clean, accessible, maintainable frontend code when implementation is requested.
- Visual and interaction evidence gathered for verification or an optional Guardian final gate.
- A short note explaining why the UI avoids generic AI aesthetics.
Keep the explanation brief when the user primarily asked for code; the interface itself should carry the design argument.
Final Checklist
Before delivery, verify:
- Any supplied Guardian UX contract remains satisfied; otherwise the inferred functional baseline remains intact.
- When an Inquisitor brief exists, every finding is accepted, adapted, deferred with reason, or explicitly not applicable.
- The screen does not read as a generic SaaS template.
- Cards are absent or functionally justified.
- At least one unnecessary container was considered for removal; no retained surface exists merely to group related content.
- The base surface remains visually predominant and elevation is reserved for content that truly floats.
- Any table exists because users compare columns, sort/filter dense data, recognize patterns, or act in bulk.
- One task, action, or information element clearly dominates instead of every module receiving equal weight.
- Bento grids, glassmorphism, decorative gradients, and filler icons are avoided.
- Margins, rails, bands, tables, or layers do real work.
- The chosen surface metaphor and layout archetype are visible in the composition.
- Hierarchy works without decorative clutter.
- The hierarchy still works when borders, icons, and accent color are mentally removed.
- States have a recognizable system language.
- The design would still be identifiable without a logo.
- The narrow-screen layout preserves the primary task through reprioritization, not mechanical stacking.
- Accessibility and responsiveness remain intact.
1---2name: krt-interface-warden3description: Independently design or implement distinctive, functional frontend interfaces using Editorial Product UI: content-led hierarchy, working-surface metaphors, deliberate layout archetypes, restrained containers, purposeful typography, and accessible code. Use for visual direction, redesign, polish, or implementation when a screen risks generic AI/SaaS cards, dashboard templates, unnecessary tables, weak hierarchy, or decorative chrome; honor a krt-frontend-ux-guardian contract and consume a krt-interface-inquisitor brief when supplied, without requiring either companion.4---56# krt-interface-warden78Use this skill when designing, implementing, or reviewing a frontend interface that must feel specific, functional, and intentionally designed instead of generic, AI-generated, or template-like.910The mission is not to make screens "pretty." Compose a complete product surface around real content and work: a dossier, map, logbook, control table, workshop, archive, or report that helps people inspect, decide, operate, compare, validate, or navigate.1112Use **Editorial Product UI** as the default design stance: typographic hierarchy, open space, rigorous alignment, purposeful density, and very few artificial surfaces. Identity should come from the content and composition before decoration.1314## Collaboration Role1516Warden operates independently and owns the visual system and implementation decisions. It must infer the user task, constraints, and visual direction itself when no companion artifact exists.1718When the companion skills are also active:1920- Guardian supplies the functional UX contract and owns its verification gate.21- Inquisitor supplies evidence-based critique and prioritized change inputs.22- Warden records the rationale for accepted, adapted, or deferred findings.2324Consume a Guardian UX contract or Inquisitor critique brief only when supplied. Otherwise derive the same minimum product constraints from the request and existing interface. Preserve the primary task, completion signal, persistent context, required states, accessibility/responsive constraints, and established mechanics. Visual distinctiveness must not reduce operability.2526For critique-and-fix work with Inquisitor active, implement only after its brief is complete and record which findings were accepted, adapted, or deferred. Without Inquisitor, perform Warden's own pre-design diagnosis and continue. Do not reopen supplied product constraints; surface a conflict when the requested visual change cannot satisfy them.2728## Core Rules2930Do not design the interface as a collection of cards or start by selecting components.3132Build hierarchy in this order:3334**Typography -> space -> alignment -> proportion -> dividers -> subtle background shifts -> borders -> elevation.**3536Use a closed surface only when those earlier tools cannot express a real semantic boundary. If a card is used, it must behave like an independent object with a clear functional reason. Otherwise replace it with sections, bands, rails, annotated margins, rich rows, definition lists, tables when comparison requires them, or functional layers.3738## Required Composition Brief3940Before choosing components or writing JSX/CSS, record a compact composition brief. Do not skip it for autonomous implementation and do not turn it into an approval checkpoint unless the user asks.41421. What supplied Guardian constraints, explicit product requirements, or inferred functional needs are immutable?432. If an Inquisitor brief exists, which findings are accepted, adapted, deferred, or not applicable?443. What is the user's primary task and completion signal?454. What single information element must dominate visually?465. What working-surface metaphor fits the domain?476. Which layout archetype fits the task: editorial page, master-detail, canvas with inspector, staged flow, document with contextual rail, operational list, narrative dashboard, split view, or timeline/feed?487. How do main content, navigation, and contextual information relate?498. Which elements need a closed surface? For each one, state the semantic reason.509. Does the user need to compare columns, sort dense records, or perform bulk actions? If not, do not default to a table.5110. What remains visible, what moves behind disclosure, and what becomes a separate view on narrow screens?5211. What generic AI/SaaS pattern are you avoiding, and what content-led structure replaces it?5312. What makes the composition recognizable without a logo?5455If an answer is unclear, infer the most useful composition from the data and workflow. Do not block unless the missing choice would materially change the product behavior.5657## Surface Metaphors5859- **Dossier**: reviewing one entity, case, user, client, asset, claim, or record.60- **Map**: navigating relationships, dependencies, flows, ownership, or topology.61- **Logbook**: reading events, history, activity, changes, incidents, or audit trails.62- **Control table**: monitoring operations, queues, workloads, states, or live metrics.63- **Workshop**: creating, editing, composing, transforming, or configuring.64- **Archive**: searching, filtering, comparing, and retrieving many records.65- **Report**: explaining findings, recommendations, conclusions, or evidence.6667The layout must follow the selected metaphor.6869## Layout Archetypes7071Select one primary archetype before implementation; combine two only when each owns a distinct region.7273- **Editorial page**: executive summary, report, or overview with one dominant fact and a contextual rail.74- **Master-detail**: entities that must be scanned while one remains open for inspection.75- **Canvas with inspector**: builders, agents, diagrams, automations, and configurators.76- **Staged flow**: onboarding, creation, review, and other consequential multi-step work.77- **Document with contextual rail**: readable evidence, evaluations, agent output, or documentation with annotations.78- **Operational list**: inboxes, tasks, incidents, queues, and activity organized through rows and separators.79- **Narrative dashboard**: a metric story led by one measure, supporting measures, visualization, and interpretation.80- **Split view**: two directly related work zones that must remain visible together.81- **Timeline or feed**: sequence, provenance, activity, and history where order matters more than column comparison.8283Do not default to `sidebar + header + KPI card grid + table`. Treat a persistent sidebar as navigation infrastructure, not the page's design concept.8485## Design Directives8687- Prefer bands, rails, annotated margins, expressive tables, status marks, layers, legends, and connection lines over standalone cards.88- Keep the base background visible across roughly 60-70% of the viewport when the product context permits.89- Allow at most one dominant contained surface per viewport and two visible elevation levels.90- Never nest cards. Do not combine border, contrasting background, and shadow on the same container without an exceptional functional reason.91- Use color as signage: action, state, risk, grouping, navigation, priority. Do not use decorative gradients unless they encode real information.92- Use typography as the primary identity: readable sans for work, optional serif for selected editorial titles or protagonist figures, and mono or semi-mono for metadata, codes, dates, statuses, and technical values.93- Give one metric narrative priority. Place supporting measures in aligned rows or bands instead of identical KPI cards.94- Use tables only for column comparison, sorting/filtering dense records, pattern recognition, or bulk action. Otherwise prefer rich lists, master-detail, timelines, grouped states, definition lists, or charts with detail on demand.95- Make states part of the identity: empty, loading, error, blocked, success, partial data, too much data, review, and conflict states should match the surface metaphor.96- Use depth through functional layers: main panel, inspector, drawer, review overlay, timeline, comparison view. Do not rely on soft shadows for personality.97- On narrow screens, reprioritize the task and move secondary context into disclosure, panels, or separate views. Do not merely stack every desktop container or turn every row into a card.98- Keep accessibility non-negotiable: contrast, keyboard navigation, visible focus, semantic structure, responsive behavior, tables that remain understandable, and signals that do not depend on color alone.99- Reuse established components, tokens, and interaction mechanics unless evidence or a supplied critique identifies them as the source of the problem. Explain any deliberate departure.100101For every material design, redesign, or implementation, read `references/visual-grammar.md` before completing the composition brief. It contains the surface budget, component decisions, typography/tokens, responsive transformations, and final self-critique.102103## Default Replacements104105- Metric card -> protagonist figure with an aligned supporting band, margin counter, or dense summary row.106- Feature card -> editorial block with a rule line, number, concrete example, or workflow step.107- User card -> compact dossier record with metadata and state marks.108- Project card -> rich row with status, owner, date, risk, and next action.109- Dashboard card -> editorial section, narrative data view, or integrated operational region.110- Pricing card -> comparison table or contract-like plan sheet.111- News card -> logbook entry.112- Task card -> operational line with priority, state, and owner.113- Product card -> technical sheet or inventory record.114115## Delivery Requirements116117When generating or materially changing an interface, include:1181191. UX and product constraints honored, whether supplied or inferred.1202. Inquisitor findings accepted, adapted, or deferred with concise reasons, only when a brief exists.1213. Composition brief: task, dominant information, surface metaphor, layout archetype, region relationship, and responsive transformation.1224. Surface and table ledger: each card/table retained and its semantic reason.1235. Visual rules and main components applied.1246. Replacements made to avoid generic cards or other AI/SaaS patterns.1257. Clean, accessible, maintainable frontend code when implementation is requested.1268. Visual and interaction evidence gathered for verification or an optional Guardian final gate.1279. A short note explaining why the UI avoids generic AI aesthetics.128129Keep the explanation brief when the user primarily asked for code; the interface itself should carry the design argument.130131## Final Checklist132133Before delivery, verify:134135- Any supplied Guardian UX contract remains satisfied; otherwise the inferred functional baseline remains intact.136- When an Inquisitor brief exists, every finding is accepted, adapted, deferred with reason, or explicitly not applicable.137- The screen does not read as a generic SaaS template.138- Cards are absent or functionally justified.139- At least one unnecessary container was considered for removal; no retained surface exists merely to group related content.140- The base surface remains visually predominant and elevation is reserved for content that truly floats.141- Any table exists because users compare columns, sort/filter dense data, recognize patterns, or act in bulk.142- One task, action, or information element clearly dominates instead of every module receiving equal weight.143- Bento grids, glassmorphism, decorative gradients, and filler icons are avoided.144- Margins, rails, bands, tables, or layers do real work.145- The chosen surface metaphor and layout archetype are visible in the composition.146- Hierarchy works without decorative clutter.147- The hierarchy still works when borders, icons, and accent color are mentally removed.148- States have a recognizable system language.149- The design would still be identifiable without a logo.150- The narrow-screen layout preserves the primary task through reprioritization, not mechanical stacking.151- Accessibility and responsiveness remain intact.