agentleFS
RoxanaTapiaRoxanaTapia/receipt-intelligence-n8n/AGENTS.md

receipt-intelligence-n8n

AGENTS.md0 starsChanged 3 days agoMITView on GitHub

These are the n8n workflows behind the Receipt Intelligence demo at receipt-intelligence-demo. A workflow reads a PDF receipt, asks Claude for the merchant, date, total, and line items, puts a spending category on each line, and writes one JSON file under data/receipts/. The sibling API reads that folder. Start with README.md. From the repo root: The unit tests check the purchase-order samples. They also check that every file in workflows/ parses and holds no embedded credential. GitHub Actions runs these…

  • Reads credentials
  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,337 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 repository4 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

6 rules. About 2 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈2

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    One branch: Use a plain descriptive name so this work stays separate from other work.

    line 10
  2. Very specific:

    Read this guide and .cursor/rules/ before you edit.

    line 55
  3. Distinctive:

    Run the tests above before opening the pull request.

    line 57
  4. Common:

    Keep secrets out of files, logs, and workflow JSON.

    line 58
  5. Common:

    Put an API key, password, or token in a file.

    line 63
  6. Distinctive:

    Add agent roles, shipping routines, or deploy steps to this guide.

    line 64

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
AGENTS.md

Project guide

What we're building

These are the n8n workflows behind the Receipt Intelligence demo at receipt-intelligence-demo. A workflow reads a PDF receipt, asks Claude for the merchant, date, total, and line items, puts a spending category on each line, and writes one JSON file under data/receipts/. The sibling API reads that folder. Start with README.md.

How a change happens

  1. One issue. The issue is the request. Use .github/ISSUE_TEMPLATE.md. The title starts with one emoji code, such as 🛠️ or 📄.
  2. One branch. Use a plain descriptive name so this work stays separate from other work.
  3. One pull request. The title is a plain sentence. The body follows .github/pull_request_template.md and includes Closes # with the issue number.
  4. Automated tests. They run on every pull request and on every push to main.
  5. Roxana reviews and merges.

Where things are

PathWhat it is
README.mdWhat the workflows do
docs/README.mdReading order for the guides
docs/n8n-setup.mdLocal n8n and the API contract
docs/integration.mdRun n8n and the API together
docs/pdf-extraction.mdPDF to validated receipt JSON
docs/categorization.mdCategories on each line
docs/contributing.mdNotes for people who ship or run this locally
workflows/Exported workflows: hello-world and receipt-pdf-ingest
data/README.mdReceipt JSON written to disk
samples/README.mdSample receipt PDFs
samples/po/Sample purchase-order PDFs and their answer key
docker-compose.ymlLocal n8n
.env.exampleEnv names. Real secrets stay in .env, which is not committed
tests/Automated tests
.github/workflows/tests.ymlThe same tests on GitHub
.cursor/rules/Rules for agents
pyproject.tomlRuff settings
LICENSEMIT license

Tests

From the repo root:

python -m unittest discover -s tests -v
python -m pip install ruff
ruff check .
ruff format --check .

The unit tests check the purchase-order samples. They also check that every file in workflows/ parses and holds no embedded credential. GitHub Actions runs these commands on every pull request and on every push to main.

For the agents

Do:

  • Read this guide and .cursor/rules/ before you edit.
  • Stay inside the current issue.
  • Run the tests above before opening the pull request.
  • Keep secrets out of files, logs, and workflow JSON.

Don't:

  • Change how a workflow behaves unless the issue asks for that.
  • Put an API key, password, or token in a file.
  • Add agent roles, shipping routines, or deploy steps to this guide.
  • Weaken a test so it passes.
  • Merge. Roxana merges.

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.