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.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- excel-ado-sql-data-accessSkill
- excel-bi-routerSkill
- excel-deliverable-publisherSkill
- excel-report-builderSkill
- excel-testing-fixturesSkill
- excel-vba-workbook-engineeringSkill
- excel-workbook-qa-auditorSkill
- mdx-cubevalue-extractionSkill
- office-environment-diagnosticsSkill
- power-bi-semantic-modelSkill
- power-pivot-dax-modelingSkill
- power-query-m-engineeringSkill
- excel-ado-sql-data-accessSkill
- excel-bi-routerSkill
- excel-deliverable-publisherSkill
- excel-report-builderSkill
- excel-testing-fixturesSkill
- excel-vba-workbook-engineeringSkill
- excel-workbook-qa-auditorSkill
- mdx-cubevalue-extractionSkill
- office-environment-diagnosticsSkill
- power-bi-semantic-modelSkill
- power-pivot-dax-modelingSkill
- power-query-m-engineeringSkill
- excel-ado-sql-data-accessSkill
- excel-bi-routerSkill
- excel-deliverable-publisherSkill
- excel-report-builderSkill
- excel-testing-fixturesSkill
- excel-vba-workbook-engineeringSkill
- excel-workbook-qa-auditorSkill
- mdx-cubevalue-extractionSkill
- power-bi-semantic-modelSkill
- power-pivot-dax-modelingSkill
- power-query-m-engineeringSkill
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
- Distinctive: line 21
Use three evidence levels:
- Very specific: line 30
Run tools/probe_excel_capabilities.ps1 -OutJson <path> -Profile inventory for non-Excel inventory evidence.
- Very specific: line 31
Use -Profile runtime only when generated-workbook Excel runtime smoke is intended.
- Very specific: line 33
Add one or more --require-capability <id> arguments only for capabilities the requested operation actually requires.
- Very specific: line 36
Run tools/probe_excel_bi_providers.ps1 on Windows.
- Very specific: line 37
Add -RunExcelComSmoke when Excel automation must be proven.
- Very specific: line 38
Add -RunAdoWorkbookSmoke when ACE/OLEDB workbook SQL must be proven.
- Very specific: line 42
Run tools/build_provider_environment_report.py against the probe JSON.
- Very specific: line 43
Use --baseline-json and --fail-on-drift when comparing machines or checking provider drift.
- Very specific: line 44
Use tools/create_provider_environment_fixture.py only to test report logic without live Office.
- Distinctive: line 56
When runtime probing is unavailable, use captured probe evidence for its source environment and mark target-host behavior unknown until …
- Distinctive: line 70
Do not claim missing providers are package failures without separating environment capability from workbook defects.
- Very specific: line 74
Read references/environment-decision-tree.md when diagnosing Excel COM, provider, bitness, Trust Center, or refresh-readiness failures.
≈ “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.
Files
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
- Probe compatibility capabilities
- Run
tools/probe_excel_capabilities.ps1 -OutJson <path> -Profile inventoryfor non-Excel inventory evidence. - Use
-Profile runtimeonly 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.
- Run
- Preserve provider detail when needed
- Run
tools/probe_excel_bi_providers.ps1on Windows. - Add
-RunExcelComSmokewhen Excel automation must be proven. - Add
-RunAdoWorkbookSmokewhen ACE/OLEDB workbook SQL must be proven. - From Git Bash, use
tools/invoke_excel_bi_com.sh provider-probe.
- Run
- Build a reviewer-facing provider report
- Run
tools/build_provider_environment_report.pyagainst the probe JSON. - Use
--baseline-jsonand--fail-on-driftwhen comparing machines or checking provider drift. - Use
tools/create_provider_environment_fixture.pyonly to test report logic without live Office.
- Run
- 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.
- For ADO workbook SQL, run
- 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.mdwhen diagnosing Excel COM, provider, bitness, Trust Center, or refresh-readiness failures.
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.

