scan-licenses
Analyze open source license compliance for a project's dependencies.
What this skill does
# Open Source License Compliance Scan Analyze project dependencies for license compliance. ## Workflow ### Step 1: Load Required Skills Load these skills: - `license-compliance` - License requirements and compatibility - `sbom-management` - Dependency tracking ### Step 2: Identify Project Type Detect the project type and package manager: - **.NET**: Look for `*.csproj`, `*.sln`, `packages.config` - **Node.js**: Look for `package.json`, `package-lock.json` - **Python**: Look for `requirements.txt`, `pyproject.toml`, `setup.py` - **Java**: Look for `pom.xml`, `build.gradle` ### Step 3: Extract Dependencies For .NET projects: ```bash dotnet list package --include-transitive ``` For Node.js: ```bash npm ls --all --json ``` ### Step 4: Analyze Licenses For each dependency: 1. Identify the license (SPDX identifier) 2. Categorize (Permissive, Weak Copyleft, Strong Copyleft) 3. Check against policy (Approved, Requires Review, Prohibited) 4. Identify obligations ### Step 5: Check Compatibility Verify license compatibility: - Check inbound vs outbound license compatibility - Identify conflicting licenses - Flag copyleft contamination risks ### Step 6: Generate Report Create a comprehensive license compliance report. ## Example Usage ```bash # Scan current directory /compliance-planning:scan-licenses # Scan specific project /compliance-planning:scan-licenses "./src/MyApp" # Scan solution /compliance-planning:scan-licenses "./MySolution.sln" ``` ## Output Format ````markdown # License Compliance Report: [Project Name] ## Summary | Metric | Count | |--------|-------| | Total Dependencies | [N] | | Direct Dependencies | [N] | | Transitive Dependencies | [N] | | Approved Licenses | [N] | | Requires Review | [N] | | Prohibited | [N] | | Unknown | [N] | ### Compliance Status: [COMPLIANT / REVIEW REQUIRED / NON-COMPLIANT] --- ## License Distribution | License | Category | Count | Status | |---------|----------|-------|--------| | MIT | Permissive | [N] | Approved | | Apache-2.0 | Permissive | [N] | Approved | | GPL-3.0 | Strong Copyleft | [N] | Prohibited | --- ## Dependencies by Status ### Approved | Package | Version | License | Category | |---------|---------|---------|----------| | [Package] | [Version] | [License] | Permissive | ### Requires Review | Package | Version | License | Concern | |---------|---------|---------|---------| | [Package] | [Version] | [License] | [Why review needed] | ### Prohibited | Package | Version | License | Issue | Alternative | |---------|---------|---------|-------|-------------| | [Package] | [Version] | [License] | [Issue] | [Suggested alternative] | ### Unknown | Package | Version | License Info | Action | |---------|---------|--------------|--------| | [Package] | [Version] | [Info] | [Required action] | --- ## Compatibility Analysis ### License Conflicts | Package 1 | License 1 | Package 2 | License 2 | Conflict | |-----------|-----------|-----------|-----------|----------| ### Copyleft Assessment **Copyleft Packages Found:** [Y/N] | Package | License | Impact | Mitigation | |---------|---------|--------|------------| --- ## Obligations Summary ### Attribution Required | Package | License | Attribution Text | |---------|---------|-----------------| ### Source Disclosure Required | Package | License | Requirement | |---------|---------|-------------| ### Notice Files Required | Package | NOTICE File | Status | |---------|-------------|--------| --- ## Recommended Actions ### Immediate Actions 1. **Replace prohibited packages** - [Package] -> [Alternative] 2. **Review flagged packages** - [Package] - [Review reason] ### Documentation Actions 1. **Update NOTICE file** - Add attributions for: [Packages] 2. **Add license files** - Include: [License files needed] --- ## NOTICE File Content ```text THIRD-PARTY SOFTWARE NOTICES AND INFORMATION This software includes the following third-party components: [Package Name] ([Version]) License: [License] [Copyright notice] --- [Continue for all dependencies] ``` --- ## Policy Compliance | Policy Rule | Status | Details | |-------------|--------|---------| | No GPL in proprietary | [Status] | [Details] | | No AGPL | [Status] | [Details] | | All licenses identified | [Status] | [Details] | | Attributions complete | [Status] | [Details] | ```` ## .NET-Specific Commands For .NET projects, the following commands are useful: ```bash # Install license checker dotnet tool install --global dotnet-project-licenses # Generate license report dotnet-project-licenses -i ./MySolution.sln # Generate SBOM dotnet CycloneDX ./MySolution.sln -o sbom.json -j ```
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.