/git-repo-prep:preparefrom git-repo-prep
Audits and prepares a codebase for public or open-source release through 9 interactive phases covering secrets, license, documentation, gitignore, hardening, and metadata. Use when releasing a private or internal repository publicly or open-sourcing a project. For a standalone read-only audit without the preparation workflow, use git-repo-prep:review.
Ships in git-repo-prep. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Announce: "I'm using git-repo-prep:prepare to walk through open-source preparation."
Create a TodoWrite checklist for all 9 phases:
Every phase follows this loop:
docs: add CONTRIBUTING.md)Detect the ecosystem and scan project structure.
Detect ecosystem by looking for:
Use the file-to-ecosystem mapping defined in the Ecosystem Detection section of git-repo-prep:review — the same indicators apply here.
Report what exists (present/missing):
Present findings to user before proceeding.
Two separate scans. Both matter for making a repo public.
.env files or config files containing real credentials.pem, .key files)author, pyproject.toml authors, Cargo.toml authors)DEFAULT_AUTHOR = "jsmith")git filter-repo or BFG Repo Cleaner for history rewriting if needed.env.exampleDo not add dotenv packages, validation, or startup checks unless the user asks.
Ask the user which license they want. Present common options:
Then:
LICENSE filepackage.json → "license": "MIT"pyproject.toml → license fieldCargo.toml → license fieldCheck for these sections (present or missing):
Don't write the full docs without asking. Propose the structure, ask user for approval, then help draft.
Propose including:
Propose a vulnerability reporting process. At minimum: an email or instructions for responsible disclosure.
If the project already uses AI tools or has complex setup, suggest a CLAUDE.md with build/test/lint commands and architectural notes. Ask first — don't create by default.
Check current .gitignore against ecosystem best practices:
| Ecosystem | Must ignore |
|---|---|
| Node.js | node_modules/, .env, dist/, coverage/ |
| Python | __pycache__/, *.pyc, .env, *.egg-info/, dist/, .venv/ |
| Rust | target/, .env |
| Go | vendor/ (if not vendoring), .env |
| General | .env, .env.*, *.log, .DS_Store, *.pem, *.key |
Always check:
.env and .env.* patterns excluded.idea/, .vscode/, .DS_Store, Thumbs.db)If sensitive files are already tracked:
git rm --cached"Ask the user what level of hardening they want before proposing anything. Options:
Ask which provider (GitHub Actions is most common). Propose a workflow that:
Suggest Dependabot (GitHub) or Renovate. Brief config.
Suggest only if project doesn't already have them. Keep it simple — lint + format.
Suggest only if tests already exist. Don't add test frameworks — that's beyond open-source prep scope.
Ecosystem-specific metadata that helps with discoverability and distribution:
| Ecosystem | Check for |
|---|---|
| Node.js | repository URL, engines field, files field (or .npmignore), keywords, description |
| Python | [project.urls], classifiers, requires-python, keywords, description |
| Rust | repository, keywords, categories, rust-version, description |
| Go | module path matches repo URL, godoc comment on package |
Flag anything missing. Propose additions. Don't prescribe values — ask the user for descriptions, keywords, etc.
Building trust with contributors by being upfront about the project's state.
These are optional. Ask before creating.
Invoke git-repo-prep:review as a final validation pass.
This catches anything missed during the prepare phases and gives the user a clean summary of the repo's openness state.
Use the Skill tool: skill: "git-repo-prep:review"
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/git-repo-prepRoutes between prepare (full lifecycle) and review (standalone audit) for open-source release workflows. Use when making a repo public, open-sourcing a project, auditing for secrets or missing documentation, preparing for public release, or reviewing a repo for openness./reviewAudits a codebase for openness across secrets, license, documentation, gitignore, CI/CD, and metadata, with severity-classified findings. Use when checking a repo for secrets, missing docs, or gaps before making it public — or at any point after preparation to validate state.Other plugins' skills for the same job
git-repo-prep@2389-research is listed by 2389-research/claude-plugins — review the source before installing
npx claudepluginhub 2389-research/claude-plugins --plugin git-repo-prep