agentleFS
MicrosoftKnown publishermicrosoft/ignite26-LAB690/src/field-services-app/.agents/skills/query-design/SKILL.md

query-design

Skill1 starsChanged 20 days agoMITView on GitHub

Use to separate source aggregation and filtering from typed presentation, including semantic-model grains, totals, and bounded results.

13 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read rayfin-connectors before source setup and dax-authoring for DAX syntax/testing.

    line 16
  2. Distinctive:

    Use stable source ordering for reproducible probes, with deterministic tie-breakers.

    line 23
  3. Distinctive:

    Keep real query failures visible and prevent stale responses from replacing newer filter results.

    line 25
  4. Distinctive:

    Before shipping, trace a representative displayed value to the exact executed input, source result, and presentation transform.

    line 27

“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “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

Query design

Source queries compute meaning; TypeScript shapes verified results; existing React/Recharts components render them. This guidance does not require another visual library or prebuilt hooks.

ConcernOwner
Measures, grouping grain, time context, authoritative totalsSource/DAX
High-cardinality filters and payload boundsSource query
Merging verified result sets, labels, display orderTypeScript
Number/date/currency formatting, colors, layoutExisting UI components

Read rayfin-connectors before source setup and dax-authoring for DAX syntax/testing.

  • Fetch the grain the display needs, not lower-grain rows to aggregate in the browser. Keep detail and summary queries separate; align their filters and measure definitions.
  • Compute non-additive totals (ratios, averages, distinct counts) at the source. Never sum them or infer totals from capped/paged detail rows.
  • Preserve typed numeric values and BLANKs. Format at render time; do not use DAX FORMAT, UNION totals into detail, or create decorative strings in source results.
  • Apply high-cardinality filters at the source. Client filtering is appropriate only for a complete, explicitly bounded low-cardinality dataset.
  • Cross-filtering narrows results. Cross-highlighting needs a separately aggregated subset at the baseline grain; filtering aggregated baseline rows cannot recreate that subset.
  • Use stable source ordering for reproducible probes, with deterministic tie-breakers. Presentation-only sort/label changes should not rewrite business calculations.
  • Require a positive semantic-model row cap and the N+1 visible-over-limit check described in DAX guidance. A truncated result is not a complete dashboard.
  • Keep real query failures visible and prevent stale responses from replacing newer filter results. Never convert permission or configuration failure into an empty-success state.

Before shipping, trace a representative displayed value to the exact executed input, source result, and presentation transform. Check units, percent scales, date boundaries, null handling, empty results, over-limit behavior, and related-query consistency. Build success alone cannot establish those facts.

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.