agentleFS
santoshkanthetysantoshkanthety/powerbi-agent/skills/powerbi-doctor/SKILL.md

powerbi-doctor

Skill3 starsChanged 8 months agoMITView on GitHub

Diagnose powerbi-agent environment issues — Python/pythonnet install, Power BI Desktop detection, SSAS port access, Fabric auth state. Invoke when the user reports setup issues, connection failures, import errors, or asks "why isn't this working". Use when the user mentions: Activate when the user reports connection problems, setup issues, import errors (pythonnet, clr, pyadomd), "command not found", or generally asks why powerbi-agent isn't working..

  • Installs packages

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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. Very specific:

    If pbi-agent doctor passes but commands still fail, collect:

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 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

Skill: Diagnose Environment Issues

Trigger

Activate when the user reports connection problems, setup issues, import errors (pythonnet, clr, pyadomd), "command not found", or generally asks why powerbi-agent isn't working.

Commands

# Run the full diagnostic
pbi-agent doctor

What doctor Checks

  • Python version and interpreter path
  • pythonnet / clr availability (required for Desktop connection)
  • Power BI Desktop installation and process detection
  • SSAS port accessibility for detected instances
  • Fabric auth state (cached token presence / validity)

Recovery Playbook by Symptom

SymptomFix
pbi-agent: command not foundReinstall: pipx install powerbi-agent or pip install powerbi-agent
ImportError: clr / pythonnetpip install powerbi-agent[desktop] (installs pythonnet)
No Power BI Desktop instances foundOpen Power BI Desktop with a .pbix file loaded, then retry
Port X in use / connection refusedClose other AS clients; use pbi-agent connect --port <port> to target a specific instance
Not authenticated (Fabric commands)Run pbi-agent fabric login
Token expiredRe-run pbi-agent fabric login

When to Escalate

If pbi-agent doctor passes but commands still fail, collect:

  1. Output of pbi-agent doctor
  2. Output of pbi-agent --version
  3. The full failing command and its error
  4. OS version and Power BI Desktop version

Then file an issue at https://github.com/santoshkanthety/powerbi-agent/issues.

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.