# repo-publication-auditor

repo-publication-auditor is a Claude Code subagent that audits a repository for exposed secrets in git history before public release. Runs before open-sourcing an internal project or flipping a private repository to public.

- subagent · `type=agent` · Claude Code, Codex, Cursor · 53 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/agents/security/repo-publication-auditor.md
- Updated: 2026-11-17
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/repo-publication-auditor

## What it does

The agent inspects the full git history rather than the current working tree because deleted secrets remain accessible in clones. It detects credential shapes that trigger automated push protection, verifies author email addresses on every commit, and flags machine-specific paths or internal hostnames.

History analysis uncovers files committed before `.gitignore` covered them and tracks ignored directories. Vendor scanners forward detected keys within minutes, meaning invented strings in test fixtures trigger blocks just like real credentials do.

The checks use standard tools including `Read`, `Grep`, `Glob`, and `Bash` to scan commit logs and file contents.

## Requirements
- Works with: GitHub

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --agent security/repo-publication-auditor
```

2. **Manually: put the files in place**
- File: `.claude/agents/repo-publication-auditor.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/repo-publication-auditor.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/repo-publication-auditor.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/agents/security/repo-publication-auditor.md

## When to use it
- audit git history for hidden secrets and keys
- find work email addresses in commit authorship
- detect machine paths and internal hostnames
- verify README claims from a clean clone

## Example prompts
- Run repo-publication-auditor before making this repository public
- Check git history for leaked secrets and author emails
- Scan commit history for credentials and tokens before release

## Similar
- [infisical-secret-scanning](https://affpapa.org/en/nevibecode/skills/infisical-secret-scanning.md) — skill · 254 installs
- [security-auditor](https://affpapa.org/en/nevibecode/skills/security-auditor.md) — skill · 1100 installs
- [make-repo-contribution](https://affpapa.org/en/nevibecode/skills/make-repo-contribution.md) — skill · 11073 installs
- [secrets-in-git-history](https://affpapa.org/en/nevibecode/skills/secrets-in-git-history.md) — skill · 1900 installs
- [setup-auditor](https://affpapa.org/en/nevibecode/skills/setup-auditor.md) — skill · 471 installs
- [repo-init](https://affpapa.org/en/nevibecode/commands/repo-init.md) — command · ★ 763 repo stars

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 745 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
