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
- microsoft/ignite26-PREL40their own version, first seen Nov 22, 2026
- microsoft/fabric-apps-analytic-templatestheir own version, first seen Nov 16, 2026
- joelhooks/uncomplecttheir own version, first seen Nov 16, 2026
- microsoft/awesome-rayfintheir own version, first seen Nov 15, 2026
- microsoft/DataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilotstheir own version, first seen Nov 8, 2026
- microsoft/ValueLens-for-Microsoft-Copilottheir own version, first seen Oct 25, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- microsoft/rayfin★ 646same name
- microsoft/awesome-rayfin★ 116same name
- microsoft/ConsumptionCentral-for-Microsoft-Copilot★ 36same name
- microsoft/fabric-apps-analytic-templates★ 31same name
- microsoft/ValueLens-for-Microsoft-Copilot★ 23same name
- microsoft/AnalyticsHub-Dashboard★ 16same name
- microsoft/DataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilots★ 16same name
- microsoft/aitour27-LTG291-turn-your-data-into-production-apps-with-rayfin★ 3same name
- microsoft/frontiertour27-LTG291-turn-your-data-into-production-apps-with-rayfin★ 3same name
- microsoft/ignite26-PREL40★ 3same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- src/field-services-app/AGENTS.mdAGENTS.md
- template/field-services-app/AGENTS.mdAGENTS.md
- lab-instructionsSkill
- lab-vm-updateSkill
- app-deploymentSkill
- app-validationSkill
- dax-authoringSkill
- rayfin-connectorsSkill
- rayfin-functionsSkill
- rayfinSkill
- rayfin-storageSkill
- app-deploymentSkill
- app-validationSkill
- dax-authoringSkill
- query-designSkill
- rayfin-connectorsSkill
- rayfin-functionsSkill
- rayfinSkill
- rayfin-storageSkill
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
- Distinctive: line 16
Read rayfin-connectors before source setup and dax-authoring for DAX syntax/testing.
- Distinctive: line 23
Use stable source ordering for reproducible probes, with deterministic tie-breakers.
- Distinctive: line 25
Keep real query failures visible and prevent stale responses from replacing newer filter results.
- Distinctive: line 27
Before shipping, trace a representative displayed value to the exact executed input, source result, and presentation transform.
“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.
Files
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.
| Concern | Owner |
| Measures, grouping grain, time context, authoritative totals | Source/DAX |
| High-cardinality filters and payload bounds | Source query |
| Merging verified result sets, labels, display order | TypeScript |
| Number/date/currency formatting, colors, layout | Existing 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,UNIONtotals 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.
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
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.

