malloy-scope

Classifies discovered tables and proposes an analytical scope for Malloy data modeling.

9|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/mathisdrn/orca --skill malloy-scope-mathisdrn
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: malloy-scope
Source: https://github.com/mathisdrn/orca/tree/main/.agents/skills/malloy-scope
Command: npx skills add https://github.com/mathisdrn/orca --skill malloy-scope-mathisdrn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? After inspecting a Malloy package's model and data, analysts need a structured way to decide which tables to model and what analytical questions to target. This Skill turns raw discovery findings into a clear, opinionated scope proposal the user can confirm before modeling begins. ## Core Features & Use Cases - Table Classification: Categorizes discovered tables as Fact, Dimension, Bridge, or Operational with row counts, column counts, and key relationships. - Analytical Focus Recommendation: Identifies 2-3 analytical domains, states what kind of model the data supports, and names what the model cannot answer. - Scope Options with Skip List: Presents lettered scope options for easy selection and flags tables that should not be modeled, with reasons. - Use Case: After running get_context and execute_query against a commerce dataset, present options like Order Analysis, Full Commerce, or Customer Focus, record the confirmed scope in modeling-notes.md, and hand off to the Malloy modeling workflow. ## Quick Start Inspect my Malloy package's model and data, then propose an analytical scope with table classifications and recommended focus options.

Frequently Asked Questions about malloy-scope

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I propose an analytical scope for a Malloy model?▼

Inspect the package with get_context to list sources and fields, then run execute_query for row counts and data-quality checks. Classify tables by role, identify 2-3 analytical domains, and present lettered scope options with one clear recommendation for the user to select.

How to classify tables as fact or dimension in data modeling?▼

Facts are events or transactions you measure, such as orders or payments. Dimensions are entities you slice by, such as customers or products. Bridge tables resolve many-to-many links, and operational tables like audit logs or staging tables should be excluded from modeling.

Which tables should be excluded from a Malloy model?▼

Skip operational and ETL tables such as audit logs, staging tables where a production equivalent exists, and pre-aggregated summary tables that should be computed fresh in Malloy. Record each skipped table with its reason in modeling-notes.md.

When should scope proposal happen in a Malloy modeling workflow?▼

Scope proposal happens after inspecting the model and underlying data but before writing Malloy sources, dimensions, and measures. It ensures the user confirms which tables and analytical questions the model targets before modeling work begins.

What are the limitations of entity or snapshot data models?▼

Entity or snapshot datasets with cumulative counters cannot support period-over-period analysis, unlike event-based fact models with trends over time. The scope proposal should state the model kind and name concrete consequences, such as missing date fields ruling out calendar analysis.