Skip to main content
subagent CX Codex

repo-publication-auditor — Claude Code subagent for repo publication

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.

no license 53 installs updated 2026-11-17

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --agent security/repo-publication-auditor
Open on GitHub

What repo-publication-auditor 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.

What it helps with

  • 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 for the agent

  • 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

How to install repo-publication-auditor

1claude-code-templates

npx claude-code-templates@latest --agent security/repo-publication-auditor

2Manually: put the files in place

.claude/agents/repo-publication-auditor.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about repo-publication-auditor

How to install repo-publication-auditor in Claude Code?

Run npx claude-code-templates@latest --agent security/repo-publication-auditor or place .claude/agents/repo-publication-auditor.md in your project.

What does repo-publication-auditor do?

It audits git commit history, author emails, test fixtures with credential patterns, and configuration files before a repository becomes public.

How is repo-publication-auditor different from a vulnerability audit?

It focuses on what data leaves the repository upon publication rather than analyzing running code for security flaws.

Similar subagents

All subagents for Security →

From the same set745

The whole set →
hono This skill guides Hono API and app development, covering routes, middleware, validation, and typed RPC clients. Use it when building for runtimes such as Bun or Cloudflare Workers. CX Codex +1 54installs command-creator command-creator is a Claude Code skill that turns recurring workflows into slash commands, configuring arguments and storage scope and generating Markdown files. CX Codex +1 54installs plan-mode-game The plan-mode-game hook opens a browser game when Claude Code enters Plan Mode and tracks tool activity. It gives you something to do while a plan takes shape. 54installs szamlazz Issue, cancel, and download Hungarian invoices through the szamlazz.hu Agent API. It also looks up taxpayer details and keeps a reusable customer cache. CX Codex +1 54installs pytorch-lightning pytorch-lightning helps Claude Code structure PyTorch code into LightningModules and configure multi-GPU or TPU training. It removes boilerplate loops and organizes data pipelines. CX Codex +1 53installs naming-analyzer naming-analyzer reviews variable, function, class and file names for clarity, spots misleading labels and offers alternatives that follow language conventions. CX Codex +1 53installs kotlin-coroutines-expert kotlin-coroutines-expert is a Claude Code skill for writing asynchronous Kotlin with Coroutines and Flow, debugging cancellation, and testing suspend functions. CX Codex +1 53installs aeon Gives Claude a working map of the aeon Python library for classification, forecasting, clustering and anomaly detection on time series. CX Codex +1 52installs

Project sponsors

Companies that keep this analytics open