All articles
Legal··8 min read

The clearest legal template on GitHub has no licence on it

Real companies have open sourced their production legal documents, and the licence on the file decides whether you can use it more than the writing does. What is actually out there, what CC0 and ShareAlike mean for your terms, and three searches that work on your own draft.

The most readable plain-English contract template on GitHub describes itself as open source, has 311 stars, and carries no licence file at all.

No licence means default copyright, which means all rights reserved, which means you are not actually permitted to copy it. The clearest legal document in the search results is the one you are least able to use, and the problem is in a file nobody opens.

That is the thing worth understanding before you go looking for a template. The quality of the writing is not what decides whether you can use it. The licence is.

I am not a lawyer and this is not legal advice. Star counts and licences below were read from the GitHub API on 22 October 2026 and can change. A permissive licence tells you that copying is allowed. It tells you nothing about whether the document is right for your business, your jurisdiction, or your risk.

What is actually out there

Searching GitHub for legal templates returns mostly noise: unrelated awesome-lists, scraped HTML, abandoned experiments. The genuinely useful repositories are ones where a real company open sourced its own production legal documents.

  • github/site-policy, 2,186 stars, CC0-1.0. GitHub's own terms, privacy statement and related policies, kept under version control. CC0 is a public domain dedication, so this is the most permissively licensed serious legal text in the list. It also has 780 forks, which tells you people are in fact using it this way.
  • Automattic/legalmattic, 876 stars, CC BY-SA 4.0. The source of several WordPress.com legal documents, including the terms of service. The README is unusually direct about intent: they want their legal documents to be “open and accessible” and invite you to re-use and edit them.
  • basecamp/policies, 127 stars, CC BY 4.0. Smaller and the most useful of the three for a different reason, covered below.
  • jackmorgan/the-plain-contract, 311 stars, no licence. A freelance contract written in plain language. It is also distributed as a single Word document rather than text, which makes it hard to diff and hard to track.
  • tosdr/tosdr.org, 453 stars, archived. Terms of Service Didn't Read, the project that grades the terms of major services. This repository has not been pushed to since January 2021 and is marked archived, so treat anything you read about it as historical.
  • LexPredict/lexpredict-lexnlp, 794 stars, AGPL-3.0. A different kind of tool: natural language processing for legal text, for extracting clauses, dates and parties from documents at scale. Relevant if you are building something, not if you are writing one policy.

The licence is the product

Four different answers, and the differences matter more than they look.

CC0 is as close to public domain as a licence gets. Take it, change it, ship it, no attribution required. For legal boilerplate this is the easiest possible position to be in.

CC BY permits the same reuse but requires credit. Workable, though crediting a source inside your own terms of service is slightly awkward and worth deciding deliberately rather than discovering later.

CC BY-SA adds ShareAlike, and this is the one to think about. Adapted material must be released under the same licence. Applied to marketing copy that is unremarkable. Applied to your terms of service it means your adapted terms carry a licence allowing others to reuse them too. That may be entirely fine with you, and it may not be what you assumed when you copied the file.

No licence is not permission. It is the absence of permission, and the default is that the author keeps every right. A repository being public, and even describing itself as open source in its own description, does not grant you anything.

There is a mild irony worth sitting with. The risk you take by copying an unlicensed template is a copyright risk, created by the act of acquiring a document whose purpose is to reduce your legal risk.

Use them for structure, not for sentences

The highest value in these repositories is not the prose. It is the answer to a question most people never ask, which is how many documents am I supposed to have.

Look at how basecamp/policies is organised. The top level is a set of directories: privacy, security, abuse, cancellation, refund, copyright, and ownership. That listing is a far better starting checklist than any article, because it is the actual set a real subscription business found it needed.

Most people building an app think about one document, maybe two. A company that has been running a paid product for twenty years keeps seven. You probably do not need all seven on day one. You do need to know which ones you have decided to skip.

The same applies to github/site-policy. Being able to read a large platform's policies as plain files, with history, is genuinely instructive about what a mature version of this looks like.

Reading the language, which is also how you check your own

The most watched explainer on this subject is a short piece from The Verge, with about 141,000 views, which asks two privacy specialists how they actually read a policy. Their method is a set of searches, and it is more useful than it sounds.

Search for “control”. It leads you to the settings you can actually change, which is the part of a policy with practical consequences rather than legal ones.

Search for “not”. The logic here is the clever part: companies avoid the word because it binds them. Where it does appear, it is a genuine commitment rather than a description.

Search for “such as”. This is the tell. An open-ended list means the policy is giving examples rather than the full set, and the full set is what you wanted.

One of them, Nate Cardozo of the Electronic Frontier Foundation, is sceptical that AI will solve this, on the grounds that a system looking for those phrases could be gamed by writing around them. The other hopes for standardised machine-readable policies. Neither thinks the current situation is good.

Now invert it. Those three searches are a review tool for your own draft. Run them against the policy you are about to publish:

  • If such as appears repeatedly, you have written a document full of open-ended lists, which means you have not finished deciding what you collect.
  • If not never appears, your policy commits to nothing. It describes behaviour without ruling anything out.
  • If control leads nowhere, you have promised rights without building the mechanism for exercising them.

That last one is the one that turns into engineering work rather than editing work, and it is the one people discover latest.

So what should you actually do

  • Do not start from a blank page. You will produce something vague, and vague is the failure mode that matters.
  • Do not start from a template you cannot licence. Check for a LICENSE file before you read the content, not after.
  • Use the structure first. Decide which documents you need before you write a sentence of any of them.
  • Use a generator for the scaffolding if you want, and understand that it produces the document and not the answers. The answers are decisions about your own system.
  • Get advice for anything regulated.Health, financial or children's data is not a template exercise.
  • Keep them in version control. Every repository here demonstrates the same quiet point: legal documents change, and a document with no history is one nobody can audit. Both GitHub and Automattic treat their policies as code, and that is the habit worth stealing even if you never reuse a word.

For what has to be inside the document once you start writing, the requirements and the store rules are in a separate article. This one is only about where the raw material comes from and what you are permitted to do with it.

What I could not check

I wanted to survey the most widely read guides on writing these documents and compare their advice. My web search budget was exhausted before I got there, so that comparison is not in this article. What is here comes from the GitHub API, which I queried directly, and from the video named above.

Licences and star counts are a snapshot. Check both yourself before relying on either, and note that a repository can change its licence while keeping the same files.

Find out which of those apply to you

Fourteen questions, about three minutes, runs entirely in your browser. You get a ranked list of what's actually open, with the fix for each.

Run the free check

Sources

Quotations from the two interviews are transcribed from the published videos and lightly condensed for readability.