Xpersona
W

Wip Repo Permissions Hook

CLAWHUB · Unverified

Repo visibility guard. Blocks repos from going public without a -private counterpart.

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K 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-repo-permissions-hook
  1. Install using `clawhub skill install s17620xzyc7kfan8m36at57m6n83h8he:wip-repo-permissions-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-repo-permissions-hook before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-parkertoddbrooks-wip-repo-permissions-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

118,738 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: wip-repo-permissions-hook
description: Repo visibility guard. Blocks repos from going public without a -private counterpart.
license: MIT
interface: [cli, module, mcp, hook, plugin]
metadata:
  display-name: "Repo Visibility Guard"
  version: "1.0.0"
  homepage: "https://github.com/wipcomputer/wip-ai-devops-toolbox"
  author: "Parker Todd Brooks"
  category: dev-tools
  capabilities:
    - visibility-check
    - org-audit
    - public-gate
  requires:
    bins: [node, gh]
  openclaw:
    requires:
      bins: [node, gh]
    install:
      - id: node
        kind: node
        package: "@wipcomputer/wip-repo-permissions-hook"
        bins: [wip-repo-permissions]
        label: "Install via npm"
    emoji: "🔒"
compatibility: Requires node, gh (GitHub CLI). Node.js 18+.
---

# Repo Permissions Hook

## What This Does

Prevents repos from being made public unless a `-private` counterpart exists on GitHub. Protects internal plans, todos, and development context from accidental exposure.

## The Rule

Every repo that goes public must have a `{name}-private` repo. The private repo holds `ai/` folders with plans, todos, dev updates, and notes. The public repo has the same code without `ai/`.

Forks of external projects are exempt.

## How to Use

### Check before changing visibility
```bash
node cli.js check <org>/<repo>
```

### Audit all public repos
```bash
node cli.js audit <org>
```

### Install as Claude Code hook
Add to `~/.claude/settings.json` under `hooks.PreToolUse` with matcher `"Bash"`.

### Install as OpenClaw plugin
Copy to `~/.ldm/extensions/wip-repo-permissions-hook/` and restart gateway.

### MCP

Tools: `repo_permissions_check`, `repo_permissions_audit`

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

README.md

###### WIP Computer

[![npm](https://img.shields.io/npm/v/@wipcomputer/wip-repo-permissions-hook)](https://www.npmjs.com/package/@wipcomputer/wip-repo-permissions-hook) [![CLI / TUI](https://img.shields.io/badge/interface-CLI_/_TUI-black)](https://github.com/wipcomputer/wip-ai-devops-toolbox/blob/main/tools/wip-repo-permissions-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-repo-permissions-hook/mcp-server.mjs) [![OpenClaw Plugin](https://img.shields.io/badge/interface-OpenClaw_Plugin-black)](https://github.com/wipcomputer/wip-ai-devops-toolbox/blob/main/tools/wip-repo-permissions-hook/openclaw.plugin.json) [![Claude Code Hook](https://img.shields.io/badge/interface-Claude_Code_Hook-black)](https://github.com/wipcomputer/wip-ai-devops-toolbox/blob/main/tools/wip-repo-permissions-hook/guard.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-repo-permissions-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-repo-permissions-hook

## Repo visibility guard. Blocks repos from going public without a -private counterpart.

Every repo follows the public/private pattern. The private repo is the working repo with `ai/` folders (plans, todos, dev updates). The public repo is the same code without `ai/`. Making a repo public without the -private counterpart exposes internal development context.

This tool blocks that.

## How It Works

Before any repo visibility change to public, the guard checks:

1. Is this a fork of an external project? If yes, allow (exempt).
2. Does `{repo-name}-private` exist on GitHub? If yes, allow.
3. Otherwise, block with an error.

## Surfaces

- **CLI** ... `wip-repo-permissions check|audit|can-publish`
- **Claude Code hook** ... PreToolUse:Bash, blocks `gh repo edit --visibility public`
- **OpenClaw plugin** ... before_tool_use lifecycle hook
- **Cron audit** ... periodic scan of all public repos via ldm-jobs

## CLI Usage

```bash
# Check a single repo
node cli.js check wipcomputer/memory-crystal
# -> OK: memory-crystal-private exists

# Check a repo without -private (blocked)
node cli.js check wipcomputer/wip-bridge
# -> BLOCKED: no -private counterpart

# Audit all public repos in org
node cli.js audit wipcomputer

# Alias for check
node cli.js can-publish wipcomputer/wip-ai-devops-toolbox
```

## Claude Code Setup

Add to `~/.claude/settings.json`:

```json
{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [{
          "type": "command",
          "command": "node /path/to/wip-repo-permissions-hook/guard.mjs",
          "timeout": 10
        }]
      }
    ]
  }
}
```

## OpenClaw S

_meta.json

{
  "ownerId": "kn7b4mj57xb02gqhvjzgzkxq557zz95h",
  "slug": "wip-repo-permissions-hook",
  "version": "1.9.72",
  "publishedAt": 1776806730790
}

skill-card.md

## Description:

Repo visibility guard. Blocks repos from going public without a -private counterpart.

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 repository maintainers use this skill to check whether a GitHub repository can be made public under a public/private repository workflow. It can run as a CLI, Claude Code hook, OpenClaw plugin, or MCP tool to check individual repositories and audit public repositories in an organization.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The guard is advisory and can miss cases because hook parsing and audit behavior are limited.

Mitigation: Review the skill before relying on it, compensate for missed command forms and the 200-repository audit limit, and use server-side GitHub organization controls for critical visibility policy.

Risk: The hook can fail open and may allow an action when input parsing or execution fails.

Mitigation: Treat local hook behavior as a convenience check, not a complete enforcement boundary, and add independent repository visibility controls.

Risk: The MCP dependency is unpinned.

Mitigation: Pin or otherwise control dependency versions before deployment in sensitive environments.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/parkertoddbrooks/skills/wip-repo-permissions-hook)
- [Project Homepage](https://github.com/wipcomputer/wip-ai-devops-toolbox)
- [npm Package](https://www.npmjs.com/package/@wipcomputer/wip-repo-permissions-hook)

## Skill Output:

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

**Output Format:** [Markdown and plain text with JSON configuration examples and shell commands]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires Node.js and GitHub CLI access for repository checks.]

## Skill Version(s):

1.9.72 (source: server 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.

openclaw.plugin.json

{
  "name": "wip-repo-permissions-hook",
  "version": "1.0.0",
  "description": "Blocks repos from going public without a -private counterpart. Protects internal plans, todos, and dev context from exposure.",
  "lifecycle": {
    "before_tool_use": "./guard.mjs"
  }
}

Sponsored

Ads related to Wip Repo Permissions Hook and adjacent AI workflows.