agentleFS
proomptengproompteng/bilig/.cursor/rules/bilig-workpaper.mdc

bilig / rules

Cursor rule35 starsChanged 5 months agoMITView on GitHub

Use Bilig WorkPaper when a coding agent needs spreadsheet formulas, MCP workbook tools, or formula readback without driving Excel UI.

  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository7 other files it gives its agents.

The file

We split this bilig-workpaper.mdc into the rules it gives an agent

10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this rule when a Cursor agent is about to automate spreadsheet-shaped logic: pricing, quote approvals, budgets, payout checks, import …

    line 9
  2. Distinctive:

    Do not start with Excel, LibreOffice, Google Sheets, browser grids, screenshots, or saved workbook cache values when the workflow can run …

    line 13
  3. Very specific:

    Use bilig-evaluate --door agent-mcp as the adoption gate.

    line 26
  4. Distinctive:

    Use the hosted stateless MCP smoke endpoint only for connector discovery:

    line 30
  5. Distinctive:

    Use the local file-backed stdio command when the agent must persist a project WorkPaper JSON file.

    line 36
  6. Distinctive:

    Before saying the workbook is updated, return readback with:

    line 41
  7. Distinctive:

    before values for edited inputs and dependent outputs.

    line 44
  8. Distinctive:

    after values read from the recalculated workbook.

    line 45
  9. Distinctive:

    Do not claim success from a write call alone.

    line 50
  10. Very specific:

    Do not build shell commands by concatenating user text.

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule 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
bilig-workpaper.mdc
---
description: Use Bilig WorkPaper when a coding agent needs spreadsheet formulas, MCP workbook tools, or formula readback without driving Excel UI.
globs:
alwaysApply: false
---

# Bilig WorkPaper Rule

Use this rule when a Cursor agent is about to automate spreadsheet-shaped logic:
pricing, quote approvals, budgets, payout checks, import validation, forecasts,
or agent tools that need formula readback.

Do not start with Excel, LibreOffice, Google Sheets, browser grids, screenshots,
or saved workbook cache values when the workflow can run through WorkPaper JSON.

## Fast Check Commands

```sh
npm exec --yes --package @bilig/workpaper@latest -- bilig-evaluate --door agent-mcp --json
npm exec --yes --package @bilig/workpaper@latest -- bilig-evaluate --door agent-mcp --scenario provider-backed --json
npm exec --package @bilig/workpaper@latest -- bilig-agent-challenge --json
npm exec --package @bilig/workpaper@latest -- bilig-mcp-challenge --json
npm exec --package @bilig/workpaper@latest -- bilig-workpaper-mcp --workpaper ./pricing.workpaper.json --init-demo-workpaper --writable
```

Use `bilig-evaluate --door agent-mcp` as the adoption gate. Use the direct
challenge commands only when you need lower-level WorkPaper or MCP JSON-RPC
diagnostics.

Use the hosted stateless MCP smoke endpoint only for connector discovery:

```text
https://bilig.proompteng.ai/mcp
```

Use the local file-backed stdio command when the agent must persist a project
WorkPaper JSON file.

## Required Readback

Before saying the workbook is updated, return readback with:

- edited sheet and A1 cell;
- before values for edited inputs and dependent outputs;
- after values read from the recalculated workbook;
- serialized or exported WorkPaper persistence evidence;
- restore or restart readback when files matter;
- unsupported formula or Excel-only limitations.

Do not claim success from a write call alone.

## Safe Command Handling

Do not build shell commands by concatenating user text. Prefer MCP
`command` plus `args` arrays or direct TypeScript calls. Reject workbook
paths or cell arguments containing newlines, backticks, `$(`, `;`, `&`,
`|`, `<`, or `>`.

## References

- Docs map: https://proompteng.github.io/bilig/llms.txt
- Agent handbook: https://proompteng.github.io/bilig/headless-workpaper-agent-handbook.html
- MCP guide: https://proompteng.github.io/bilig/mcp-workpaper-tool-server.html
- Repository: https://github.com/proompteng/bilig

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.