/pigment:using-search-toolsfrom Pigment
Guides efficient use of search and dependency tools to minimize token cost. Helps choose between discovery tools, batch name patterns, and parallelize calls when exploring an application or checking impact of changes.
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.
Search tools let you discover blocks; dependency tools let you trace formula lineage and impact. Using the wrong one wastes tokens and returns poor results.
Every search call pays a fixed cost: the tool loads the application catalog before it filters. That cost does not depend on how broad your query is, how many patterns you pass, or how many results come back. A call that returns zero results costs the same as one that returns a hundred. On a large application this is several seconds per call.
Two consequences drive everything below:
So: name everything you need up front, put it in as few calls as possible, and fire whatever remains in a single turn.
| You want to… | Use | Cost |
|---|---|---|
| Find blocks by exact name, kind, folder, formula content, data type, or UUID | tool:search_metrics_and_lists, tool:search_folders, tool:search_tables | Low per call; |
| List all blocks (paged catalog) or apply combined structural filters | tool:search_metrics_and_lists, tool:search_folders, tool:search_tables (empty request, increment page_number) | Low per call |
| Look up a block you already have the UUID for | tool:search_metrics_and_lists, tool:search_folders, tool:search_tables | Low per call |
| Find blocks by meaning when you cannot assume how they are worded (synonyms, abbreviations, business terms) | tool:semantic_search | Medium per call |
| Trace multi-hop formula lineage (what feeds a metric, or what consumes it) | tool:get_data_dependency_tree | Low per call— recursive graph traversal; no AI |
| Full impact analysis before deleting/renaming a metric (all consumers: formulas, views, boards, automations) | tool:get_metric_dependencies | Low per call— flat inventory lookup; no AI |
Complex searches combining OR / AND across many blocks, or no relevant filter exists in the search_* tools | several tool:search_metrics_and_lists, tool:search_folders, or tool:search_tables calls, then combine the results | Medium–high — quite long to run, but a chain of searches is longer |
Rule of thumb: tool:search_metrics_and_lists, tool:search_folders and tool:search_tables match block names by regex. Use them when you can guess part of the name, with a broad case-insensitive pattern (e.g. (?i).*arr.*, (?i).*opex.*), or when you filter by kind, folder, formula content or UUID. tool:semantic_search looks at the same blocks with a fuzzy match. Use it when you know what you are looking for but cannot assume how the block is worded (e.g. headcount, which may be named "FTE", "Employees" or "Staff count"). When a condition needs OR / AND across blocks, issue the search_* calls that cover each part and combine the results.
Parallelization: all search and dependency tool calls are independent and can be batched in a single turn. When you need multiple pieces of information (e.g. list dimensions + list metrics + check dependencies), issue them all at once instead of sequentially.
Do this as one wide sweep, then work from what came back. Do not scan folder by folder.
tool:search_folders and tool:search_metrics_and_lists with kind: ["Dimension"]tool:search_metrics_and_lists with kind: ["Metric"] and parent_folder_regex_search covering the areas you care about → scan metrics by areatool:semantic_search or tool:get_data_dependency_tree for targeted questions about computation logicThis is the common case once you know what you are looking for.
tool:search_metrics_and_lists with all of them in friendly_name_regex_search, anchored with ^ and $, plus kind and show_details: truetool:semantic_search with topic phrases from the user's question + kind: ["Metric"]tool:search_metrics_and_lists with a name regextool:search_metrics_and_lists with multiple regex search terms + kind: ["Metric"]tool:semantic_searchtool:search_metrics_and_lists with block_id_exact_match + show_details: true → get formula and dimensionstool:get_data_dependency_tree direction Sources → see what feeds ittool:get_metric_dependencies → see what depends on it (impact analysis)tool:search_folders → build the tree from the catalog (paginate if needed)parent_folder_regex_search alone)tool:create_folder or tool:move_blockstool:search_metrics_and_lists with kind: ["Metric"] → page through all metrics (increment page_number)tool:get_metric_dependencies → if no usages (no formula references, no views, no boards, no automations), the metric is unusedtool:get_data_dependency_tree direction Usages → confirm no downstream formula consumersUse when the condition combines OR / AND across blocks (e.g. "metrics in folder A or B, with a formula using X, that are not referenced by any table") or when no search_* filter expresses it.
search_* filters first: if one call, or a few parallel calls, express the condition, stop heresearch_* calls that cover each part, run them in parallel, and combine the resultskind when you know the block typetopics: ["gross profit margin"], kind: ["Metric"]topics: ["employee cost", "salary expense"], kind: ["Metric"]topics: ["the metric that computes gross profit margin by subtracting COGS from revenue"] (too long)topics: ["region geography country city continent"] (split into separate entries)Recursive traversal of formula-based dependencies. Returns a tree rooted at start_block_id.
Sources: walk toward blocks the metric references in its formula (what feeds it)Usages: walk toward blocks that reference the metric in their formulas (what consumes it)max_traversal_depth to limitend_block_id to find the path between two specific blocks (ignores depth limit)When to use: understanding the full calculation chain before editing a formula, verifying upstream inputs, tracing how data flows through the model.
Flat inventory of everywhere a metric is referenced. Grouped by consumer kind: formulas, list properties, tables, boards, views, automations, variables, ARM metrics.
tool:get_data_dependency_tree for that)When to use: impact analysis before deleting, renaming, or structurally changing a metric. Answers "what will break if I touch this?"
| Question | Tool |
|---|---|
| What feeds this metric? (upstream chain) | tool:get_data_dependency_tree direction Sources |
| What consumes this metric through formulas? (downstream chain) | tool:get_data_dependency_tree direction Usages |
| Will anything break if I delete/rename this metric? (full impact) | tool:get_metric_dependencies |
| Is there a formula path between metric A and metric B? | tool:get_data_dependency_tree with end_block_id |
^Revenue$, then ^Gross Margin$, then ^Headcount$, then ^Total Cost$ cost four searches and four model round trips, where one call with four patterns would have done. If two of your searches differ only by their regex list, they were one call.parent_folder_regex_search list, or sweep the whole catalog once.tool:get_data_dependency_tree for impact analysis — it only shows formula references; use tool:get_metric_dependencies to see boards, views and automations too.search_* calls when one filter list would do — pass every name, folder, or formula pattern in one call instead of one call per value.tool:semantic_search with full sentences — the embedding model works best on 2–4 word phrases.tool:semantic_search topic entry.kind when you clearly know the block type — wastes ranking capacity on irrelevant types.show_details=true on broad scans — it does not slow the call down, but it shrinks the page from 100 blocks to 25 and floods the context. Scan compact first, then detail the blocks you care about.tool:get_metric_dependencies before deleting a metric.parent_folder_regex_search matches immediate parent only; name or topic is not folder membership. Inventory by full path first.What SKILL.md sets; muted values are Claude Code's defaults
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