lex – skill Dữ liệu & Khoa học cho agent AI
Công cụ hỗ trợ nghiên cứu có cấu trúc về bối cảnh pháp lý xuyên khu vực (US, EU, CA) và khung soạn thảo hợp đồng.
Cài skill lex bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/lex-4f8b0.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /lex – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/lex-4f8b0.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $lex – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/lex-4f8b0.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /lex – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/lex-4f8b0.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /lex – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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.
Skill liên quan
- loki-logging – Cấu hình Grafana Loki để tổng hợp và phân tích log.
- longbridge – Hướng dẫn sử dụng tích hợp Longbridge được cài đặt riêng — báo giá thời gian thực, biểu…
- longbridge-fundamentals – Báo cáo tài chính, phân khúc kinh doanh, cổ tức, bội số định giá (PE/PB/PS), so sánh…
- longbridge-market-data – Báo giá thời gian thực, biểu đồ K-line, sổ lệnh, dữ liệu khớp lệnh, dòng vốn trong…
- longbridge-research – Hướng dẫn tuyển chọn từ nguồn gốc cho Longbridge Research; dùng khi quy trình phù hợp…
- looot – Tìm kiếm, định giá và chạy hơn 2.500 endpoint API dữ liệu (email công việc, tìm kiếm…
- machine-learning-ops-ml-pipeline – Thiết kế và triển khai pipeline ML hoàn chỉnh cho: $ARGUMENTS
- market-sizing-analysis – Phương pháp đánh giá quy mô thị trường toàn diện để tính TAM (Total Addressable Market)…