agentleFS
90le90le/microsoft-excel-bi-agent/skills/office-environment-diagnostics/SKILL.md

office-environment-diagnostics

Skill2 starsChanged 5 months agoMITView on GitHub

Use when checking whether a platform, Office version, machine, or recipient supports Excel COM, VBA, Power Query, Data Model, PDF export, ACE/OLEDB, MSOLAP, ADOMD, offline, Mac, Windows, Linux, or web execution.

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 3 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use three evidence levels:

    line 21
  2. Very specific:

    Run tools/probe_excel_capabilities.ps1 -OutJson <path> -Profile inventory for non-Excel inventory evidence.

    line 30
  3. Very specific:

    Use -Profile runtime only when generated-workbook Excel runtime smoke is intended.

    line 31
  4. Very specific:

    Add one or more --require-capability <id> arguments only for capabilities the requested operation actually requires.

    line 33
  5. Very specific:

    Run tools/probe_excel_bi_providers.ps1 on Windows.

    line 36
  6. Very specific:

    Add -RunExcelComSmoke when Excel automation must be proven.

    line 37
  7. Very specific:

    Add -RunAdoWorkbookSmoke when ACE/OLEDB workbook SQL must be proven.

    line 38
  8. Very specific:

    Run tools/build_provider_environment_report.py against the probe JSON.

    line 42
  9. Very specific:

    Use --baseline-json and --fail-on-drift when comparing machines or checking provider drift.

    line 43
  10. Very specific:

    Use tools/create_provider_environment_fixture.py only to test report logic without live Office.

    line 44
  11. Distinctive:

    When runtime probing is unavailable, use captured probe evidence for its source environment and mark target-host behavior unknown until …

    line 56
  12. Distinctive:

    Do not claim missing providers are package failures without separating environment capability from workbook defects.

    line 70
  13. Very specific:

    Read references/environment-decision-tree.md when diagnosing Excel COM, provider, bitness, Trust Center, or refresh-readiness failures.

    line 74

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

Office Environment Diagnostics

Core Rule

Diagnose the machine before blaming the workbook. Capture provider and runtime facts, then decide which workbook operations can be validated on the current system.

Environment And Evidence Contract

Record two environments separately:

  • Execution environment: where the agent, scripts, and probes run.
  • Target environment: where the workbook will be authored, automated, consumed, or delivered.

A captured probe is evidence about its execution environment only. Do not transfer its conclusions to a different target environment without matching platform, Office version, bitness, providers, and policy.

Use three evidence levels:

  • Structural evidence: cross-platform package, OpenXML, formula, and source checks. This cannot prove desktop Excel behavior.
  • Runtime capability evidence: local registration, COM activation, object-model access, and generated-fixture smoke tests.
  • Workbook behavior evidence: workbook-specific calculation, refresh, VBA, Data Model, endpoint, and rendered-output validation in the target host.

Workflow

  1. Probe compatibility capabilities
    • Run tools/probe_excel_capabilities.ps1 -OutJson <path> -Profile inventory for non-Excel inventory evidence.
    • Use -Profile runtime only when generated-workbook Excel runtime smoke is intended.
    • Build the decision report with tools/build_excel_compatibility_report.py --probe-json <path>.
    • Add one or more --require-capability <id> arguments only for capabilities the requested operation actually requires.
  2. Preserve provider detail when needed
    • Run tools/probe_excel_bi_providers.ps1 on Windows.
    • Add -RunExcelComSmoke when Excel automation must be proven.
    • Add -RunAdoWorkbookSmoke when ACE/OLEDB workbook SQL must be proven.
    • From Git Bash, use tools/invoke_excel_bi_com.sh provider-probe.
  3. Build a reviewer-facing provider report
    • Run tools/build_provider_environment_report.py against the probe JSON.
    • Use --baseline-json and --fail-on-drift when comparing machines or checking provider drift.
    • Use tools/create_provider_environment_fixture.py only to test report logic without live Office.
  4. Validate specialized endpoints
    • For ADO workbook SQL, run tools/test_excel_ado_sql_access.ps1.
    • For ADOMD COM activation, run tools/test_excel_adomd_query.ps1 -ProbeOnly.
    • For a real cube/model endpoint, require an explicit connection string and MDX query.
  5. State platform fallbacks
    • Windows desktop Excel can validate Excel COM, VBA, Power Query refresh, Data Model, and CUBE recalculation.
    • macOS and Excel for web are target hosts with different automation surfaces; do not substitute Windows COM evidence for them.
    • Linux and third-party spreadsheet tools can run structural OpenXML and source checks, but cannot prove desktop Excel runtime behavior.
    • Git Bash on Windows is a shell wrapper path; it still depends on Windows Excel and providers.
    • When runtime probing is unavailable, use captured probe evidence for its source environment and mark target-host behavior unknown until validated there.

Required Evidence

  • Probe command and result path.
  • Excel/Office bitness when available.
  • Provider availability and smoke status.
  • Explicit list of operations that are safe to run on the current machine.
  • Explicit execution environment, target environment, and evidence level for every compatibility conclusion.

Boundaries

  • A provider probe does not prove a customer workbook's business logic.
  • A synthetic provider fixture proves report behavior only, not local Office readiness.
  • Do not claim missing providers are package failures without separating environment capability from workbook defects.

References

  • Read references/environment-decision-tree.md when diagnosing Excel COM, provider, bitness, Trust Center, or refresh-readiness failures.

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.