legal-brief
Skill0 starsChanged 8 months agoMITView on GitHub
Use when user says "brief dla prawnika", "brief prawny", "przygotuj brief do regulaminu", "co musi byc w regulaminie", "red flags przed produkcja", "co brakuje przed startem", or asks about legal aspects of a web service in the context of its codebase. Also use when updating an existing LEGAL_BRIEF.md with new findings.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- EvolutionAPI/evo-nexustheir own version, first seen Oct 8, 2026
- evolution-foundation/evo-nexustheir own version, first seen Apr 20, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- EvolutionAPI/evo-nexus★ 545same name
- evolution-foundation/evo-nexus★ 535same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- faq-generatorSkill
- using-skillsSkill
- writing-eu-rd-applicationsSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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
- Very specific: line 43
Use Glob to find /LEGAL_BRIEF.md.
- Very specific: line 47
Use dedicated tools (Glob, Read, Grep) — never bash find/cat/grep:
- Distinctive: line 61
Read the FAQ file and produce an explicit cross-reference:
- Very specific: line 77
Write to project root. Follow the template in references/brief-template.md exactly.
- Distinctive: line 87
Every item in section 2: must follow this format:
- Distinctive: line 101
After writing the file, tell the user:
- Distinctive: line 107
If you updated an existing file — state what specifically changed.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Legal Brief Generator
Generate a professional legal brief (LEGAL_BRIEF.md) for a lawyer writing Terms of Service for a web platform. You act as an experienced legal counsel specializing in e-commerce who can also read source code and translate technical mechanisms into legal risks.
Process
digraph legal_brief {
"User requests brief" [shape=doublecircle];
"LEGAL_BRIEF.md exists?" [shape=diamond];
"Read existing brief" [shape=box];
"Note what's covered" [shape=box];
"Collect project context" [shape=box];
"Analyze FAQ vs code gaps" [shape=box];
"Generate/update brief" [shape=box];
"Write LEGAL_BRIEF.md" [shape=box];
"Report summary to user" [shape=doublecircle];
"User requests brief" -> "LEGAL_BRIEF.md exists?";
"LEGAL_BRIEF.md exists?" -> "Read existing brief" [label="yes"];
"LEGAL_BRIEF.md exists?" -> "Collect project context" [label="no"];
"Read existing brief" -> "Note what's covered";
"Note what's covered" -> "Collect project context";
"Collect project context" -> "Analyze FAQ vs code gaps";
"Analyze FAQ vs code gaps" -> "Generate/update brief";
"Generate/update brief" -> "Write LEGAL_BRIEF.md";
"Write LEGAL_BRIEF.md" -> "Report summary to user";
}Step 0 — Check for existing brief
Use Glob to find **/LEGAL_BRIEF.md. If found, Read it. Identify what's already covered. Improve and extend rather than rewriting from scratch. Add a changelog entry.
Step 1 — Collect project context
Use dedicated tools (Glob, Read, Grep) — never bash find/cat/grep:
- Project structure — Glob for
**/*.py,**/*.ts,**/*.js(skip migrations, node_modules) - Data models — Grep for model files, Read key ones
- FAQ — Read
docs/faq/faq_generated.json(or equivalent) - Payments — Grep for
stripe|payu|payment|checkout|commission|prowizja, Read matching files - Registration & GDPR — Grep for
register|signup|consent|gdpr|rodo|privacy|cookie - Disputes & abuse — Grep for
ban|block|dispute|complaint|refund|suspend - Terms/privacy pages — Grep for
terms|regulamin|privacy|polityka, Read templates
For each legally-critical file — Read its full content.
Step 2 — Analyze FAQ and cross-reference with code
Read the FAQ file and produce an explicit cross-reference:
| FAQ topic | Code status | Implication |
| FAQ says X | Code implements / doesn't implement | Gap for ToS / gray area |
Extract:
- Questions suggesting real user problems with fees, refunds, account bans
- Topics FAQ covers but code doesn't handle (= gaps needing ToS coverage)
- Topics code implements but FAQ ignores (= gray areas)
- Contradictions between FAQ answers and actual code behavior (e.g., different timeframes)
Include this cross-reference as a subsection within section 2.11 of the brief.
Step 3 — Generate LEGAL_BRIEF.md
Write to project root. Follow the template in references/brief-template.md exactly.
Step 4 — Critical rules
Language: Polish, functional descriptions for a lawyer who doesn't read code. Describe mechanisms functionally ("system automatycznie pobiera prowizje po potwierdzeniu odbioru"), NOT technically.
Forbidden in output: function/class/variable names, code constants (FEE_PERCENT, DISPUTE_WINDOW_DAYS), endpoint paths (/api/...), field names (is_buyer_blocked), SDK/product codenames (Stripe Connect Express, Cloudflare R2). Use plain descriptions instead: "operator platnosci", "magazyn mediow w chmurze".
No hallucination: Describe ONLY what exists in code or FAQ. If something can't be determined, mark: [DO USTALENIA Z ZESPOLEM].
Every item in section 2 must follow this format:
- Opis: what happens in the system (functionally)
- Ryzyko prawne: why this needs a ToS clause
- Sugerowany zakres zapisu: what the ToS should address
- Priorytet: KRYTYCZNY / WYSOKI / SREDNI
Every place where users can be charged money = KRYTYCZNY priority.
FAQ questions about refunds/disputes/bans = proof the process exists and MUST be in ToS.
Red flags section must be brutally honest — its purpose is protection against real legal risk. Use structured tables per category (see template).
Step 5 — Report to user
After writing the file, tell the user:
- Where the file was saved
- How many sections and red flags were generated
- Top 3 critical blockers before production (if any)
- What needs a business decision before the lawyer can start
If you updated an existing file — state what specifically changed.
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
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.

