/pigment:using-mapped-dimensionsfrom Pigment
Models time-dependent hierarchies and dynamic parent-child relationships that change across periods, such as employee-to-team reorgs or seasonal product promotions.
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.
Mapped dimensions (time-dependent hierarchies, slowly changing dimensions) model parent-child relationships that change across periods. Past periods keep the old parent; future ones reflect the new assignment.
| Criterion | Dimension-Type Property (static) | Mapped Dimension (dynamic) |
|---|---|---|
| Relationship changes? | Rarely or never | Changes over time or by version |
| History preservation | Updating the parent moves all history with the child | Each period retains its own parent assignment |
| Where it works | Metric formulas, aggregation, views | Views only (Mapped Dimensions) but mapping is used in formulas; core metrics stay lean |
| Examples | Product to Category, Store to Region | Employee to Team (monthly), Cost Center to Department (re-org), Product to Promotion (seasonal) |
Rule of thumb: if the parent-child mapping is the same for all periods, use a dimension-type property. If it varies by Month, Quarter, or Version, use a mapped dimension.
Create a metric with:
Example: Employee Team Mapping structured on Employee x Month, data type Dimension referencing Team. Each cell holds the Team assignment for that employee in that month.
Use tool:create_metric to create the mapping metric.
IF(Month >= 'Employee'.'Transfer Date', 'Employee'.'New Team', 'Employee'.'Original Team')
tool:set_metric_input.Use tool:create_view then tool:update_view_pivots to add the mapped dimension. Do not add the parent dimension to every underlying metric's structure.
When users view a metric like Salary (structured on Employee x Month), the mapped dimension through Employee Team Mapping aggregates salaries by Team with each month reflecting the correct assignment.
child items x periods. Keep manageable.[Child] [Parent] Mapping (e.g. Employee Team Mapping).| Approach | Pros | Cons |
|---|---|---|
| Dimension-type property | Works everywhere (formulas, Views); simple | Overwrites history when parent changes |
| Mapped dimension | Preserves history; no metric restructuring | View-only; requires a mapping metric (which can be used in formulas) |
| Separate dimension per period | Full flexibility | Dimension explosion; hard to maintain |
| Boolean flag property | Simple filtering | No aggregation to parent |
Mapped dimensions are the standard solution for time-dependent aggregation without restructuring metrics or losing historical assignments.
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./npx claudepluginhub gopigment/ai-plugins --plugin pigmentOther plugins' skills for the same job