# License Detection And Policy

> Detect repository license from files and config, classify permissiveness, and gate generation.

- Skill: `shyamsridhar123/license-detection-and-policy` (Agent Skill)
- Install (CLI): `npx skillmds@latest add shyamsridhar123/license-detection-and-policy`
- Raw SKILL.md: https://api.skillmd.com/api/skills/shyamsridhar123/license-detection-and-policy/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: shyamsridhar123 (https://skillmd.com/u/shyamsridhar123)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/shyamsridhar123/license-detection-and-policy

---


# License Detection And Policy

Detect repository license from files and config, classify permissiveness, and gate generation.

## When to Use

Use this skill when:

- Working with code in `src/utils/license.ts/`
- User mentions "license"
- User mentions "permissive"
- User mentions "spdx"
- User mentions "MIT"
- User mentions "GPL"
- User mentions "policy"

## Patterns

- pattern-based SPDX detection across common files
- package.json and pyproject.toml license fallback
- proprietary indicators
- status formatting for CLI output

## Examples

```
const lic = await detectLicense(repoPath); formatLicenseStatus(lic);
```

## Category

**security** - Authentication, authorization, and data protection

