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 從公開儲存庫中收錄這些內容。

檢舉或申請下架