/pigment:design-business-viewsfrom Pigment
Guides layout of Grid Views (Table/List) in Pigment: pivot placement, page order, column widths, metric names, header colors, and recurring View patterns.
Ships in Pigment. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You MUST read skill:designing-boards-and-views before proceeding to use this skill.skill:designing-boards-and-views will teach you the basics of how to design in Pigment then this skill teaches WHAT to design.
This skill covers how to lay out a Grid View (Table or List display) so a human understands it at first glance: pivots, page order, tree mode, column widths, metric names, number formats, header colors, and the styling of known patterns.
skill:designing-boards-and-views (e.g. metricsLocation: Rows on a new Table View), the pattern wins.Lay out the View right after the block it displays is finished: placement of dimensions and metrics is what makes a block readable.
Collect these once, before the first update_view_* call:
| Need | Tool |
|---|---|
| Dimensions of each metric, and whether it has a formula | tool:search_metrics_and_lists with block_id_exact_match + show_details: true |
Valid pivots, including grouping pages such as Month > Year or Employee > Department | tool:get_available_pivots |
| Size of a dimension (is it over 500 items?) | tool:get_list_items with offset: 500, limit: 1 -- any item returned means more than 500 |
| Typical item-name length of a dimension | tool:get_list_items with limit: 50, then average the name lengths |
Existing Views of the block and their state (isDefaultView, hasCustomFormatting, hasCustomGridLayout) | tool:search_views then tool:get_views |
| Page order and colors already used by sibling Views | tool:get_views with include: ["Pages", "Formatting"] |
| Current number format of each metric (A10) | tool:search_metrics_and_lists with show_details: true |
When working on designing views, always check the result before presenting it to the user. Use tool:get_views and verify each settings and if the complete work make sense in comparison to what you were trying to achieve.
People scroll vertically, so put the dimension with the most items in Rows: Account (P&L), Employee, TBH, Product, Customer. When that dimension is long and has a parent, nest it under the parent (Region > Country) to make it readable: parent first, child second.
Tool: tool:update_view_pivots (Metric / Table Views) or tool:update_list_view_pivots (List Views).
metricsLocation: Columns) -- see B2.Month > Year (copy dimensionId + listPropertyPath from tool:get_available_pivots). Without it the View shows every month of every year side by side.Pages hold two kinds of selectors:
skill:designing-boards-and-views Narrow the Data).Employee > Department), not a separate dimension pivot.Page selectors have a single or multi select option (singleModality on each page in tool:update_view_pivots). Single select is useful for dimensions like Version where summing does not make sense. Only apply single select when it makes business sense (Version, Currency). Never apply it for high cardinality dimensions (> 50 items)
Order Pages from the dimension that changes least and has fewest items to the one that changes most:
Month > Year, Year.For the Pages axis this order replaces the general Time -> Business -> Comparison order in skill:designing-boards-and-views. Keep the same page order across all Views of the same Board or application: read a sibling View's Pages with tool:get_views and copy its order before setting yours.
When Rows carry 3 or more nested pivots (count the metrics as one when metricsLocation: Rows), switch to tree mode: tool:update_view_grid_layout with displayMode: Tree and totalsInFirstRow: true (it is not set automatically). Keep Tabular below 3.
Size the first column (row headers) so item names are readable. Default to 175 px (about 20 characters): tool:update_view_grid_layout → layout.columnWidths.rowHeaderColumnWidths, one entry per row pivot (pivotFieldId from tool:get_views Rows), pixels: 175. In Tree mode only the first entry is used.
Do not try to fit the longest item: some names are far longer than the rest. Go wider than 175 px only when most names exceed 20 characters, and never past about a fifth of the View's width.
dataColumnsWidth.perMetricColumnWidthOverrides, in characters, one entry per value field (valueFieldId from tool:get_views Values). There is no auto-fit, so estimate:
1,250,000 € → 12).listColumnWidths instead.The tools cannot set the header row height: rowHeight only sets data rows. When a metric name is longer than its column, widen that column (A7) if the name is 20 characters or fewer. Otherwise leave it, and tell the user in your final message which headers are cut off so they can enlarge the header row in the View's Layout panel.
Metrics are usually created with a naming convention that is not user friendly (INP_Unit_Cost, CALC_Total_Cost). Set a friendly name for every metric in the View: at least drop the prefix and suffix (INP_, CALC_, RUNX_, …) and replace underscores with spaces. Keep it short enough to fit the column header, 20 characters or fewer when possible: INP_Useful_Life_Months → Useful Life (Months).
Tool: tool:update_view_values, friendlyName on each value. It renames the column in this View only; the metric is unchanged. The call replaces the whole value list, so echo every existing value id with its sourceId, type and displayed, and set names and order (B2 step 3) in the same call.
By default, number metrics show a thousand separator and no decimals. A metric that is explicitly a percentage (see the name rules in skill:formatting-and-highlighting) is shown as a percentage instead.
Views have no number-formatting tool: the format lives on the metric and applies to every View showing it. So:
Read each Integer / Decimal metric's current defaultFormat with tool:search_metrics_and_lists (block_id_exact_match + show_details: true).
Leave alone any metric that already has a deliberate format (prefix, suffix, multiplier, or non-zero decimals the modeler chose).
For the others, call tool:bulk_update_metrics with default_format.numberFormatOptions:
numFractionDigits: 0, noThousandSeparator: false.multiplier: 100, multiplierSuffix: "%", numFractionDigits as skill:formatting-and-highlighting says.Resend the metric's existing numberFormatOptions fields (prefix, suffix, negativeValue, …) alongside the ones you change, so they are kept.
Do not impose a header color: keep Pigment's default header style. Users have their own visual conventions, and a color the agent picks on its own is noise.
Color headers only when the user asks for it, and keep header colors a View already has: tool:update_view_formatting replaces all overrides on every call, so read Formatting with tool:get_views first and resend the existing header overrides together with any pattern overrides (B1 step 4, B2 step 5, B3 step 5).
When the user asks for header colors: tool:update_view_formatting, one override per header, each with area: Header and style.backgroundColor:
{ pivotFieldId: <row pivot id>, values: [{ kind: "AllModalities" }] }.metricsLocation: Columns, add the metric header: { pivotFieldId: null, values: [{ kind: "AllModalities" }] }.area: RowAxisTitle, { pivotFieldId: <row pivot id>, values: [] }. They only show in Tabular mode with showRowHeaders: true (tool:update_view_grid_layout).Pigment often displays a huge number of cells, many of them empty, which makes a View hard to read. Users rely heavily on the "Hide empty rows and columns" option of the UI: set it for them.
Tool: tool:update_view_filters with filters.sparseSettings: { showEmptyRows: false, showEmptyColumns: false }. tool:create_view does not accept it, so set it after creation. rules is required and replaces every existing rule: resend the View's current rules (read Filters with tool:get_views), or [] if it has none.
Never hide empty cells on the axis that carries the metrics. An empty metric must stay visible, so the user sees it exists:
metricsLocation: Rows → showEmptyRows: true, showEmptyColumns: false.metricsLocation: Columns → showEmptyRows: false, showEmptyColumns: true.metricsLocation: Pages → both false.When: you finish a substantial piece of modeling (several connected metrics) and present it to the end user, usually a modeler, so they can review your work and validate the result. This is the minimum layout to reach before handing the work over.
Recognize it: good practice is to gather the metrics you built into a Table (tool:create_table) so a human can read them together. Whenever you do, apply this pattern to the Table's View. The metrics are mostly formulas linked to each other, not user inputs (for inputs, see B2).
Steps
tool:update_view_pivots, pivots copied from tool:get_available_pivots):
metricsLocation), almost never on Pages. Metrics should not be nested with a high cardinality dimension (>5).tool:update_view_values, echo every existing value id, all displayed: true): follow the calculation's dependency order, so each metric comes after every metric it references.
tool:search_metrics_and_lists (show_details: true), or walk the chain with tool:get_data_dependency_tree (direction: Sources) from the final metric._10 background on its metrics' cells: tool:update_view_formatting, one override per metric, { pivotFieldId: null, values: [{ kind: "Modality", id: <valueFieldId> }] }, area: Both. Rotate Blue_10, Teal_10, Orange_10, Purple_10. Do not use area: Header here: a header style aimed at a metric is saved but does not render.tool:update_view_grid_layout): A6 and A7.
rowHeaderColumnWidths entry with pivotFieldId: null) to fit most metric names.perMetricColumnWidthOverrides per A7.tool:search_views on the Table, then tool:get_views):
isDefaultView: true, hasCustomFormatting: false, hasCustomGridLayout: false) → apply steps 1-6 to the default View itself. If the edit auto-creates a Draft, follow Edit a Live View Safely in skill:designing-boards-and-views.tool:create_view with a name that says what the View shows (e.g. Depreciation - review), never a placeholder such as View 1, and apply steps 1-6 to it.Check: tool:get_views with include: ["Rows", "Columns", "Pages", "Values", "Filters", "GridLayout", "Formatting"]:
friendlyName).When: the View is where users enter several pieces of information about one item: an employee's department, start date, and salary, rather than a single number spread across dimensions. The block is usually a Table of input metrics sharing one main dimension: Employee, TBH, Account, Request, Project, Contract, …
Recognize it: many metrics in the Table have no formula (tool:search_metrics_and_lists with show_details: true) and share one high-cardinality dimension.
Steps
tool:update_view_pivots, pivots copied from tool:get_available_pivots):
metricsLocation: Columns.Month > Year if they carry Month; then the business dimensions the metrics carry, or the main dimension's grouping pages (Employee > Department, Employee > Country) when those properties exist.tool:update_view_values): a friendly name on every metric, as in A9.tool:update_view_values, echo every existing value id, all displayed: true): order the columns in the order a user fills them in. Descriptive and categorical fields first (Name, Department, Role), then dates (Start date, End date), then amounts and quantities, then formula metrics last. Steps 2 and 3 use the same tool, which replaces the whole value list: send names and order in one call.tool:update_view_grid_layout): row header at 175 px (A6), and each metric sized to its content (A7), measured against the friendly name from step 2. A Dimension-typed metric is sized to the average item-name length of the dimension it points to.tool:update_view_formatting; it replaces all overrides, so read Formatting with tool:get_views first and resend the ones to keep):
Grey_10 on the cells. Target with one path element { pivotFieldId: null, values: [{ kind: "Modality", id: <valueFieldId> }] }, area: Data.{ pivotFieldId: <row pivot id>, values: [{ kind: "Total" }] }.tool:search_views on the Table, then tool:get_views):
isDefaultView: true, hasCustomFormatting: false, hasCustomGridLayout: false) → apply steps 1-5 to the default View itself. If the edit auto-creates a Draft, follow Edit a Live View Safely in skill:designing-boards-and-views.tool:create_view named <Table name> input and apply steps 1-5 to it.Tell the user in your final message to turn on Highlight input cells in the View's settings. The tools cannot set it.
Check: tool:get_views with include: ["Pages", "Columns", "Values", "GridLayout"]:
friendlyName.When: you build a new Transaction List, or the user asks you to format one. A Transaction List holds the loaded transactional data (GL entries, invoices, orders, …): one item per row, its properties in columns. Users read it to check what was loaded and to find specific lines.
Recognize it: the block is a List, usually built with skill:creating-transaction-lists, with many rows and properties that are mostly loaded, not calculated. Its View is a List View: there are no metrics, the properties are the value fields. Use tool:update_list_view_pivots for pivots, never tool:update_view_pivots.
Steps
tool:update_list_view_pivots; read the current layout with tool:get_views first, as the call replaces it wholesale):
rowGroupings: []: a flat List, one row per transaction. The server adds the main List row.pages, in A4 order, each identified by its listPropertyPath (friendly names):
Load Month, Period) whenever the List has one. Always put it in Pages.propertyColumns: every property to show, in the order from step 2.propertyColumns order from step 1, sent in the same call):
tool:search_metrics_and_lists (block_id_exact_match + show_details: true).tool:update_view_grid_layout):
rowHeaderColumnWidths with the main List row's id from tool:get_views Rows.listColumnWidths in characters, one entry per column (valueFieldId from visiblePropertyColumns in the tool:update_list_view_pivots response or tool:get_views Columns). The call replaces every column width, so send them all.tool:update_view_aggregations: on the main List row pivot, one Sum configuration for every number type property. Do not total rates, prices, percentages or numeric IDs; a total of those means nothing. Send hiddenDimensionsAggregations: [].tool:update_view_grid_layout: totalsInFirstRow: true. It can go in the same call as step 3.tool:update_view_formatting; it replaces all overrides, so read Formatting with tool:get_views first and resend the ones to keep):
Grey_10 on header and cells. Target with one path element { pivotFieldId: null, values: [{ kind: "Modality", id: <valueFieldId> }] }, area: Both.{ pivotFieldId: <main List row id>, values: [{ kind: "Total" }] }.tool:search_views on the List, then tool:get_views):
isDefaultView: true, hasCustomFormatting: false, hasCustomGridLayout: false) → apply steps 1-5 to the default View itself. If the edit auto-creates a Draft, follow Edit a Live View Safely in skill:designing-boards-and-views.tool:create_view named <List name> - transactions and apply steps 1-5 to it.Skip A9 (List properties have no View-level friendly name) and A12 (a List has no empty cells to hide).
Check: tool:get_views with include: ["Rows", "Columns", "Pages", "GridLayout", "Formatting"]:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pigment, grid-layout, view-design, table-layout, list-layout
39 skills in this plugin
/aggregating-view-dataExecution skill. Use when a View needs totals or subtotals, when a value must roll up with something other than Sum (average, min, max, count, last), when a snapshot metric adds up across time instead of holding, or when a ratio, percentage, margin, growth or variance metric is added to a Table View or shows a wrong total (e.g. a row for margin as a percent of revenue). Covers metric default aggregators, pivot versus hidden-dimension aggregation, the aggregator reference per value type, and Advanced Aggregators on Table Views./architecting-multi-application-solutionsPlanning skill. Use when deciding how to split work across Pigment applications, designing Hub-and-spoke data flows, or planning Test & Deploy across environments./auditing-a-pigment-applicationExecution skill. Use when auditing, reviewing, or health-checking a Pigment application. Covers the structured audit checklist, severity classification, and output format. Also triggers on requests to clean up, find unused blocks, assess model quality, or find what is wrong with an application./building-a-full-applicationPlanning skill. Use when building a complete Pigment application from scratch or when the request spans multiple modeling phases. This skill, together with any other planning skill the request calls for, is sufficient to produce the full architecture spec; do not load execution skills until the spec is approved and you begin building blocks./building-pigment-framesUse this skill whenever you're building, updating, or troubleshooting a Pigment Frame — a full-page, custom-coded visualisation (JavaScript, canvas, or inline SVG) that reads Pigment data through the PigmentSDK. Reach for it any time a native View (Grid, Chart, KPI) or Board can't produce what's being asked for - a bespoke chart, a custom canvas drawing, an interactive widget, or a standalone page in the left navigation that behaves like a small app. Also use it if a Frame you've already built shows up blank or broken and needs debugging./building-versions-and-planning-cyclesExecution skill. Use when implementing versions, planning cycles, or actuals vs forecast separation, and whenever realized data is extended into a plan or budget — loading actuals then planning the remaining periods, forecasting forward from actuals, Actual/Budget/Plan layering, plan vs actual variance — even when the request never uses the word version. Covers Version Dimensions, Switchover patterns, Actual/Forecast layering, Native Scenarios, and Snapshots.npx claudepluginhub gopigment/ai-plugins --plugin pigmentOther plugins' skills for the same job