Lex

From sinhoneyy/master-skills · View interactive version

Lex is an AI agent skill from the GitHub repository sinhoneyy/master-skills. Centralized 'Truth Engine' for cross-jurisdictional legal context (US, EU, CA) and contract scaffolding.

How to use this skill

Skill file

LEX: Legal-Entity-X-ref

Overview

LEX is a structured truth engine designed to eliminate legal hallucinations by grounding agents in verified government references and legislation across 29+ jurisdictions. It provides deterministic context for business formation, employment, and contract drafting.

When to Use This Skill

How It Works

Step 1: Identify Jurisdiction

Before drafting, determine if the user's entity or contract target is in the USA, Canada, or the EU.

Step 2: Search & Fetch Context

Use the CLI shortcuts to find the relevant legal patterns and templates.

Step 3: Scaffold Drafting

Generate foundation-level documents using lex draft <description>. This ensures that all drafts include the mandatory AI-generated content disclaimer.

Step 4: Verify Authority

Always include a "Verified Sources" section in your output by running lex verify, which fetches official government links for the retrieved context.

Examples

Example 1: Comparing Employment Laws

# Get the workforce template to compare US vs EU notice periods
lex get templates/02_employment_workforce.md

Example 2: Drafting a Czech Contract

# Create a house sale contract scaffold in Czech language
lex draft "Czech house sale contract"

Best Practices

Common Pitfalls

Solution: Run lex get templates/02_employment_workforce.md to see the restrictive covenant comparison table.

Related Skills

Limitations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.