/pigment:solving-workforce-planningfrom Pigment
Plans and builds a workforce planning app: HRIS roster staging, new hires (TBH), employee changes, headcount/FTE bridges, payroll cost with merit and employer taxes, and P&L export. Defines reference architecture, folders, naming, and boards.
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.
Workforce planning allows our customers to plan headcount, FTE and payroll cost: the existing employees loaded from the HRIS, the new hires requested by department leaders (TBH, To Be Hired) and the changes they plan (transfers, promotions, salary changes, terminations). The planned payroll cost goes to the P&L by department and account.
This skill is giving you instructions on how to build a solid app architecture. The basics have to be followed but depending on the requests or data set provided by the user, you can add/remove to it
You can choose to modify the architecture ONLY if you have a valid reason for it
It describes how to build a stand alone app which should be connected to your data hub and main FP&A app (with the P&L).
The logic of this app follows a single currency. It is extendable to several (see Potential modifications).
End user: Department leaders requesting new hires and changes, and following their headcount and cost.
Power User/Admin: HR/Finance team loading the roster, setting the assumptions, approving the requests and using the planned payroll cost in the P&L.
IFBLANK(X, PREVIOUS(Month)), PREVIOUSOF or a cycle: nothing here needs month-by-month iteration.IFBLANK(..., 0) fills.ALWAYS ask these questions with tool:ask_user before building anything. It takes 5 questions max per call: send the four ASK questions in a first call, then the five confirmations in a second one.
ASK:
And confirm with them:
This is the main dimension of the app, containing both existing employees and TBH. A key design choice is that TBH Description and TBH Department are inputs, dedicated to TBH creation.
This dimension is getting access rights applied based on the department, through a mapping metric: see 5. Security
| Field | Type | Data / Formula | Description |
|---|---|---|---|
| Workforce ID | Text | Formula (unique, default and display property): IF(Workforce.'Is TBH', "TBH-" & Workforce.'Auto-generated', Workforce.'Employee ID') | The ID of every item: the HRIS number of an employee, TBH-n for a TBH (pick another prefix if HRIS IDs could collide). Create it once Is TBH exists (isUnique), then make it the default and display property (tool:bulk_update_lists: defaultProperty, defaultDisplayProperty). |
| Employee ID | Text | Data (unique) | HRIS number, filled by the roster load, blank for TBH: the key of the HRIS loads only. Create the dimension with it as its unique property, never with a unique Name. |
| Employee Name | Text | Formula: Data_Employee_Roster.'Employee Name'[BY LASTNONBLANK: Data_Employee_Roster.'Employee ID', Data_Employee_Roster.'Load Month'][REMOVE LASTNONBLANK: Month] | Name in the latest load. |
| TBH Description | Text | Data | Typed at TBH creation: the role. |
| TBH Department | Dimension → Department | Data | Typed at TBH creation. Employees take the staged roster department. |
| Auto-generated | Integer | Data (auto ID: isAutoId) | Assigned by Pigment at creation. |
| Workforce Type | Dimension → Workforce Type | Formula: IFDEFINED(Workforce.'Employee ID', 'Workforce Type'."Existing Employee", 'Workforce Type'."TBH") | Derived, never typed. |
| Is TBH | Boolean | Formula: Workforce.'Workforce Type'.'Is TBH' | Branches the formulas between TBH and employees, and decides who is in Workforce - TBH |
| Is Existing Employee | Boolean | Formula: Workforce.'Workforce Type'.'Is Existing Employee' | Decides who is in Workforce - Existing Employee |
| Label | Text | Formula: Workforce.'Workforce ID' & " - " & IF(Workforce.'Is TBH', Workforce.'TBH Description', Workforce.'Employee Name') | Row label of the boards (custom display property). |
| Created By / Created Time | Data (history properties) | Audit trail |
Create the subset Workforce - TBH with tool:create_sublist. Its members are the items where Is TBH is TRUE: no tool can put that formula on its membership property (Workforce - TBH on Workforce), the user does (Handover). Meanwhile, tick each TBH you create there with tool:update_list_property_input_data; the formula keeps the same members. It carries no metric (Use case pitfalls): the TBH_ inputs are on Workforce.
Create Workforce - Existing Employee the same way: its members are the items where Is Existing Employee is TRUE, a formula the user also sets (Handover). Meanwhile, tick the employees there after each roster load that brings new ones.
Create the New Request View of TBH: a View on Workforce called "New TBH", filtered on Is TBH = TRUE, showing only the 2 properties typed when the board button is clicked: TBH Description, TBH Department. An item created without Employee ID is a TBH.
Set the default View of Workforce right after creating the list (skill:design-business-views, B3 applied to a dimension), so employees and TBH never get mixed up:
update_list_view_pivots)Workforce - TBH, Workforce - Existing Employee{"kind": "Boolean", "operator": "EqualTo", "value": false, "conditionedByMetricValueFieldId": "<Is TBH column id>"}); the Workforce ID header in Green_10 with Green_100 bold text; every other column but the two subset columns in Grey_10, with Grey_100 text on Employee ID, Workforce Type, Auto-generated and Created Time; a width on every columnSimple technical dimension with 2 items, Existing Employee and TBH, with two Boolean properties: Is TBH (TRUE on TBH only) and Is Existing Employee (TRUE on Existing Employee only). Also a reporting pivot.
Department is the planning and access dimension. Country drives the employer taxes (Entity instead, or in addition, when the P&L is by entity). Job Position and Grade are optional. Items come from the roster; usually shared from the hub.
Draft, Submitted, Approved, Rejected, Filled, with a Boolean property Counts in Plan (TRUE for Approved only): how Finance validates TBH and changes. Filled: set by Finance when the hire is in the roster but the roster has no requisition ID.
The planned changes on existing employees, one item per change, created like the TBH: a button on the board with a form.
| Field | Type | Data / Formula | Description |
|---|---|---|---|
| Employee | Dimension → Workforce | Data | Picked at creation, among the existing employees only (dependent dropdown, below): a TBH is edited through its TBH_ inputs. |
| Department | Dimension → Department | Data | Typed at creation, like the TBH Department: the department that requests the change. Fixed, so a later transfer or roster load never moves the request; access rights and boards rely on it, never on the employee's department. |
| Description | Text | Data | Typed at creation (e.g. Promotion to Senior). |
| Auto-generated | Integer | Data (auto ID: isAutoId) | |
| Display Name | Text | Formula: "CHG-" & 'Change Request'.'Auto-generated' | Default display property. |
| Workforce Type | Dimension → Workforce Type | Formula: 'Workforce Type'."Existing Employee" | Drives the dependent dropdown of Employee. |
| Created By / Created Time | Data (history properties) | Audit trail. |
Create the New Request View of changes: a View called "New Change" showing only the 3 properties typed when the board button is clicked: Employee, Department, Description.
The Employee dropdown lists existing employees only, through a dependent dropdown that the user configures in the UI (Handover). Create its configuration metric in 0.2 Settings: MAP_Change_Request_Employee_Dropdown (Boolean, Workforce x Workforce Type) = Workforce.'Is Existing Employee'[BY: 'Workforce Type'."Existing Employee"], TRUE for each employee on the Existing Employee item. The dropdown of Employee then depends on the request's Workforce Type through this metric.
The cost lines exported to the P&L. Property ID (Integer) drives the SWITCH of OUT_Payroll_Cost: 1 Base Salary, 2 Merit, 3 Bonus, 4 Benefits, 5 Employer Taxes (keep the components the user plans). Property PnL Account (Dimension → P&L Account): where each component is exported.
The accounts the payroll cost is exported to. Usually shared from the FP&A app; create a local one only if none exists.
This version is a must in any Pigment app, will be in the structure of almost all metrics.
Property Last Actuals Month (Dimension → Month) on each item: the switchover. It decides which roster load the Version sees.
Two Version variables decide which Versions the boards compare: Current Version, the latest forecast (a forecast always holds the latest actuals), and Reference Version, the Plan it is held to. Finance moves Current Version to each new forecast. Never pin a comparison on a fixed Version in a formula or a Version property.
No public MCP tool creates variables: ask the user to create both in the Pigment UI (type Dimension on Version, Static, overridable) before you build the tables and boards that use them.
Use in combination with two SET_ metrics (Version × Month, Boolean), created right after the Version items and BEFORE any STG_ metric:
SET_Switchover_IsActuals = Month <= Version.'Last Actuals Month'SET_CalculatePlan = Month > Version.'Last Actuals Month'Do not intersect SET_Switchover_IsActuals with a version window start: a roster load older than the window would silently disappear from staging. If skill:building-versions-and-planning-cycles already created Is_Actual / Is_Plan, reuse them only if they follow this rule. This dimension is usually shared with/from others apps, check the workspace status before creating it.
Month, Year and Month of Year are required: Month for the calculations, Year for the assumptions, Month of Year for the merit timing.
This dimension is usually shared with/from others apps, check the workspace status before creating it.
This is the transactional data loaded from the HRIS, in a transaction list called Data_Employee_Roster, one row per employee and per load. If the load tool does not create Workforce items on the fly, add them first from the distinct employee IDs of the file, matched on Employee ID.
| Field | Type | Data / Formula | Description |
|---|---|---|---|
| Employee ID | Dimension → Workforce | Data (display property) | HRIS number, the join key. |
| Employee Name | Text | Data | |
| Department, Country | Dimension | Data | At the load date. |
| Job Position, Grade | Dimension | Data | Optional. |
| Hire Date, Term Date | Date | Data | Term Date = last working day, blank while employed. |
| Base Salary | Decimal | Data | Annual, at full time. |
| FTE % | Decimal | Data | Optional (1 = full time), then filled on every row: a blank drops the employee from FTE and cost. |
| Annual Bonus, Annual Benefits | Decimal | Data | Optional. |
| Requisition ID | Text | Data | The TBH ID (Workforce ID, TBH-n) of the TBH this hire fills, given to the HRIS when the job opens. |
| Load Month | Dimension → Month | Data | Month of the HRIS extract, critical for the app logic (TIMEDIM of the file's load date when it has one). |
| Filled TBH | Dimension → Workforce | Formula: ITEM(Data_Employee_Roster.'Requisition ID', Workforce.'Workforce ID') | The TBH this hire fills; blank when no Workforce ID matches the tag. ITEM only searches unique properties. |
| Mapping Error | Boolean | Formula: IF(NOT(ISDEFINED(Data_Employee_Roster.'Employee ID') AND ISDEFINED(Data_Employee_Roster.Department) AND ...), TRUE), one ISDEFINED per key field, Load Month included. Never ISBLANK | The row did not map (a blank load date leaves Load Month blank). |
Follow the instructions below unless the user has expressed a new requirement that requires you to change something.
The flow of the app is as follows. Ensure you create the FOLDERS in this way (or similar if some things are pre-existing) and put all the BLOCKS in the correct folder.
The formulas below are the reference implementation: use them as written, adapting only block names.
Build in this order. Each step needs the blocks of the previous ones:
Workforce - TBH and Workforce - Existing Employee subsets. Then Change Request, with its Workforce Type property and MAP_Change_Request_Employee_Dropdown.set_metric_input): the payroll returns blanks until they are. Values the user did not give stay blank for Finance to type on board 0 (Handover).Workforce Input role, INP_ access inputs, ARM_, MAP_. The rules are a UI step (Handover).list_issues, then the Handover.Folder name: 0. Settings, with two sub folders:
Folder name: 1. Data
In here build the Employee Roster transaction list as described above, and its load checks (by Month, version-free) in a table "Roster Load Checks":
DATA_Roster_Rows = Data_Employee_Roster.'Load Month'[BY COUNT: Data_Employee_Roster.'Load Month']DATA_In_Load (Workforce x Month, Boolean) = IF(Data_Employee_Roster.'Load Month'[BY COUNT: Data_Employee_Roster.'Employee ID', Data_Employee_Roster.'Load Month'] > 0, TRUE)DATA_Roster_Joiners = IF(ISDEFINED(DATA_Roster_Rows[SELECT: Month - 1]), IF(DATA_In_Load, IFDEFINED(DATA_In_Load[SELECT: Month - 1], BLANK, 1))[REMOVE SUM: Workforce])DATA_Roster_Leavers = IF(ISDEFINED(DATA_Roster_Rows), IF(DATA_In_Load[SELECT: Month - 1], IFDEFINED(DATA_In_Load, BLANK, 1))[REMOVE SUM: Workforce])DATA_Mapping_Errors = IF(Data_Employee_Roster.'Mapping Error', 1)[BY SUM: Data_Employee_Roster.'Load Month']Each load: previous rows + joiners - leavers = rows.
Here put all the Staging Data metrics, by Workforce x Month x Version, prefixed by STG_. One per roster field:
STG_Department = FILLFORWARD(IF(SET_Switchover_IsActuals, Data_Employee_Roster.Department[BY LASTNONBLANK: Data_Employee_Roster.'Employee ID', Data_Employee_Roster.'Load Month']), Month)
Each load lands in its own month, up to the Version's last actuals month, and FILLFORWARD carries the last one through the plan months: a reload never changes a Version frozen before it. LASTNONBLANK works for every data type.
Stage every roster field the same way: STG_Department, STG_Country, STG_Job_Position, STG_Grade, STG_Hire_Date, STG_Term_Date, STG_Base_Salary, STG_FTE_Pct, STG_Annual_Bonus, STG_Annual_Benefits (only the fields the roster has). Plus:
STG_TBH_Filled (Workforce x Version, Boolean) = IF(IF(SET_Switchover_IsActuals, Data_Employee_Roster.'Filled TBH'[BY COUNT: Data_Employee_Roster.'Filled TBH', Data_Employee_Roster.'Load Month'])[REMOVE SUM: Month] > 0, TRUE): TRUE on a TBH whose hire appears in a load the Version sees.Folder 2. Workforce Requests
Put here all the TBH input metrics (prefixed by TBH_), by Workforce x Version (never by the Workforce - TBH subset), and their table "TBH Inputs".
TBH_Included (Boolean) = IF(TBH_Status.'Counts in Plan' AND ISDEFINED(TBH_Hire_Date), IF(STG_TBH_Filled, BLANK, TRUE)): approved, dated, and not yet filled in this Version's roster. Use nested IF, not OR: OR with a blank input returns BLANK.CHK_TBH_Not_Filled (Boolean) = IF(TBH_Included AND TBH_Hire_Date <= Version.'Last Actuals Month'.'End Date', TRUE): an approved TBH started in the actuals that no roster hire retired. It adds to the roster headcount until a load brings its TBH ID, or Finance sets it to Filled (hired without its TBH ID) or Rejected (board 1).TBH Description and TBH Department are NOT TBH_ metrics: they are the Workforce properties typed when the TBH is created (access rights rely on them).
Put here all the change input metrics (prefixed by CHG_), by Change Request x Version, and their table "Change Requests".
CHG_Included (Boolean) = IF(CHG_Status.'Counts in Plan', TRUE)CHG_Current_Department = WF_Card_Department[BY CONSTANT: 'Change Request'.Employee, CHG_Effective_Month - 1], same for CHG_Current_Base_SalaryTwo approved changes on the same field of an employee each apply from their own effective month; with the same month, the change created last wins.
Default View of both tables, the full View that board 2 shows (renamed after its table): every request in rows (Label; Employee > change for changes; TBH: Workforce filtered on Is TBH = TRUE with byProperty, empty rows shown so a new TBH appears before its first input), all the table's metrics in columns in reading order (status first, In plan last), Version in columns filtered on the Current Version variable, Department as a page (TBH Department, or the request's Department). No other View of these tables on the boards: the button form is the New Request View of the list. Friendly names (update_view_values) and column widths (update_view_grid_layout: perMetricColumnWidthOverrides, rowHeaderColumnWidths) are part of the build, not polish.
Folder 3. Calculations (CALC)
This will contain the business assumptions, the workforce cards, the headcount and the payroll
Prefixed by ASP_, manual inputs, filled for every Year and Version in the calendar range:
ASP_Merit_Increase (Decimal %, Month of Year x Year x Version): the merit % in the month it applies (e.g. 3% in April)ASP_Merit_Min_Tenure (Integer, months, Year x Version): tenure needed to receive the meritASP_Employer_Tax_Rate (Decimal %, Country x Year x Version)ASP_Employer_Tax_Cap (Decimal, Country x Year x Version): annual salary ceiling above which no employer tax applies, blank = no cap. If the country caps the tax amount instead, store cap / rate.Metrics by Workforce x Month x Version, prefixed by WF_Card_. Every attribute is resolved once, here, for employees and TBH: everything downstream only reads WF_Card_. Each card merges three sources:
// Department card. TBH: department typed at creation, while the TBH counts in the plan.
// Employee: latest approved change from its effective month (plan months only), else the staged roster value
IF(Workforce.'Is TBH',
IF(TBH_Included, Workforce.'TBH Department'),
IFBLANK(
FILLFORWARD(IF(SET_CalculatePlan, CHG_New_Department[FILTER: CHG_Included][BY LASTNONBLANK: 'Change Request' -> 'Change Request'.Employee, CHG_Effective_Month]), Month),
STG_Department
)
)
FILLFORWARD holds a change from its effective month until the next one in a single pass. The SET_CalculatePlan gate leaves actual months to the roster.
Same shape for the other cards:
| Card | TBH branch | Change field |
|---|---|---|
| WF_Card_Country, WF_Card_Job_Position, WF_Card_Grade, WF_Card_Base_Salary | TBH_X[FILTER: TBH_Included] | CHG_New_X |
| WF_Card_FTE_Pct (part-time only) | IFBLANK(TBH_FTE_Pct, 1)[FILTER: TBH_Included] | CHG_New_FTE_Pct |
| WF_Card_Term_Date | TBH_Term_Date, same pattern | CHG_Term_Date, mapped on TIMEDIM(CHG_Term_Date, Month) instead of CHG_Effective_Month |
| WF_Card_Hire_Date, WF_Card_Annual_Bonus, WF_Card_Annual_Benefits | TBH_X, same pattern | none: IF(Workforce.'Is TBH', <TBH branch>, STG_X) |
Plus WF_Card_Tenure (Integer, months) = MONTHDIF(WF_Card_Hire_Date - 1, Month.'Start Date').
To let changes move another attribute, add a CHG_New_ input and the change branch to its card.
Build a "Workforce Cards" table with every WF_Card_ metric. Its default View shows each person's card at one month:
Keep Department in rows, never in pages: a Dimension-typed card only accepts the Blank aggregator, so a Department page left on All blanks the cards.
Metrics by Workforce x Month x Version, prefixed by HC_:
HC_Active (Integer) = IF(ISDEFINED(WF_Card_Department) AND WF_Card_Hire_Date <= Month.'End Date' AND IF(ISDEFINED(WF_Card_Term_Date), WF_Card_Term_Date > Month.'End Date', TRUE), 1): 1 when employed at month end. Temporal aggregator LastNonBlank (defaultAggregators of create_metric).HC_FTE (Decimal) = PRORATA(Month, WF_Card_Hire_Date, WF_Card_Term_Date + 1), times WF_Card_FTE_Pct with part-time rates. PRORATA includes the start date and excludes the end date, hence + 1 on the last working day. Temporal aggregator Avg.The headcount bridge, by Department x Month x Version, prefixed by HCB_. Every movement compares the cards at the previous and the current month end:
HCB_Closing = HC_Active[BY SUM: Workforce -> WF_Card_Department] (temporal aggregator LastNonBlank)HCB_Opening = HCB_Closing[SELECT: Month - 1] (temporal aggregator FirstNonBlank)HCB_Hires = IF(HC_Active = 1 AND ISDEFINED(HC_Active[SELECT: Month - 1][REMOVE SUM: Workforce]), IFDEFINED(HC_Active[SELECT: Month - 1], BLANK, 1))[BY SUM: Workforce -> WF_Card_Department]: employed now, not at the previous month end. Skips the first month with data (no opening), where everyone would show as a hire.HCB_Terminations = IF(HC_Active[SELECT: Month - 1] = 1, IFDEFINED(HC_Active, BLANK, -1))[BY SUM: Workforce -> WF_Card_Department[SELECT: Month - 1]]: booked in the department they leftHCB_Transfers_In = IF(HC_Active = 1 AND HC_Active[SELECT: Month - 1] = 1 AND WF_Card_Department <> WF_Card_Department[SELECT: Month - 1], 1)[BY SUM: Workforce -> WF_Card_Department]HCB_Transfers_Out = -IF(HC_Active = 1 AND HC_Active[SELECT: Month - 1] = 1 AND WF_Card_Department <> WF_Card_Department[SELECT: Month - 1], 1)[BY SUM: Workforce -> WF_Card_Department[SELECT: Month - 1]]CHK_Headcount_Bridge = HCB_Opening + HCB_Hires + HCB_Terminations + HCB_Transfers_In + HCB_Transfers_Out - HCB_Closing: 0 everywhere except the first month with dataMetrics by Workforce x Month x Version, prefixed by PAY_. Monthly cost = annual amount / 12 x HC_FTE:
PAY_Base_Salary = WF_Card_Base_Salary / 12 * HC_FTEPAY_Merit_Rate = IF(SET_CalculatePlan, IF(WF_Card_Tenure >= ASP_Merit_Min_Tenure[BY CONSTANT: Month.Year], ASP_Merit_Increase[BY CONSTANT: Month.'Month of Year', Month.Year])): plan months only, actual salaries already include past meritsPAY_Merit_Cumulative = EXP(CUMULATE(LN(1 + PAY_Merit_Rate), Month)) - 1: all merits granted since the plan started, compounded (3% then 3% = 6.09%); the logs stay inside the formula, users only see %PAY_Merit_In_Salary = FILLFORWARD(IF(SET_CalculatePlan, IF(WF_Card_Base_Salary <> WF_Card_Base_Salary[SELECT: Month - 1], PAY_Merit_Cumulative)), Month): the merits already in the salary. A planned salary change is a full new salary that includes the merits granted so far, so they are not paid againPAY_Merit_Index = IFDEFINED(PAY_Merit_In_Salary, (1 + PAY_Merit_Cumulative) / (1 + PAY_Merit_In_Salary) - 1, PAY_Merit_Cumulative): the merit on the current salary (0.03 = +3%)PAY_Merit = PAY_Base_Salary * PAY_Merit_IndexPAY_Bonus = WF_Card_Annual_Bonus / 12 * HC_FTE, PAY_Benefits = WF_Card_Annual_Benefits / 12 * HC_FTE (optional)PAY_Gross_Pay = PAY_Base_Salary + PAY_Merit + PAY_Bonus: the base of employer taxesPAY_Taxable_Pay = IFDEFINED(PAY_Gross_Pay, IFDEFINED(ASP_Employer_Tax_Cap[BY CONSTANT: WF_Card_Country, Month.Year], MAX(0, PAY_Gross_Pay + MIN(0, ASP_Employer_Tax_Cap[BY CONSTANT: WF_Card_Country, Month.Year] - CUMULATE(PAY_Gross_Pay, Month, Month.Year))), PAY_Gross_Pay)): the part of the month's pay still under the annual ceiling (year to date, reset every year)PAY_Employer_Taxes = PAY_Taxable_Pay * ASP_Employer_Tax_Rate[BY CONSTANT: WF_Card_Country, Month.Year]PAY_Total_Cost = PAY_Gross_Pay + PAY_Benefits + PAY_Employer_TaxesBuild a PAY_Engine table with these metrics. Its default View reads like a payslip, cost lines in rows in calculation order and Month in columns:
Build a "Merit Calculation" table that walks one person through the merit, rows numbered in calculation order and Month in columns (two years, so two merit cycles show):
byProperty) to the current and next year{"kind": "Boolean", "operator": "EqualTo", "value": false, "conditionedByMetricValueFieldId": "<Plan month value id>"}), Merit % above 0 in Yellow_20 bold, rows 5 to 7 in Grey_10 italic, row 9 in Green_80 with White bold textFolder 4. Reporting metrics
Do not create metrics to report by department, country or Version: show the HC_, PAY_ and HCB_ metrics in views, with the cards as mapped dimensions (update_view_pivots with WF_Card_Department or WF_Card_Country, see skill:using-mapped-dimensions). One output is needed as a metric:
OUT_Payroll_Cost (Workforce x Payroll Component x Month x Version) = SWITCH('Payroll Component'.ID, 1, PAY_Base_Salary, 2, PAY_Merit, 3, PAY_Bonus, 4, PAY_Benefits, 5, PAY_Employer_Taxes)[FILTER: SET_CalculatePlan]: plan cost by component. Drop the branches of the components not planned.Compare Versions in views, never with metrics pinned to a Version: the metric by Version, Version in columns filtered on the variables Current Version and Reference Version (update_view_filters: byItems with variableIds, no Version page), and calculated items on the same two variables (update_view_calculated_items, operands of type Variable): Variance (DifferenceAbsolute, Current - Reference) and Var % (DifferenceRelative). Each Version keeps its own cards, so a planned transfer moves the person in one Version only. Year-end headcount by employee (HC_Active rows) takes the temporal aggregator Last: a leaver is blank in December, LastNonBlank would still count them.
Tables: "Department Workforce" (the WF_Card_ cards, HC_FTE, PAY_Total_Cost), "Workforce Cost Details" (HC_Active, PAY_Total_Cost).
Add here PUSH_ metrics for the FP&A / P&L, aggregated at the P&L grain: employee level data never leaves the app.
PUSH_Payroll_Cost = OUT_Payroll_Cost[BY SUM: Workforce -> WF_Card_Department][BY SUM: 'Payroll Component'.'PnL Account'] (Department x P&L Account x Month x Version)PUSH_FTE = HC_FTE[FILTER: SET_CalculatePlan][BY SUM: Workforce -> WF_Card_Department] (Department x Month x Version): driver of per-head costs in the P&LWhen the P&L is also by entity, build WF_Card_Entity like WF_Card_Country and add it to the first BY.
Use the arrow BY (Workforce -> mapping): a plain BY with a mapping metric that carries Month and Version drops them.
Version and Calendar come from the HUB; Department, Country / Entity and P&L Account are shared with other applications.
With an active-only roster, a leaver just disappears from the next load. Derive the term date of an employee missing from the Version's latest load:
STG_Last_Seen_Month (Workforce x Version) = IF(SET_Switchover_IsActuals, Data_Employee_Roster.'Load Month'[BY LASTNONBLANK: Data_Employee_Roster.'Employee ID', Data_Employee_Roster.'Load Month'])[REMOVE LASTNONBLANK: Month]STG_Last_Load_Month (Version) = IF(SET_Switchover_IsActuals, Data_Employee_Roster.'Load Month'[BY LASTNONBLANK: Data_Employee_Roster.'Load Month'])[REMOVE LASTNONBLANK: Month]STG_Implied_Term_Date = IF(STG_Last_Seen_Month < STG_Last_Load_Month, STG_Last_Seen_Month.'End Date'), the fallback of STG_Term_Date in WF_Card_Term_DateASP_Salary_Band (Job Position x Grade x Year x Version) as the default of a blank TBH_Base_Salary.Run these checks with query_data / get_list_items before handing over. Checks 1 to 6 come before any table or board is built.
list_issues is empty.End the build by listing what the user does in the UI:
Workforce.'Is TBH' on the property Workforce - TBH of Workforce, and Workforce.'Is Existing Employee' on Workforce - Existing Employee.Build the boards with skill:designing-boards-and-views: page selectors, then sections each opened by an H2 title and a one-line subtitle saying what to do, friendly names only, rows labelled by Label. Each widget shows a View created and named for it, never a default "View 1" (the request tables show their default View, renamed). View page defaults are rare (filteredModalityReferences of the page, update_view_pivots / update_list_view_pivots): only where the View means nothing without one, like the person of Merit Calculation. A Version page never defaults to a fixed Version, only to the Current Version variable. Every Version selector defaults to the Current Version variable (defaultModalityReferences of type Variable). That default is read when the board opens only: changing the variable afterwards does not move the Version selector. So a board that compares Versions with the variables (boards 2 and 3) uses them in every view: Version in columns, filtered on the Current Version variable (byItems with variableIds), never a Version page. The board then shows only the Current Version and Reference Version selectors, and the KPIs and tables always show the same Version.
One green style on every board:
update_view_formatting, then update_view_grid_layout): row header as wide as its longest label, every column at least as wide as its header name plus 2 characters, so no header or label ends in "..."Admin / finance board: the Versions and their Last Actuals Month, then the ASP_ assumptions. Each one gets a text widget next to it saying what it changes in the engine (e.g. "Employer tax cap: annual salary ceiling per country; the pay above it in a year carries no employer tax"). A title per section is not enough.
Admin / finance board, read after each load. Page selectors: Version (single), Month (the roster load, single, latest load).
byValue IsNotBlank), with Employee ID, Employee Name, Department, Hire Date, Requisition ID, Filled TBH. Red_20 on Requisition ID and Filled TBH when Filled TBH is empty ({"kind": "Empty", "operator": "IsEmpty", "conditionedByMetricValueFieldId": "<Filled TBH column id>"}): no TBH in Pigment has that ID, fix it in the HRISThe department head's one-stop shop. Page selectors: Current Version and Reference Version (variables), Year (single), Department. No Version selector: the tables below take Version in columns, filtered on the Current Version variable, like the KPIs.
Finance page comparing Current Version with Reference Version: no Version selector, the variables decide. Page selectors: Year (single), Department.
pathsToggledAsLines with the calculated item id, isDoubleAxisChart)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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.npx claudepluginhub gopigment/ai-plugins --plugin pigmentOther plugins' skills for the same job