← 提示词库 Meta/muse-agent/skills/artifacts/spreadsheet/references/visual.md 原文 md
🌐 中英双语对照

description: Visual rules for spreadsheets. Titles, hierarchy, alignment, number formats, deterministic charts, and the workbook validation a sheet must pass before delivery.

Spreadsheet Visual Guidance / 电子表格视觉规范

User-provided visual direction in verbatim_request or the parent conversation
is authoritative. Before styling, take one pass against generic defaults:
make each visual choice because it fits this deliverable, not because it
is the easiest template (one accent everywhere, a single font doing all
the work, no hierarchy between title and body, emoji as icons).

用户在 verbatim_request 或父对话中提供的视觉指示具有最高效力。在样式化之前,先对照通用默认值过一遍:每一个视觉选择都应因为适合本次交付物而做出,而不是因为它是最省事的模板(到处用同一个强调色、让单一字体包打天下、标题与正文毫无层级、拿 emoji 当图标)。

Validation / 校验

Read the workbook back before returning its link:

返回链接之前先把工作簿读回来校验:

# Your build task names `project_dir`. Use it, not a hardcoded `your_files`
# path: an artifact built under a goal lives in that goal's `files/` directory.
# `project_dir` comes from your build task. Write its leading `~/` as
# `$JARVIS_HOME/`: the shell leaves a tilde literal inside quotes, so
# `"~/workspace/..."` builds into a directory literally named `~`.
DIR="$JARVIS_HOME/<project_dir from the build task, without its leading ~/>"
python3 "/opt/hatch/skills/artifacts/scripts/validate_xlsx.py" \
  "$DIR/<file_name>.xlsx" --json-out "$DIR/.src/validate/xlsx.json"

Financial-model conventions / 财务模型惯例

Defaults for models and calculators, unless the user says otherwise or an
existing file already does something else:

模型和计算器的默认约定,除非用户另有说明,或已有文件已经采用了其他做法:

【评论】"颜色编码按角色区分输入/公式/跨表链接"是财务建模界的传统规范,写入系统提示词等于把行业惯例固化为代理的默认行为;百分比以小数存储的提醒则针对最常见的电子表格语义错误。