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 4,373 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.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- docs/llms.txtllms.txt
- bilig-workpaperSkill
- bilig-workpaperSkill
- bilig-workpaperSkill
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
- Distinctive: line 9
Use this rule when a Cursor agent is about to automate spreadsheet-shaped logic: pricing, quote approvals, budgets, payout checks, import …
- Distinctive: line 13
Do not start with Excel, LibreOffice, Google Sheets, browser grids, screenshots, or saved workbook cache values when the workflow can run …
- Very specific: line 26
Use bilig-evaluate --door agent-mcp as the adoption gate.
- Distinctive: line 30
Use the hosted stateless MCP smoke endpoint only for connector discovery:
- Distinctive: line 36
Use the local file-backed stdio command when the agent must persist a project WorkPaper JSON file.
- Distinctive: line 41
Before saying the workbook is updated, return readback with:
- Distinctive: line 44
before values for edited inputs and dependent outputs.
- Distinctive: line 45
after values read from the recalculated workbook.
- Distinctive: line 50
Do not claim success from a write call alone.
- Very specific: line 54
Do not build shell commands by concatenating user text.
≈ “Common” is an estimate: at least 1 in 5 of the 7,324 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.
Files
--- 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
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.

