lex
它能做什么
这个工具可以帮助比较美国、加拿大和欧盟等不同国家之间的法律规定,并协助起草基础法律文件。它会参考官方信息,以减少出错。
适用场景
- ✓比较美国与欧盟的商业法规时。
- ✓起草需要符合特定规定的合同或劳动文件时。
- ✓了解在某个受支持国家开办公司的流程时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/lex/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我比较在美国和德国开办公司的规定。”
每周 5 个新技能,1 分钟读完。
工作原理
首先,它会确定你需要哪个国家或地区的帮助(美国、加拿大或欧盟)。然后,它会检索官方法律信息,并据此起草文件或比较规定。最后,它会列出所使用的官方来源。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
- 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 29 supported jurisdictions (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>. 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
- ✅ 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.mdto 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.
常见问题
什么是“法律幻觉”?
指关于法律的错误或编造信息。如果 AI 无法获取可靠来源,就可能出现这种情况。
涵盖哪些国家?
目前涵盖美国、加拿大以及欧盟成员国。
这个工具可以用于任何类型的合同吗?
它最适合处理商业和劳动类文件,尤其是涉及公司设立或合同、需要遵循特定法律规定的场景。
详情
作者的原始描述
Centralized 'Truth Engine' for cross-jurisdictional legal context (US, EU, CA) and contract scaffolding.
热度
- GitHub 星标
- 48k
- 排名
- #5049
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。