Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

licenseguardlicenseguard 搜索

Agent Skill

licenseguard 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,568

周安装

107

GitHub Stars

公开资料未说明

下载量

856
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:licenseguard(licenseguard 搜索)
来源仓库:https://github.com/suhteevah/licenseguard
安装命令:
openclaw skills install licenseguard
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install licenseguard

简介

开源许可证合规性扫描仪 - 在依赖项中捕获 Copyleft、病毒和有问题的许可证,避免它们造成法律风险

SKILL.md

name
licenseguard
description
Open source license compliance scanner — catches copyleft, viral, and problematic licenses in your dependencies before they create legal risk
homepage
https://licenseguard.pages.dev
metadata
user-invocable
true
disable-model-invocation
false

LicenseGuard -- Open Source License Compliance Scanner

LicenseGuard scans your dependency manifests for copyleft, viral, and problematic open source licenses before they create legal risk. It detects license declarations across 8 package manager ecosystems (npm, Python, Ruby, Go, Java/Kotlin, Rust, PHP, .NET), classifies risk levels from Critical (copyleft/viral) to Low (permissive), and produces compliance reports with compatibility matrices. All scanning happens locally using pattern matching on manifest files and license text -- no code or dependency data is sent externally.

Commands

Free Tier (No license required)

licenseguard scan [file|directory]

One-shot license compliance scan of dependency manifests.

How to execute:

bash "<SKILL_DIR>/scripts/licenseguard.sh" scan [target]

What it does:

  1. Accepts a file path or directory (defaults to current directory)
  2. Auto-detects package managers in use (npm, Python, Ruby, Go, Java, Rust, PHP, .NET)
  3. Finds all dependency manifest files (package.json, go.mod, Cargo.toml, pom.xml, etc.)
  4. Parses declared licenses from manifests and lock files
  5. Searches for LICENSE/COPYING/NOTICE files in dependency directories
  6. Matches SPDX license identifiers and common license text patterns
  7. Classifies each dependency license by risk level (Critical/High/Medium/Low/Unknown)
  8. Flags dependencies with NO declared license (unknown risk)
  9. Flags dual-licensed packages where one option is copyleft
  10. Calculates a compliance score (0-100)
  11. Free tier: limited to scanning up to 5 manifest files
  12. Exit code 0 if score >= 70, exit code 1 if score < 70 or critical issues found

Example usage scenarios:

  • "Scan my project for license issues" -> runs licenseguard scan .
  • "Check if my dependencies have copyleft licenses" -> runs licenseguard scan .
  • "Are my npm packages license-compliant?" -> runs licenseguard scan package.json
  • "Audit the licenses in this Go module" -> runs licenseguard scan go.mod
  • "What licenses are in my Rust dependencies?" -> runs licenseguard scan Cargo.toml

Pro Tier ($19/user/month -- requires LICENSEGUARD_LICENSE_KEY)

licenseguard scan [file|directory] (unlimited)

Full license compliance scan with no manifest file limit.

How to execute:

bash "<SKILL_DIR>/scripts/licenseguard.sh" scan [target]

What it does (beyond free):

  1. Unlimited manifest file scanning
  2. Deep license text pattern matching (GPL boilerplate, MIT text, Apache notice)
  3. Dual-license detection and risk assessment
  4. Detailed remediation advice per finding

licenseguard hooks install

Install git pre-commit hooks that scan dependency manifests for license issues before every commit.

How to execute:

bash "<SKILL_DIR>/scripts/licenseguard.sh" hooks install

What it does:

  1. Validates Pro+ license
  2. Copies lefthook config to project root
  3. Installs lefthook pre-commit hook
  4. On every commit: scans staged manifest files for license issues, blocks commit if copyleft/viral licenses detected

licenseguard hooks uninstall

Remove LicenseGuard git hooks.

bash "<SKILL_DIR>/scripts/licenseguard.sh" hooks uninstall

licenseguard report [directory]

Generate a full markdown license compliance report.

bash "<SKILL_DIR>/scripts/licenseguard.sh" report [directory]

What it does:

  1. Validates Pro+ license
  2. Runs full scan of the directory
  3. Generates a formatted markdown report with risk breakdown
  4. Includes per-dependency findings, compliance score, and remediation steps
  5. Lists all dependencies grouped by risk level
  6. Output written to LICENSEGUARD-REPORT.md

licenseguard matrix [directory]

Generate a license compatibility matrix.

bash "<SKILL_DIR>/scripts/licenseguard.sh" matrix [directory]

What it does:

  1. Validates Pro+ license
  2. Discovers all unique licenses in the project dependencies
  3. Produces a compatibility matrix showing which licenses can be combined
  4. Flags incompatible license combinations (e.g., GPL + proprietary)
  5. Helps with license selection for your own project

Team Tier ($39/user/month -- requires LICENSEGUARD_LICENSE_KEY with team tier)

licenseguard policy [directory]

Enforce an approved license list.

bash "<SKILL_DIR>/scripts/licenseguard.sh" policy [directory]

What it does:

  1. Validates Team+ license
  2. Loads approved license list from ~/.openclaw/openclaw.json (licenseguard.config.approvedLicenses)
  3. Scans all dependencies and flags any using a license NOT on the approved list
  4. Produces a pass/fail report for CI/CD gating
  5. Exit code 0 if all dependencies use approved licenses, 1 otherwise

licenseguard sbom [directory]

Generate a Software Bill of Materials (SBOM).

bash "<SKILL_DIR>/scripts/licenseguard.sh" sbom [directory]

What it does:

  1. Validates Team+ license
  2. Discovers all dependencies across all package managers
  3. Generates a CycloneDX-like SBOM in JSON and markdown formats
  4. Includes: package name, version, license, risk level, source URL
  5. Suitable for compliance audits, supply chain security, and regulatory requirements
  6. Output written to LICENSEGUARD-SBOM.json and LICENSEGUARD-SBOM.md

License Risk Categories

LicenseGuard classifies open source licenses into five risk levels:

Risk LevelLicensesImpact
Critical (Copyleft/Viral)GPL-2.0, GPL-3.0, AGPL-3.0, SSPL, EUPLMust open-source your code
High (Weak Copyleft)LGPL-2.1, LGPL-3.0, MPL-2.0, EPL-2.0, CDDLMust share modifications to the library
Medium (Notice Required)Apache-2.0, BSD-2-Clause, BSD-3-Clause, MIT, ISCMust include license notice
Low (Permissive)Unlicense, CC0, WTFPL, 0BSDMinimal restrictions
UnknownNOASSERTION, Custom, MissingCannot determine risk -- review manually

Supported Package Managers

EcosystemManifest FilesLock Files
npmpackage.jsonpackage-lock.json, yarn.lock
Pythonrequirements.txt, Pipfile, pyproject.toml, setup.py, setup.cfgPipfile.lock
RubyGemfileGemfile.lock
Gogo.modgo.sum
Java/Kotlinpom.xml, build.gradle, build.gradle.kts-
RustCargo.tomlCargo.lock
PHPcomposer.jsoncomposer.lock
.NET*.csproj, packages.config*.sln

Detection Methods

  1. Manifest parsing -- Extract declared licenses from package manager files
  2. License file scanning -- Search for LICENSE, COPYING, NOTICE files in dependency directories
  3. SPDX matching -- Match SPDX license identifiers (MIT, Apache-2.0, GPL-3.0-only, etc.)
  4. Text pattern matching -- Detect common license boilerplate (GPL preamble, MIT text, Apache notice)
  5. Missing license detection -- Flag dependencies with no license declaration
  6. Dual-license detection -- Identify packages offering multiple license options (OR expressions)

Configuration

Users can configure LicenseGuard in ~/.openclaw/openclaw.json:

{
  "skills": {
    "entries": {
      "licenseguard": {
        "enabled": true,
        "apiKey": "YOUR_LICENSE_KEY_HERE",
        "config": {
          "riskThreshold": "high",
          "approvedLicenses": ["MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause", "ISC"],
          "excludePackages": [],
          "excludePatterns": ["**/node_modules/**", "**/vendor/**"],
          "reportFormat": "markdown"
        }
      }
    }
  }
}

Important Notes

  • Free tier works immediately with no configuration (limited to 5 manifest files)
  • All scanning happens locally -- no code or dependency data is sent to external servers
  • License validation is offline -- no phone-home or network calls
  • Zero telemetry -- no usage data, analytics, or tracking
  • Pattern matching on manifests + license files, no network calls during scanning
  • Git hooks use lefthook which must be installed (see install metadata above)
  • Exit codes: 0 = compliant (score >= 70), 1 = issues found (for CI/CD integration)
  • Compliance score calculation: starts at 100, deducts points per risk level (Critical: -15, High: -10, Medium: -3, Unknown: -8)

Error Handling

  • If lefthook is not installed and user tries hooks install, prompt to install it
  • If license key is invalid or expired, show clear message with link to https://licenseguard.pages.dev/renew
  • If a manifest file cannot be parsed, warn and continue with other files
  • If no manifest files found in target, report clean scan with info message
  • If package manager is not recognized, skip with a warning

When to Use LicenseGuard

The user might say things like:

  • "Scan for license issues in my dependencies"
  • "Check if any of my packages use GPL"
  • "Are my npm dependencies license-compliant?"
  • "Find copyleft licenses in this project"
  • "Generate a license compliance report"
  • "Set up license checking on my commits"
  • "Create an SBOM for this project"
  • "What licenses are my Go dependencies using?"
  • "Check license compatibility"
  • "Enforce our approved license list"
  • "Are there any viral licenses in my Rust crates?"
  • "Scan my Python requirements for problematic licenses"

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

74.36%
按下载量换算637

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills