Xpersona
W

Wip License Hook

CLAWHUB · Unverified

License rug-pull detection. Scans dependencies and forks for license changes, gates upstream merges, maintains a license ledger, and generates a public compl...

62
Rank
84
Safety
1.7k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17620xzyc7kfan8m36at57m6n83h8he:wip-license-hook
  1. Install using `clawhub skill install s17620xzyc7kfan8m36at57m6n83h8he:wip-license-hook` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/parkertoddbrooks/wip-license-hook before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-parkertoddbrooks-wip-license-hook/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

160,000 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: wip-license-hook
description: License rug-pull detection. Scans dependencies and forks for license changes, gates upstream merges, maintains a license ledger, and generates a public compliance dashboard.
license: MIT
interface: [cli, module, mcp]
metadata:
  display-name: "License Rug-Pull Detection"
  version: "1.0.0"
  homepage: "https://github.com/wipcomputer/wip-ai-devops-toolbox"
  author: "Parker Todd Brooks"
  category: dev-tools
  capabilities:
    - license-scanning
    - rug-pull-detection
    - compliance-gating
    - license-ledger
  requires:
    bins: [node, git, npm]
  openclaw:
    requires:
      bins: [node, git, npm]
    install:
      - id: node
        kind: node
        package: "@wipcomputer/wip-license-hook"
        bins: [wip-license-hook]
        label: "Install via npm"
    emoji: "🛡️"
compatibility: Requires git, npm, node. Node.js 18+.
---

# wip-license-hook

Detect license rug-pulls before they reach your codebase.

## Commands

### Initialize ledger for a project
```bash
wip-license-hook init --repo /path/to/repo
```
Scans all current dependencies and forks, records their licenses, creates `LICENSE-LEDGER.json`.

### Scan all dependencies
```bash
wip-license-hook scan --all
```
Checks every dependency and fork against the ledger. Updates `last_checked`. Flags any changes.

### Pre-merge gate
```bash
wip-license-hook gate --upstream <remote>
```
Fetches upstream without merging. Checks license. Returns exit code 0 (safe) or 1 (changed/blocked).

Use in git hooks or CI.

### Generate report
```bash
wip-license-hook report
```
Outputs a human-readable license health report.

### Generate dashboard
```bash
wip-license-hook dashboard --output ./docs
```
Creates a static HTML dashboard from the ledger. Deploy to GitHub Pages.

## Daily Cron Usage

Add to HEARTBEAT.md or as a cron job:
```
wip-license-hook scan --all --alert
```

If any license changed, sends alert via configured channel (email, iMessage, Discord).

## What It Detects

- LICENSE file content changes
- package.json license field changes
- SPDX header changes
- License removal (file deleted)
- License downgrade (permissive → restrictive)

## What It Does NOT Do

- It does not legal advice make
- It does not auto-merge anything ever
- It does not modify upstream code

## Alert Levels

- 🟢 **Clean** — license unchanged since adoption
- 🟡 **Warning** — license metadata inconsistency (e.g., LICENSE file says MIT but package.json says ISC)
- 🔴 **Blocked** — license changed from what was adopted. Merge blocked. Human review required.

## MCP

Tools: `license_scan`, `license_audit`, `license_gate`, `license_ledger`

Add to `.mcp.json`:
```json
{
  "wip-license-hook": {
    "command": "node",
    "args": ["/path/to/tools/wip-license-hook/mcp-server.mjs"]
  }
}
```

README.md

###### WIP Computer

[![npm](https://img.shields.io/npm/v/@wipcomputer/wip-license-hook)](https://www.npmjs.com/package/@wipcomputer/wip-license-hook) [![CLI / TUI](https://img.shields.io/badge/interface-CLI_/_TUI-black)](https://github.com/wipcomputer/wip-ai-devops-toolbox/blob/main/tools/wip-license-hook/cli.js) [![MCP Server](https://img.shields.io/badge/interface-MCP_Server-black)](https://github.com/wipcomputer/wip-ai-devops-toolbox/blob/main/tools/wip-license-hook/mcp-server.mjs) [![Claude Code Skill](https://img.shields.io/badge/interface-Claude_Code_Skill-black)](https://github.com/wipcomputer/wip-ai-devops-toolbox/blob/main/tools/wip-license-hook/SKILL.md) [![Universal Interface Spec](https://img.shields.io/badge/Universal_Interface_Spec-black?style=flat&color=black)](https://github.com/wipcomputer/wip-ai-devops-toolbox/blob/main/tools/wip-universal-installer/SPEC.md)

# wip-license-hook

License rug-pull detection and dependency license compliance for open source projects.

## The Problem

You fork an MIT project. You build on it. Six months later, the upstream quietly changes to BSL or proprietary. You pull the update without checking. Now your project is poisoned.

This has happened. It will happen again.

## The Solution

A pre-merge hook + daily scanner + public dashboard that:

1. **Maintains a license ledger** of every dependency and fork at time of adoption
2. **Gates all upstream merges** — if the license changed, the merge is blocked
3. **Scans daily** — catches license drift before it reaches your codebase
4. **Publishes a dashboard** — public proof of license health for anyone using your forks

## How It Works

### Git Hooks (Always On)

**Two mandatory hooks. No bypass.**

**Pre-pull** — before pulling anything from upstream:
```
git pull upstream main
  → hook fires FIRST
  → fetch without merge
  → check LICENSE, package.json, SPDX headers
  → compare against ledger
  → SAME? → pull proceeds
  → CHANGED? → BLOCK. Flag. Document. Notify. Do NOT pull.
```

**Pre-push** — before pushing any commit to our branch:
```
git push origin main
  → hook fires FIRST
  → check upstream license status
  → compare against ledger
  → SAME? → push proceeds
  → CHANGED? → ALERT. Warn that upstream has drifted. Push still allowed (it's our code) but we know.
```

Pre-pull = hard gate (blocks).
Pre-push = alert (warns, doesn't block our own work).

### License Ledger

`LICENSE-LEDGER.json` tracks every dependency:

```json
{
  "dependencies": [
    {
      "name": "openclaw",
      "source": "github:openclaw/openclaw",
      "type": "fork",
      "license_at_adoption": "MIT",
      "license_current": "MIT",
      "adopted_date": "2026-02-05",
      "last_checked": "2026-02-15",
      "commit_at_adoption": "abc123",
      "status": "clean"
    }
  ],
  "last_full_scan": "2026-02-15T08:00:00Z",
  "alerts": []
}
```

Status values: `clean` | `changed` | `removed` | `unknown`

### LICENSE Snapshots

Physical copies of LICENSE files at adoption. N

_meta.json

{
  "ownerId": "kn7b4mj57xb02gqhvjzgzkxq557zz95h",
  "slug": "wip-license-hook",
  "version": "1.9.72",
  "publishedAt": 1776806711220
}

CHANGELOG.md

# Changelog

## 0.1.0 (2026-02-15)

### Initial Release

- Core license detection engine with fingerprinting for 14 license types
- License ledger (`LICENSE-LEDGER.json`) with dependency tracking
- LICENSE file snapshot archiving with date-stamped copies
- Auto-detection of package managers: npm, pip, cargo, go modules
- Git pre-pull hook (hard gate — blocks merge on license change)
- Git pre-push hook (advisory — warns but doesn't block)
- Upstream fork license monitoring via git remote
- Static HTML dashboard generator with dark theme
- CLI with commands: init, scan, check, gate, report, dashboard, alert, install, badge
- Offline mode (skips network calls, uses cached data)
- Shields.io badge URL generation

skill-card.md

## Description:

License rug-pull detection. Scans dependencies and forks for license changes, gates upstream merges, maintains a license ledger, and generates a public compliance dashboard.

This skill is ready for commercial/non-commercial use.

## Publisher:

[parkertoddbrooks](https://clawhub.ai/user/parkertoddbrooks)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineering teams use this skill to monitor dependency and fork license changes, gate upstream merges, maintain a license ledger, and generate compliance reports or dashboards.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Git-hook installation can persist behavior in a repository and may overwrite existing hooks.

Mitigation: Review the hook scripts first, back up .git/hooks, and avoid running the installer until overwrite behavior is confirmed acceptable.

Risk: Scanning untrusted repositories or package manifests may expose local command and path-handling risks.

Mitigation: Use trusted repositories, prefer offline mode for untrusted code, and review scan results before acting on them.

Risk: An unpinned npx fallback can fetch code that changes between installations.

Mitigation: Install a reviewed, pinned package version or avoid the fallback path until it is fixed.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/parkertoddbrooks/skills/wip-license-hook)
- [npm package @wipcomputer/wip-license-hook](https://www.npmjs.com/package/@wipcomputer/wip-license-hook)
- [Project Homepage](https://github.com/wipcomputer/wip-ai-devops-toolbox)
- [Skill Definition](https://github.com/wipcomputer/wip-ai-devops-toolbox/blob/main/tools/wip-license-hook/SKILL.md)
- [MCP Server](https://github.com/wipcomputer/wip-ai-devops-toolbox/blob/main/tools/wip-license-hook/mcp-server.mjs)
- [Universal Interface Spec](https://github.com/wipcomputer/wip-ai-devops-toolbox/blob/main/tools/wip-universal-installer/SPEC.md)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration, guidance, files]

**Output Format:** [Markdown with inline shell commands and JSON configuration snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May direct agents to generate or update LICENSE-LEDGER.json, license reports, alerts, and static dashboard files when the underlying CLI is run.]

## Skill Version(s):

1.9.72 (source: ClawHub release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Wip License Hook and adjacent AI workflows.