legal-generate
This skill should be used when generating draft legal documents for a project or company. It gathers company context interactively, invokes the…
от jikig-ai★ 21 звезда на GitHub
Установить legal-generate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Cloud Mode (Devin): before pipeline work run bash "${CLAUDE_PLUGIN_ROOT}/scripts/cloud-detect.sh". If CLAUDE_PLUGIN_ROOT is unset (cloud exec shells do not export it), resolve the root by IDENTITY, never by script basename: for d in "$HOME/.local/share/devin/cli/plugins/cache" and /opt/.devin/plugins, skip unless [ -d "$d" ], then MANIFEST="$(find "$d" -path '*/.claude-plugin/plugin.json' -exec grep -l '"name":space:*::space:*"soleur"' {} + 2>/dev/null | head -1)", ROOT="${MANIFEST%/.claude-plugin/plugin.json}" — one resolution, two consumers: $ROOT/scripts/cloud-detect.sh and $ROOT/scripts/precommit-guard.sh. (Shape check, not authentication: a planted {"name":"soleur"} dir passes — ADR-179 A11.) local or not-local:no-devin-env proceeds normally; any other not-local:<reason> applies <plugin-root>/devin/INSTRUCTIONS.md §Cloud Mode: emit the --banner, fan out sequentially with Reviewed-Coverage: sequential-fallback disclosure (never claim an independent review ran), message_user ack before any secrets read or production mutation, and run precommit-guard.sh before any git commit — hooks do not fire in cloud.
Grok Build (plugins/soleur/lib/harness.ts invokeSkill()): Read this SKILL.md in this process and run it to completion. A one-segment soleur:<name> in this document names a SKILL — on Grok Build, Read plugins/soleur/skills/<name>/SKILL.md in this process; it is not a nested tool_use. A multi-segment id such as soleur:<domain>:<name> names an AGENT: spawn it, never Read it, and on Grok Build spawn_subagent takes the id with its colons replaced by hyphens (agentIdToGrokSubagentType). Claude Code: Skill tool for a skill (soleur:<name>), Task tool with subagent_type for an agent. Forbidden is executing a subset, not the Read.
Legal Document Generator
Generate draft legal documents from company context. Supports 14 document types across US, EU/GDPR, and UK jurisdictions. All output is marked as a draft requiring professional legal review.
Supported Document Types
- Terms & Conditions
- Privacy Policy
- Cookie Policy
- GDPR Policy
- Acceptable Use Policy
- Data Processing Agreement
- Data Protection Disclosure
- Disclaimer / Limitation of Liability
- Master Services Agreement
- Mutual NDA
- One-Way NDA
- Advisor Agreement
Two more types are available on explicit request only — both carry blocking confirmations, so they are never offered in the menu:
- Employee Offer Letter (CA-exempt scope confirm)
- Business Associate Agreement (HIPAA/PHI confirm)
Overlapping types fill a vendored template substrate (references/templates/); uncovered types and unsupported jurisdictions are generated from scratch by the agent — routing is its decision, not the menu's.
Phase 0: Context Gathering
Use the AskUserQuestion tool to gather company context. Ask for:
- Company name (required)
- Product/service description (required) -- what the product does, who it serves
- Data practices -- what user data is collected, how it is processed, stored, shared
- Jurisdiction -- which legal frameworks apply (US, EU/GDPR, UK, or multiple)
- Contact information -- email and/or physical address for legal notices
If the user provides arguments after the skill name (e.g., soleur:legal-generate privacy-policy), use that as the document type selection and skip Phase 1.
Phase 1: Document Selection
Use the AskUserQuestion tool to select a document type. Offer the four most likely types (e.g. Privacy Policy / Terms & Conditions / Mutual NDA / Master Services Agreement) and rely on the built-in Other free-text option for the rest — the menu never lists the gated types.
Phase 1.5: Substrate Staleness Check
Before invoking the agent, check the freshness of the vendored template corpus:
NOTICE_FILE="${CLAUDE_PLUGIN_ROOT}/skills/legal-generate/NOTICE" \
bash "${CLAUDE_PLUGIN_ROOT}/skills/gdpr-gate/scripts/notice-frontmatter.sh" days-stale
- >30 days — print an advisory banner to stdout: the template corpus has not been verified against upstream recently.
- >90 days — additionally print
POSTURE_FAIL:; the operator follows the chain inknowledge-base/engineering/policies/content-vendoring.mdto record it incompliance-posture.md. - Advisory only — generation proceeds either way; do not block on staleness.
Phase 2: Generation
Invoke the soleur:legal:legal-document-generator agent via the Task tool with the company context and selected document type. The agent resolves the substrate arm (template-fill vs from-scratch) from its own routing table — do not pre-decide it here.
Task soleur:legal:legal-document-generator: "Generate a [document type] for [company name].
Company: [name]
Product: [description]
Data practices: [pr
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- NOTICE
- references/templates/advisor-agreement/template.md
- references/templates/business-associate-agreement/template.md
- references/templates/cookie-notice/template.md
- references/templates/dpa-global/template.md
- references/templates/dpa-us/template.md
- references/templates/employee-offer-letter/template.md
- references/templates/master-services-agreement/template.md
- references/templates/mutual-nda/template.md
- references/templates/one-way-nda/template.md
- references/templates/privacy-policy-gdpr/template.md
- references/templates/privacy-policy-us/template.md
- references/templates/terms-of-use/template.md
- scripts/strip-vendor-credit.sh
FAQ
Что делает скилл legal-generate?
This skill should be used when generating draft legal documents for a project or company. It gathers company context interactively, invokes the soleur:legal:legal-document-generator agent, and writes markdown output.
Как установить скилл legal-generate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл legal-generate запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…