# Open-Source License Risk Gate

> Reads an npm lockfile and flags copyleft, unknown and missing licenses before a release or due-diligence review.

Open-Source License Risk Gate is a free AI agent skill on Agensi by Prateek, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Prateek](https://www.agensi.io/creators/prateek)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/open-source-license-risk-gate
- Tags: legal-compliance, security, apis-backend

## What it does

- Separates permissive, weak and strong copyleft licenses
- Catches AGPL packages in network services
- Finds dependencies with no declared license
- Gives the action for each flagged package

## Who it's for

- **Founders preparing for an acquisition or sale:** Clean up your code assets so your legal review goes smoothly and you do not lose deal value. Try: "Audit my package-lock.json for any legal risks before our due diligence review next week."
- **Freelance developers shipping commercial software:** Ensure you are not accidentally giving away your client's intellectual property by using the wrong libraries. Try: "Check my project's dependencies for GPL or AGPL licenses that might cause problems."
- **Small agency owners launching web services:** Avoid legal headaches by catching licenses that force you to share your private server code. Try: "Scan these npm dependencies to see if any of them have restrictive licenses for a SaaS app."

## About this skill

If you use open-source code in your project, you might be following rules you never agreed to. Some licenses require you to share your entire private codebase if you use even one of their tools. This skill reads your project files to find those hidden legal traps before you launch or sell your business.

### How it works
1. You upload your project's dependency file or a list of the tools you use.
2. Your AI agent runs an audit to check every single library against known license types.
3. The skill groups these tools by risk level, from "Permissive" to "Action Needed".
4. You get a clear table showing exactly which tools are risky and what you should do next.

### Frameworks & tools
This skill uses a Python script to scan JSON files like package-lock.json. It understands standard license names used in the npm ecosystem.

### Why this beats prompting it yourself
Asking an AI to "check my licenses" usually results in generic advice or missing small details in large files. This skill uses a specific script to look at every single entry in your lockfile, ensuring no small library is missed. It follows strict rules to separate libraries that are fine for internal use from those that are dangerous to ship to customers.

### Use cases
- Check a web app before launching it as a paid service
- Prepare a technical report for a company acquisition
- Find libraries that are missing a license entirely
- Decide if a specific tool is safe to include in a commercial product

### Known limitations
This is not legal advice. The skill reads what the code says its license is, but it does not read the full text of every legal document. It also includes tools used only during development.

## Requires

- Python 3.9+

## Technical details

This skill executes a bundled Python script (audit_licenses.py) that parses package-lock.json (v2/v3) or npm ls JSON output. It maps SPDX identifiers to risk categories like Strong Copyleft, Weak Copyleft, and Permissive. It identifies specific risks for network-distributed software (AGPL) versus traditionally distributed software (GPL).

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Open-Source License Risk Gate skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Open-Source License Risk Gate do?

Reads an npm lockfile and flags copyleft, unknown and missing licenses before a release or due-diligence review.

### Which AI agents support Open-Source License Risk Gate?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Open-Source License Risk Gate?

Connect your AI agent to Agensi through MCP, then ask it to use Open-Source License Risk Gate on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
