/reporting-and-dashboards:reporting-access-control-embedded-and-testingfrom reporting-and-dashboards
Covers access control (row-level, column-level, multi-tenant), embedded analytics architecture and licensing, and testing analytics including assertions, reconciliation, and metric regression detection.
Ships in reporting-and-dashboards. 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.
Part 4 of 5 of the Reporting and Dashboards reference (plugin
reporting-and-dashboards), covering §12–§14. Sibling skills:reporting-architecture-modelling-and-aggregation-traps(§0–§4),reporting-semantic-layer-time-and-performance(§5–§8),reporting-dashboard-design-charts-and-alerting(§9–§11),reporting-reference(§15–§20). Section numbers are shared across the set; a reference written as §N →skillpoints into that sibling skill.Currency: Dimensional modelling and the aggregation traps are permanent. Two areas moved. See §16 →
reporting-referencefor the semantic layer market and text-to-SQL.
Scope. Written for engineers who have been handed "we need a dashboard" and discovered it is a harder problem than it looked. ⚠️ §2 →
reporting-architecture-modelling-and-aggregation-trapsand §3 →reporting-architecture-modelling-and-aggregation-trapsare where the silent wrong numbers come from, and they are the reason this document exists.⚠️ GOTCHA boxes mark things that produce confidently wrong numbers rather than errors.
The three ideas that matter most:
- ⚠️ The failure mode is a plausible wrong number, not an exception. A join that double-counts, an average of averages, a timezone boundary — all of these return successfully and look reasonable. Analytics has almost no natural error signal (§2 →
reporting-architecture-modelling-and-aggregation-traps, §3 →reporting-architecture-modelling-and-aggregation-traps).- ⚠️ A metric definition is an interface, and undefined interfaces diverge. If "active user" lives in six dashboards it has six definitions, and they will disagree in a meeting. This is the entire argument for a semantic layer (§5 →
reporting-semantic-layer-time-and-performance, §16.1 →reporting-reference).- ⚠️ Most dashboards are never looked at, and that is a design failure, not a user failure. A dashboard nobody opens cost real money and produces nothing. Build for a decision, not for coverage (§9 →
reporting-dashboard-design-charts-and-alerting).
Row-level security (⚠️ a manager sees only their region — and the rule must be enforced in the semantic or database layer, not in a dashboard filter, which is trivially bypassed), column-level masking for PII, object-level permissions. ⚠️ The aggregation leak is the subtle one: someone with no row access to salaries but access to averages can often infer individual values from a small enough group. Minimum-group-size thresholds exist for this reason. ⚠️ And embedded analytics multiplies the risk — a tenant filter applied client-side is not access control (§13).
⚠️ Multi-tenancy is the whole problem. A tenant filter must be enforced server-side
from a signed token, never from a client-supplied parameter.
Approaches: iframe with a signed URL (simple, limited styling), SDK/JS
embedding, ⚠️ or headless/API — query a semantic layer and render in your own UI,
which gives full control and the most work (§5 → reporting-semantic-layer-time-and-performance, §16.1 → reporting-reference).
⚠️ Practical concerns: per-tenant performance isolation (⚠️ one large tenant should
not degrade everyone), white-labelling, and caching correctly per tenant — a cache key
that omits tenant identity is a data breach.
⚠️ Analytics code is under-tested relative to its blast radius, and the reason is that
the failures are silent (§0 → reporting-architecture-modelling-and-aggregation-traps).
SCHEMA/CONTRACT ⚠️ upstream column dropped or retyped — catch at the boundary
FRESHNESS has data arrived?
VOLUME ⚠️ row count anomalies — a 90% drop is usually a pipeline break
UNIQUENESS ⚠️ the primary key really is unique — this catches §3.1 at the source
NOT NULL / accepted values / referential integrity
RECONCILIATION ⚠️ does the total match the source system? THE most valuable test
BUSINESS ASSERTIONS revenue non-negative, percentages in [0,100], grain preserved
⚠️ Reconciliation against the system of record deserves emphasis. It's the only test that catches modelling errors as opposed to data errors — a fan-out bug passes every schema and null test cheerfully.
⚠️ Practices worth adopting: dbt tests or equivalent in CI, PR review of metric definitions like any other code, staging environments with production-shaped data, lineage so you know what breaks when a column changes, and version-controlled dashboards where the tool allows it.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/reporting-architecture-modelling-and-aggregation-trapsUse when the numbers on a dashboard are wrong or at risk of being wrong: the analytics architecture and where each layer's responsibility sits, dimensional modelling with facts, dimensions and grain, the aggregation traps — fan-out, the chasm trap, additivity, and why distinct counts do not decompose — and the metric definition pitfalls that make two dashboards disagree. Includes the router for the whole reporting-and-dashboards reference./reporting-dashboard-design-charts-and-alertingUse when designing what people actually look at: dashboard design including audience, hierarchy, defaults and the failure modes of the everything-dashboard, chart selection matched to the question being asked, and alerting including threshold design, noise, and why most alerting gets ignored./reporting-referenceUse when correcting an analytics misconception, checking what moved in the semantic layer market or in natural-language querying where the benchmarks and the demos disagree (verified August 2026), looking up a threshold or performance figure, finding the canon, or needing a picker and a pre-ship checklist. Companion to the other reporting-and-dashboards skills.npx claudepluginhub the-vibey-project/vibey --plugin reporting-and-dashboards