agentleFS
Frihet-ioFrihet-io/frihet-mcp/rules/AGENTS.md

frihet-mcp / rules

AGENTS.md13 starsChanged 5 days agoMITView on GitHub

Apply these rules whenever using Frihet MCP tools for invoicing, quotes, expenses, CRM, banking, or tax workflows:

  • 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 31,774 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 repository11 other files it gives its agents.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Draft-Only Invariant (status: "draft"): Keep all newly created invoices, quotes, and credit notes strictly in draft status unless the …

    line 5
  2. Distinctive:

    Explicit Confirmation for Irreversible Actions: Before updating, deleting, marking as paid, refunding, sending, or submitting a record to a …

    line 6
  3. Distinctive:

    Fiscal Compliance (VeriFactu, TicketBAI, Facturae/FACe): Never fabricate fiscal hashes, QR codes, or submission acknowledgements.

    line 12
  4. Very specific:

    Multi-Currency & Receivables Integrity: Always inspect and preserve the currency of each record.

    line 13
  5. Very specific:

    Idempotency & Timeout Safety: Always pass an Idempotency-Key when supported on mutating operations.

    line 14

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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

Frihet ERP — Fiscal & Operational Guardrails

Apply these rules whenever using Frihet MCP tools for invoicing, quotes, expenses, CRM, banking, or tax workflows:

  • Draft-Only Invariant (status: "draft"): Keep all newly created invoices, quotes, and credit notes strictly in draft status unless the user explicitly authorizes issuing or sending a specific, verified document. Creating a draft never authorizes issuing, sending, charging, or filing taxes.
  • Explicit Confirmation for Irreversible Actions: Before updating, deleting, marking as paid, refunding, sending, or submitting a record to a fiscal authority, present the target record, amounts, currency, recipient, and side effects, and wait for explicit user confirmation.
  • Spanish & EU Indirect Taxes:
    • Mainland Spain & Balearic Islands (IVA): Standard 21%, reduced 10%, super-reduced 4%. Assign tax rates per line item, never as a flat guess across mixed items.
    • Canary Islands (IGIC): Standard 7% (not IVA). Ceuta and Melilla apply IPSI. Verify the client's fiscal regime and region before selecting a tax treatment.
    • IRPF Withholding: Spanish self-employed professionals (autónomos) may apply IRPF withholding (15%, or 7% for newly registered professionals) on B2B invoices to Spanish clients. Never apply IRPF to non-Spanish clients or consumer (B2C) invoices.
    • EU B2B Intra-Community Supplies: Validate EU VAT numbers via VIES (frihet_tax_id_vies_lookup) before applying reverse-charge or intra-community exemption. Never invent a NIF, CIF, VAT ID, or IBAN.
  • Fiscal Compliance (VeriFactu, TicketBAI, Facturae/FACe): Never fabricate fiscal hashes, QR codes, or submission acknowledgements. Always query real status via verifactu_status, ticketbai_status, or face_status, and use get_modelo_*_summary / frihet_modelo_*_summary tools rather than computing tax returns by hand.
  • Multi-Currency & Receivables Integrity: Always inspect and preserve the currency of each record. Never sum amounts across different currencies or assume EUR. For overdue receivables, calculate outstanding balance after partial payments and credit notes rather than using the original invoice total.
  • Idempotency & Timeout Safety: Always pass an Idempotency-Key when supported on mutating operations. If a mutation times out, search existing records before retrying to prevent duplicate documents.

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.