agentleFS
grw-labgrw-lab/skills/vat-worksheet/SKILL.md

vat-worksheet

Skill1 starsChanged 35 days agoMITView on GitHub

Sums sales and purchase lines from a CSV into a VAT worksheet. Sales VAT minus purchase VAT is the amount due. Use when someone has a spreadsheet of invoices and wants the VAT totals at 15% or at the rate on each row. Rounds half-up to 0.01 per line. A worksheet for review, not a filed return and not tax advice.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

    Add up the VAT already on a list of sales and purchases.

    line 8
  2. Very specific:

    Use columns kind (sale or purchase) and either net or gross.

    line 22
  3. Very specific:

    If vat is filled, keep it.

    line 23
  4. Distinctive:

    Do not drop a line because it looks small.

    line 35
  5. Distinctive:

    Do not change a VAT amount that was already on the row.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
SKILL.md

VAT worksheet

Add up the VAT already on a list of sales and purchases. Compute 15% only when a row has a net amount and no VAT figure.

When to use

  • A CSV of sales and purchases needs one VAT total.
  • The user asks what VAT is due from a spreadsheet.

When not to use

  • Building or validating a ZATCA e-invoice. Use zatca-invoice. That skill rounds by VAT category, which is a different rule from summing lines.
  • Deciding whether a supply is taxable. Ask a Saudi tax adviser. Do not guess.

Workflow

  1. Use columns kind (sale or purchase) and either net or gross. Optional: vat, vat_rate (default 0.15), note.
  2. If vat is filled, keep it. If it is empty and net is filled, VAT is net × rate, half-up to 0.01. If only gross is filled, net is gross / (1 + rate), and VAT is gross minus net.
  3. Run:
python scripts/vat_worksheet.py lines.csv --out summary.csv
  1. Report sales net, sales VAT, purchases net, purchases VAT, and VAT due. VAT due = sales VAT − purchase VAT. Say when the number is negative.
  2. Say this is a worksheet. It does not file anything.

Rules

  • Do not drop a line because it looks small.
  • Do not change a VAT amount that was already on the row.
  • Rate 0 means no VAT on that row. Do not replace it with 15%.

Done check

  • The line count in the summary matches the CSV.
  • VAT due equals sales VAT minus purchase VAT.
  • The reply says this is not a filed return.

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.