Skip to content

Commit 2174b71

Browse files
committed
Add visual development and color rules to CODING_AGENTS for visual HTML and JSON workflows
- define visual-specific development rules for visual/ as the current source of truth for HTML and JSON fixtures - require no comments in visual templates unless explicitly requested - require visual rule/constraint headers at the top of visual HTML files with CODING_AGENTS reference - document theme behavior expectation for dark/light mode handling - require sysDescr/system_description to be shown at the top of visuals when present in JSON - require per-channel graphs plus a combined frequency-aligned graph for multi-channel responses - add explicit color rules for max/avg/min, DS/US, warning, OK, and NOK states - 2026-02-22 18:19:23
1 parent 852d912 commit 2174b71

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

CODING_AGENTS.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,25 @@
2727
- Avoid redundant wording and avoid repeating the exact prior commit message suggestion unless the diff is unchanged and the user explicitly asks to reuse it.
2828
- If the user asks for "in a text box", return plain text only (no markdown fence).
2929
- If the user asks for "in a markdown text box", return the commit message inside a fenced code block with `text`.
30+
31+
## Visual Development Rules (Required)
32+
33+
- `visual/` is the source of truth for visual HTML (`*.html`) and sample JSON (`*.json`) in this repo version.
34+
- Do not manually edit generated visual docs (`docs/visual/`, `docs/visual-previews/`); regenerate from `visual/`.
35+
- No comments in visual code/templates unless explicitly requested.
36+
- At the top of each visual HTML file, maintain the visual rules/constraints and indicate that `CODING_AGENTS.md` defines the canonical rules so they are not forgotten.
37+
- Visuals should support dark/light mode behavior and check system settings when rendering theme-sensitive output.
38+
- If `sysDescr` / `system_description` is present in the JSON response, show it prominently at the top of the visual.
39+
- JSON responses may contain multiple upstream/downstream channels; each channel must render as its own graph for the selected graph type.
40+
- Multi-channel views should also include a combined graph at the bottom with all channels lined up by frequency in a single graph.
41+
42+
## Visual Color Rules (Required)
43+
44+
- High / max = red
45+
- Mid / avg = blue
46+
- Low / min = green
47+
- Downstream (`DS`) lines = blue
48+
- Upstream (`US`) lines = green
49+
- Warning = yellow
50+
- OK = green
51+
- NOK = red

0 commit comments

Comments
 (0)