/devils-analyst:route-questionfrom devils-analyst
Inventories reachable data sources and rewrites marketing/analytics questions into precise, answerable requests before any analysis begins.
Ships in devils-analyst. 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.
Read when SKILL.md points to them.
Most wrong answers start before the first query: the question asked for something the data cannot say, or the request to the platform asked for the wrong thing. Route first, then analyse.
House rules are what this team knows about its own data that no shipped check can know: which revenue is the revenue of record, which campaigns are brand, which threshold their volume needs, which column lies. Read them before the inventory, because they change what counts as a source and which defaults apply.
Find them. Look for a house-rules/ folder at the root of the project
or workspace you are working in. Read every .md file in it except
README.md, TEMPLATE.md and anything under examples/ (those are
fictional and never apply). In a chat without files, use rules the user
pasted or uploaded, or that sit in the project's knowledge. If there are
none, say nothing about them and go on.
List them. Keep one line per rule: id, area, the check, the red flag
threshold and, if it has one, the shipped check it overrides
(overrides:).
Apply them by precedence, highest first:
A house rule replaces the default it names or contradicts: its definition, threshold or default wins. A house rule cannot make arithmetic true that is false: if one seems to require summing users or averaging rates, report the house rule's number, show the core-rule number next to it, and say why they differ.
Cite them. When a house rule changed a number, a default or a finding, name its id in the scope line or the finding ("per HR-003, revenue is finance net revenue"). A rule older than its review date, or one whose column or setting no longer exists, is flagged to its owner, not silently applied.
metric-definitions reads the same rules; pass the list on with the request.
List the sources you can actually read right now, with their scope:
| Source kind | How to tell | Note |
|---|---|---|
| Connector or MCP tools | tool names and descriptions (e.g. a GA4, Google Ads, Meta, Search Console, email-platform or CRM tool) | note each tool's account(s), dimensions, metrics and date range limits |
| Power BI semantic model | a Power BI or Fabric MCP connector (Microsoft's Power BI MCP servers, Fabric tools) that lists models or runs DAX; or a PBIP/TMDL folder | takes precedence over everything below: see section 1a |
| Database or warehouse | a SQL tool or connection; list schemas and tables | read table names and columns before writing SQL |
| Files | uploaded CSV/XLSX exports | read headers, row grain and date range |
| Nothing | none of the above | go to section 4 (onboarding) |
For every source, record: platform, account(s), date range present, freshness (latest date with data), grain, and any column that changes meaning by option (conversion action, attribution window, report level, search type, unique vs total).
A semantic model is the team's statement of what each number means. It takes
precedence over raw sources, but it is not trusted blindly: models carry the
same traps as ad-hoc queries, only better hidden. Switch to the
power-bi-definitions skill, which carries the full Power BI workflow, and:
metric-definitions): which catalog metric each one claims to be.DIVIDE(SUM, SUM), not AVERAGE/AVERAGEX of a rate
or of per-row averages (average view duration, engagement rate, CTR);conversions vs all_conversions) is filtered to
one before any sum;CALCULATE filters that silently replace a slicer, BLANK treated as
zero, ambiguous or bidirectional relationships, a missing or inactive
date relationship, many-to-many joins that duplicate rows.A question the model has no measure for is answered from raw sources only if the user agrees, labelled as outside the model, with the DAX to add it.
| Category | Typical words | Needs |
|---|---|---|
| Paid search | search ads, Google Ads, Bing, keywords, CPC, impression share, quality score | search campaigns only; display, video, Performance Max and shopping belong to Spend |
| Paid social | Meta, Facebook ads, Instagram ads, TikTok, LinkedIn ads, reach, frequency | one attribution window |
| Spend (cross-platform) | total spend, budget, pacing, blended CPA, MER | one currency, one report level, media vs fees |
| Organic social | posts, followers, engagement rate, page | post vs page level; snapshots vs daily changes |
| Video | YouTube, views, watch time, retention, subscribers | Shorts vs long-form |
| Email campaigns | sends, opens, clicks, CTOR, unsubscribes | delivered as the denominator; unique vs total |
| Email lists | list size, growth, churn | a starting count plus daily changes |
| Web analytics | GA4, sessions, users, conversion rate, landing pages, channels | users are not additive; one key event |
| SEO | Search Console, rankings, organic clicks, queries, pages | query vs query x page; web search type |
| Page speed | Core Web Vitals, LCP, INP, Lighthouse | field vs lab; traffic weighting |
| Competition | competitors, auction insights, keyword volume, share of voice | overlap, not market share |
| CRM / pipeline | leads, MQL, SQL, opportunities, win rate | lifecycle definitions |
| E-commerce / backend | orders, revenue, customers, AOV, refunds | the revenue of record |
| Subscriptions | trials, subscribers, churn, retention, LTV, cohorts | observed cohorts only |
A question can touch several categories ("CAC" = Spend + backend; "is brand search worth it" = Paid search + SEO + backend). Each category needs its own source; a category with no source cannot be answered, only described.
Before any query, write the request out and show it in one line:
Answering: Google Ads, account "Store EU", search campaigns, purchases (conversion action "purchase", primary conversions), 1-30 Sep 2026 vs 1-31 Aug 2026, by campaign, campaign-level rows. Data through 30 Sep.
Fill every slot. When the user did not say, pick the default below and state it:
| Slot | Default |
|---|---|
| Date window | the last complete month (exclude today; exclude the last 3 days for Search Console) |
| Comparison | the previous equal period |
| Account | ask if several exist and the question does not imply one; otherwise all, labelled as combined |
| Conversion action | the purchase or primary lead action; never "all actions" |
| Attribution window | the platform's account setting if known; otherwise 7-day click, stated |
| Report level | one level only (campaign for spend; account for reach) |
| Grain | the grain of the answer: monthly users are queried monthly, not summed from days |
| Search type | web |
| Currency | the business's reporting currency, converted with stated rates |
Per-connector tools, parameters, defaults, row limits and traps (ad platforms, GA4, Search Console, CRMs, email, e-commerce, warehouses, Power BI and Fabric) are in references/connectors.md.
When the connector lets you choose these, choose them in the request; do not pull everything and fix it afterwards.
Write the question's data model before the first query, in the shape a semantic model would take. It is short, and it decides what every query is allowed to do.
facts:
- name: ads_campaign_day # one source, one grain
grain: one row per campaign per day
source: Google Ads connector, account "Store EU"
additive: [cost, clicks, impressions]
non_additive: [search_impression_share] # never summed; weight by eligible impressions
selectors: {report_level: campaign, conversion_action: purchase, conversions_column: conversions}
- name: shop_orders
grain: one row per order
source: Shopify export
additive: [net_revenue]
keys: [order_date, customer_id]
dimensions:
- {name: date, grain: day, shared_by: [ads_campaign_day, shop_orders]}
- {name: channel, shared_by: [ads_campaign_day, shop_orders], key_rule: lower-case, trimmed}
metrics:
- {name: CPA, formula: sum(cost) / sum(purchases), facts: [ads_campaign_day]}
- {name: MER, formula: sum(net_revenue) / sum(cost), across: date} # two facts: aggregate each, then divide
The rules the model enforces:
conversions vs all_conversions, attribution window, unique vs
total, report level, search type, lab vs field, currency, media vs fees.
An unset selector stops the query.When a database or warehouse is connected, the same model becomes SQL: one
CTE per fact at its grain, then joins on the shared dimensions. When the
source is a connector, the selectors become the request parameters. If the
team has a Power BI model, its tables, measures and toggles are the model:
use the power-bi-definitions skill instead of writing one.
| Outcome | When | What to do |
|---|---|---|
| Answer | every category the question needs has a source | proceed with metric-definitions, then the analysis skills |
| Answer partly | some categories have no source, or a metric's parts are in no fact of the model, or the window is not covered | answer what the data supports; list what is missing and what it would add ("CAC needs order data; spend alone gives cost per click") |
| Reframe | the question cannot be answered as asked, but a close one can ("which channel drives sales" without paths -> "which channel's last-click revenue rose") | propose the reframed question in one line and answer that, labelled |
| Onboard | no source at all, or none relevant | say what is connected, which categories it can answer, and which connection or export would answer the question |
| Decline the method | the question asks for something the data cannot support (a forecast from two months, causality from a correlation, LTV from one month of a cohort) | say why in one line and offer the nearest supported answer |
Check freshness: if the latest data is older than the window asked for, say so and use the latest complete period instead.
Pass the rewritten request (section 3), the model (section 4) and the house rules that apply (section 0) to the next skill, and repeat its scope line under the report or dashboard title, so every reader sees what the numbers cover.
Every move above has a challenger. Run the attack, settle it with the check, and act on a failure before moving on.
| Move | Adversary asks | Check that settles it | If it fails |
|---|---|---|---|
| Read house rules | "Did a house rule change a default, a definition or a threshold you then used anyway?" | each default in the scope line checked against the rule list | apply the rule and cite its id |
| Inventory sources | "Is there a source you did not look for (a Power BI model, a warehouse table, a second account)?" | list every tool, connection and file once more, with account and date range | add it; if it is a Power BI model, go to 1a |
| Map to categories | "Does the question need a category with no source (orders for CAC, spend for ROAS)?" | each metric's parts traced to a category with a source | answer partly and say what is missing |
| Rewrite the request | "Which slot did you fill by default without saying so?" | every slot in the scope line has a value and a reason | state the default, or ask |
| Model before query | "Can two facts meet row to row anywhere, or a non-additive column be summed?" | each metric's facts aggregate to a shared dimension first | restructure the model before querying |
| Decide the route | "Is this answer stronger than the data allows?" | each claim maps to a fact in the model | downgrade to answer-partly or reframe |
Score and probe before handing over. First the gate: every check in the table above passed; if one did not, fix it before scoring. Then score the draft 0-100 on four dimensions: clarity (unambiguous, easy to follow), relevance (answers the question asked, for this reader), depth (explains the why with numbers, not only the what) and insightfulness (says something the reader did not already know, and what to do about it). If any score is below 80, write the probe question that would raise it, answer it from the data, revise, and score again (two loops at most). The question and the decision belong to the person asking: when either is unclear, ask instead of assuming.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub c-kapsalis/devils-analyst --plugin devils-analyst16 skills in this plugin
/auditUse this skill when someone wants a whole marketing setup or account checked, not one report: "audit our Google Ads account", "audit my GA4 setup", "audit our tracking", "health check our email program", "what's broken in our setup", "where are we wasting money", "we just took over this account, what should we fix first", "is our Meta / Performance Max set up right", "check our UTMs", "audit our Search Console", "audit our CRM or lifecycle program", "check our Power BI model", "review this TMDL / semantic model", or an account, settings or model export with "what's wrong with it". It maps the setup, runs the checks for each area present (paid search, Performance Max, Meta, GA4 and UTMs, Search Console, email, CRM, revenue, experiments, attribution, dashboards, Power BI), estimates the money at stake, ranks findings Must fix, Should fix, Nice to have and ends "Fix N first". One report or deck: use review. Whether a single channel pays: use channel-audit./brand-healthUse this skill when the question is about the brand rather than one campaign: "is our brand getting stronger or weaker", "is our brand healthy", awareness, consideration or preference from a tracker or survey, brand search volume, direct traffic as a brand signal, share of voice or share of search, social mentions and sentiment, "are promotions hurting the brand", baseline sales, price premium or "can we raise prices", "should we cut brand ads and put it into performance", a flat brand score, NPS up but repeat purchase down, "should we launch [product] under our brand", line or category extension, sub-brand, repositioning, rebrand, "milk or kill this brand", brand valuation, and whether content is on-brand. It measures brand health from the data, separates short-term sales from long-term equity, checks per segment, and turns the result into a decision with a way to verify it.