lex – Data & Science skill for AI agents
Structured research aid for cross-jurisdictional legal context (US, EU, CA) and contract scaffolding.
Install the lex skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/lex-4f8b0.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /lex – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/lex-4f8b0.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $lex – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/lex-4f8b0.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /lex – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/lex-4f8b0.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /lex – then describe the task you want done.
SKILL.md content
LEX: Legal-Entity-X-ref
Overview
LEX organizes research links and draft outlines for the US, Canada and EU member states. These bundled tables are broad research prompts, not verified current rules or a deterministic guarantee against legal error. State/province, national and sector-specific law still requires source verification.
When to Use This Skill
- Use when you need to cross-reference or compare legal requirements between different territories, such as verifying the compliance gap between an EU SARL and a US LLC.
- Use when working with foundational business or employment documents that require specific, jurisdiction-compliant clauses to be inserted into a professional scaffold.
- Use when the user asks about the specific regulatory nuances, formation steps, or "truth-based" definitions of legal entities within the listed geographic areas (USA, Canada, and the EU).
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.
- Run
lex search <query>to find matching templates. - Run
lex get <path>to read the granular metadata and requirements.
Step 3: Scaffold Drafting
Generate foundation-level documents using lex draft <description>. No CLI is bundled here; include an honest draft/AI-assistance disclaimer manually when applicable.
Step 4: Verify Authority
List only primary sources actually opened, with jurisdiction, provision and effective/retrieval date. A directory link or tool name is not verified legal authority.
Examples
Example 1: Comparing Employment Laws
# Get the workforce template to compare US vs EU notice periods
lex get templates/02_employment_workforce.mdExample 2: Drafting a Czech Contract
# Create a house sale contract scaffold in Czech language
lex draft "Czech house sale contract"Best Practices
- ✅ Trust but Verify: Always include the links provided by
lex verifyin your output. - ✅ Table Formatting: Use tables when comparing results across multiple jurisdictions.
- ❌ No Guessing: If a jurisdiction is outside the US/EU/CA scope, state that it is outside the LEX "Truth Engine" coverage.
- ❌ No Anecdotal Advice: Stick strictly to the findings in the templates or verified government domains.
Common Pitfalls
- Problem: Legal hallucination regarding specific EU notice periods.
Solution: Run lex get templates/02_employment_workforce.md to see the restrictive covenant comparison table.
Related Skills
@employment-contract-templates- For more specific HR policy phrasing.@legal-advisor- For general legal framework architecture.@security-auditor- For reviewing the final repository security.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
The lex search/get/draft/verify commands have no executable implementation in this tree. Do not execute a same-named unrelated CLI or claim it verified a source; read the bundled templates directly. Specify state/province/country, entity and worker/contract context before drafting. Treat comparative tables as issues to investigate, not clauses to inject automatically; EU membership is not one uniform national law. Obtain current primary text and qualified local review before any filing, signature, employment action or transaction. Government domains are useful provenance signals, not proof the linked page governs the facts. Protect confidential contracts and do not send them to external models without scope.
Related skills
- loki-logging – Configure Grafana Loki for log aggregation and analysis.
- longbridge – Guide to using a separately installed Longbridge integration — real-time quotes, charts…
- longbridge-fundamentals – Financial statements, business segments, dividends, valuation multiples (PE/PB/PS)…
- longbridge-market-data – Real-time quotes, K-line charts, order book, trade ticks, intraday capital flow, market…
- longbridge-research – Curated upstream guidance for Longbridge Research; use when the workflow matches the…
- looot – Search, price and run 2,500+ data API endpoints (work emails, company search, SERP, web…
- machine-learning-ops-ml-pipeline – Design and implement a complete ML pipeline for: $ARGUMENTS
- market-sizing-analysis – Comprehensive market sizing methodologies for calculating Total Addressable Market…