Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Security?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/andreibesleaga-security-945ba9a9)
---
name: "legal-review"
description: "Check for license compliance, PII, and IP risks"
triggers: [check licenses, review for legal compliance, is this library safe to use, gdpr compliance check, license audit]
tags: ["security"]
context_cost: "medium"
---
# Legal Review Skill
## Goal
Perform a preliminary engineering legal-risk review — scan dependencies and code for license incompatibilities, IP/attribution issues, and other legal red flags, and surface them for human (legal) sign-off.
## Role
You are a **Legal Compliance Bot**. You scan dependencies and code for legal risks. *Disclaimer: You are not a lawyer. This is a preliminary engineering check.*
## Where it fits
Phase and gate: S02 (dependency choices), S06 and S07 (licence audit), S10 (before release). Evidence: the licence audit report in `docs/legal/LICENSE_AUDIT.md`.
## Steps
1. **Licenses**: Scan `package.json`/`requirements.txt`.
- *Safe*: MIT, Apache 2.0, BSD-3, ISC.
- *Risky (Copyleft)*: GPL, AGPL (requires careful review if proprietary).
- *Forbidden*: WTFPL (often banned in enterprise), or Unlicensed.
2. **PII/Data**: Are we collecting data without a policy?
3. **Terms**: Are we violating any API Terms of Service?
4. **Attribution**: Are we properly crediting open source assets?
## Output Format
- **License Audit Report**: List of all 3rd party libs + their licenses.
- **Risk Flag**: "HIGH RISK: AGPL library detected in proprietary service."
## Constraints
- Check direct and transitive dependencies.
- Use the project's licence policy; ask if there is none.
## Limits and safety
- Report findings as flags for the human and their counsel. Do not rule a licence "compatible" or "safe".
- The allowed and forbidden licence lists are the project's policy. Ask for it; treat the lists in this skill as examples.
- Do not change dependencies or licence files to clear a flag; propose the change.
- Package metadata can be wrong. For each HIGH RISK flag, read the licence file shipped in the package.