/pigment:using-list-subsetsfrom Pigment
Guides creation and reasoning about List Subsets for mirror dimensions, cohort modeling, restricted dropdowns, and iterative performance optimization. Includes decision checklist and risk assessment.
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.
A subset is a selected group of items from a parent dimension list, usable as its own dimension in metric structure. Use only when they deliver clear modeling or performance benefits.
A subset behaves as a separate dimension in structures and formulas:
Go through these five gates before recommending a subset:
Only proceed if gate 3 or 4 is clearly met and risks are manageable.
Strongly recommend:
Recommend with caveats (performance only):
Is Forecast Month Boolean). Use only in specific performance/mirror scenarios with explicit risk acknowledgement.Prefer a regular list when membership changes often, users input data at that level, and there is no mirror-dimension or iterative need.
Deselecting an item permanently deletes datapoints in metrics dimensioned by that subset. Affects all scenarios; not reversed on re-add. Especially dangerous when subset membership is formula-driven and users enter manual inputs. Suggest Pattern A (STORE/CALC) or store on parent.
A metric on the subset is not interchangeable with one on the parent without remapping:
[BY: ...].Safe subset usage requires storage/helper metrics, imports, board workflows, and owners who understand membership changes. Do not propose subsets if governance is lacking.
Use when subset membership logic may change and there are manual inputs in metrics dimensioned by the subset.
tool:create_metric to create two metrics on the parent list:
CALC_Subset (Boolean, formula): determines if an item should be in the subset now.STORE_Subset (Boolean, manual/storage): linked to subset membership.CALC_Subset, implement selection logic excluding already-stored members:IF(
'Parent'.'Some Property' = ...,
TRUE,
FALSE
)
[EXCLUDE: 'STORE_Subset']
tool:create_metric_copy_config to create a Metric-to-Metric copy from CALC_Subset to STORE_Subset with Clear Values OFF. Board button creation is UI-only; ask the user to configure it in the Pigment UI.STORE_Subset in the Pigment UI (list settings → Subset membership).New candidates are added automatically; existing members stay unless explicitly removed.
When not needed: if all metrics using the subset are fully formula-driven with no manual inputs, drive membership directly from a formula metric.
Use when you want a curated subset for user selections but data should live on the parent dimension.
Supplier_Subset) from the parent using tool:create_sublist.'Selected Supplier on Parent' =
'Selected Supplier (Subset)'[TOPARENTLIST: 'Supplier_Subset']
Most persistent data lives on the parent list, less likely to have items removed.
Use when you compute at subset level but need results at parent level.
'Metric on Parent' =
'Metric on Subset'[TOPARENTLIST: 'Subset']
For different subsets mapping into the same parent, centralize mappings and use [BY: ...] consistently. Prefer TOPARENTLIST/TOSUBSET for straight remaps; use reusable mapping metrics/properties for multi-subset shapes.
When a metric needs the same dimension on two axes (e.g. MRR by reporting Month and by Cohort Month), create a List Subset:
tool:create_sublist on the Month dimension to create a "Cohort Month" subset'Invoice Date'[BY MIN: 'Invoices'.'Customer'] mapped to the subset via [-> 'Cohort Month']'MRR'[BY SUM: 'Customer'.'Cohort Month']Immediately after tool:create_sublist: populate subset membership. No agent tool is available for linking subset membership programmatically. Ask the user to link subset membership in the Pigment UI. Do NOT skip this step — an empty subset will produce blank values for all formulas that reference it.
Do NOT hand-build a mirror list with tool:add_list_items manually populating items. Use tool:create_sublist instead.
Create subsets using tool:create_sublist only after the parent dimension is stable. Before deleting a parent list, remove its subsets first.
What SKILL.md sets; muted values are Claude Code's defaults
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.Other plugins' skills for the same job
npx claudepluginhub gopigment/ai-plugins --plugin pigment