[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M718GEY362996SRBD7EVTAEF":3,"skill-same:01M718GEY362996SRBD7EVTAEF":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":52,"ownerDescription":6,"updatedAt":53,"install":54,"resources":67},"01M718GEY362996SRBD7EVTAEF","oss-review",null,"Open source license compliance check for a dependency list, a single library, or outbound code. Use when reviewing a manifest, SBOM, or repo for copyleft obligations and license compatibility, when asked whether a library can ship, or when preparing code to be open-sourced.","anthropics\u002Fclaude-for-legal","anthropics","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F76263028?v=4","01M697XGDPXJAVQ8391V2BCYTE","Anthropic","01M7189QY7HXHMC9BW4MFHPZ6H",10006,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-for-legal\u002Fblob\u002Fmain\u002Fip-legal\u002Fskills\u002Foss-review\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"oss review","oss","review","license compliance","path","compatibility","ship","source","library","obligations","SBOM","list","paste","dependency","text","outbound","code","when","open source","open","2026-11-10 10:12:30",false,"---\nname: oss-review\ndescription: >\n  Open source license compliance check for a dependency list, a single\n  library, or outbound code. Use when reviewing a manifest, SBOM, or repo for\n  copyleft obligations and license compatibility, when asked whether a library\n  can ship, or when preparing code to be open-sourced.\nargument-hint: \"[file path to manifest \u002F SBOM | package name | repo path | paste text]\"\n---\n\n# \u002Foss-review\n\nRuns an open source license compliance check against the practice profile in `~\u002F.claude\u002Fplugins\u002Fconfig\u002Fclaude-for-legal\u002Fip-legal\u002FCLAUDE.md`. Classifies dependencies by license family, maps obligations to the deployment model, flags license-unknown and non-OSI-posing-as-OSS packages, and recommends actions — comply, replace, remove, seek legal review, seek commercial license.\n\n## Instructions\n\n1. **Load `~\u002F.claude\u002Fplugins\u002Fconfig\u002Fclaude-for-legal\u002Fip-legal\u002FCLAUDE.md`.** If placeholders present, stop and prompt: \"Run `\u002Fip-legal:cold-start-interview` first — I need to learn your practice profile (and OSS policy, if any) before I can review.\" If the practice profile points at an uploaded OSS policy, read that too — it is the source of truth for accepted \u002F review \u002F banned licenses on this team.\n\n2. **Establish the scope:** a dependency list (package.json, requirements.txt, go.mod, Gemfile, Cargo.toml, pom.xml, SBOM), a single library, or outbound code the team is preparing to open-source. If the user passed a path, infer from the file; otherwise ask.\n\n3. **Establish the deployment model** before classifying obligations — SaaS, distributed binary, internal only, or embedded. The same dependency list triggers different obligations depending on this.\n\n4. **Follow the workflow below.** In particular:\n   - Read the actual license text, not just metadata — LICENSE files can be wrong, package metadata can be stale.\n   - Classify each package into permissive \u002F weak copyleft \u002F strong copyleft \u002F public domain \u002F non-OSI \u002F unknown.\n   - Flag license-unknown as \"needs review,\" not permissive by default.\n   - Flag non-OSI source-available licenses (SSPL, BUSL, Commons Clause, Elastic License, fair-source) — these are not open source.\n   - For outbound code, check that the chosen outbound license is compatible with every embedded dependency.\n\n5. **Output the memo** per the template below — work-product header first, bottom line, top-of-memo flags, per-package blocks grouped by severity, jurisdiction note, outbound check (if applicable), approval routing.\n\n6. **Respect the decision posture.** When a copyleft-trigger analysis turns on a contested question (AGPL's \"interacts over a network,\" GPL-3.0's \"conveying,\" LGPL linking scope), flag for attorney review and surface the factors cutting both ways. Anything flagged as strong copyleft or license-unknown goes to an attorney before the dependency ships or the code is released.\n\n## Examples\n\n```\n\u002Fip-legal:oss-review ~\u002Fcode\u002Fmy-project\u002Fpackage.json\n\u002Fip-legal:oss-review ~\u002Fcode\u002Fmy-project\u002Frequirements.txt\n\u002Fip-legal:oss-review redis\n\u002Fip-legal:oss-review ~\u002Fcode\u002Fmy-project  # repo root — scan all manifests\n```\n\n---\n\n## Works better connected\n\nOSS clearance requests usually come in via a ticketing system. Connected to\nJira, Linear, or Asana, this skill can: monitor incoming OSS requests, respond\nwith guidance directly in the ticket (flagging incomplete info, asking for the\nrepo link, returning the license-family classification), and track clearance\nstatus across requests.\n\nWithout a connector, paste the ticket or describe the request and I'll handle\nit one at a time. See `CONNECTORS.md` at the repo root for how to add a\nticketing connector.\n\n## Matter context\n\n**Matter context.** Check `## Matter workspaces` in the practice-level CLAUDE.md. If `Enabled` is `✗` (the default for in-house users), skip the rest of this paragraph — skills use practice-level context and the matter machinery is invisible. If enabled and there is no active matter, ask: \"Which matter is this for? Run `\u002Fip-legal:matter-workspace switch \u003Cslug>` or say `practice-level`.\" Load the active matter's `matter.md` for matter-specific context and overrides. Write outputs to the matter folder at `~\u002F.claude\u002Fplugins\u002Fconfig\u002Fclaude-for-legal\u002Fip-legal\u002Fmatters\u002F\u003Cmatter-slug>\u002F`. Never read another matter's files unless `Cross-matter context` is `on`.\n\n---\n\n## Purpose\n\nTell the user what licenses are in their dependency tree, what obligations those licenses trigger given how the code will be deployed, and what to do about each one. The output is a memo the lawyer (or the engineer with attorney access) can act on — comply, replace, remove, seek legal review, seek commercial license.\n\n**This is a first-pass classification.** Copyleft analysis depends on the deployment model, the degree of linking, the jurisdiction, and sometimes on legal questions that have not been tested in court (notably AGPL's \"interacts over a network,\" GPL-3.0's patent clause). For anything that classifies as strong copyleft or license-unknown, an attorney evaluates before the dependency ships or the code is released. The skill reports what it found; the lawyer decides what to do.\n\n## Precondition: load the practice profile\n\n**Before scanning dependencies, read `~\u002F.claude\u002Fplugins\u002Fconfig\u002Fclaude-for-legal\u002Fip-legal\u002FCLAUDE.md`.** If it is missing or still contains placeholders, stop and run `\u002Fip-legal:cold-start-interview`. The practice profile tells you:\n\n- Who owns OSS review on this team (often engineering with legal sign-off)\n- Escalation routing for copyleft obligations\n- The work-product header to prepend\n\nIf the practice profile has an OSS policy uploaded, read that too — it is the source of truth for which licenses the team accepts, which trigger review, and which are banned.\n\n## Workflow\n\n### Step 1: What's the scope?\n\nAsk (or infer from what the user provided):\n\n> What are we reviewing?\n>\n> 1. **A dependency list** — `package.json`, `requirements.txt`, `go.mod`, `Gemfile`, `Cargo.toml`, `pom.xml`, an SBOM (SPDX \u002F CycloneDX), a lockfile\n> 2. **A single library** — one specific package you're considering adding\n> 3. **Our own code** — we're planning to open-source this and need to check what's embedded\n\nThe analysis path differs:\n\n- Dependency list → classify every entry, roll up obligations\n- Single library → classify one package and walk its transitive dependencies if available\n- Outbound code → check what's embedded (direct and transitive), check whether chosen outbound license is compatible with all embedded licenses, check that LICENSE \u002F NOTICE files are correct\n\n### Step 2: What's the deployment model?\n\nThis is the single most important input after the license list — the same library carries different obligations depending on how the software is delivered. Ask:\n\n> How will this be deployed?\n>\n> 1. **SaaS \u002F hosted service** — users access over a network; nothing ships to the user\n> 2. **Distributed binary** — we ship compiled code to users (desktop app, mobile app, on-prem server, CLI tool)\n> 3. **Internal only** — used only inside the company, not distributed outside\n> 4. **Embedded \u002F firmware** — shipped in hardware or as closed-system firmware\n\n| Deployment | Licenses that materially matter |\n|---|---|\n| SaaS | AGPL (network-trigger), permissive attribution in any UI, SSPL\u002FBUSL\u002FElastic if repurposing as competing service |\n| Distributed binary | GPL, LGPL, MPL, EPL (all trigger on distribution), permissive attribution |\n| Internal only | Most copyleft does not trigger — no distribution. Permissive attribution still good hygiene. AGPL still triggers if users outside the company interact over the network. |\n| Embedded \u002F firmware | GPL is especially hard to comply with here (source disclosure + reproducible build + installation information in some cases). Plan for this before shipping, not after. |\n\nFlag the deployment model in the output memo — the same dependency list reviewed against \"SaaS\" vs. \"distributed binary\" yields different obligations.\n\n### Step 3: Classify each dependency\n\nFor every package, determine the license. Read the actual license text, not just the metadata — LICENSE files can be wrong (the file says MIT but the headers say GPL; the README claims Apache but there's no license file), and package manager metadata can be stale.\n\nClassify into:\n\n| Bucket | Examples | Key obligations |\n|---|---|---|\n| **Permissive** | MIT, BSD-2-Clause, BSD-3-Clause, Apache-2.0, ISC, Zlib, Unlicense | Attribution, preserve license text, Apache-2.0 adds patent grant + NOTICE requirement |\n| **Weak copyleft** | LGPL-2.1, LGPL-3.0, MPL-2.0, EPL-1.0, EPL-2.0, CDDL | File-level or library-level source disclosure; linking rules vary |\n| **Strong copyleft** | GPL-2.0, GPL-3.0, AGPL-3.0, OSL, EUPL (depending on version) | Broad source disclosure; AGPL extends to network use |\n| **Public domain \u002F dedication** | CC0, Unlicense, WTFPL | Typically no obligations, but some are contested in jurisdictions that don't recognize dedication to public domain |\n| **Non-OSI source-available** | SSPL, BUSL, Commons Clause, Elastic License, Confluent Community, fair-source family | Not open source — restrict commercial use, competing-service use, or both. Read the specific license. |\n| **Other \u002F custom \u002F unknown** | vendor-specific, proprietary, missing license file, license conflict between file and headers | Stop — do not treat as permissive by default |\n\nFlag:\n\n- **Dual-licensed packages** — which license are we using? The choice may change obligations.\n- **Deprecated packages** — the package is no longer maintained; is there a supported replacement?\n- **Packages with a copyleft dependency in their own tree** — the top-level license is permissive but a transitive dependency is copyleft.\n- **Packages that changed license recently** — Redis, MongoDB, Elastic, HashiCorp — make sure the version pinned is under the license you think it is.\n\n### Step 4: Map obligations to the deployment model\n\nFor each classified dependency, state what the deployment model triggers:\n\n```markdown\n### [package@version] — [License]\n\n**Classification:** [Permissive \u002F Weak copyleft \u002F Strong copyleft \u002F Public domain \u002F Non-OSI \u002F Unknown]\n\n**Obligations for our deployment ([SaaS \u002F binary \u002F internal \u002F embedded]):**\n\n- [ ] [Specific obligation — e.g., \"Include attribution in a NOTICES file shipped with the app\"]\n- [ ] [e.g., \"If we modify and distribute, publish source of our modifications\"]\n- [ ] [e.g., \"AGPL network trigger — if users access our modified version over a network, source must be offered to them\"]\n\n**Risk:** 🔴 Critical | 🟠 High | 🟡 Medium | 🟢 Low\n\n**Recommendation:** [Comply with obligations | Replace with [alternative] | Remove | Attorney review before shipping | Seek commercial license from [vendor]]\n```\n\n> **How is the copyleft dependency consumed?** The linking relationship determines whether copyleft actually triggers. Ask or determine:\n> - **Static linking \u002F compilation together:** The works are combined into one binary. Strong signal that copyleft triggers (LGPL \"work based on the Library,\" GPL derivative work).\n> - **Dynamic linking \u002F shared library:** The works remain separable at runtime. LGPL explicitly permits this (\"work that uses the Library\"). GPL's position is contested (FSF says derivative, others disagree).\n> - **Header inclusion \u002F inline functions:** Can create a derivative work depending on how much is included.\n> - **Subprocess \u002F IPC:** Separate processes communicating over well-defined interfaces. Generally not derivative.\n> - **Network API call:** For most licenses, no. For **AGPL**, the network-interaction clause means serving the software over a network IS distribution. In a microservices architecture, an AGPL component behind an API still triggers.\n> - **File-scope copyleft (MPL):** Only the modified files carry copyleft, not the whole work. Check whether any copyleft files were modified.\n>\n> **The severity rating depends on this.** \"LGPL — weak copyleft, linking rules vary\" without the linking analysis is the answer that gets an engineer sued. Static-linked LGPL in a proprietary product is 🔴 Critical. Dynamic-linked LGPL is 🟢 Low. Same license, opposite rating.\n\n**Severity calibration:**\n\n| Level | Means |\n|---|---|\n| 🔴 Critical | Strong copyleft in a deployment that triggers it (e.g., GPL in a distributed binary, AGPL in a SaaS). Non-OSI license that the business model actually conflicts with (e.g., SSPL while we're building a managed service). License cannot be determined and the package is load-bearing. |\n| 🟠 High | Weak copyleft with obligations the team hasn't set up for (file-level disclosure, NOTICE requirements). Dual-licensed where the chosen license is ambiguous. License file says one thing, headers say another. |\n| 🟡 Medium | Permissive with attribution requirements that haven't been wired into the build (missing NOTICES file, missing LICENSE in distribution). Transitive copyleft in a position that may or may not trigger, depending on how the library is consumed. |\n| 🟢 Low | Permissive with obligations already satisfied. Copyleft in a deployment model that doesn't trigger it (e.g., GPL library used internally only, with no redistribution). |\n\n### Step 5: Flag failure modes\n\nCall out any of the following in a top-of-memo section:\n\n- **License unknown** — classify as \"needs review,\" not permissive. An unclassified dependency should stop a ship decision, not slip through.\n- **License file conflicts with file headers** — read both and report the conflict.\n- **Incompatible combinations** — GPL-2.0 only + Apache-2.0 historically a known incompatibility; check MPL \u002F EPL \u002F GPL combinations carefully.\n- **Non-OSI licenses posing as open source** — SSPL, BUSL, Commons Clause, Elastic License, Confluent Community. Read the license; don't rely on GitHub's \"open source\" badge.\n- **License changes** — if a prior version was permissive and the current version is source-available, the pin matters.\n\n### Step 6: Outbound check (if reviewing our own code before open-sourcing)\n\nIf the user is preparing to open-source code:\n\n- Confirm the chosen outbound license is compatible with every embedded dependency's license (e.g., you cannot release under MIT if you've embedded GPL code — the combined work must be GPL)\n- Confirm LICENSE file is present and correct\n- Confirm NOTICE file is present and lists required attributions (Apache-2.0 and others)\n- Confirm third-party license texts are bundled where required\n- Confirm no proprietary or confidential code, no customer data, no embedded credentials in the repo history\n- Confirm trademark and brand policy for any project name (separate from the copyright license)\n\n### Step 7: Assemble the memo\n\nPrepend the work-product header from `~\u002F.claude\u002Fplugins\u002Fconfig\u002Fclaude-for-legal\u002Fip-legal\u002FCLAUDE.md` → `## Outputs` (differs by user role — see `## Who's using this`).\n\nThis memo and any dependency list reviewed may be privileged, confidential, or both. The output inherits that status from the source. Distribute only within the privilege circle; strip the work-product header before any external delivery (including before attaching the memo to an engineering ticket outside the privilege circle).\n\n> **No silent supplement.** If a research query to the configured legal research tool returns few or no results for a rule the memo needs (enforceability of AGPL's network trigger in a given jurisdiction, scope of GPL-3.0's patent grant, latest license text for a recently-relicensed package), report what was found and stop. Do NOT fill the gap from web search or model knowledge without asking. Say: \"The search returned [N] results from [tool]. Coverage appears thin for [rule \u002F license \u002F jurisdiction]. Options: (1) broaden the search query, (2) try a different research tool, (3) search the web — results will be tagged `[web search — verify]` and should be checked against a primary source before relying, or (4) flag as unverified and stop. Which would you like?\" A lawyer decides whether to accept lower-confidence sources.\n>\n> **Source attribution.** Where the memo cites a license text, a court decision interpreting a license, or guidance from a steward (FSF, OSI, SPDX, SFLC), tag the citation: `[OSI]`, `[SPDX]`, `[FSF]`, `[SFC\u002FSFLC]`, `[Westlaw]`, or the MCP tool name for citations retrieved from a connector; `[web search — verify]` for web-search citations; `[model knowledge — verify]` for citations recalled from training data; `[user provided]` for license text read directly from the repo. Citations tagged `verify` carry higher fabrication risk. Never strip or collapse the tags.\n\n```markdown\n[WORK-PRODUCT HEADER — per plugin config ## Outputs]\n\n# OSS Review: [Project \u002F Dependency List \u002F Package]\n\n**Reviewed:** [date]\n**Scope:** [Dependency list \u002F Single library \u002F Outbound code]\n**Deployment model:** [SaaS \u002F Binary \u002F Internal \u002F Embedded]\n\n---\n\n## Bottom line\n\n[Two sentences. Can this ship? What has to happen first?]\n\n**Packages reviewed:** [N]\n**By classification:** [N permissive, N weak copyleft, N strong copyleft, N public domain, N non-OSI, N unknown]\n**Issues:** [N]🔴 [N]🟠 [N]🟡 [N]🟢\n\n**Approval needed from:** [name, per practice profile]\n\n---\n\n## Top-of-memo flags\n\n[License-unknown list, license-conflict list, non-OSI-posing-as-OSS list, incompatible combinations]\n\n---\n\n## By package\n\n[Blocks from Step 4, grouped by severity]\n\n---\n\n## Jurisdiction note\n\nOSS license enforceability varies — AGPL's network trigger has not been broadly tested in court; GPL-3.0's patent clause reads differently under US vs. EU patent law; dedications to public domain are not universally recognized. State the governing-law choice for any downstream distribution (e.g., vendor agreements incorporating the code) and flag jurisdictions the practice profile marks as escalate.\n\n---\n\n## Outbound check (if applicable)\n\n[From Step 6]\n\n---\n\n## Approval routing\n\n[From practice profile — who approves, what triggers automatic escalation]\n```\n\n## Decision posture\n\nWhen a license cannot be confidently classified, flag it as **\"needs review\"** — do not call it permissive. Under-classifying license risk is a one-way door: a ship decision made on a permissive-by-default assumption becomes a source-disclosure obligation or an injunction months later. Over-flagging is a two-way door — the attorney narrows the list in review.\n\nLikewise, when the copyleft-trigger analysis turns on a contested question (AGPL's \"interacts over a network,\" GPL-3.0's \"conveying,\" the scope of LGPL linking), flag for attorney review and surface the factors cutting both ways.\n\n## Quality checks before delivering\n\n- [ ] Practice profile and any OSS policy were loaded\n- [ ] Deployment model was established before classifying obligations\n- [ ] Every dependency has a classification, including transitives where available\n- [ ] License-unknown packages are flagged, not defaulted to permissive\n- [ ] License text was read (not just metadata) for any copyleft or non-OSI finding\n- [ ] Source tags applied to citations; no stripped `verify` tags\n- [ ] Approver named per practice profile\n- [ ] Output marked with the work-product header\n\n## Close with the next-steps decision tree\n\nEnd with the next-steps decision tree per CLAUDE.md `## Outputs`. Customize the options to what this skill just produced — the five default branches (draft the X, escalate, get more facts, watch and wait, something else) are a starting point, not a lock-in. The tree is the output; the lawyer picks.\n\nIf the scan surfaced more than ~10 packages, or any time the user asks: offer the dashboard (see CLAUDE.md `## Outputs → Dashboard offer for data-heavy outputs`). Shape the offer to what's useful here — counts by license family (permissive \u002F weak copyleft \u002F strong copyleft \u002F AGPL \u002F proprietary \u002F unknown), risk distribution, and a table of findings with severity and package version.\n\n","# \u002Foss-review\n\nRuns an open source license compliance check against the practice profile in `~\u002F.claude\u002Fplugins\u002Fconfig\u002Fclaude-for-legal\u002Fip-legal\u002FCLAUDE.md`. Classifies dependencies by license family, maps obligations to the deployment model, flags license-unknown and non-OSI-posing-as-OSS packages, and recommends actions — comply, replace, remove, seek legal review, seek commercial license.\n\n## Instructions\n\n1. **Load `~\u002F.claude\u002Fplugins\u002Fconfig\u002Fclaude-for-legal\u002Fip-legal\u002FCLAUDE.md`.** If placeholders present, stop and prompt: \"Run `\u002Fip-legal:cold-start-interview` first — I need to learn your practice profile (and OSS policy, if any) before I can review.\" If the practice profile points at an uploaded OSS policy, read that too — it is the source of truth for accepted \u002F review \u002F banned licenses on this team.\n\n2. **Establish the scope:** a dependency list (package.json, requirements.txt, go.mod, Gemfile, Cargo.toml, pom.xml, SBOM), a single library, or outbound code the team is preparing to open-source. If the user passed a path, infer from the file; otherwise ask.\n\n3. **Establish the deployment model** before classifying obligations — SaaS, distributed binary, internal only, or embedded. The same dependency list triggers different obligations depending on this.\n\n4. **Follow the workflow below.** In particular:\n   - Read the actual license text, not just metadata — LICENSE files can be wrong, package metadata can be stale.\n   - Classify each package into permissive \u002F weak copyleft \u002F strong copyleft \u002F public domain \u002F non-OSI \u002F unknown.\n   - Flag license-unknown as \"needs review,\" not permissive by default.\n   - Flag non-OSI source-available licenses (SSPL, BUSL, Commons Clause, Elastic License, fair-source) — these are not open source.\n   - For outbound code, check that the chosen outbound license is compatible with every embedded dependency.\n\n5. **Output the memo** per the template below — work-product header first, bottom line, top-of-memo flags, per-package blocks grouped by severity, jurisdiction note, outbound check (if applicable), approval routing.\n\n6. **Respect the decision posture.** When a copyleft-trigger analysis turns on a contested question (AGPL's \"interacts over a network,\" GPL-3.0's \"conveying,\" LGPL linking scope), flag for attorney review and surface the factors cutting both ways. Anything flagged as strong copyleft or license-unknown goes to an attorney before the dependency ships or the code is released.\n\n## Examples\n\n```\n\u002Fip-legal:oss-review ~\u002Fcode\u002Fmy-project\u002Fpackage.json\n\u002Fip-legal:oss-review ~\u002Fcode\u002Fmy-project\u002Frequirements.txt\n\u002Fip-legal:oss-review redis\n\u002Fip-legal:oss-review ~\u002Fcode\u002Fmy-project  # repo root — scan all manifests\n```\n\n---\n\n## Works better connected\n\nOSS clearance requests usually come in via a ticketing system. Connected to\nJira, Linear, or Asana, this skill can: monitor incoming OSS requests, respond\nwith guidance directly in the ticket (flagging incomplete info, asking for the\nrepo link, returning the license-family classification), and track clearance\nstatus across requests.\n\nWithout a connector, paste the ticket or describe the request and I'll handle\nit one at a time. See `CONNECTORS.md` at the repo root for how to add a\nticketing connector.\n\n## Matter context\n\n**Matter context.** Check `## Matter workspaces` in the practice-level CLAUDE.md. If `Enabled` is `✗` (the default for in-house users), skip the rest of this paragraph — skills use practice-level context and the matter machinery is invisible. If enabled and there is no active matter, ask: \"Which matter is this for? Run `\u002Fip-legal:matter-workspace switch \u003Cslug>` or say `practice-level`.\" Load the active matter's `matter.md` for matter-specific context and overrides. Write outputs to the matter folder at `~\u002F.claude\u002Fplugins\u002Fconfig\u002Fclaude-for-legal\u002Fip-legal\u002Fmatters\u002F\u003Cmatter-slug>\u002F`. Never read another matter's files unless `Cross-matter context` is `on`.\n\n---\n\n## Purpose\n\nTell the user what licenses are in their dependency tree, what obligations those licenses trigger given how the code will be deployed, and what to do about each one. The output is a memo the lawyer (or the engineer with attorney access) can act on — comply, replace, remove, seek legal review, seek commercial license.\n\n**This is a first-pass classification.** Copyleft analysis depends on the deployment model, the degree of linking, the jurisdiction, and sometimes on legal questions that have not been tested in court (notably AGPL's \"interacts over a network,\" GPL-3.0's patent clause). For anything that classifies as strong copyleft or license-unknown, an attorney evaluates before the dependency ships or the code is released. The skill reports what it found; the lawyer decides what to do.\n\n## Precondition: load the practice profile\n\n**Before scanning dependencies, read `~\u002F.claude\u002Fplugins\u002Fconfig\u002Fclaude-for-legal\u002Fip-legal\u002FCLAUDE.md`.** If it is missing or still contains placeholders, stop and run `\u002Fip-legal:cold-start-interview`. The practice profile tells you:\n\n- Who owns OSS review on this team (often engineering with legal sign-off)\n- Escalation routing for copyleft obligations\n- The work-product header to prepend\n\nIf the practice profile has an OSS policy uploaded, read that too — it is the source of truth for which licenses the team accepts, which trigger review, and which are banned.\n\n## Workflow\n\n### Step 1: What's the scope?\n\nAsk (or infer from what the user provided):\n\n> What are we reviewing?\n>\n> 1. **A dependency list** — `package.json`, `requirements.txt`, `go.mod`, `Gemfile`, `Cargo.toml`, `pom.xml`, an SBOM (SPDX \u002F CycloneDX), a lockfile\n> 2. **A single library** — one specific package you're considering adding\n> 3. **Our own code** — we're planning to open-source this and need to check what's embedded\n\nThe analysis path differs:\n\n- Dependency list → classify every entry, roll up obligations\n- Single library → classify one package and walk its transitive dependencies if available\n- Outbound code → check what's embedded (direct and transitive), check whether chosen outbound license is compatible with all embedded licenses, check that LICENSE \u002F NOTICE files are correct\n\n### Step 2: What's the deployment model?\n\nThis is the single most important input after the license list — the same library carries different obligations depending on how the software is delivered. Ask:\n\n> How will this be deployed?\n>\n> 1. **SaaS \u002F hosted service** — users access over a network; nothing ships to the user\n> 2. **Distributed binary** — we ship compiled code to users (desktop app, mobile app, on-prem server, CLI tool)\n> 3. **Internal only** — used only inside the company, not distributed outside\n> 4. **Embedded \u002F firmware** — shipped in hardware or as closed-system firmware\n\n| Deployment | Licenses that materially matter |\n|---|---|\n| SaaS | AGPL (network-trigger), permissive attribution in any UI, SSPL\u002FBUSL\u002FElastic if repurposing as competing service |\n| Distributed binary | GPL, LGPL, MPL, EPL (all trigger on distribution), permissive attribution |\n| Internal only | Most copyleft does not trigger — no distribution. Permissive attribution still good hygiene. AGPL still triggers if users outside the company interact over the network. |\n| Embedded \u002F firmware | GPL is especially hard to comply with here (source disclosure + reproducible build + installation information in some cases). Plan for this before shipping, not after. |\n\nFlag the deployment model in the output memo — the same dependency list reviewed against \"SaaS\" vs. \"distributed binary\" yields different obligations.\n\n### Step 3: Classify each dependency\n\nFor every package, determine the license. Read the actual license text, not just the metadata — LICENSE files can be wrong (the file says MIT but the headers say GPL; the README claims Apache but there's no license file), and package manager metadata can be stale.\n\nClassify into:\n\n| Bucket | Examples | Key obligations |\n|---|---|---|\n| **Permissive** | MIT, BSD-2-Clause, BSD-3-Clause, Apache-2.0, ISC, Zlib, Unlicense | Attribution, preserve license text, Apache-2.0 adds patent grant + NOTICE requirement |\n| **Weak copyleft** | LGPL-2.1, LGPL-3.0, MPL-2.0, EPL-1.0, EPL-2.0, CDDL | File-level or library-level source disclosure; linking rules vary |\n| **Strong copyleft** | GPL-2.0, GPL-3.0, AGPL-3.0, OSL, EUPL (depending on version) | Broad source disclosure; AGPL extends to network use |\n| **Public domain \u002F dedication** | CC0, Unlicense, WTFPL | Typically no obligations, but some are contested in jurisdictions that don't recognize dedication to public domain |\n| **Non-OSI source-available** | SSPL, BUSL, Commons Clause, Elastic License, Confluent Community, fair-source family | Not open source — restrict commercial use, competing-service use, or both. Read the specific license. |\n| **Other \u002F custom \u002F unknown** | vendor-specific, proprietary, missing license file, license conflict between file and headers | Stop — do not treat as permissive by default |\n\nFlag:\n\n- **Dual-licensed packages** — which license are we using? The choice may change obligations.\n- **Deprecated packages** — the package is no longer maintained; is there a supported replacement?\n- **Packages with a copyleft dependency in their own tree** — the top-level license is permissive but a transitive dependency is copyleft.\n- **Packages that changed license recently** — Redis, MongoDB, Elastic, HashiCorp — make sure the version pinned is under the license you think it is.\n\n### Step 4: Map obligations to the deployment model\n\nFor each classified dependency, state what the deployment model triggers:\n\n```markdown\n### [package@version] — [License]\n\n**Classification:** [Permissive \u002F Weak copyleft \u002F Strong copyleft \u002F Public domain \u002F Non-OSI \u002F Unknown]\n\n**Obligations for our deployment ([SaaS \u002F binary \u002F internal \u002F embedded]):**\n\n- [ ] [Specific obligation — e.g., \"Include attribution in a NOTICES file shipped with the app\"]\n- [ ] [e.g., \"If we modify and distribute, publish source of our modifications\"]\n- [ ] [e.g., \"AGPL network trigger — if users access our modified version over a network, source must be offered to them\"]\n\n**Risk:** 🔴 Critical | 🟠 High | 🟡 Medium | 🟢 Low\n\n**Recommendation:** [Comply with obligations | Replace with [alternative] | Remove | Attorney review before shipping | Seek commercial license from [vendor]]\n```\n\n> **How is the copyleft dependency consumed?** The linking relationship determines whether copyleft actually triggers. Ask or determine:\n> - **Static linking \u002F compilation together:** The works are combined into one binary. Strong signal that copyleft triggers (LGPL \"work based on the Library,\" GPL derivative work).\n> - **Dynamic linking \u002F shared library:** The works remain separable at runtime. LGPL explicitly permits this (\"work that uses the Library\"). GPL's position is contested (FSF says derivative, others disagree).\n> - **Header inclusion \u002F inline functions:** Can create a derivative work depending on how much is included.\n> - **Subprocess \u002F IPC:** Separate processes communicating over well-defined interfaces. Generally not derivative.\n> - **Network API call:** For most licenses, no. For **AGPL**, the network-interaction clause means serving the software over a network IS distribution. In a microservices architecture, an AGPL component behind an API still triggers.\n> - **File-scope copyleft (MPL):** Only the modified files carry copyleft, not the whole work. Check whether any copyleft files were modified.\n>\n> **The severity rating depends on this.** \"LGPL — weak copyleft, linking rules vary\" without the linking analysis is the answer that gets an engineer sued. Static-linked LGPL in a proprietary product is 🔴 Critical. Dynamic-linked LGPL is 🟢 Low. Same license, opposite rating.\n\n**Severity calibration:**\n\n| Level | Means |\n|---|---|\n| 🔴 Critical | Strong copyleft in a deployment that triggers it (e.g., GPL in a distributed binary, AGPL in a SaaS). Non-OSI license that the business model actually conflicts with (e.g., SSPL while we're building a managed service). License cannot be determined and the package is load-bearing. |\n| 🟠 High | Weak copyleft with obligations the team hasn't set up for (file-level disclosure, NOTICE requirements). Dual-licensed where the chosen license is ambiguous. License file says one thing, headers say another. |\n| 🟡 Medium | Permissive with attribution requirements that haven't been wired into the build (missing NOTICES file, missing LICENSE in distribution). Transitive copyleft in a position that may or may not trigger, depending on how the library is consumed. |\n| 🟢 Low | Permissive with obligations already satisfied. Copyleft in a deployment model that doesn't trigger it (e.g., GPL library used internally only, with no redistribution). |\n\n### Step 5: Flag failure modes\n\nCall out any of the following in a top-of-memo section:\n\n- **License unknown** — classify as \"needs review,\" not permissive. An unclassified dependency should stop a ship decision, not slip through.\n- **License file conflicts with file headers** — read both and report the conflict.\n- **Incompatible combinations** — GPL-2.0 only + Apache-2.0 historically a known incompatibility; check MPL \u002F EPL \u002F GPL combinations carefully.\n- **Non-OSI licenses posing as open source** — SSPL, BUSL, Commons Clause, Elastic License, Confluent Community. Read the license; don't rely on GitHub's \"open source\" badge.\n- **License changes** — if a prior version was permissive and the current version is source-available, the pin matters.\n\n### Step 6: Outbound check (if reviewing our own code before open-sourcing)\n\nIf the user is preparing to open-source code:\n\n- Confirm the chosen outbound license is compatible with every embedded dependency's license (e.g., you cannot release under MIT if you've embedded GPL code — the combined work must be GPL)\n- Confirm LICENSE file is present and correct\n- Confirm NOTICE file is present and lists required attributions (Apache-2.0 and others)\n- Confirm third-party license texts are bundled where required\n- Confirm no proprietary or confidential code, no customer data, no embedded credentials in the repo history\n- Confirm trademark and brand policy for any project name (separate from the copyright license)\n\n### Step 7: Assemble the memo\n\nPrepend the work-product header from `~\u002F.claude\u002Fplugins\u002Fconfig\u002Fclaude-for-legal\u002Fip-legal\u002FCLAUDE.md` → `## Outputs` (differs by user role — see `## Who's using this`).\n\nThis memo and any dependency list reviewed may be privileged, confidential, or both. The output inherits that status from the source. Distribute only within the privilege circle; strip the work-product header before any external delivery (including before attaching the memo to an engineering ticket outside the privilege circle).\n\n> **No silent supplement.** If a research query to the configured legal research tool returns few or no results for a rule the memo needs (enforceability of AGPL's network trigger in a given jurisdiction, scope of GPL-3.0's patent grant, latest license text for a recently-relicensed package), report what was found and stop. Do NOT fill the gap from web search or model knowledge without asking. Say: \"The search returned [N] results from [tool]. Coverage appears thin for [rule \u002F license \u002F jurisdiction]. Options: (1) broaden the search query, (2) try a different research tool, (3) search the web — results will be tagged `[web search — verify]` and should be checked against a primary source before relying, or (4) flag as unverified and stop. Which would you like?\" A lawyer decides whether to accept lower-confidence sources.\n>\n> **Source attribution.** Where the memo cites a license text, a court decision interpreting a license, or guidance from a steward (FSF, OSI, SPDX, SFLC), tag the citation: `[OSI]`, `[SPDX]`, `[FSF]`, `[SFC\u002FSFLC]`, `[Westlaw]`, or the MCP tool name for citations retrieved from a connector; `[web search — verify]` for web-search citations; `[model knowledge — verify]` for citations recalled from training data; `[user provided]` for license text read directly from the repo. Citations tagged `verify` carry higher fabrication risk. Never strip or collapse the tags.\n\n```markdown\n[WORK-PRODUCT HEADER — per plugin config ## Outputs]\n\n# OSS Review: [Project \u002F Dependency List \u002F Package]\n\n**Reviewed:** [date]\n**Scope:** [Dependency list \u002F Single library \u002F Outbound code]\n**Deployment model:** [SaaS \u002F Binary \u002F Internal \u002F Embedded]\n\n---\n\n## Bottom line\n\n[Two sentences. Can this ship? What has to happen first?]\n\n**Packages reviewed:** [N]\n**By classification:** [N permissive, N weak copyleft, N strong copyleft, N public domain, N non-OSI, N unknown]\n**Issues:** [N]🔴 [N]🟠 [N]🟡 [N]🟢\n\n**Approval needed from:** [name, per practice profile]\n\n---\n\n## Top-of-memo flags\n\n[License-unknown list, license-conflict list, non-OSI-posing-as-OSS list, incompatible combinations]\n\n---\n\n## By package\n\n[Blocks from Step 4, grouped by severity]\n\n---\n\n## Jurisdiction note\n\nOSS license enforceability varies — AGPL's network trigger has not been broadly tested in court; GPL-3.0's patent clause reads differently under US vs. EU patent law; dedications to public domain are not universally recognized. State the governing-law choice for any downstream distribution (e.g., vendor agreements incorporating the code) and flag jurisdictions the practice profile marks as escalate.\n\n---\n\n## Outbound check (if applicable)\n\n[From Step 6]\n\n---\n\n## Approval routing\n\n[From practice profile — who approves, what triggers automatic escalation]\n```\n\n## Decision posture\n\nWhen a license cannot be confidently classified, flag it as **\"needs review\"** — do not call it permissive. Under-classifying license risk is a one-way door: a ship decision made on a permissive-by-default assumption becomes a source-disclosure obligation or an injunction months later. Over-flagging is a two-way door — the attorney narrows the list in review.\n\nLikewise, when the copyleft-trigger analysis turns on a contested question (AGPL's \"interacts over a network,\" GPL-3.0's \"conveying,\" the scope of LGPL linking), flag for attorney review and surface the factors cutting both ways.\n\n## Quality checks before delivering\n\n- [ ] Practice profile and any OSS policy were loaded\n- [ ] Deployment model was established before classifying obligations\n- [ ] Every dependency has a classification, including transitives where available\n- [ ] License-unknown packages are flagged, not defaulted to permissive\n- [ ] License text was read (not just metadata) for any copyleft or non-OSI finding\n- [ ] Source tags applied to citations; no stripped `verify` tags\n- [ ] Approver named per practice profile\n- [ ] Output marked with the work-product header\n\n## Close with the next-steps decision tree\n\nEnd with the next-steps decision tree per CLAUDE.md `## Outputs`. Customize the options to what this skill just produced — the five default branches (draft the X, escalate, get more facts, watch and wait, something else) are a starting point, not a lock-in. The tree is the output; the lawyer picks.\n\nIf the scan surfaced more than ~10 packages, or any time the user asks: offer the dashboard (see CLAUDE.md `## Outputs → Dashboard offer for data-heavy outputs`). Shape the offer to what's useful here — counts by license family (permissive \u002F weak copyleft \u002F strong copyleft \u002F AGPL \u002F proprietary \u002F unknown), risk distribution, and a table of findings with severity and package version.\n\n",{"name":5,"description":44,"argument-hint":45},"Open source license compliance check for a dependency list, a single library, or outbound code. Use when reviewing a manifest, SBOM, or repo for copyleft obligations and license compatibility, when asked whether a library can ship, or when preparing code to be open-sourced.\n","[file path to manifest \u002F SBOM | package name | repo path | paste text]","main","4a6c651889c97cc9140580363c73e0eb17379c2b","ip-legal\u002Fskills\u002Foss-review",1968,"https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-for-legal","https:\u002F\u002Fgithub.com\u002Fanthropics","https:\u002F\u002Fanthropic.com","2026-11-14 23:30:58",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add anthropics\u002Fclaude-for-legal --skill oss-review",{"tool":60,"command":61},"bunx","bunx skills add anthropics\u002Fclaude-for-legal --skill oss-review",{"tool":63,"command":64},"pnpm","pnpm dlx skills add anthropics\u002Fclaude-for-legal --skill oss-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-for-legal\u002Fblob\u002Fmain\u002Fip-legal\u002Fskills\u002Foss-review\u002FSKILL.md",true,[],[69,100,121,137,158,170],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":80,"publishedAt":39},"01M718SG9G2R92ECCD0HYK2R5E","reg-feed-watcher","Check regulatory feeds now and report what's new since the last check, filtered by your materiality threshold. Use when the user says \"check the feeds\", \"what's new\", \"regulatory update\", when running from the scheduled agent, or when manually pasting a regulatory development for classification and diff.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-for-legal\u002Fblob\u002Fmain\u002Fregulatory-legal\u002Fskills\u002Freg-feed-watcher\u002FSKILL.md",[75],{"categoryNo":76,"categoryName":77,"taxonomyType":78,"taxonomyTypeDesc":79},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[81,82,83,84,85,86,87,88,89,90,91,92,93,94,36,95,96,97,98,99],"reg","watcher","reg feed watcher","running","feeds","filtered","diff","development","for","classification","new","now","use","scheduled","check","last","update","report","regulatory",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":39},"01M718SCRTBN55DMTVSPG67A7N","policy-redraft","Produce a proposed marked-up policy redraft that closes a gap found by \u002Fregulatory-legal:gaps or \u002Fregulatory-legal:policy-diff. A first draft for internal review — not for direct application to approved policy documents. Use when the user says \"redraft the policy\", \"draft the policy fix\", \"mark up the policy\", or when gap-surfacer hands off a gap for drafting.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-for-legal\u002Fblob\u002Fmain\u002Fregulatory-legal\u002Fskills\u002Fpolicy-redraft\u002FSKILL.md",[],[107,108,87,89,109,110,111,93,112,36,113,114,21,115,116,117,118,119,99,120],"policy","policy redraft","up","fix","produce","documents","drafting","gaps","draft","id","gap","mark","first","direct",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":39},"01M718S8RV0C4NMVKG078CBFXP","policy-diff","Diff a specific regulatory change against the indexed policy library. Use when a reg has changed and you need to know which policies it touches and what the gap is, when the user says \"diff this reg against our policies\", \"which policy does this affect\", or \"gap analysis\", or when reg-feed-watcher hands off a material item.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-for-legal\u002Fblob\u002Fmain\u002Fregulatory-legal\u002Fskills\u002Fpolicy-diff\u002FSKILL.md",[],[87,107,128,129,36,130,131,81,33,82,132,31,27,133,93,134,117,135,136,99],"policy diff","which","you","analysis","change","material","gap analysis","what the","name",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":39},"01M718S6521Y0FT4T24VCFKVG5","matter-workspace","Manage matter workspaces — create, list, switch, close, or detach the active matter (practice-level). Use when working across multiple clients or matters and you need to keep one engagement's context separate from another, or when a substantive skill needs to know which matter it's working in.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-for-legal\u002Fblob\u002Fmain\u002Fregulatory-legal\u002Fskills\u002Fmatter-workspace\u002FSKILL.md",[],[144,145,129,146,147,148,91,93,36,130,149,150,151,152,153,154,155,30,156,157],"workspace","matter workspace","switch","manage","workspaces","keep","across","create","engagement","close","active","clients","it","context",{"skillNo":159,"name":114,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":39},"01M718S3FPEJNQGCMQ1AR8M4HE","Open gaps tracker — what's flagged and not yet closed. Use when the user asks \"what gaps are open\", \"gap tracker\", \"remediation status\", or wants to close (--close GAP-ID) or risk-accept (--accept GAP-ID) a tracked gap.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-for-legal\u002Fblob\u002Fmain\u002Fregulatory-legal\u002Fskills\u002Fgaps\u002FSKILL.md",[],[114,116,117,164,153,165,166,167,38,93,168,36,169],"risk","tracker","remediation","status","accept","user",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":181,"publishedAt":39},"01M718S06WSZ9Y24JKYM0VVPPE","gap-surfacer","Reference: shared gap- and comment-tracker framework backing \u002Fregulatory-legal:gaps and \u002Fregulatory-legal:comments. Tracks open policy gaps with remediation status, ingests gaps from policy-diff, surfaces what's open and aging, routes to owners, and notifies gap owners via Slack with per-send confirmation. Loaded by the gaps and comments skills before doing substantive work.","https:\u002F\u002Fgithub.com\u002Fanthropics\u002Fclaude-for-legal\u002Fblob\u002Fmain\u002Fregulatory-legal\u002Fskills\u002Fgap-surfacer\u002FSKILL.md",[176],{"categoryNo":177,"categoryName":178,"taxonomyType":179,"taxonomyTypeDesc":180},"01JBSEEDCAT000000000000037","律师与法务","PROFESSION","适用职业",[117,182,183,184,87,107,185,38,186,187,188,189,114,190,191,192,193,165,166,194],"gap surfacer","shared","tracks","send","confirmation","aging","false","comments","with","work","slack","via","surfaces"]