/pigment:diagnosing-performance-issuesfrom Pigment
Diagnoses slow calculations and timeouts in Pigment applications. Covers profiler interpretation, scope chip reading (M/N notation), systematic troubleshooting workflow, and iterative calculation optimization.
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.
Use when calculations are slow, timing out, or the user asks to find bottlenecks.
When the Performance Insights tools are available (tool:get_top_blocks_by_performance, tool:performance_slowest_changes, tool:performance_profile_change), measure with them first: see skill:profiling-model-performance. This skill then reads the results (scope, computation chains, fix patterns). The Profiler steps below are for when the tools are not available.
Each computation step shows a Scope value and colored chip.
Hover the Scope fraction to see which Dimension Items are scoped and which Dimensions pass to the next step. Bold M/N means scope passed downstream differs from the current step.
| Chip | Meaning | Action |
|---|---|---|
| Black | Scope preserved and passed downstream | Good — no action needed |
| Blue | New scope introduced (dimension added or newly constrained) | Expected after filters/selects; verify it is intentional |
| Gray | Computation triggered but output unchanged | Wasted work — investigate why the step ran |
Goal: maximize scoped Dimensions (approach N/N) throughout the chain.
If scope is healthy but execution is still slow, investigate iterative calculations or large Dimension cardinality.
skill:iterating-with-previous-and-cycles for the full optimization guide (subsetting, CUMULATE/FILLFORWARD replacements, dimensionality reduction, expression grouping).IFDEFINED('Users roles', ...) — this is the mandatory guard that skips AR computation for users without role assignments. Optionally add IFDEFINED(User, ...) as an additional performance trim (not a substitute). See skill:writing-performant-formulas and skill:securing-with-access-rights.Daily calendars over many years amplify every iterative and unscoped calculation.
Profile with the Performance Insights tools (skill:profiling-model-performance) and trace dependencies with tool:get_data_dependency_tree. What is left for the user:
tool:performance_slowest_changes finds no recent change for it (it looks back 7 days at most). A formula change you make yourself needs no reproduction.Without the Performance Insights tools, the user must also do these steps:
Structure every diagnosis as:
tool:performance_changes_statistics), or ask the user to re-profile and share it when the tools are not availablePrioritize by Computation Duration impact. Fix scope loss before tuning iterative patterns.
When a profile marks an execution as having impacted data Members were viewing, treat those executions first: they gate what Members see refreshing. The others are deliberately deferred by the engine, so their extra contention alone is not a defect. Say "impacted viewed data" to the user, never the raw field name.
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