agentleFS
malloydatamalloydata/publisher/skills/malloy/SKILL.md

malloy

Skill116 starsChanged 2 months agoMITView on GitHub

Index of all Malloy skills. Use when user asks "malloy help", "what malloy skills are available", "how do I use malloy", or needs guidance on which Malloy skill to use.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every skill in this deployment, by what it is for.

    line 15
  2. Very specific:

    Call search_malloy_docs with your question.

    line 103

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- Copyright (c) Credible Data Inc. SPDX-License-Identifier: MIT -->

Malloy Skills Index

First-Time Setup

No .malloy files in workspace? Say "model my data" and the agent will orchestrate the full modeling workflow automatically. Make sure the Malloy Publisher MCP tools are configured first.

Skill Reference

Every skill in this deployment, by what it is for. Start at a driver; it routes to the rest.

This table is a catalogue of what exists, not of what is loaded. A host that installs one group takes that group's skills alone: analysis, modeling, or eval. A row naming a skill from a group you did not install says that the skill exists. It is not an instruction to load it, and it is written as a plain name rather than a skill: reference to say so.

Start here

SkillUse when...
skill:malloy-getting-startedFirst contact with a Publisher: confirming the tools, finding what data exists, running a first grounded query
skill:malloy-modelingBuilding a semantic model from scratch (the modeling workflow driver)
skill:malloy-analysisAnswering a data question or exploring data (the analysis workflow driver)

Modeling phases (driven by skill:malloy-modeling)

SkillUse when...
skill:malloy-discoverSilent data discovery: tables, schemas, distributions, prior art
skill:malloy-scopePresenting findings and proposing an analytical focus
skill:malloy-defineProposing the source plan and field definitions
skill:malloy-modelWriting base and joined source .malloy files, review, curate (includes normalized schema support)
skill:malloy-documentAdding #(doc) tags for discoverability
skill:malloy-lookml-reviewPrior-art adapter for LookML (field extraction, derived tables, visibility, docs)
skill:malloy-powerbi-reviewPrior-art adapter for Power BI (TMDL tables and relationships, DAX measure classification, RLS roles, docs)

Analysis and presentation

SkillUse when...
skill:malloy-model-as-you-goAfter answering a question, writing down what it assumed: a #(doc)'d field in the model, an extend in the notebook, or a stated assumption plus snippet, depending on what the session can write
skill:malloy-analyzeOpen-ended exploration with no intent to keep anything: profiling, hypotheses, views
skill:malloy-chartsChart selection and renderer reference for Malloy visualizations
skill:malloy-notebooksBuilding Malloy notebooks (notebooks/<slug>.malloy; an existing .malloynb still reads)
skill:malloy-analysis-reportCombining validated queries into a notebook report or dashboard
skill:malloy-analysis-pitfallsChecking a query and its results before presenting an answer
skill:malloy-source-unreachableA source is missing from discovery, or a query was refused with a 404 or 403
malloy-notebook-chatThe chat is bound to a notebook or saved report; answer from its cells. Ships in analysis.
skill:malloy-phrase-detectionTurning a plain-English question into search targets for the context tool

Evaluating a model (driven by eval-loop). These ship in the eval group, which neither analysis nor modeling includes.

SkillUse when...
eval-loopRunning the loop: baseline, noise band, diagnose, one edit, gate, checkpoint
eval-answerScoring one answer against a verified golden, and what retrieval delivered
eval-diagnoseDeciding why a case failed and which artifact owns the fix
eval-improveThe smallest model edit for a diagnosed cluster, with probe receipts
eval-judgeScoring one attempt against its golden, and saying whether the golden itself is believed
eval-importTurning questions that arrived from outside into a set, before the first run against it
eval-reportTurning a finished run into something a person can open, and saying what it did and did not measure

Writing correct Malloy (read before writing, not after failing)

SkillUse when...
skill:malloy-queriesQuery and view syntax: dates, aggregates, join paths, filters
skill:malloy-gotchas-modelingBefore writing sources, dimensions, measures, joins
skill:malloy-gotchas-queriesBefore writing views, queries, notebooks
skill:malloy-gotchas-renderingBefore adding chart annotations or formatting tags
skill:malloy-debugFixing compile errors and interpreting diagnostics
skill:malloy-patternsFinding syntax/pattern docs: YoY, cohorts, percent-of-total, window functions
skill:malloy-reviewReviewing, auditing, or critiquing existing Malloy

Serving and operating a package

SkillUse when...
skill:malloy-publishMoving a finished model into a served package (local-to-served handoff)
skill:malloy-dashboardsBuilding a dashboard: a tagged .malloy file in a package's dashboards/ directory, with filter controls and drill-through
skill:malloy-data-app-designDeciding what a data app should be, before building it: audience, archetype, chart forms and depth
skill:malloy-html-data-appsBuilding an in-package HTML data app (a public/ directory the package serves)
skill:malloy-html-data-app-runtimeWriting the JavaScript that drives that app
skill:malloy-html-data-app-embeddingEmbedding a served page into a host application
skill:malloy-materializationPersisting an expensive source so queries read a pre-built table
skill:malloy-materialization-tuningTuning what to persist, and on what schedule, for cost and speed

Adapter pattern: Each prior art adapter (LookML, future dbt) follows the same structure: a coordinator SKILL.md plus reference files under reference/ dispatched by phase skills.

Workflows

Two top-level workflows orchestrate the phase and support skills above:

  • Model data from scratch: load skill:malloy-modeling. It drives the full pipeline (discover, scope, define, build, review, curate) and routes to the phase skills.
  • Answer a data question or explore: load skill:malloy-analysis. It drives exploratory analysis, views, and notebooks, using skill:malloy-analyze and skill:malloy-charts.

Publishing is out of scope for open-source Publisher v1. Self-hosters move a finished model into a served package via git and the host's publish path; see skill:malloy-publish.

Syntax Help

Call search_malloy_docs with your question. Use skill:malloy-patterns to discover available topics.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.