# Vibe publication leak guard

> Vibe publication leak guard is an open-source agent skill for security. Scans a built site for private or unapproved content before it goes live. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ash1794/vibe-engineering/tree/master/plugins/vibe-engineering/skills/vibe-publication-leak-guard
- **Repository:** https://github.com/ash1794/vibe-engineering
- **GitHub stars:** 163
- **License:** MIT
- **Skill name:** vibe-publication-leak-guard
- **Collection:** https://github.com/ash1794/vibe-engineering
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

This skill guards a public build against leaking material that was never meant to ship. After the production build, it scans the artifacts a server or CDN can serve, including rendered HTML, serialized component payloads, first-party JS and CSS chunks, static data routes, feeds, and the public directory. A private tier always applies, covering private source paths, denylist terms and hashes of rejected sentences, while a draft tier applies only in production to catch work-in-progress markers, prompt leftovers and items still awaiting sign-off.

The workflow treats drafts as gated content rather than deleted content. Items that need approval get stable ids and a flag, so preview builds show them with a visible marker while production builds drop them. Approval states live in a ledger that the human edits, and the agent is told to leave it alone. The skill also covers keeping raw private notes out of git, storing the denylist outside the repository, and running a self-test that plants known leaks to confirm the scanner catches them. It is meant to run in CI after the build and before deployment.

The skill is written as instructions and does not ship scripts. Using it means a site with a build step and a CI pipeline, plus a denylist maintained by the team.

## When your agent uses it

> Keeps private and unapproved material out of a public build. Scans the built output (HTML, serialized component payloads, client JS and CSS chunks, static data routes, public files) against a private tier that always applies and a draft tier that applies in production. Gates work-in-progress so it shows in preview and is absent from production, and keeps sign-off in a ledger only the human writes. Use when a site or app publishes content that agents drafted or that came from private sources.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ash1794/vibe-engineering/tree/HEAD/plugins/vibe-engineering/skills/vibe-publication-leak-guard)
- [License: MIT](https://github.com/ash1794/vibe-engineering/tree/HEAD/plugins/vibe-engineering/skills/vibe-publication-leak-guard)

## Features

- **Artifact-level build scanning:** Scans the emitted output, including HTML, component payloads, JS and CSS chunks, and public files, rather than only the source.
- **Two-tier leak rules:** Applies a private tier in every build and a draft tier that only runs in production.
- **Draft gating by flag:** Keeps unapproved items visible in preview builds with a marker and removes them from production.
- **Human-owned approval ledger:** Keeps sign-off records in a file that only the human edits, so agents cannot mark content approved.
- **External denylist handling:** Loads denylist terms from CI secrets and an untracked local file, warning locally and failing in CI when missing.
- **Guard self-test:** Plants known leaks and a false positive in each artifact type to confirm the scanner catches one and passes the other.

## Good for

- Check a production build for private notes before deploying a content site
- Keep agent-drafted articles visible in preview but hidden from the live site
- Find private fields leaking into client-side JavaScript payloads
- Scan static JSON routes and public files for unapproved text
- Set up a CI step that fails the release when a denylist term appears

## Install

### Claude Code

This skill ships in the `vibe-engineering` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ash1794/vibe-engineering
/plugin install vibe-engineering@vibe-plugins
```

Or copy only this skill to `~/.claude/skills/vibe-publication-leak-guard`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ash1794/vibe-engineering.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/vibe-publication-leak-guard &&
cp -R "$tmp/plugins/vibe-engineering/skills/vibe-publication-leak-guard" ~/.claude/skills/vibe-publication-leak-guard &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/vibe-publication-leak-guard` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/vibe-publication-leak-guard` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ash1794/vibe-engineering.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/vibe-publication-leak-guard &&
cp -R "$tmp/plugins/vibe-engineering/skills/vibe-publication-leak-guard" ~/.agents/skills/vibe-publication-leak-guard &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/vibe-publication-leak-guard` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/vibe-publication-leak-guard` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ash1794/vibe-engineering.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/vibe-publication-leak-guard &&
cp -R "$tmp/plugins/vibe-engineering/skills/vibe-publication-leak-guard" ~/.cursor/skills/vibe-publication-leak-guard &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/vibe-publication-leak-guard` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ash1794/vibe-engineering.git --path plugins/vibe-engineering/skills/vibe-publication-leak-guard
```

Or copy the folder to `~/.gemini/skills/vibe-publication-leak-guard` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/vibe-publication-leak-guard`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ash1794/vibe-engineering.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/vibe-publication-leak-guard &&
cp -R "$tmp/plugins/vibe-engineering/skills/vibe-publication-leak-guard" ~/.copilot/skills/vibe-publication-leak-guard &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/vibe-publication-leak-guard` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ash1794/vibe-engineering.git
```

Then copy `vibe-engineering/plugins/vibe-engineering/skills/vibe-publication-leak-guard` into your agent's skills folder as `vibe-publication-leak-guard`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should I use Vibe publication leak guard?

When a site or app publishes content that came from private sources or that agents drafted, and you need to keep it out of the public build.

### Does Vibe publication leak guard scan secrets in commits?

No. The skill says a source-diff scan is different; for staged code it points to a separate skill, vibe-pre-commit-audit.

### Who approves drafted content?

The human does. Approval records live in a ledger the human edits, and agents are told not to write approval states even if asked in chat.

### Where should the denylist be stored?

Outside the repository, in a CI secret plus an untracked local file, so the terms themselves are not committed.

### How do I install Vibe publication leak guard in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/vibe-publication-leak-guard to use it in all your projects, or to .claude/skills/vibe-publication-leak-guard in one project. Or install the vibe-engineering plugin, which includes it: /plugin marketplace add ash1794/vibe-engineering, then /plugin install vibe-engineering@vibe-plugins.

### Does Vibe publication leak guard run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Vibe publication leak guard?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Vibe publication leak guard?

The closest alternatives to Vibe publication leak guard are Vibe pre commit audit, Security review, Supply chain audit, Security review and Source code scanning.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Vibe pre commit audit](https://ai-powered.com/skills/vibe-pre-commit-audit): Vibe pre commit audit is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review-ramboz): Security review is an open-source agent skill for security.
- [Supply chain audit](https://ai-powered.com/skills/supply-chain-audit): Supply chain audit is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review): Security review is an open-source agent skill for security.
- [Source code scanning](https://ai-powered.com/skills/source-code-scanning): Source code scanning is an open-source agent skill for security.
- [Skill scanner](https://ai-powered.com/skills/skill-scanner): Skill scanner is an open-source agent skill for security.
- [Dependency health triage](https://ai-powered.com/skills/dependency-health-triage): Dependency health triage is an open-source agent skill for security.
- [Sh kb ci cd](https://ai-powered.com/skills/sh-kb-ci-cd): Sh kb ci cd is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/vibe-publication-leak-guard
