ai-team-library/claude/skills/legal-drafting/SKILL.md
# Skill: Legal Drafting ## Description Drafts and reviews legal documents for software products and services: Terms of Service (ToS), Privacy Policies, End-User License Agreements (EULAs), Data Processing Agreements (DPAs), and cookie consent notices. The skill produces structured, plain-language documents that address regulatory requirements (GDPR, CCPA, CAN-SPAM, COPPA, ePrivacy Directive) while remaining understandable to non-lawyers. Each document type follows a specific process tailored t
npx skillsauth add beekeeper-lab/foundry ai-team-library/claude/skills/legal-draftingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Drafts and reviews legal documents for software products and services: Terms of Service (ToS), Privacy Policies, End-User License Agreements (EULAs), Data Processing Agreements (DPAs), and cookie consent notices. The skill produces structured, plain-language documents that address regulatory requirements (GDPR, CCPA, CAN-SPAM, COPPA, ePrivacy Directive) while remaining understandable to non-lawyers. Each document type follows a specific process tailored to its regulatory context and audience, with built-in compliance checklists. This is the Legal Counsel persona's primary drafting tool.
/legal-drafting slash command.| Input | Type | Required | Description |
|-------|------|----------|-------------|
| document_type | Enum: tos, privacy-policy, eula, dpa, cookie-consent | Yes | The type of legal document to draft |
| product_name | String | Yes | Name of the product or service the document covers |
| product_description | Text | No | Brief description of what the product does; used to tailor clauses |
| project_context | File path | No | ai/context/project.md for stack, domain, and deployment context |
| jurisdiction | String | No | Primary legal jurisdiction (e.g., "US", "EU", "global"); defaults to "global" |
| data_practices | Text | No | Description of data collection, processing, storage, and sharing practices |
| existing_document | File path | No | Previous version of the document to update incrementally |
| audience | Enum: consumer, enterprise, developer | No | Target audience; defaults to consumer |
Gather context -- Read the project context file and any existing legal documents. Identify the product's domain (SaaS, mobile app, marketplace, API, etc.), tech stack, data handling patterns, and target user base. If data_practices is not provided, infer data collection patterns from the project context and architecture documentation.
Determine regulatory scope -- Based on jurisdiction and product type, identify applicable regulations:
Select document template -- Based on document_type, apply the appropriate structure:
Terms of Service (ToS):
Privacy Policy:
EULA:
Data Processing Agreement (DPA):
Cookie Consent Notice:
Draft in plain language -- Write each section using plain-language principles:
Apply regulatory requirements -- For each applicable regulation identified in step 2, ensure the document contains the required disclosures:
Add compliance metadata -- Include metadata at the top of the document:
Generate compliance checklist -- Produce a checklist verifying each regulatory requirement is addressed in the document. Format as a table: Regulation | Requirement | Section | Status (Addressed / N/A / Needs Review).
Produce the document -- Write the complete legal document and compliance checklist to the Legal Counsel persona's output directory: ai/outputs/legal-counsel/.
| Output | Type | Description | |--------|------|-------------| | legal_document | Markdown file | Complete legal document (ToS, Privacy Policy, EULA, DPA, or Cookie Consent) in plain language | | compliance_checklist | Markdown section | Regulation-by-requirement verification table appended to the document | | document_summary | Section in document | Executive summary with document scope, key rights, and regulatory coverage |
| Error | Cause | Resolution |
|-------|-------|------------|
| InvalidDocumentType | The document_type input is not one of the five supported types | Use one of: tos, privacy-policy, eula, dpa, cookie-consent |
| NoProductName | Product name is empty | Provide the name of the product or service |
| NoDataPractices | Cannot determine data collection practices from context or input | Provide data_practices input or ensure project context describes data handling |
| UnknownJurisdiction | Jurisdiction string does not match a recognized region | Use a recognized jurisdiction code (e.g., "US", "EU", "UK", "global") |
| OutputDirNotWritable | Cannot write to ai/outputs/legal-counsel/ | Check permissions or scaffold the project with the Legal Counsel persona |
| ConflictingRequirements | Jurisdiction requirements conflict (e.g., data retention minimization vs. mandatory retention) | Document the conflict explicitly and recommend legal review for resolution |
ai/context/project.md) for product and data handling detailsai/outputs/legal-counsel/)development
# Skill: VDD (Verification-Driven Development) Gate ## Description Runs the programmatic VDD gate for a bean: parses the bean's `## Acceptance Criteria` section, dispatches each criterion's evidence type to the matching runner (test, lint, file, file-contains, or manual), aggregates the results into a pass/fail verdict, and writes a structured markdown report at `ai/outputs/tech-qa/vdd-<NNN>.md` (zero-padded NNN). This is the machine-checkable counterpart to the prose VDD policy in `ai/contex
tools
# Skill: Spawn Task ## Description Dispatches a single specialist persona to execute a single task with only that task's context. Auto-detects the runtime environment and chooses one of two execution paths: - **In tmux** (`$TMUX` set): spawn a worker in a git worktree using a child tmux window. Process-isolated, parallelizable, durable across the calling session's lifetime. Same pattern as `/spawn-bean` but at task granularity. - **Not in tmux**: invoke the `Agent` tool with `subagent_typ
development
# Skill: Orchestration Report ## Description Aggregates the per-bean **Orchestration Telemetry** blocks (BEAN-278) across recent Done beans and produces a markdown report that answers the architecture-aware-evaluation question: **is the orchestration paying for itself?** Distinct from `/telemetry-report` (which aggregates raw cost, duration, and tokens); this skill aggregates the orchestration-quality metrics layered on top — bounces, persona activations, contract violations, escape-hatch usag
development
# Skill: Health Check ## Description Runs all health checks defined in `ai/context/health-checks.md` and produces a table-format report. Can be called standalone or by other skills (e.g., `/long-run`). ## Trigger - Invoked by the `/health-check` slash command. - Called programmatically by `/long-run` at the start of each cycle. ## Inputs | Input | Type | Required | Description | |-------|------|----------|-------------| | health_checks | Markdown file | Yes | `ai/context/health-checks.md`