Sharepoint spreadsheet formula builder

From fanfan-de/anybox · View interactive version

Sharepoint spreadsheet formula builder is an AI agent skill from the GitHub repository fanfan-de/anybox. Design, repair, and roll out formulas in SharePoint-hosted workbooks with connector-aware retrieval, validation, and upload discipline. Use when the user wants to add a formula column, fix a broken formula, choose between a fill-down formula and a spill formula, build a lookup or filter formula, or

How to use this skill

Skill file

SharePoint Spreadsheet Formula Builder

Use this skill when the formula itself is the task and the workbook lives in SharePoint.

This workflow depends on the Microsoft SharePoint connector for file discovery and binary transfer, not formula-aware editing. The relevant connector actions on the exposed Codex surface are get_site, list_site_drives, search, list_folder_items, fetch, update_file, and upload_file.

In Codex, use those direct Microsoft SharePoint app tools rather than generic MCP resource-listing flows. The backend wrapper routes connector actions through tool calls, not through user-facing SharePoint resource enumeration.

Read ./references/formula-patterns.md before drafting the first formula. The point is to refresh exact Excel syntax, formula-shape choices, and SharePoint-specific rollout risks before editing the workbook.

Workflow

  1. Ground the formula in the live workbook first: exact SharePoint file, sheet, target cell or output column, input columns, and a few representative rows.
  2. Use the SharePoint connector flow to locate the exact workbook:
  1. Choose the formula shape deliberately:
  1. Preserve the workbook's existing reference style. If the sheet already uses structured references in tables, continue using them instead of switching to ad hoc A1 references.
  2. Draft the formula in a helper cell, scratch column, or local workbook copy first rather than replacing the production range immediately.
  3. Test on a small representative slice, including blanks, missing lookups, spill collisions, and unusual values.
  4. Roll the formula out to the intended target cells while preserving neighboring formulas, formatting, named ranges, and table behavior.
  5. Write the revised workbook back through the connector using the exact drive-root-relative path from SharePoint metadata:
  1. Re-fetch the workbook or update metadata and verify the exact target formula cells or output column after upload.

SharePoint-Specific Safety

Output Conventions

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.