/pigment:creating-dimensions-and-hierarchiesfrom Pigment
Guides creation of dimension lists and hierarchies in Pigment, including items, properties, and calendar reuse. Follows a workflow for analyzing existing dimensions before building new ones.
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.
Read when SKILL.md points to them.
Follow this workflow when you are asked (or are thinking about) creating a dimension list. If your task is a complex one, beyond creating a simple dimension list, you should read examples-of-dimensions-and-hierarchies.md which gives you examples of specific dimension/hierarchies creation: Employee dimension, multi-level P&L, Organisational hierarchy, self referencing dimension, input at all level hierarchies.
For time dimensions: Pigment provides calendar dimensions: Day, Week, Month, Quarter, Year, with relationships between them.
Always reuse these. Do not create custom Month or Year lists. In the case of a Fiscal Year different from the default calendar, this is managed by a new FY property on the existing Calendar dimensions.
Then follow the workflow below
Before creating a dimension or making a plan for creating one, search for the existing ones with tool:search_metrics_and_lists (kind: ["Dimension"]).
Do not create a dimension if one with a similar name exists. If there is doubt, read the dimension items and properties with tool:get_list_items to be sure. If there is still a doubt, ask the user.
A dimension list is an analysis axis also known as metadata, master data. It has items (rows) and properties (columns).
When a user presents you with data or request a creation, you must decide if you will create a dimension and properties. When in doubt, err on the side of creating a dimension versus using it as text.
Disambiguation: Transaction lists are another type of block, used to store transactional data, this skill does not cover them (although the tool to create dimension and transaction list is the same).
A hierarchy links dimensions through a Dimension-type property on the child dimension.
Thus a dimension can be in multiple hierarchies although it usually has one Main hierarchy (Chart of Account, Organisation, SKU > Product). Some examples:
The leaf dimension of a hierarchy MUST have a propery dimension for every level of the hierarchy, allowing for easy page filtering.
Every dimension list requires at least one unique property for item identification.
Default: Name is unique. Alternatives:
Code, Employee ID) using tool:update_list_property.tool:create_list_property with is_auto_id: true, target_type.type=Integer, and is_unique=true.Before import:
Name until another property is marked unique — use tool:update_list_property for both operations, sequentiallyChanging a property to unique deletes that property's data, resulting in data loss.
Converting a property to auto-generated ID is destructive.
Calling tool:update_list_property with is_auto_id: true, new_type.type=Integer, and unique=true on an existing property replaces all existing values with sequential IDs (1, 2, 3…). The property can no longer be edited manually or mapped from imports.
A subset is a selected group of items from a parent dimension list, usable as its own dimension in metric structure. Only dimension lists can have subsets.
Valid use cases:
Do NOT use subsets when:
If you need to create/update a subset here, see also skill:using-list-subsets for safe paterns and data risks (changing subsets is data destructive)
Pigment handles uneven-depth hierarchies naturally:
Ragged hierarchies work without issue for reporting, but if inputs and access right will be driven off ragged levels, you will need to balance them.
Most dimensions will have several properties. Dimension properties should not be used to store data, only meta-data, describing the dimension not a value of the item
Every list property has exactly one data type:
It's important to not create a property as text when it should be a dimension. Properties with low cardinality data are typically of type Dimensions as they can then be used to filter, pivot, formula logic etc.
Always create the dimension in a folder. Load skill:naming-and-organizing-applications and follow it for the folder and the name.
CRUD order:
Division, Region). Use tool:create_list.Category, then Product). Use tool:create_list then tool:create_list_property for Dimension-type properties.tool:create_list_property.tool:create_sublist.Create the dimension using tool:create_list, which accepts its properties in the same call.
Use tool:create_list_property to add a property to a dimension that already exists, if you didn't get it right first time
Add list items in the dimension(s) (and each level if there are several) with tool:add_list_items. For a large CSV, ask the user to import it in the Pigment UI.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gopigment/ai-plugins --plugin pigment39 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./Other plugins' skills for the same job