Office Script Expert
Office Scripts (Excel Online / Microsoft 365) development expert skill. Covers platform limitations, ExcelScript API patterns, testing strategy (lib + Vitest), and 13 real-world bug patterns discovered during production development. Trigger words: Office Scripts, ExcelScript, Excel Online, Office Script development, TypeScript Excel, Excel automation, CalculateRequirements, ImportCsvData
No API Required
Download Skill Package (.skill) View Source on GitHub
Table of Contents
1. Overview
Office Scripts are TypeScript-based automation scripts for Excel on the web (Microsoft 365). They are fundamentally different from VBA and Power Automate:
| Aspect | Office Scripts | VBA | Power Automate |
|---|---|---|---|
| Language | TypeScript (subset) | VBA | Low-code / expressions |
| Runtime | Server-side (Excel Online) | Client-side (Desktop) | Cloud service |
| Module system | None (no import/export) | Modules | Connectors |
| External libs | Not available | COM references | Connectors |
| Timeout | 120 seconds | None | 30 min (premium) |
| Testing | Indirect (lib extraction) | Manual | Manual |
2. Prerequisites
- API Key: None required
- Python 3.9+ recommended
3. Quick Start
Invoke this skill by describing your analysis needs to Claude.
4. How It Works
Follow the skill’s SKILL.md workflow step by step, starting from a small validated input.
5. Usage Examples
- Use Office Script Expert when you need a structured workflow rather than an ad-hoc answer.
- Start with a small representative input before applying the workflow to production data or assets.
- Review the helper scripts and reference guides to tailor the output format to your project.
6. Understanding the Output
- A structured response or artifact aligned to the skill’s workflow.
- Reference support from 4 guide file(s).
- Reusable output that can be reviewed, refined, and incorporated into a wider project workflow.
7. Tips & Best Practices
- Begin with the smallest realistic sample input so you can validate the workflow before scaling up.
- Keep
skills/office-script-expert/SKILL.mdopen while working; it remains the authoritative source for the full procedure. - Review the most relevant reference files first instead of scanning every guide: testing_strategy.md, platform_limitations.md, excel_api_patterns.md.
- Preserve intermediate outputs so you can explain assumptions, diffs, and follow-up actions clearly.
8. Combining with Other Skills
- Combine this skill with adjacent skills in the same category when the work spans planning, implementation, and review.
- Browse the broader category for neighboring workflows: category index.
- Use the English skill catalog when you need to chain this workflow into a larger end-to-end process.
9. Troubleshooting
- Re-check prerequisites first: missing runtime dependencies and unsupported file formats are the most common failures.
- If a helper script is involved, run it with a minimal sample input before applying it to a full dataset or repository.
- Compare your input shape against the reference files to confirm expected fields, sections, or metadata are present.
- Confirm the expected Python version and required packages are installed in the active environment.
10. Reference
References:
skills/office-script-expert/references/common_bug_patterns.mdskills/office-script-expert/references/excel_api_patterns.mdskills/office-script-expert/references/platform_limitations.mdskills/office-script-expert/references/testing_strategy.md