一键导入
public-release
Comprehensive pre-release audit for making a GitHub repository public
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Comprehensive pre-release audit for making a GitHub repository public
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Query and modify databases (PostgreSQL, MySQL/MariaDB, SQLite). Use when the user asks to inspect, query, or write to a database, or when you need to understand a database schema.
Use when asked to find a project, work on a project, start a feature, fix a bug, or make changes to a repo.
Retrieve up-to-date documentation for libraries and frameworks via the Context7 API. Use when looking up docs for any library, finding code examples, verifying API usage, or getting current info that may have changed since training.
Deep codebase analysis with extended thinking — use for complex tasks that may lead to implementation
Update the changelog for a new release
Interact with local Chrome browser session (only on explicit user approval after being asked to inspect, debug, or interact with a page open in Chrome)
| name | public-release |
| description | Comprehensive pre-release audit for making a GitHub repository public |
| argument-hint | ["specific concerns"] |
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.
$ARGUMENTS
pwdgit branch --show-current 2>/dev/null || echo "not a git repo"git remote get-url origin 2>/dev/null || echo "no remote"git rev-list --count HEAD 2>/dev/null || echo "unknown" commitsls -la 2>/dev/null | head -30[[ -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")))You MUST follow ALL phases completely. This audit protects the developer's professional reputation and prevents security incidents. Do not rush.
Launch 10 Explore agents in parallel to gather comprehensive information:
Search EXHAUSTIVELY for:
API Keys & Tokens:
sk-, pk_, api_key, apikey, secret, token, password, credential, authAKIA, aws_access_key, aws_secret, AWS_ACCESS_KEY_IDAIza, service account JSON filesAccountKey=, connection stringssk_live_, pk_live_, rk_live_ghp_, gho_, ghu_, ghs_, ghr_xoxb-, xoxp-, xoxa-, xoxr-sk-, API key patternssk-ant-SK, AC prefixes with account SIDsSG.DD_API_KEYPrivate Keys & Certificates:
-----BEGIN patterns.pem, .key, .p12, .pfx filesid_rsa, id_ed25519, id_ecdsaConnection Strings:
mongodb://, postgres://, mysql://, redis://, amqp://Other Secrets:
eyJ patterns (especially in code, not legitimate auth flows).env files that shouldn't be committed.npmrc, .pypirc with auth tokensconfig.json, settings.json with credentialsSearch 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:
git log --format='%an <%ae>' for private email exposureCommit Messages:
Problematic History:
Search for Personal Identifiable Information:
Direct PII:
Indirect PII:
Data Files:
Evaluate code for professional standards:
Security Vulnerabilities:
Code Smells:
Debug Code Left In:
console.log, print(), fmt.Println debug statementsdebugger statementsUnprofessional Patterns:
localhost, 127.0.0.1, dev URLsany types everywhere (TypeScript)Architecture:
Check project documentation:
Required Files:
README.md - exists, professional, accurate, has badges/screenshots if appropriateLICENSE - CRITICAL: required for open source, correct license typeAGENTS.md - for AI coding assistantsCLAUDE.md - should be symlink to AGENTS.mdRecommended Files:
CONTRIBUTING.md - contribution guidelinesCODE_OF_CONDUCT.md - community standardsSECURITY.md - security policy and vulnerability reportingCHANGELOG.md - version historyDocumentation Quality:
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 configuredReview all config files:
Git Configuration:
.gitignore is comprehensive - check for missing:
.env* (except .env.example).idea/, .vscode/, *.swp).DS_Store, Thumbs.db)dist/, build/, node_modules/, __pycache__/).gitattributes for line endings, LFSEnvironment Files:
.env.example exists WITHOUT real values.env, .env.local, .env.production committedPackage Manager Configs:
package.json: Check author, repository, bugs, homepage fieldsregistry.npmjs.org is fine, npm.internal.company.com is not).npmrc, .yarnrc, .pnpmrc - no auth tokenspyproject.toml, setup.py - no internal referencesCargo.toml - no private registriesCI/CD Configs:
.github/workflows/*.yml - no hardcoded secrets (should use ${{ secrets.X }}).gitlab-ci.yml, .circleci/config.yml, etc.Docker & Containers:
Dockerfile - no secrets in ENV or COPYdocker-compose.yml - no real passwords (use env vars)Infrastructure as Code:
Check dependencies for security and legal issues:
Security Vulnerabilities: Run appropriate audit command:
npm audit or yarn audit or pnpm auditpip-audit or safety checkcargo auditgovulncheckbundle auditLicense Compatibility:
Dependency Concerns:
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, *.pyotarget/ (Rust/Java)vendor/ (Go, unless intentional)*.class, *.jar (Java)Temporary & Backup Files:
*.bak, *.backup, *.old*.tmp, *.temp*.log files*.orig (merge artifacts)Large Files:
find . -size +10M -type fCompiled/Binary Files:
.exe, .dll, .so, .dylibSearch for environment-specific or internal references:
Absolute Paths:
/Users/ (macOS home directories)/home/ (Linux home directories)C:\Users\ (Windows)Internal Infrastructure:
*.internal, *.local, *.corp)Internal Tools & Services:
Development Environment:
localhost in production configsCheck images, documents, and binary files:
Image Metadata (EXIF): If images exist, check for:
Use: exiftool -r -ext jpg -ext png -ext jpeg . if available
Document Metadata:
Screenshots:
Other Binary Files:
.sqlite, .db).zip, .tar.gz) - what's inside?Before public release, verify:
Tests Pass:
Build Works:
npm install && npm build (or equivalent) work?Setup Instructions:
After exploration, analyze findings by severity:
Output a detailed report with these EXACT sections:
Issues that absolutely MUST be fixed before making this repository public:
| Issue | Location | Risk Level | Immediate Action |
|---|---|---|---|
| ... | file:line or "git history" | Critical/High | ... |
| Secret Type | Location | In Git History? | Action Required |
|---|---|---|---|
| ... | ... | Yes/No | Rotate & remove |
| Vulnerability | Location | Severity | Fix |
|---|---|---|---|
| ... | file:line | Critical/High/Medium | ... |
| PII Type | Location | Action |
|---|---|---|
| ... | file:line | Remove/Anonymize |
| Package | Severity | CVE | Fix |
|---|---|---|---|
| ... | Critical/High/Medium/Low | ... | Upgrade to X.X.X |
| Package | License | Compatibility | Action |
|---|---|---|---|
| ... | ... | ✅/⚠️/❌ | ... |
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?]
| Category | Location | Issue | Suggestion |
|---|---|---|---|
| ... | file:line | ... | ... |
[What's done well - briefly]
| File/Pattern | Issue | Action |
|---|---|---|
| ... | ... | Add to .gitignore / Delete |
| File | Size | Action |
|---|---|---|
| ... | ... | Git LFS / Remove / Compress |
| File | Metadata Found | Action |
|---|---|---|
| ... | GPS coords, author info, etc. | Strip metadata |
| Type | Location | Reference | Action |
|---|---|---|---|
| Hardcoded path | file:line | /Users/edd/... | Remove |
| Internal URL | file:line | https://internal.company.com | Remove |
| ... | ... | ... | ... |
| 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 | - | ... |
| Pattern | Present | Should Add |
|---|---|---|
.env* | ✅/❌ | ... |
.DS_Store | ✅/❌ | ... |
node_modules/ | ✅/❌ | ... |
| IDE folders | ✅/❌ | ... |
| Build outputs | ✅/❌ | ... |
| Check | Status | Notes |
|---|---|---|
| Tests pass | ✅/❌/⚠️ | ... |
| Build succeeds | ✅/❌/⚠️ | ... |
| Dependencies install | ✅/❌/⚠️ | ... |
| README instructions work | ✅/❌/⚠️ | ... |
If secrets were found in git history:
# 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
# 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')
/generate-agents-md if AGENTS.md is missing/generate-readme if README needs improvement/public-release to verify all fixes