l4-ide
Formalize legal rules and contracts as executable code
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install l4-ide?▼
Run `npx skills add smucclaw/l4-ide --all -g -y` in your terminal to install all skills in this suite globally.
What is the L4 language used for?▼
L4 is a domain-specific language for law that turns contracts, regulations, and policies into executable, type-checked rules. It produces auditable decisions, obligation tracking with deadlines, and auto-generated REST APIs.
How do I turn legal text into executable rules?▼
The writing-l4-rules skill guides your agent to model entities with DECLARE, encode decisions with DECIDE, and express obligations using PARTY, MUST, WITHIN, HENCE, and LEST. You then validate the file with `l4 check` or `l4 run`.
Can L4 rules be deployed as an API?▼
Yes. Adding @export annotations publishes functions through jl4-service or Legalese Cloud as REST endpoints, OpenAPI specs, and MCP tools that other AI agents can call directly.
Do I need programming experience to write L4 rules?▼
No. L4 is designed for legal authors, with backtick identifiers that read like plain prose, and your AI agent handles the syntax, validation, and deployment steps for you.
Related Repositories in Legal & Compliance
View All in Legal & Compliance→claude-for-legal
AI legal workspace for contracts, privacy, IP, litigation, and compliance
patent-disclosure-skill
Draft Chinese patent disclosures and read patents in plain language
app-privacy-policy-generator
Generate privacy policies and terms for mobile and web apps