Domain Expert Configuration

dembrandt/dembrandt-skills/skills/domain-expert-configuration

作者 dembrandt20de5f225ea7cffe2a721ac18c1077a92769a013无许可证68 个星标收录于 2026年10月9日更新于 2026年10月9日仓库今天更新

Settings for experts who are not developers — domain language, sane defaults, grouping by professional concept. Use when designing settings panels, solver configuration or constraint editors.

AI 生成的概览

为面向非开发者领域专家的配置界面提供设计指导,涵盖设置面板、求解器配置与约束编辑器。

功能
该技能为构建设置面板、求解器配置界面和约束编辑器提供设计指导,目标用户是领域专家而非开发者。内容涵盖使用领域语言撰写标签与错误提示、按专业概念而非参数类型分组、显示合理默认值、按语义选择输入控件、渐进式披露、区分已保存配置与单次会话覆盖,以及就地校验。它还建议将模型推断出的配置值以带标记的可编辑表单控件呈现。产出的是设计规则与检查清单,而非代码。
适用场景
当为专业工具设计设置面板、参数编辑器或约束编辑器,且使用者熟悉业务领域但不了解系统内部实现时使用。适用于优化、规划、仿真或批处理工具,需要把技术参数转译成领域术语的场景。
运行要求
无需脚本或工具,仅为纯说明文档。适用于组件或页面文件中的界面工作,除智能体外不需要其他依赖。

Domain Expert Configuration

A domain expert configuration UI exposes the parameters of a complex system — an optimisation algorithm, a planning engine, a simulation — to users who understand the problem domain deeply but have no knowledge of the system's internals.

The challenge: the system's parameters are defined in technical terms (weights, thresholds, flags, tolerances). The user thinks in domain terms (how long to wait, when to retry, how to group results). The UI must translate between these two vocabularies — always favouring the user's language.


The Core Principle: Domain Language Over Technical Language

Every parameter label, tooltip, and error message should describe what the parameter means in the user's world, not what it does inside the system.

Technical labelDomain label
max_concurrent_jobsMaximum tasks running at once
enable_auto_retryRetry failed tasks automatically
batch_allocation_thresholdStart a new batch after (% filled)
request_timeout_msMaximum wait per request (seconds)
enable_fuzzy_matchingAllow approximate matches

If you cannot write a domain label for a parameter, question whether the user should be exposed to it at all. Parameters that cannot be explained in domain terms belong in a developer configuration file, not in the user-facing UI.


Grouping by Domain Concept

Parameters should be grouped by the aspect of the real-world problem they control — not by their technical category (booleans together, numbers together) and not alphabetically.

A processing tool might group as:

Processing limits  └─ Maximum tasks at once  └─ Maximum wait per request  └─ Memory ceiling
Matching rules  └─ Allow approximate matches  └─ Case sensitivity  └─ Required fields
Batching behaviour  └─ Batch fill threshold  └─ Maximum batches

Each group should have a short heading that describes what aspect of the task it controls, not what kind of parameter it is.


Sensible Defaults

Every parameter must have a default that works correctly for the majority of cases. The user should be able to start with all defaults and get a reasonable result.

Show the default value: When a field is at its default, indicate this. When a user has changed a value away from the default, make it easy to reset.

Maximum wait per request  [___30___ s]  ← custom value                          [↺ Reset to default (15 s)]
Batch fill threshold  [_70_ %]  (default)  ← at default

Why this matters: Domain experts often do not know what value to enter for an unfamiliar parameter. If the field is blank with no hint, they will either skip it (leaving the system in an unknown state) or enter an arbitrary value. A visible default communicates "this is what the system assumes unless you tell it otherwise."


Input Types Matched to Domain Semantics

Choose the input type based on what the parameter means, not just its data type.

Parameter natureInput typeExample
Binary rule (on/off)Toggle switch"Retry automatically: [toggle]"
Constrained number with clear unitNumber input with unit label"Max wait: [___] s"
Choice between named optionsSelect or radio group"Output format: [JSON ▾]"
Percentage or ratioSlider with numeric input"Batch fill threshold: [━●━━] 70%"
Free text identifierText input"Job reference: [___]"

Units are mandatory for all numerical inputs. Never show a bare number without its unit. Place the unit label adjacent to the input (suffix preferred: [___] cm, not cm [___]).


Progressive Disclosure

Not all parameters are equally important. Expose them in layers:

Primary settings (always visible): The parameters that control the most commonly adjusted behaviour. A domain expert should be able to accomplish 80% of their tasks by adjusting these alone.

Advanced settings (collapsed by default): Parameters for edge cases, fine-tuning, or less common scenarios. Behind a disclosure control ("Advanced options ▾"). Opened by users who need them, invisible to those who don't.

Developer / system parameters: Not shown in the user-facing UI at all. In a config file or environment variable.

Do not put everything in the advanced section as a catch-all. If a parameter is needed frequently, it belongs in the primary settings.


Saved vs. Session Configuration

Many operational tools distinguish between:

  • Saved configuration: The user's persisted preferences (their standard processing setup, their standard rules). Loaded automatically.
  • Session overrides: One-off adjustments for a specific run that should not change the saved defaults.

Make this distinction explicit in the UI. If the user adjusts a parameter for one run, they should not have to worry about corrupting their saved defaults.

┌─ Configuration ────────────────────────────┐│  Maximum wait    [30 s]   ← session only    ││  Retry on fail   [✓]      ← saved           ││                                             ││  [Save as default]   [Reset to saved]       │└─────────────────────────────────────────────┘

Validation and Constraint Feedback

When a value is invalid or conflicts with another setting, tell the user in domain terms.

Technical errorDomain error
value out of range [0, 9999]"Wait time must be between 0 and 999 seconds"
constraint conflict: retry=true, fail_fast=true"Retry automatically and Stop on first failure cannot both be enabled"
threshold must be < 1.0"Batch fill threshold must be less than 100%"

Show validation inline, adjacent to the affected field. Do not wait for the user to submit before reporting conflicts.

For settings that interact with each other, show the relationship: "When automatic retry is off, the maximum-attempts setting has no effect." This prevents the expert from wasting time tuning a parameter that isn't active.


Proposals From a Model

When a model turns free text into a configuration, show its reading as the same form controls, never as prose.

  • Mark every value the model inferred rather than read. The mark clears on the field the user corrects.
  • Editing any control re-runs the proposal, so a correction shows its consequence.
  • Code selects, orders and counts. The model only phrases. A list the model assembled drops, merges or miscounts entries on some runs.
  • Say this split in the help text.

Prose forces a re-prompt to fix one number. A marked field makes it one gesture.


Review Checklist

  • Does every parameter label use domain language, not technical language?
  • Are parameters grouped by the domain concept they control, not by type or alphabetically?
  • Does every parameter have a visible default value?
  • Is there a "reset to default" action for individual parameters?
  • Do all numerical inputs show their unit adjacent to the field?
  • Are input types matched to domain semantics (toggle for binary, select for named options)?
  • Are advanced parameters hidden by default behind a disclosure control?
  • Is the distinction between saved configuration and session overrides explicit?
  • Is validation shown inline in domain language?
  • Are parameter interactions (conflicts, dependencies) explained in the UI?
  • Are model-inferred values shown as marked, editable fields, with selection and counts done in code?

来源与署名

来源:dembrandt/dembrandt-skills位于skills/domain-expert-configuration提交20de5f2

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架