# License Audit

> Description

- Skill: `jiayaoqijia/license-audit` (Agent Skill, multi-file: 5 files)
- Install (CLI): `npx skillmds@latest add jiayaoqijia/license-audit`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jiayaoqijia/license-audit/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: jiayaoqijia (https://skillmd.com/u/jiayaoqijia)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/jiayaoqijia/license-audit

---


## Description

Collect license metadata for project dependencies. Performs license compliance audits and generates license reports for open source projects.

## Inputs

```json
{
  "project_path": "Path to project directory",
  "format": "json|csv"
}
```

## Outputs

```json
{
  "ok": true,
  "data": {
    "dependencies": [],
    "licenses": []
  }
}
```

## Usage

### Demo Mode
```bash
python scripts/main.py --demo
```

### Audit Project Licenses
```bash
echo '{"project_path": ".", "format": "json"}' | python3 scripts/main.py
```

## Examples

### Example 1: License Report
```bash
$ echo '{"project_path": ".", "format": "json"}' | python3 scripts/main.py
{
  "ok": true,
  "data": {
    "dependencies": ["numpy", "requests"],
    "licenses": ["MIT", "Apache-2.0"]
  }
}
```

## Error Handling

When an error occurs, the skill returns:

```json
{
  "ok": false,
  "error": "Error description",
  "details": {
    "project_path": "Directory not found"
  }
}
```

