/pigment:understanding-pigment-modelingfrom Pigment
Provides a foundational tour of the Pigment platform, explaining its multi-dimensional modeling engine, core objects (dimensions, metrics, tables), and data types. Essential before building or modifying any Pigment application.
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.
Pigment is a multi dimensional modeling engine used by customers to analyze and plan their business. The flexibility of the platform allows us to cover all business use cases: financial planning, workforce planning, financial consolidation, supply chain, sales performance & any number of ad hoc operational use cases.
The Pigment engine is called Graphite. It’s a multi-dimensional sparse real time calculation engine with a smart dependency orchestrator.
When a user inputs a value or takes an action, the engine re-calculates the relevant blocks to display the results to the end users as fast as possible in the collaborative end user experience.
Other Objects:
Besides the core modeling, formulas and UX features that you need to learn from the detailed skills available to you, it’s important to have a broad vision of the platform and its major features:
Modeling is the core of Pigment and the most complex part. It touches and uses all of the blocks, objects, features & concepts of the platform and controls them via the Formula Language. This is but an overview for you to understand the concepts, there are skills for complete understanding of every element — start with skill:writing-pigment-formulas.
Formulas are in Metrics and in properties of dimensions and transaction list (usually simpler there).
The components:
The Pigment engine will execute every part of the formula following algebraic rules, including the modifiers in the formula.
It will automatically align the dimensionality of every part of the formula. It can’t operate two parts together if they don’t have the same dimensions
It will do this on every item of the cartesian product of all the dimensions.
Example: Loaded Salary = Base Salary * (1+Tax Rate)
With Base salary by Employee x Month and Tax Rate by Country and Year and Loaded Salary by Employee x Month
If you write this formula, Pigment will ADD the country dimension to Base Salary and the Employee Dimension to (1+Tax Rate) resulting in numbers by Employee x Country x Month.
However the target metric Loaded Salary is structured by Employee x Month so Pigment will have to remove the Country dimension, summing the numbers, making it wrong.
Do not rely on automated dimension adjustment, the correct formula is:
'Base Salary' * (1+'Tax Rate'[BY CONSTANT: Employee.Country, Month.Year])
The concept of dimension and how it structures metric is the key to mastering Pigment, Pigment being by definition a multi-dimensional modeling platform.
Deciding what is a dimension is a foundational decision. When you are given data/input, you must decide if a data set is a dimension. In that sense, Pigment is similar to other OLAP tools with the cardinal rule: if you will need to input or make a formula dependent on it, thus being in the structure of any metric, it needs to be a dimension.
Only dimensions can be in the structure of the metrics and thus have inputs/calculations/results.
The dimensional structure of a metric is a capital decision. It will decide how formulas run, how users input, how it can be displayed. Strive to keep the number of dimensions in the structure to the strict minimum required to allow for input & formula.
Several features will help you in that:
These two concepts allow us to maintain a very LEAN dimensional structure while providing ALL the dimensions in the view a user might want, without impacting data volume & calculation load.
This section is summarizing the major modeling principles that are known best practices to follow to build functionalities on Pigment.
Dimensions are an analytical axis serving for metric structures.
Do not store data in dimension properties, only invariant properties of that dimension.
Do not plan for end user inputs (in properties, creation of item is expected) on Dimensions, you will encounter multiple features limitation if you do as it's not made for that
Transaction List: the only place where external data is loaded, especially transactional data (accounting, HR, sales, POs).
Metrics are where planning manual inputs and business logic (formulas) is done. If an end user is going to use it, it is very likely a metric.
A table is a collection of metrics, nicely formatted, where users will interact with Pigment (inputs & reporting), displayed on widgets on Boards. When doing a table, always format it in a way that make it easy for humans to read: pivot the dimensions and metrics in the right positions, add the correct page filters, ensure columns headers are readable and set some friendly names if the table is for end users.
The access right and permission system of Pigment is flexible. The only imperative: you need the dimension onto which security will be applied in the structure of metrics.
Impossible to have access rights by Employee if Employee is not a dimension in the metrics.
In Pigment as in code, it is best to calculate one thing once and then re-use it. Instead of creating a metric with a long formula nesting a lot of Functions and modifiers, create intermediate metrics with clear, re-usable outcomes and re-use them in a final metric.
This also impacts performance of calculations
Pigment is a sparse engine. It means every cell (metric or property) can be BLANK. The engine ignores BLANK values. but it computes 0 or “ “ or FALSE. Avoid formula patterns filling BLANK
One of the key things being done in Pigment modeling is transforming the dimensionality of data/metrics. This is done by the MODIFIERs — learn their syntax from skill:writing-pigment-formulas and the full mechanics from skill:using-formula-modifiers.
Extracting data from a transaction list is a “costly” operation. There should only be 1 metric doing a BY over one measure in a transaction list, including all its dimensions. Then other metrics can [REMOVE] on that metric as required.
Possible exception: if one of the dimension is very large and only used in one place (exemple: vendor), it’s acceptable to have a specific metric for this
This will also make for a clean dependency diagram of the app/workspace
Those are a set of rules to follow to avoid issues, follow them strictly
When loading (or creating) data in Pigment, if the data is Text,you must analyze if it should be of Type Dimension. Most Text data in Pigment is dimension as this is the only way it can be used for logic. Text is rare and usually dedicated for things like address, comments, description.
skill:naming-and-organizing-applications.., :, ', or " in block names. Prefer ASCII.In Pigment, you cannot build a block based on another until it has being reate, it is not code. You need a metric to be created before mentioning its name in a formula, a dimension to be created before creating a property of this type.
Suggested build order: Calendar (verify/configure) → Dimensions → Version Dimension → Transaction Lists → Metrics (input, then calculated) → Tables → Boards. Always create prerequisites before dependents.
Never recreate time dimensions. Reuse the app calendar.
'FX Rate Types'."AVG") may stay hard-coded but avoid when possibleDATE() with literal year/month for period bounds. Use a Date-typed input metric.tool:get_data_dependency_tree (direction Sources) to trace back to the originating metric(s) and transaction list, so you know what grain of detail already exists upstream. Before declaring such a change done, use tool:get_data_dependency_tree (direction Usages) to find dependent formulas, then tool:validate_formula (with target.metric_id) on each to catch a silent mismatch — see skill:writing-pigment-formulas ("Structural Dimension Changes") for the full workflow.What SKILL.md sets; muted values are Claude Code's defaults
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