agentleFS
kpbraykpbray/power-bi-agent-skills/.github/skills/pbip-project/SKILL.md

pbip-project

Skill9 starsChanged 10 months agoMITView on GitHub

Creates and manages Power BI Desktop Project (PBIP) structure. Use when starting new Power BI projects, setting up folder structure, or configuring project files.

The file

Show its rules and text

We split this skill into the rules it gives an agent

24 rules. About 0 are common, 11 are distinctive, and 13 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All text files MUST be UTF-8 without BOM

    line 140
  2. Distinctive:

    Use LF (Unix-style) line endings for cross-platform compatibility

    line 145
  3. Distinctive:

    Always create files with UTF-8 encoding (no BOM)

    line 201
  4. Very specific:

    Always include compatibilityLevel in database.tmdl

    line 202
  5. Very specific:

    Always set discourageImplicitMeasures: true in model.tmdl

    line 203
  6. Very specific:

    Create .gitignore to exclude local settings

    line 204
  7. Distinctive:

    Use relative paths in pointer files

    line 205
  8. Very specific:

    Never modify .pbi/localSettings.json - this is user-specific

    line 208
  9. Very specific:

    Never commit cache.abf files

    line 209
  10. Distinctive:

    Never hardcode absolute file paths

    line 210
  11. Distinctive:

    Never include credentials in source files

    line 211
  12. Distinctive:

    After creating the project structure:

    line 215
  13. Very specific:

    Add tables: - Use the semantic-model skill to add tables and relationships

    line 217
  14. Very specific:

    Add measures: - Use the dax skill to create measures

    line 218
  15. Very specific:

    Create visuals: - Use the report-visuals skill to build reports

    line 219
  16. Very specific:

    Validate: - Use the best-practices skill to check quality

    line 220
  17. Very specific:

    Verify the path in definition.pbir points to the correct semantic model folder

    line 232
  18. Very specific:

    Ensure definition.pbism exists in the semantic model folder

    line 233
  19. Distinctive:

    Check for proper indentation (tabs for TMDL)

    line 236
  20. Distinctive:

    Verify quotes match the expected style (single quotes for identifiers)

    line 237
  21. Distinctive:

    Ensure compatibility level is supported

    line 238
  22. Very specific:

    Check that report.json has valid JSON syntax

    line 241
  23. Distinctive:

    Verify the schema reference is correct

    line 242
  24. Very specific:

    Ensure page folders contain valid page.json files

    line 243

≈ “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

PBIP Project Skill

This skill helps create and manage Power BI Desktop Project (PBIP) structure for source control-friendly Power BI development.

When to Use This Skill

  • Starting a new Power BI project from scratch
  • Converting an existing concept into a PBIP structure
  • Setting up the folder structure for semantic models and reports
  • Creating pointer files (.pbip, .pbism, .pbir)
  • Configuring project-level settings

PBIP Project Structure

A complete PBIP project has this structure:

<ProjectName>.pbip                    # Project pointer file
├── <ProjectName>.SemanticModel/      # Semantic model folder
│   ├── definition.pbism              # Semantic model pointer
│   ├── model.bim                     # Model metadata (auto-generated)
│   └── definition/                   # TMDL files
│       ├── database.tmdl
│       ├── model.tmdl
│       ├── relationships.tmdl
│       ├── tables/
│       │   └── <TableName>.tmdl
│       └── expressions.tmdl
├── <ProjectName>.Report/             # Report folder
│   ├── definition.pbir               # Report pointer
│   ├── report.json                   # Report configuration
│   └── definition/                   # Report definition files
│       ├── pages/
│       │   └── <PageId>/
│       │       └── page.json
│       └── ...
└── .pbi/                             # Local settings (gitignored)
    └── localSettings.json

Creating a New PBIP Project

Step 1: Create the Project Pointer File

Create <ProjectName>.pbip:

{
  "version": "1.0",
  "artifacts": [
    {
      "report": {
        "path": "<ProjectName>.Report"
      }
    }
  ],
  "settings": {
    "enableAutoRecovery": true
  }
}

Step 2: Create the Semantic Model Folder

Create <ProjectName>.SemanticModel/definition.pbism:

{
  "version": "1.0",
  "datasetReference": {
    "byPath": null,
    "byConnection": null
  }
}

Step 3: Create Core TMDL Files

Create <ProjectName>.SemanticModel/definition/database.tmdl:

database '<ProjectName>'
	compatibilityLevel: 1567

Create <ProjectName>.SemanticModel/definition/model.tmdl:

model Model
	culture: en-US
	defaultPowerBIDataSourceVersion: powerBI_V3
	discourageImplicitMeasures: true
	sourceQueryCulture: en-US

Step 4: Create the Report Folder

Create <ProjectName>.Report/definition.pbir:

{
  "version": "1.0",
  "datasetReference": {
    "byPath": {
      "path": "../<ProjectName>.SemanticModel"
    },
    "byConnection": null
  }
}

Create <ProjectName>.Report/report.json:

{
  "$schema": "https://developer.microsoft.com/json-schemas/fabric/item/report/definition/report/1.0.0/schema.json",
  "themeCollection": {
    "baseTheme": {
      "name": "CY24SU06",
      "reportVersionAtImport": "5.55",
      "type": "SharedResources"
    }
  },
  "config": {
    "version": 5,
    "defaultDrillFilterOtherVisuals": true
  },
  "objects": {}
}

File Format Requirements

Encoding

  • All text files MUST be UTF-8 without BOM
  • JSON files use 2-space indentation
  • TMDL files use tab indentation

Line Endings

  • Use LF (Unix-style) line endings for cross-platform compatibility
  • Configure .gitattributes for consistent line endings:
*.tmdl text eol=lf
*.json text eol=lf
*.pbip text eol=lf
*.pbism text eol=lf
*.pbir text eol=lf

Git Configuration

Recommended .gitignore

# Local Power BI settings (contains user-specific paths)
.pbi/
**/localSettings.json

# Cache files
*.abf
**/cache.abf

# Temporary files
*.tmp
~$*

Recommended .gitattributes

# Ensure consistent line endings
*.tmdl text eol=lf
*.json text eol=lf
*.pbip text eol=lf
*.pbism text eol=lf
*.pbir text eol=lf

# Treat binary files appropriately
*.abf binary
*.pbix binary

Naming Conventions

ItemConventionExample
Project namePascalCaseSalesAnalytics
Folder namesMatch project nameSalesAnalytics.SemanticModel
TMDL fileslowercase with hyphensdate-table.tmdl
Page foldersGUID formatReportSection1a2b3c4d

Boundaries and Constraints

DO

  • Always create files with UTF-8 encoding (no BOM)
  • Always include compatibilityLevel in database.tmdl
  • Always set discourageImplicitMeasures: true in model.tmdl
  • Create .gitignore to exclude local settings
  • Use relative paths in pointer files

DO NOT

  • Never modify .pbi/localSettings.json - this is user-specific
  • Never commit cache.abf files
  • Never hardcode absolute file paths
  • Never include credentials in source files

Workflow Integration

After creating the project structure:

  1. Add tables - Use the semantic-model skill to add tables and relationships
  2. Add measures - Use the dax skill to create measures
  3. Create visuals - Use the report-visuals skill to build reports
  4. Validate - Use the best-practices skill to check quality

Opening in Power BI Desktop

  1. Open Power BI Desktop
  2. File > Open report
  3. Select the .pbip file
  4. Power BI will load the project from source files

Common Issues

"Cannot find semantic model"

  • Verify the path in definition.pbir points to the correct semantic model folder
  • Ensure definition.pbism exists in the semantic model folder

"Invalid TMDL syntax"

  • Check for proper indentation (tabs for TMDL)
  • Verify quotes match the expected style (single quotes for identifiers)
  • Ensure compatibility level is supported

"Report won't load"

  • Check that report.json has valid JSON syntax
  • Verify the schema reference is correct
  • Ensure page folders contain valid page.json files

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.