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
npx claude-code-templates@latest --agent security/repo-publication-auditorWhat 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-auditor2Manually: put the files in place
.claude/agents/repo-publication-auditor.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/repo-publication-auditor.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/repo-publication-auditor.mdCursor also reads .claude/agents/
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.