ultrathink: Perform an exhaustive pre-release security and quality audit of this repository before making it public on GitHub. This is a critical review that protects the developer's reputation and prevents security incidents.
Additional Context
$ARGUMENTS
Project Context
- Current directory: !
pwd
- Git branch: !
git branch --show-current 2>/dev/null || echo "not a git repo"
- Git remote: !
git remote get-url origin 2>/dev/null || echo "no remote"
- Repository size: !
git rev-list --count HEAD 2>/dev/null || echo "unknown" commits
- Top-level files: !
ls -la 2>/dev/null | head -30
- Package manager: !
[[ -f package.json ]] && echo "npm/node" || ([[ -f Cargo.toml ]] && echo "cargo/rust" || ([[ -f go.mod ]] && echo "go" || ([[ -f pyproject.toml || -f requirements.txt ]] && echo "python" || echo "unknown")))
Instructions
You MUST follow ALL phases completely. This audit protects the developer's professional reputation and prevents security incidents. Do not rush.
Phase 1: Multi-Agent Deep Exploration
Launch 10 Explore agents in parallel to gather comprehensive information:
Agent 1: Security Scan - Secrets & Credentials
Search EXHAUSTIVELY for:
API Keys & Tokens:
- Generic patterns:
sk-, pk_, api_key, apikey, secret, token, password, credential, auth
- AWS:
AKIA, aws_access_key, aws_secret, AWS_ACCESS_KEY_ID
- GCP:
AIza, service account JSON files
- Azure:
AccountKey=, connection strings
- Stripe:
sk_live_, pk_live_, rk_live_
- GitHub:
ghp_, gho_, ghu_, ghs_, ghr_
- Slack:
xoxb-, xoxp-, xoxa-, xoxr-
- OpenAI:
sk-, API key patterns
- Anthropic:
sk-ant-
- Twilio:
SK, AC prefixes with account SIDs
- SendGrid:
SG.
- Mailchimp: API key patterns
- Datadog:
DD_API_KEY
Private Keys & Certificates:
- RSA/SSH/PGP:
-----BEGIN patterns
.pem, .key, .p12, .pfx files
- SSH keys:
id_rsa, id_ed25519, id_ecdsa
Connection Strings:
- Database:
mongodb://, postgres://, mysql://, redis://, amqp://
- With embedded credentials in URLs
Other Secrets:
- JWT tokens:
eyJ patterns (especially in code, not legitimate auth flows)
- OAuth client secrets
- Webhook URLs with embedded tokens
.env files that shouldn't be committed
.npmrc, .pypirc with auth tokens
config.json, settings.json with credentials
Agent 2: Git History Audit
Search the ENTIRE git history for:
Secrets in History:
git log -p -S "password" --all
git log -p -S "api_key" --all
git log -p -S "secret" --all
git log -p -S "token" --all
git log -p -S "AKIA" --all
git log -p -S "sk-" --all
Sensitive Files Ever Committed:
git log --all --full-history -- "*.env"
git log --all --full-history -- "*credentials*"
git log --all --full-history -- "*secret*"
git log --all --full-history -- "*.pem"
git log --all --full-history -- "*.key"
Large Files in History:
git rev-list --objects --all | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' | sort -k3 -n -r | head -20
Author Information:
- Check
git log --format='%an <%ae>' for private email exposure
- Look for commits with personal vs work email inconsistency
Commit Messages:
- Embarrassing or unprofessional messages
- Messages containing sensitive info (ticket numbers with internal URLs, etc.)
- Profanity or inappropriate content
Problematic History:
- Force-pushed commits that might have hidden issues
- Merge commits from private/internal branches
Agent 3: PII & Privacy Scan
Search for Personal Identifiable Information:
Direct PII:
- Email addresses (especially personal @gmail, @hotmail, etc.)
- Phone numbers (various formats)
- Physical addresses
- Social Security Numbers, National ID numbers
- Credit card numbers (even test ones that look real)
- Names in comments, test data, or fixtures
Indirect PII:
- IP addresses (especially internal/private ranges: 10.x, 192.168.x, 172.16-31.x)
- MAC addresses
- User IDs, account numbers
- Device identifiers
- GPS coordinates
Data Files:
- Database dumps or fixtures with real user data
- Log files with user information
- CSV/JSON exports with PII
- Test data that uses real information
- Screenshots containing user data
Agent 4: Code Quality & Senior-Level Review
Evaluate code for professional standards:
Security Vulnerabilities:
- XSS (Cross-Site Scripting)
- SQL Injection
- Command Injection
- Path Traversal
- SSRF (Server-Side Request Forgery)
- Insecure deserialization
- Hardcoded credentials (even "temporary" ones)
Code Smells:
- Error handling: Are errors swallowed silently?
- Obvious bugs or race conditions
- Dead code or commented-out code blocks
- Excessive complexity
- Copy-pasted code blocks
- Magic numbers without constants
Debug Code Left In:
console.log, print(), fmt.Println debug statements
debugger statements
- Commented-out debug code
- Test code in production files
Unprofessional Patterns:
- TODO/FIXME/HACK/XXX comments with sensitive info or complaints
- Hardcoded
localhost, 127.0.0.1, dev URLs
- Sleep/delay hacks
- Swallowed exceptions
any types everywhere (TypeScript)
Architecture:
- Is the code organization logical?
- Are there clear separation of concerns?
- Would a senior engineer be impressed or concerned?
Agent 5: Documentation Audit
Check project documentation:
Required Files:
README.md - exists, professional, accurate, has badges/screenshots if appropriate
LICENSE - CRITICAL: required for open source, correct license type
AGENTS.md - for AI coding assistants
CLAUDE.md - should be symlink to AGENTS.md
Recommended Files:
CONTRIBUTING.md - contribution guidelines
CODE_OF_CONDUCT.md - community standards
SECURITY.md - security policy and vulnerability reporting
CHANGELOG.md - version history
Documentation Quality:
- No internal URLs, company wikis, or private references
- No employee names or internal team references
- No outdated information that exposes old infrastructure
- Setup instructions actually work
- No placeholder text or TODOs
GitHub-Specific Files:
.github/ISSUE_TEMPLATE/ - appropriate for public use
.github/PULL_REQUEST_TEMPLATE.md - no internal references
.github/CODEOWNERS - no internal usernames/teams
.github/FUNDING.yml - if sponsorship desired
.github/dependabot.yml - security updates configured
Agent 6: Configuration & Build Files
Review all config files:
Git Configuration:
.gitignore is comprehensive - check for missing:
.env* (except .env.example)
- IDE folders (
.idea/, .vscode/, *.swp)
- OS files (
.DS_Store, Thumbs.db)
- Build outputs (
dist/, build/, node_modules/, __pycache__/)
- Coverage reports
- Log files
.gitattributes for line endings, LFS
Environment Files:
.env.example exists WITHOUT real values
- No
.env, .env.local, .env.production committed
- Environment variable names don't reveal internal systems
Package Manager Configs:
package.json: Check author, repository, bugs, homepage fields
- No private registry URLs (
registry.npmjs.org is fine, npm.internal.company.com is not)
.npmrc, .yarnrc, .pnpmrc - no auth tokens
pyproject.toml, setup.py - no internal references
Cargo.toml - no private registries
CI/CD Configs:
.github/workflows/*.yml - no hardcoded secrets (should use ${{ secrets.X }})
.gitlab-ci.yml, .circleci/config.yml, etc.
- No internal CI server references
- No hardcoded deployment targets
Docker & Containers:
Dockerfile - no secrets in ENV or COPY
docker-compose.yml - no real passwords (use env vars)
- No internal registry references
Infrastructure as Code:
- Terraform: No hardcoded credentials, no state files committed
- CloudFormation: No embedded secrets
- Kubernetes manifests: No secrets in plain text
Agent 7: Dependency & License Audit
Check dependencies for security and legal issues:
Security Vulnerabilities:
Run appropriate audit command:
- Node.js:
npm audit or yarn audit or pnpm audit
- Python:
pip-audit or safety check
- Rust:
cargo audit
- Go:
govulncheck
- Ruby:
bundle audit
License Compatibility:
- Check that all dependency licenses are compatible with your chosen LICENSE
- Watch for: GPL (viral), AGPL (very viral), SSPL, Commons Clause
- Ensure you can legally open-source with your dependency mix
- Check for "license unknown" dependencies
Dependency Concerns:
- Deprecated packages
- Unmaintained packages (no updates in 2+ years)
- Packages with known issues
- Internal/private packages that shouldn't be referenced
Agent 8: File Hygiene & Artifacts
Check for files that shouldn't be committed:
OS & Editor Artifacts:
.DS_Store (macOS)
Thumbs.db, desktop.ini (Windows)
*.swp, *.swo, *~ (Vim)
.idea/, *.iml (JetBrains)
.vscode/ (VS Code - unless intentionally shared)
*.sublime-* (Sublime Text)
Build Artifacts:
node_modules/
dist/, build/, out/
__pycache__/, *.pyc, *.pyo
target/ (Rust/Java)
vendor/ (Go, unless intentional)
*.class, *.jar (Java)
- Coverage reports with local paths
Temporary & Backup Files:
*.bak, *.backup, *.old
*.tmp, *.temp
*.log files
*.orig (merge artifacts)
Large Files:
- Files > 10MB that should be in Git LFS or excluded
- Accidentally committed datasets, databases, binaries
- Media files that should be hosted elsewhere
- Check:
find . -size +10M -type f
Compiled/Binary Files:
- Executable binaries
.exe, .dll, .so, .dylib
- Compiled assets that should be built, not committed
Agent 9: Hardcoded Paths & Internal References
Search for environment-specific or internal references:
Absolute Paths:
/Users/ (macOS home directories)
/home/ (Linux home directories)
C:\Users\ (Windows)
- Any path containing usernames
Internal Infrastructure:
- Internal hostnames (
*.internal, *.local, *.corp)
- Private IP ranges in configs
- Internal DNS names
- VPN endpoints
- Internal load balancer URLs
Internal Tools & Services:
- Slack webhook URLs
- Internal Jira/Linear/Asana URLs
- Company wiki/Confluence/Notion links
- Internal monitoring (Datadog, Grafana dashboards)
- Internal artifact repositories
Development Environment:
- Hardcoded
localhost in production configs
- Dev database URLs
- Staging environment references
- Internal API endpoints
Agent 10: Media Files & Metadata
Check images, documents, and binary files:
Image Metadata (EXIF):
If images exist, check for:
- GPS coordinates (location exposure)
- Camera/device information
- Timestamps
- Author information
- Software used
- Thumbnails with sensitive content
Use: exiftool -r -ext jpg -ext png -ext jpeg . if available
Document Metadata:
- PDF author, creator, timestamps
- Office documents (docx, xlsx) with author info
- Comments or tracked changes in documents
Screenshots:
- Browser tabs showing internal URLs
- Desktop showing file paths or usernames
- Notification contents
- Sensitive data visible
Other Binary Files:
- Database files (
.sqlite, .db)
- Compiled binaries
- Archives (
.zip, .tar.gz) - what's inside?
Phase 2: Test Verification
Before public release, verify:
Tests Pass:
- Run the test suite: Are there failures?
- Broken tests reflect poorly on professionalism
- Tests that require internal resources will fail for external users
Build Works:
- Does the project build from a clean clone?
- Are all build dependencies documented?
- Does
npm install && npm build (or equivalent) work?
Setup Instructions:
- Can someone follow the README and get running?
- Are there undocumented prerequisites?
Phase 3: Detailed Analysis
After exploration, analyze findings by severity:
- CRITICAL BLOCKERS - Secrets, security issues - MUST fix
- HIGH PRIORITY - PII, vulnerabilities, broken builds
- MEDIUM PRIORITY - Quality issues, missing docs, professional concerns
- LOW PRIORITY - Nice-to-haves, polish items
Phase 4: Generate Comprehensive Report
Output a detailed report with these EXACT sections:
🚨 CRITICAL BLOCKERS
Issues that absolutely MUST be fixed before making this repository public:
| Issue |
Location |
Risk Level |
Immediate Action |
| ... |
file:line or "git history" |
Critical/High |
... |
🔐 SECURITY FINDINGS
Secrets & Credentials Found
| Secret Type |
Location |
In Git History? |
Action Required |
| ... |
... |
Yes/No |
Rotate & remove |
Code Vulnerabilities
| Vulnerability |
Location |
Severity |
Fix |
| ... |
file:line |
Critical/High/Medium |
... |
Git History Concerns
- Secrets ever committed: [list]
- Problematic commits: [list with hashes]
- Author email exposure: [assessment]
👤 PII & PRIVACY
| PII Type |
Location |
Action |
| ... |
file:line |
Remove/Anonymize |
📦 DEPENDENCY AUDIT
Security Vulnerabilities
| Package |
Severity |
CVE |
Fix |
| ... |
Critical/High/Medium/Low |
... |
Upgrade to X.X.X |
License Concerns
| Package |
License |
Compatibility |
Action |
| ... |
... |
✅/⚠️/❌ |
... |
📊 CODE QUALITY
Senior-Level Assessment
Overall Grade: A/B/C/D/F
[Assessment: Does this code reflect senior-level work? Would you be proud to show this in an interview?]
Issues Found
| Category |
Location |
Issue |
Suggestion |
| ... |
file:line |
... |
... |
Positive Observations
[What's done well - briefly]
🗂️ FILE HYGIENE
Files to Remove/Gitignore
| File/Pattern |
Issue |
Action |
| ... |
... |
Add to .gitignore / Delete |
Large Files
| File |
Size |
Action |
| ... |
... |
Git LFS / Remove / Compress |
Metadata Issues
| File |
Metadata Found |
Action |
| ... |
GPS coords, author info, etc. |
Strip metadata |
🔗 INTERNAL REFERENCES
| Type |
Location |
Reference |
Action |
| Hardcoded path |
file:line |
/Users/edd/... |
Remove |
| Internal URL |
file:line |
https://internal.company.com |
Remove |
| ... |
... |
... |
... |
📝 DOCUMENTATION STATUS
| Document |
Status |
Quality |
Action Required |
| README.md |
✅/❌ |
Good/Needs Work |
... |
| LICENSE |
✅/❌ |
- |
... |
| AGENTS.md |
✅/❌ |
- |
Run /generate-agents-md |
| CLAUDE.md → AGENTS.md |
✅/❌ |
- |
Create symlink |
| CONTRIBUTING.md |
✅/❌/N/A |
- |
... |
| SECURITY.md |
✅/❌ |
- |
... |
| CHANGELOG.md |
✅/❌/N/A |
- |
... |
| CODE_OF_CONDUCT.md |
✅/❌/N/A |
- |
... |
.gitignore Completeness
| Pattern |
Present |
Should Add |
.env* |
✅/❌ |
... |
.DS_Store |
✅/❌ |
... |
node_modules/ |
✅/❌ |
... |
| IDE folders |
✅/❌ |
... |
| Build outputs |
✅/❌ |
... |
🧪 BUILD & TEST STATUS
| Check |
Status |
Notes |
| Tests pass |
✅/❌/⚠️ |
... |
| Build succeeds |
✅/❌/⚠️ |
... |
| Dependencies install |
✅/❌/⚠️ |
... |
| README instructions work |
✅/❌/⚠️ |
... |
🔧 RECOMMENDED ACTIONS
🔴 Must Do Before Public Release
- ...
- ...
🟡 Should Do (Professional Quality)
- ...
- ...
🟢 Nice to Have
- ...
- ...
📋 PRE-RELEASE CHECKLIST
Security
Privacy
Dependencies
Documentation
Code Quality
File Hygiene
Git History
References
⚠️ GIT HISTORY CLEANUP
If secrets were found in git history:
Option 1: BFG Repo-Cleaner (Recommended)
# Install BFG
brew install bfg
# Remove specific files from history
bfg --delete-files "*.env" --no-blob-protection
# Remove specific strings
bfg --replace-text passwords.txt --no-blob-protection
# Clean up
git reflog expire --expire=now --all && git gc --prune=now --aggressive
Option 2: git filter-repo
# Install
pip install git-filter-repo
# Remove file from history
git filter-repo --path .env --invert-paths
# Remove string pattern
git filter-repo --replace-text <(echo 'ACTUAL_SECRET==>REMOVED')
After Cleanup
- ROTATE ALL EXPOSED CREDENTIALS IMMEDIATELY
- Force push to remote (coordinate with team)
- All collaborators must re-clone (their copies have the secrets)
- GitHub caches: Contact GitHub support to clear cached views
Critical Rules
- DO NOT make any changes - this is audit only
- BE EXHAUSTIVE - missing a secret can cause real damage
- CHECK GIT HISTORY - current code isn't enough, secrets in history are just as dangerous
- BE SPECIFIC - include file:line for every finding
- PRIORITIZE BY RISK - critical blockers must be unmissable
- THINK REPUTATION - would this code impress a senior hiring manager?
- VERIFY CLAIMS - don't just check file existence, verify contents
After This Audit
- Fix all critical blockers - no exceptions
- Rotate any exposed credentials - even if "probably not used"
- Run
/generate-agents-md if AGENTS.md is missing
- Run
/generate-readme if README needs improvement
- Re-run
/public-release to verify all fixes
- Only then: Make repository public
1---2name: public-release3description: Comprehensive pre-release audit for making a GitHub repository public4---56ultrathink: Perform an exhaustive pre-release security and quality audit of this repository before making it public on GitHub. This is a critical review that protects the developer's reputation and prevents security incidents.78## Additional Context910$ARGUMENTS1112## Project Context1314- Current directory: !`pwd`15- Git branch: !`git branch --show-current 2>/dev/null || echo "not a git repo"`16- Git remote: !`git remote get-url origin 2>/dev/null || echo "no remote"`17- Repository size: !`git rev-list --count HEAD 2>/dev/null || echo "unknown"` commits18- Top-level files: !`ls -la 2>/dev/null | head -30`19- Package manager: !`[[ -f package.json ]] && echo "npm/node" || ([[ -f Cargo.toml ]] && echo "cargo/rust" || ([[ -f go.mod ]] && echo "go" || ([[ -f pyproject.toml || -f requirements.txt ]] && echo "python" || echo "unknown")))`2021## Instructions2223You MUST follow ALL phases completely. This audit protects the developer's professional reputation and prevents security incidents. Do not rush.2425***2627## Phase 1: Multi-Agent Deep Exploration2829Launch **10 Explore agents** in parallel to gather comprehensive information:3031***3233### Agent 1: Security Scan - Secrets & Credentials3435Search EXHAUSTIVELY for:3637**API Keys & Tokens:**38- Generic patterns: `sk-`, `pk_`, `api_key`, `apikey`, `secret`, `token`, `password`, `credential`, `auth`39- AWS: `AKIA`, `aws_access_key`, `aws_secret`, `AWS_ACCESS_KEY_ID`40- GCP: `AIza`, service account JSON files41- Azure: `AccountKey=`, connection strings42- Stripe: `sk_live_`, `pk_live_`, `rk_live_`43- GitHub: `ghp_`, `gho_`, `ghu_`, `ghs_`, `ghr_`44- Slack: `xoxb-`, `xoxp-`, `xoxa-`, `xoxr-`45- OpenAI: `sk-`, API key patterns46- Anthropic: `sk-ant-`47- Twilio: `SK`, `AC` prefixes with account SIDs48- SendGrid: `SG.`49- Mailchimp: API key patterns50- Datadog: `DD_API_KEY`5152**Private Keys & Certificates:**53- RSA/SSH/PGP: `-----BEGIN` patterns54- `.pem`, `.key`, `.p12`, `.pfx` files55- SSH keys: `id_rsa`, `id_ed25519`, `id_ecdsa`5657**Connection Strings:**58- Database: `mongodb://`, `postgres://`, `mysql://`, `redis://`, `amqp://`59- With embedded credentials in URLs6061**Other Secrets:**62- JWT tokens: `eyJ` patterns (especially in code, not legitimate auth flows)63- OAuth client secrets64- Webhook URLs with embedded tokens65- `.env` files that shouldn't be committed66- `.npmrc`, `.pypirc` with auth tokens67- `config.json`, `settings.json` with credentials6869***7071### Agent 2: Git History Audit7273Search the ENTIRE git history for:7475**Secrets in History:**76```bash77git log -p -S "password" --all78git log -p -S "api_key" --all79git log -p -S "secret" --all80git log -p -S "token" --all81git log -p -S "AKIA" --all82git log -p -S "sk-" --all83```8485**Sensitive Files Ever Committed:**86```bash87git log --all --full-history -- "*.env"88git log --all --full-history -- "*credentials*"89git log --all --full-history -- "*secret*"90git log --all --full-history -- "*.pem"91git log --all --full-history -- "*.key"92```9394**Large Files in History:**95```bash96git rev-list --objects --all | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' | sort -k3 -n -r | head -2097```9899**Author Information:**100- Check `git log --format='%an <%ae>'` for private email exposure101- Look for commits with personal vs work email inconsistency102103**Commit Messages:**104- Embarrassing or unprofessional messages105- Messages containing sensitive info (ticket numbers with internal URLs, etc.)106- Profanity or inappropriate content107108**Problematic History:**109- Force-pushed commits that might have hidden issues110- Merge commits from private/internal branches111112***113114### Agent 3: PII & Privacy Scan115116Search for Personal Identifiable Information:117118**Direct PII:**119- Email addresses (especially personal @gmail, @hotmail, etc.)120- Phone numbers (various formats)121- Physical addresses122- Social Security Numbers, National ID numbers123- Credit card numbers (even test ones that look real)124- Names in comments, test data, or fixtures125126**Indirect PII:**127- IP addresses (especially internal/private ranges: 10.x, 192.168.x, 172.16-31.x)128- MAC addresses129- User IDs, account numbers130- Device identifiers131- GPS coordinates132133**Data Files:**134- Database dumps or fixtures with real user data135- Log files with user information136- CSV/JSON exports with PII137- Test data that uses real information138- Screenshots containing user data139140***141142### Agent 4: Code Quality & Senior-Level Review143144Evaluate code for professional standards:145146**Security Vulnerabilities:**147- XSS (Cross-Site Scripting)148- SQL Injection149- Command Injection150- Path Traversal151- SSRF (Server-Side Request Forgery)152- Insecure deserialization153- Hardcoded credentials (even "temporary" ones)154155**Code Smells:**156- Error handling: Are errors swallowed silently?157- Obvious bugs or race conditions158- Dead code or commented-out code blocks159- Excessive complexity160- Copy-pasted code blocks161- Magic numbers without constants162163**Debug Code Left In:**164- `console.log`, `print()`, `fmt.Println` debug statements165- `debugger` statements166- Commented-out debug code167- Test code in production files168169**Unprofessional Patterns:**170- TODO/FIXME/HACK/XXX comments with sensitive info or complaints171- Hardcoded `localhost`, `127.0.0.1`, dev URLs172- Sleep/delay hacks173- Swallowed exceptions174- `any` types everywhere (TypeScript)175176**Architecture:**177- Is the code organization logical?178- Are there clear separation of concerns?179- Would a senior engineer be impressed or concerned?180181***182183### Agent 5: Documentation Audit184185Check project documentation:186187**Required Files:**188- `README.md` - exists, professional, accurate, has badges/screenshots if appropriate189- `LICENSE` - CRITICAL: required for open source, correct license type190- `AGENTS.md` - for AI coding assistants191- `CLAUDE.md` - should be symlink to AGENTS.md192193**Recommended Files:**194- `CONTRIBUTING.md` - contribution guidelines195- `CODE_OF_CONDUCT.md` - community standards196- `SECURITY.md` - security policy and vulnerability reporting197- `CHANGELOG.md` - version history198199**Documentation Quality:**200- No internal URLs, company wikis, or private references201- No employee names or internal team references202- No outdated information that exposes old infrastructure203- Setup instructions actually work204- No placeholder text or TODOs205206**GitHub-Specific Files:**207- `.github/ISSUE_TEMPLATE/` - appropriate for public use208- `.github/PULL_REQUEST_TEMPLATE.md` - no internal references209- `.github/CODEOWNERS` - no internal usernames/teams210- `.github/FUNDING.yml` - if sponsorship desired211- `.github/dependabot.yml` - security updates configured212213***214215### Agent 6: Configuration & Build Files216217Review all config files:218219**Git Configuration:**220- `.gitignore` is comprehensive - check for missing:221 - `.env*` (except `.env.example`)222 - IDE folders (`.idea/`, `.vscode/`, `*.swp`)223 - OS files (`.DS_Store`, `Thumbs.db`)224 - Build outputs (`dist/`, `build/`, `node_modules/`, `__pycache__/`)225 - Coverage reports226 - Log files227- `.gitattributes` for line endings, LFS228229**Environment Files:**230- `.env.example` exists WITHOUT real values231- No `.env`, `.env.local`, `.env.production` committed232- Environment variable names don't reveal internal systems233234**Package Manager Configs:**235- `package.json`: Check `author`, `repository`, `bugs`, `homepage` fields236- No private registry URLs (`registry.npmjs.org` is fine, `npm.internal.company.com` is not)237- `.npmrc`, `.yarnrc`, `.pnpmrc` - no auth tokens238- `pyproject.toml`, `setup.py` - no internal references239- `Cargo.toml` - no private registries240241**CI/CD Configs:**242- `.github/workflows/*.yml` - no hardcoded secrets (should use `${{ secrets.X }}`)243- `.gitlab-ci.yml`, `.circleci/config.yml`, etc.244- No internal CI server references245- No hardcoded deployment targets246247**Docker & Containers:**248- `Dockerfile` - no secrets in ENV or COPY249- `docker-compose.yml` - no real passwords (use env vars)250- No internal registry references251252**Infrastructure as Code:**253- Terraform: No hardcoded credentials, no state files committed254- CloudFormation: No embedded secrets255- Kubernetes manifests: No secrets in plain text256257***258259### Agent 7: Dependency & License Audit260261Check dependencies for security and legal issues:262263**Security Vulnerabilities:**264Run appropriate audit command:265- Node.js: `npm audit` or `yarn audit` or `pnpm audit`266- Python: `pip-audit` or `safety check`267- Rust: `cargo audit`268- Go: `govulncheck`269- Ruby: `bundle audit`270271**License Compatibility:**272- Check that all dependency licenses are compatible with your chosen LICENSE273- Watch for: GPL (viral), AGPL (very viral), SSPL, Commons Clause274- Ensure you can legally open-source with your dependency mix275- Check for "license unknown" dependencies276277**Dependency Concerns:**278- Deprecated packages279- Unmaintained packages (no updates in 2+ years)280- Packages with known issues281- Internal/private packages that shouldn't be referenced282283***284285### Agent 8: File Hygiene & Artifacts286287Check for files that shouldn't be committed:288289**OS & Editor Artifacts:**290- `.DS_Store` (macOS)291- `Thumbs.db`, `desktop.ini` (Windows)292- `*.swp`, `*.swo`, `*~` (Vim)293- `.idea/`, `*.iml` (JetBrains)294- `.vscode/` (VS Code - unless intentionally shared)295- `*.sublime-*` (Sublime Text)296297**Build Artifacts:**298- `node_modules/`299- `dist/`, `build/`, `out/`300- `__pycache__/`, `*.pyc`, `*.pyo`301- `target/` (Rust/Java)302- `vendor/` (Go, unless intentional)303- `*.class`, `*.jar` (Java)304- Coverage reports with local paths305306**Temporary & Backup Files:**307- `*.bak`, `*.backup`, `*.old`308- `*.tmp`, `*.temp`309- `*.log` files310- `*.orig` (merge artifacts)311312**Large Files:**313- Files > 10MB that should be in Git LFS or excluded314- Accidentally committed datasets, databases, binaries315- Media files that should be hosted elsewhere316- Check: `find . -size +10M -type f`317318**Compiled/Binary Files:**319- Executable binaries320- `.exe`, `.dll`, `.so`, `.dylib`321- Compiled assets that should be built, not committed322323***324325### Agent 9: Hardcoded Paths & Internal References326327Search for environment-specific or internal references:328329**Absolute Paths:**330- `/Users/` (macOS home directories)331- `/home/` (Linux home directories)332- `C:\Users\` (Windows)333- Any path containing usernames334335**Internal Infrastructure:**336- Internal hostnames (`*.internal`, `*.local`, `*.corp`)337- Private IP ranges in configs338- Internal DNS names339- VPN endpoints340- Internal load balancer URLs341342**Internal Tools & Services:**343- Slack webhook URLs344- Internal Jira/Linear/Asana URLs345- Company wiki/Confluence/Notion links346- Internal monitoring (Datadog, Grafana dashboards)347- Internal artifact repositories348349**Development Environment:**350- Hardcoded `localhost` in production configs351- Dev database URLs352- Staging environment references353- Internal API endpoints354355***356357### Agent 10: Media Files & Metadata358359Check images, documents, and binary files:360361**Image Metadata (EXIF):**362If images exist, check for:363- GPS coordinates (location exposure)364- Camera/device information365- Timestamps366- Author information367- Software used368- Thumbnails with sensitive content369370Use: `exiftool -r -ext jpg -ext png -ext jpeg .` if available371372**Document Metadata:**373- PDF author, creator, timestamps374- Office documents (docx, xlsx) with author info375- Comments or tracked changes in documents376377**Screenshots:**378- Browser tabs showing internal URLs379- Desktop showing file paths or usernames380- Notification contents381- Sensitive data visible382383**Other Binary Files:**384- Database files (`.sqlite`, `.db`)385- Compiled binaries386- Archives (`.zip`, `.tar.gz`) - what's inside?387388***389390## Phase 2: Test Verification391392Before public release, verify:393394**Tests Pass:**395- Run the test suite: Are there failures?396- Broken tests reflect poorly on professionalism397- Tests that require internal resources will fail for external users398399**Build Works:**400- Does the project build from a clean clone?401- Are all build dependencies documented?402- Does `npm install && npm build` (or equivalent) work?403404**Setup Instructions:**405- Can someone follow the README and get running?406- Are there undocumented prerequisites?407408***409410## Phase 3: Detailed Analysis411412After exploration, analyze findings by severity:4134141. **CRITICAL BLOCKERS** - Secrets, security issues - MUST fix4152. **HIGH PRIORITY** - PII, vulnerabilities, broken builds4163. **MEDIUM PRIORITY** - Quality issues, missing docs, professional concerns4174. **LOW PRIORITY** - Nice-to-haves, polish items418419***420421## Phase 4: Generate Comprehensive Report422423Output a detailed report with these EXACT sections:424425***426427## 🚨 CRITICAL BLOCKERS428429Issues that absolutely MUST be fixed before making this repository public:430431| Issue | Location | Risk Level | Immediate Action |432|-------|----------|------------|------------------|433| ... | file:line or "git history" | Critical/High | ... |434435***436437## 🔐 SECURITY FINDINGS438439### Secrets & Credentials Found440| Secret Type | Location | In Git History? | Action Required |441|-------------|----------|-----------------|-----------------|442| ... | ... | Yes/No | Rotate & remove |443444### Code Vulnerabilities445| Vulnerability | Location | Severity | Fix |446|--------------|----------|----------|-----|447| ... | file:line | Critical/High/Medium | ... |448449### Git History Concerns450- Secrets ever committed: [list]451- Problematic commits: [list with hashes]452- Author email exposure: [assessment]453454***455456## 👤 PII & PRIVACY457458| PII Type | Location | Action |459|----------|----------|--------|460| ... | file:line | Remove/Anonymize |461462***463464## 📦 DEPENDENCY AUDIT465466### Security Vulnerabilities467| Package | Severity | CVE | Fix |468|---------|----------|-----|-----|469| ... | Critical/High/Medium/Low | ... | Upgrade to X.X.X |470471### License Concerns472| Package | License | Compatibility | Action |473|---------|---------|---------------|--------|474| ... | ... | ✅/⚠️/❌ | ... |475476***477478## 📊 CODE QUALITY479480### Senior-Level Assessment481**Overall Grade: A/B/C/D/F**482483[Assessment: Does this code reflect senior-level work? Would you be proud to show this in an interview?]484485### Issues Found486| Category | Location | Issue | Suggestion |487|----------|----------|-------|------------|488| ... | file:line | ... | ... |489490### Positive Observations491[What's done well - briefly]492493***494495## 🗂️ FILE HYGIENE496497### Files to Remove/Gitignore498| File/Pattern | Issue | Action |499|--------------|-------|--------|500| ... | ... | Add to .gitignore / Delete |501502### Large Files503| File | Size | Action |504|------|------|--------|505| ... | ... | Git LFS / Remove / Compress |506507### Metadata Issues508| File | Metadata Found | Action |509|------|---------------|--------|510| ... | GPS coords, author info, etc. | Strip metadata |511512***513514## 🔗 INTERNAL REFERENCES515516| Type | Location | Reference | Action |517|------|----------|-----------|--------|518| Hardcoded path | file:line | `/Users/edd/...` | Remove |519| Internal URL | file:line | `https://internal.company.com` | Remove |520| ... | ... | ... | ... |521522***523524## 📝 DOCUMENTATION STATUS525526| Document | Status | Quality | Action Required |527|----------|--------|---------|-----------------|528| README.md | ✅/❌ | Good/Needs Work | ... |529| LICENSE | ✅/❌ | - | ... |530| AGENTS.md | ✅/❌ | - | Run /generate-agents-md |531| CLAUDE.md → AGENTS.md | ✅/❌ | - | Create symlink |532| CONTRIBUTING.md | ✅/❌/N/A | - | ... |533| SECURITY.md | ✅/❌ | - | ... |534| CHANGELOG.md | ✅/❌/N/A | - | ... |535| CODE_OF_CONDUCT.md | ✅/❌/N/A | - | ... |536537### .gitignore Completeness538| Pattern | Present | Should Add |539|---------|---------|------------|540| `.env*` | ✅/❌ | ... |541| `.DS_Store` | ✅/❌ | ... |542| `node_modules/` | ✅/❌ | ... |543| IDE folders | ✅/❌ | ... |544| Build outputs | ✅/❌ | ... |545546***547548## 🧪 BUILD & TEST STATUS549550| Check | Status | Notes |551|-------|--------|-------|552| Tests pass | ✅/❌/⚠️ | ... |553| Build succeeds | ✅/❌/⚠️ | ... |554| Dependencies install | ✅/❌/⚠️ | ... |555| README instructions work | ✅/❌/⚠️ | ... |556557***558559## 🔧 RECOMMENDED ACTIONS560561### 🔴 Must Do Before Public Release5621. ...5632. ...564565### 🟡 Should Do (Professional Quality)5661. ...5672. ...568569### 🟢 Nice to Have5701. ...5712. ...572573***574575## 📋 PRE-RELEASE CHECKLIST576577### Security578- [ ] All secrets removed from current code579- [ ] Git history cleaned if secrets were ever committed580- [ ] All exposed credentials rotated581- [ ] No API keys, tokens, or passwords in code582- [ ] No private keys or certificates committed583584### Privacy585- [ ] PII removed or anonymized586- [ ] No personal email addresses in code587- [ ] Test data doesn't contain real user info588- [ ] Image metadata stripped (EXIF)589590### Dependencies591- [ ] No critical security vulnerabilities592- [ ] All licenses compatible with project license593- [ ] No private/internal package references594595### Documentation596- [ ] LICENSE file present and correct597- [ ] README.md professional and complete598- [ ] AGENTS.md created599- [ ] CLAUDE.md symlinked to AGENTS.md600- [ ] Setup instructions verified working601602### Code Quality603- [ ] No debug code (console.log, etc.)604- [ ] No TODO/FIXME with sensitive info605- [ ] No hardcoded localhost/dev URLs606- [ ] Code reflects senior-level quality607- [ ] Tests pass608609### File Hygiene610- [ ] .gitignore is comprehensive611- [ ] No .env files committed (only .env.example)612- [ ] No OS artifacts (.DS_Store, Thumbs.db)613- [ ] No IDE folders with personal settings614- [ ] No large files that should be in LFS615- [ ] No build artifacts committed616617### Git History618- [ ] No secrets in commit history619- [ ] No embarrassing commit messages620- [ ] Author emails are appropriate for public621- [ ] No internal branch references622623### References624- [ ] No hardcoded absolute paths625- [ ] No internal URLs or hostnames626- [ ] No company-specific references627- [ ] Package metadata is public-appropriate628629***630631## ⚠️ GIT HISTORY CLEANUP632633If secrets were found in git history:634635### Option 1: BFG Repo-Cleaner (Recommended)636```bash637# Install BFG638brew install bfg639640# Remove specific files from history641bfg --delete-files "*.env" --no-blob-protection642643# Remove specific strings644bfg --replace-text passwords.txt --no-blob-protection645646# Clean up647git reflog expire --expire=now --all && git gc --prune=now --aggressive648```649650### Option 2: git filter-repo651```bash652# Install653pip install git-filter-repo654655# Remove file from history656git filter-repo --path .env --invert-paths657658# Remove string pattern659git filter-repo --replace-text <(echo 'ACTUAL_SECRET==>REMOVED')660```661662### After Cleanup6631. **ROTATE ALL EXPOSED CREDENTIALS IMMEDIATELY**6642. Force push to remote (coordinate with team)6653. All collaborators must re-clone (their copies have the secrets)6664. GitHub caches: Contact GitHub support to clear cached views667668***669670## Critical Rules671672- **DO NOT make any changes** - this is audit only673- **BE EXHAUSTIVE** - missing a secret can cause real damage674- **CHECK GIT HISTORY** - current code isn't enough, secrets in history are just as dangerous675- **BE SPECIFIC** - include file:line for every finding676- **PRIORITIZE BY RISK** - critical blockers must be unmissable677- **THINK REPUTATION** - would this code impress a senior hiring manager?678- **VERIFY CLAIMS** - don't just check file existence, verify contents679680***681682## After This Audit6836841. **Fix all critical blockers** - no exceptions6852. **Rotate any exposed credentials** - even if "probably not used"6863. Run `/generate-agents-md` if AGENTS.md is missing6874. Run `/generate-readme` if README needs improvement6885. **Re-run `/public-release`** to verify all fixes6896. Only then: Make repository public