/pigment:building-versions-and-planning-cyclesfrom Pigment
Implements version dimensions, planning cycles, and actual/forecast separation in Pigment. Covers switchover patterns, Actual/Budget/Plan layering, Native Scenarios, and Snapshots for structured planning.
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 offers three independent mechanisms. Never conflate them:
| Feature | Purpose | Mutability |
|---|---|---|
| Version Dimension | Structural planning cycles (Budget, Forecast, Actual) integrated into metric structure and formulas | Live; editable until locked |
| Native Scenarios | What-if branching with independent inputs and formula groups | Live; temporary alternative assumptions |
| Snapshots | Point-in-time freeze of application data | Immutable once created |
All three can coexist. A forecast Version can have Optimistic and Pessimistic Scenarios; a Snapshot can capture a closed cycle for audit.
Use Version Dimension when:
Use Native Scenarios when:
Use Snapshots when:
Aim for about 6 active versions; never more than about 10, because every live version adds calculation cost. Take Snapshots at cycle end or monthly for rolling forecasts.
Every application with metrics MUST have a Version dimension. The only exception is a pure reference data hub with zero metrics. Create Version before any other metric. If imported data lacks version information, tag all as Actual. Retrofitting later (restructuring every metric, rewriting every layering formula) is expensive.
Use tool:create_list to create a Dimension List named Version. Use tool:add_list_items to add items:
ActualBudget FY25Forecast Q2Include creation year or window span in names for clarity and Clone Data workflows.
Use tool:create_list_property to add these properties on the Version dimension:
| Property | Type | Purpose |
|---|---|---|
Switchover Month (or Switchover Year) | Month (or Year) | Last month of actual data for this version |
Start Month | Month | First month in the version window |
End Month | Month | Last month in the version window |
Is_Active | Boolean | Marks versions open for input or reporting |
Is_Locked | Boolean | Prevents edits once approved |
Switchover defines where actuals end and plan begins. Different versions can use different switchover dates.
Property naming: Domain templates may use different names (e.g.
Last Actuals Monthinstead ofSwitchover Month). Semantics are the same; adapt to existing application conventions.
All three metrics are mandatory, delivered in one pass. They are never deferred to a later phase and never treated as optional. Use tool:create_metric with the formula field to create them dimensioned by Version × Month and set their formulas in a single call:
Is_Version at Version × Month. Formula: 'Version'.'Start Month' <= Month AND Month <= 'Version'.'End Month'Is_Actual at Version × Month. Formula: 'Is_Version' AND Month <= 'Version'.'Switchover Month'Is_Plan at Version × Month. Formula: 'Is_Version' AND Month > 'Version'.'Switchover Month'These drive layering logic in downstream formulas. A model that separates actuals from plan without them is incomplete.
When creating metrics with tool:create_metric, include Version in structure only for metrics needing per-version data (inputs, layered outputs, version-specific assumptions). Do not add Version to reference or lookup metrics unnecessarily.
Hard rule: any metric that combines actuals with a forward plan or forecast always carries Version in its structure, alongside its driver dimensions. "Adding Version would multiply the data unnecessarily" is not a reason to omit it there — without Version the metric cannot hold two planning cycles with different switchovers.
Separate actual and plan source metrics, then combine using the version flags from Step 3:
IF('Is_Actual', 'Revenue Actual', IF('Is_Plan', 'Revenue Forecast', BLANK))
The result is a single output metric containing actuals through switchover and plan thereafter.
You MUST gate the split on Is_Actual / Is_Plan. Comparing Month against a switchover value directly inside the layering formula bypasses Version: it reduces the split to one global cutoff, so a second planning cycle with its own switchover cannot coexist.
When the model combines actuals with a forward plan or forecast, follow this exact build order:
<Measure> Actual metric gated by Is_Actual<Measure> Plan metric from forward-looking assumptions<Measure> (unified output) at <Driver Dimensions> × Version × Month: IF('Is_Actual', '<Measure> Actual', '<Measure> Plan')WRONG patterns (observed in traces):
IFDEFINED('Units Actual', 'Units Actual', PREVIOUS(Month) * (1 + 'Monthly Growth Rate'))
IF(Month <= 'Switchover Month', 'Units Actual', 'Units Plan')
IF(Month <= 'Actuals End Month', 'Units Actual', PREVIOUS(Month) * (1 + 'Monthly Growth Rate'))
All three skip the Version Dimension. IFDEFINED infers the split from whether actual data happens to exist. The other two read a switchover value from a scalar metric or straight from the property, at driver grain rather than Version × Month. None of them survives a switchover that differs per version, and none can carry a second planning cycle.
Forbidden reasoning: rationales such as "kept simple with a single combined output metric", "keeping it lean", "avoids unnecessary cardinality expansion", or "no Version Dimension needed here" are wrong when actuals and forecast coexist. Parameterising the cutoff into an input metric does not substitute for the Version Dimension. The Version Dimension is always required in that scenario.
Alternative gating: Templates may apply the flags differently (e.g.
[EXCLUDE:]on flag metrics). That variation is about how the flags are consumed, not about whether Version and the flags exist — Steps 1 to 3 are required either way.
Forecast M+1) using tool:add_list_itemstool:set_metric_inputRepeat monthly. Keep Version dimension lean — retire superseded items after Snapshot.
No public MCP tool creates Data Slices. Ask the user to configure slices in the Pigment UI for cross-version reporting (Budget vs Actual variance). You can still create a slicing dimension list with tool:create_list / tool:add_list_items and wire views once slices exist.
Ask the user to create scenario branches in the Pigment UI when needed. Use tool:list_scenarios to inspect existing scenarios:
Each scenario can override input values independently. Formula Groups and Compare Scenarios are UI-only; ask the user to configure in Pigment UI.
Scenarios combine with Version Dimension (Version × Scenario). Do not use Scenarios as a substitute for version planning.
No agent tool available for Snapshot creation. Ask the user in Pigment UI. Snapshots freeze all blocks and data at a point in time:
Snapshots serve archiving and audit. They do not participate in live formula logic.
Is_Actual + Is_Plan cover the version window without gaps or overlapsIs_Locked = TRUE) prevent user inputsWhat 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