@datama/studio-skill-instructions 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/INSTRUCTIONS.md
CHANGED
|
@@ -57,7 +57,7 @@ Column names are exact tokens from the data: never translate, pluralize, rename
|
|
|
57
57
|
| `python3 scripts/datama.py build --data <file> --config '<json>' [--theme '<json>'] [--license '<token>'] --out page.html` | Builds and checks the page. `--from page.html` edits an existing page |
|
|
58
58
|
| `python3 scripts/datama.py validate page.html` | Checks a page without rebuilding it |
|
|
59
59
|
| `python3 scripts/datama.py settings <topic> [word]` | Lists the settings Studio exposes, then the value of one (below) |
|
|
60
|
-
| `python3 scripts/datama.py source '<regex>' [--context 5]` | Searches the readable Studio build. Last resort,
|
|
60
|
+
| `python3 scripts/datama.py source '<regex>' [--context 5]` | Searches the readable Studio build. Last resort, after `settings` (see "Changing a setting") |
|
|
61
61
|
|
|
62
62
|
## Changing a setting
|
|
63
63
|
|
|
@@ -70,7 +70,7 @@ Every setting, its allowed values and its default are defined by Studio, not by
|
|
|
70
70
|
| Analysis of a solution | `compare` · `explore` · `detect` · `pivot` | `contract/solutions-settings.json` |
|
|
71
71
|
| Colors, palette, style preset, page chrome | `theme` | `contract/ui-settings.json` |
|
|
72
72
|
| Story canvas (padding, card, shadow) | `appearance` | `contract/ui-settings.json` |
|
|
73
|
-
|
|
|
73
|
+
| Chart title and subtitle, comment and table panes, axis, legend, margins, labels, bars, lines, waterfall, tree cards, table, animations | `plotter` | `contract/ui-settings.json` |
|
|
74
74
|
|
|
75
75
|
2. **Read the value to write.** Run the same command with that name. It prints `default`, `values`, `min` and `max` from `contract/solution/<solution>-settings.json` or `contract/ui/<topic>-settings.json`. Write one of those values. `settings theme <palette>` prints a palette's colors.
|
|
76
76
|
|
|
@@ -86,7 +86,7 @@ Every setting, its allowed values and its default are defined by Studio, not by
|
|
|
86
86
|
|
|
87
87
|
On Explore, any `plotter` replaces Explore's default look: add one only for a precise request. For a color-only request, set `colors.palette` and leave `stylePreset` unset.
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
When `settings` prints no matching name, check every topic that could hold it first (a chart title or the comment pane is `plotter`, a color is `theme`). Still nothing: `datama.py source` is the last resort. Write a key found there only when the request needs it, tell the user it is outside the published settings, and check the build output. Not in the source either: say "configurable in the Datama app, not exposed to this skill", never "Datama cannot do it". When a description does not make the effect clear, `datama.py source` explains it. `settings modules` and `settings pins` list the render modules and the story pins.
|
|
90
90
|
|
|
91
91
|
## Editing a page
|
|
92
92
|
|
package/package.json
CHANGED
|
@@ -17,6 +17,7 @@ Finds outliers in a time series: the measure over time with its expected range,
|
|
|
17
17
|
|
|
18
18
|
- Detection runs on the main KPI and on every step: get the equation right ([market-equation.md](../market-equation.md)).
|
|
19
19
|
- One grain per page: never mix days and months in the same column.
|
|
20
|
+
- `context` alone (no `start` or `end`) names the date column the series follows: set it only when the data holds several, otherwise omit it. A comparison is optional: `context`, `start` and `end` on another dimension (Scenario: Actual vs Budget) runs the detection on the End values and the % change (`comparisonMeasures`).
|
|
20
21
|
- The method, the threshold and the window are settings: match their descriptions to the question.
|
|
21
22
|
|
|
22
23
|
## Settings
|