A client hands you a contract. It's 35 lines, the fee looks fine, and you want the work. Most freelancers sign it and find the problems months later — when the payment is late, when the client asks for the tenth revision, or when you realise you can't show the work in your portfolio.
I write tools that check things before they break. This one checks a freelance contract before you sign it: 19 deterministic rules, offline, no upload, no AI judgment — it matches clause patterns and tells you exactly which line to renegotiate. I ran a fictional contract through it. Here is the real output, word for word.
The contract I tested
I wrote this one myself for this article — fictional parties, fictional numbers, but every clause is the kind of thing that shows up in real client contracts:
MOBILE APP UI DESIGN SERVICES AGREEMENT This agreement is between Northwind Studio LLC (Client) and Alex Chen (Designer). 1. Scope of Work Designer will redesign the Client's mobile app interface and perform other design tasks as requested by the Client from time to time. 2. Compensation Client will pay Designer a total fee of $8,500. Payment is due within a reasonable time after the Client is satisfied with the work. Payment is contingent on the Client receiving payment from its own customer for the project. 3. Intellectual Property All deliverables, design files, components, and any tools or templates created or used during this engagement become the sole and exclusive property of the Client upon creation. 4. Non-Compete Designer shall not provide design services to any other company in the mobile app industry for 24 months worldwide after this agreement ends. 5. Liability Designer shall indemnify and hold harmless the Client from any and all claims, damages, and losses arising from the work, without any limit on liability. 6. Revisions Designer will provide unlimited revisions until the Client is fully satisfied. 7. Termination Client may terminate this agreement at any time for any reason. Designer may not terminate this agreement. No kill fee is payable on termination. 8. Confidentiality Designer shall keep all Client information strictly confidential and shall not disclose any work performed under this agreement. 9. Exclusivity During the term of this agreement, Designer shall not accept work from any other client. 10. Renewal This agreement automatically renews for successive 12-month terms unless terminated. [INSERT EFFECTIVE DATE] The run
python3 scripts/contract_check.py check --file contract.txt --fail-on warning Real output, verbatim:
FAIL: 12 finding(s) 1680 chars, 258 words, 35 lines, 10 section(s), 12 finding(s) [critical] line 11: ip-transfer-unconditional: Intellectual property is assigned without conditioning the transfer on full payment. [critical] line 14: non-compete-excessive: Non-compete runs 24 months, over the 12-month ceiling in standard checklists. [critical] line 18: liability-uncapped: Liability or indemnity is uncapped: no limit on what the freelancer could owe. [critical] line 9: payment-pay-when-paid: Payment depends on the client being paid by its own client. [warning] line 8: payment-no-late-fee: No late fee or interest on overdue payment is stated. [warning] line 1: payment-no-deposit: No deposit, retainer or upfront payment is mentioned. [warning] line 21: revisions-unlimited: Revisions are unlimited: there is no agreed stopping point. [warning] line 26: confidentiality-no-portfolio: Confidentiality has no portfolio exception: the work may never be shown. [warning] line 1: governing-law-missing: No governing law or jurisdiction is stated. [warning] line 33: auto-renewal: The agreement renews automatically unless cancelled in time. [warning] line 35: placeholder-text: Placeholder text is still in the contract. [warning] line 1: signature-missing: No signature block is present. 12 findings out of 19 rules. Exit code 1.
The 4 critical ones, in plain words
1. You hand over the IP before you get paid. The contract transfers everything "upon creation" — the client owns your work the moment you make it, whether or not the invoice clears. What to ask for: IP transfers only on full payment.
2. You can't work in your own industry for 2 years, worldwide. A 24-month worldwide non-compete is the kind of clause that quietly ends a freelance career. The checker's ceiling is 12 months. What to ask for: 12 months or less, narrowed to the client's actual competitors.
3. Your liability has no cap. "Without any limit on liability" means one dispute could cost more than the whole $8,500 fee — more than the project is worth. What to ask for: a liability cap, usually tied to the fees paid.
4. You only get paid if the client gets paid. Pay-when-paid means your invoice depends on someone else's invoice. If their customer is late, you are late, and there is nothing you can do about it. What to ask for: payment on delivery, not on the client's cash flow.
The 8 warnings
No late fee, no deposit, unlimited revisions, no portfolio exception (you may never be allowed to show this work), no governing law named, automatic renewal, placeholder text still in the document, and no signature block. None of these alone kills a deal, but together they say the contract was written for one side only.
What the checker does not catch
Honesty matters here. The tool matches clause patterns; it does not judge wording. "Payment is due within a reasonable time" is vague enough to be a real problem, and no pattern rule flags it — a human still has to read that line and ask what "reasonable" means. Same for enforceability: the tool cannot tell you whether a clause would hold up in court. It is a first-pass checklist, not legal advice, and a PASS does not mean a contract is safe to sign. Anything that matters still goes to a lawyer.
How to run it
The tool is a single Python script, standard library only, offline. Save the contract as plain text (redact names, fees and project details first if the contract says its terms are confidential), then:
python3 scripts/contract_check.py check --file contract.txt Default mode fails on critical findings only. Add --fail-on warning to make every finding block signing, and --json-out report.json --md-out report.md for reports you can keep with your negotiation notes. Reports never contain the raw contract text.
For comparison, a clean contract passes with 0 findings — I verified that too:
PASS 1569 chars, 243 words, 31 lines, 8 section(s), 0 finding(s) The tool is listed on Capafy as "Check a Client Contract Before You Sign It" — $9.99, one-time download: https://capafy.ai/agent/check-a-client-contract-before-you-sign-it/3864472898?ct=devto_article3
Disclosure: this is my own tool, listed on Capafy. The contract above is fictional, written by me for this article; the checker output is real and unedited.