A Claude Code skill for your team's DAX conventions

A Claude Code skill teaches Claude one job and loads only when a request matches. Write one for your DAX rules (naming, VAR and DIVIDE, formatting) and every measure Claude writes follows them. The folder, the file and a full example.

Short answer: create .claude/skills/dax-conventions/SKILL.md in your project, with a name, a description that says when to use it ("Use when writing or reviewing DAX measures"), and your rules below: naming, variables, DIVIDE, formatting, comments. Claude reads only the description up front and loads the rules when you ask for a measure, so they cost nothing the rest of the time.

Every team has DAX habits: measures named in Title Case, DIVIDE instead of /, a VAR for anything used twice, display folders by subject. An AI that does not know them writes measures that work and still need rewriting. A skill fixes that once.

Nothing loads from YouTube until you press play. Then Google receives your IP address and may set its own storage. Narrated with an AI-generated voice. Privacy

Where does the skill live?

  1. .claude/skills/the project's skills folder, shared through Git
  2. dax-conventions/one folder per skill
  3. SKILL.mdname and description at the top, the rules below
A skill in a project

Put it in ~/.claude/skills/ instead to use it in every project on your machine.

What does the file look like?

---
name: dax-conventions
description: Use when writing, reviewing or renaming DAX measures in this Power BI project.
---

# Our DAX conventions

- Measure names in Title Case with units: "Revenue", "Margin %", "Orders (count)".
- Use DIVIDE for every division, never "/".
- Use VAR ... RETURN for any expression used more than once.
- Time intelligence uses the 'Date' table, never the fact table's date column.
- Format: one function argument per line when there are more than two.
- Add a one-line comment above each measure: what it answers.
- After writing, list every column and measure the new measure depends on.

Why does the description matter so much?

Claude decides whether to load a skill from its description alone. "DAX rules" might never match a request like "add a margin measure"; "Use when writing, reviewing or renaming DAX measures" matches every one of them. Write the description as when to use it, not what it is.

How do you check it works?

Ask for a measure without mentioning the skill: "Add a measure for revenue last year". If the answer uses DIVIDE, a VAR and your naming, the skill loaded. You can also run it directly with /dax-conventions.

Where can you check this?

Where do you start?

Base the rules on variables in DAX and DIVIDE. For a skill that checks SQL instead, see a Claude Code skill that checks SQL.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.