oss-review
Skill này làm gì
Skill này kiểm tra phần mềm mã nguồn mở theo quy tắc giấy phép trước khi sản phẩm được phát hành hoặc code được công bố. Nó dành cho lập trình viên và nhân viên pháp lý quản lý các phụ thuộc và code đầu ra.
Khi nào nên dùng
- ✓Khi bạn muốn biết một thư viện có thể dùng trong sản phẩm được phát hành không.
- ✓Khi một danh sách phụ thuộc hoặc danh sách thành phần phần mềm cần được rà soát giấy phép.
- ✓Khi code sắp được phát hành dưới dạng mã nguồn mở.
Liên kết skill
https://github.com/anthropics/claude-for-legal/blob/main/ip-legal/skills/oss-review/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy kiểm tra các phụ thuộc trong package.json của chúng tôi xem có giấy phép copyleft không, vì chúng tôi phát hành một ứng dụng máy tính để bàn.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill phân loại từng phụ thuộc theo họ giấy phép, đọc nội dung giấy phép thực tế, và đối chiếu nghĩa vụ với cách phần mềm được phân phối, như website, ứng dụng tải về hoặc dùng nội bộ. Sau đó nó đề xuất hành động cho từng mục rủi ro, như tuân thủ, thay thế hoặc xin rà soát pháp lý.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
/oss-review
Runs an open source license compliance check against the practice profile in ~/.claude/plugins/config/claude-for-legal/ip-legal/CLAUDE.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.
Instructions
Load
~/.claude/plugins/config/claude-for-legal/ip-legal/CLAUDE.md. If placeholders present, stop and prompt: "Run/ip-legal:cold-start-interviewfirst — 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 / review / banned licenses on this team.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.
Establish the deployment model before classifying obligations — SaaS, distributed binary, internal only, or embedded. The same dependency list triggers different obligations depending on this.
Follow the workflow below. In particular:
- Read the actual license text, not just metadata — LICENSE files can be wrong, package metadata can be stale.
- Classify each package into permissive / weak copyleft / strong copyleft / public domain / non-OSI / unknown.
- Flag license-unknown as "needs review," not permissive by default.
- Flag non-OSI source-available licenses (SSPL, BUSL, Commons Clause, Elastic License, fair-source) — these are not open source.
- For outbound code, check that the chosen outbound license is compatible with every embedded dependency.
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.
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.
Examples
/ip-legal:oss-review ~/code/my-project/package.json
/ip-legal:oss-review ~/code/my-project/requirements.txt
/ip-legal:oss-review redis
/ip-legal:oss-review ~/code/my-project # repo root — scan all manifests
Works better connected
OSS clearance requests usually come in via a ticketing system. Connected to Jira, Linear, or Asana, this skill can: monitor incoming OSS requests, respond with guidance directly in the ticket (flagging incomplete info, asking for the repo link, returning the license-family classification), and track clearance status across requests.
Without a connector, paste the ticket or describe the request and I'll handle
it one at a time. See CONNECTORS.md at the repo root for how to add a
ticketing connector.
Matter context
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 /ip-legal:matter-workspace switch <slug> or say practice-level." Load the active matter's matter.md for matter-specific context and overrides. Write outputs to the matter folder at ~/.claude/plugins/config/claude-for-legal/ip-legal/matters/<matter-slug>/. Never read another matter's files unless Cross-matter context is on.
Purpose
Tell 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.
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'
Câu hỏi thường gặp
Tại sao cách phân phối lại quan trọng?
Cùng một thư viện có thể tạo ra nghĩa vụ khác nhau tùy phần mềm là website, ứng dụng tải về hay chỉ dùng nội bộ.
Nó có tự đọc giấy phép không?
Có. Nó đọc nội dung giấy phép thực tế, không chỉ thông tin của gói.
Nếu một gói không có giấy phép thì sao?
Skill đánh dấu các gói có giấy phép không rõ để rà soát.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 9.9k
- Vị trí xếp hạng
- #12105
- Giấy phép
- Apache-2.0
- Cập nhật
- 29/10/2026
Bình luận
- …
Thêm skill từ kho mã này
ai-inventory
9.9kGiúp agent của bạn lập bản kiểm kê công cụ AI theo từng hệ thống theo Đạo luật AI của EU, ghi vai trò, mức rủi ro và cơ sở phân loại.
aia-generation
9.9kGiúp agent của bạn viết đánh giá tác động AI cho một trường hợp sử dụng, gồm rủi ro, phân loại pháp lý, mức khớp chính sách và điều kiện đề xuất.
cold-start-interview
9.9kGiúp agent của bạn hiểu cách vận hành thực hành quản trị AI qua một cuộc phỏng vấn thiết lập và tạo hồ sơ thực hành từ tài liệu chính sách.
customize
9.9kGiúp agent của bạn chỉnh một phần hồ sơ thực hành quản trị AI, như mức rủi ro, người liên hệ hoặc lập trường chính sách, mà không thiết lập lại.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.