prepare
Skill2 starsChanged 48 days agoMITView on GitHub
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.
- Reads credentials
5 other projects use a version of this.
Adopted by
Most recently taken up by
- Mharbulous/probanda-devtheir own version, first seen Nov 8, 2026
- Aquilo-Solution-S/tesla-valvetheir own version, first seen Nov 1, 2026
- samueltuoyo15/Dokugentheir own version, first seen Oct 17, 2026
- mik2win/foureyestheir own version, first seen Oct 8, 2026
- iliasedelkin/jobissimotheir own version, first seen Oct 2, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- samueltuoyo15/Dokugen★ 345same name
- iliasedelkin/jobissimo★ 8same name
- mik2win/foureyes★ 2same name
- Aquilo-Solution-S/tesla-valve★ 1same name
- Mharbulous/probanda-dev★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- git-repo-prepSkill
- reviewSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 8 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Create a TodoWrite checklist for all 9 phases:
- Distinctive: line 26
Every phase follows this loop:
- Very specific: line 34
Commit with descriptive message (e.g., docs: add CONTRIBUTING.md)
- Distinctive: line 45
DO mention ecosystem-specific items: when a known stack is detected.
- Very specific: line 55
Use the file-to-ecosystem mapping defined in the Ecosystem Detection section of git-repo-prep:review — the same indicators apply here.
- Very specific: line 112
Create or update LICENSE file
- Distinctive: line 113
Update package metadata license field:
- Distinctive: line 117
Add license section to README (or update if present)
- Distinctive: line 126
Check for these sections (present or missing):
- Very specific: line 152
If the project already uses AI tools or has complex setup, suggest a CLAUDE.md with build/test/lint commands and architectural notes.
- Very specific: line 158
Check current .gitignore against ecosystem best practices:
- Distinctive: line 182
Ask the user what level of hardening they want: before proposing anything.
- Distinctive: line 190
Ask which provider (GitHub Actions is most common).
- Very specific: line 241
Use the Skill tool: skill: "git-repo-prep:review"
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Prepare for Open-Source Release
Announce: "I'm using git-repo-prep:prepare to walk through open-source preparation."
Setup
Create a TodoWrite checklist for all 9 phases:
- Discovery
- Secrets & Personal Info Audit
- License
- Documentation
- Gitignore Refinement
- Project Hardening
- Repository Metadata
- Backlog & Honesty
- Final Review
Phase Pattern
Every phase follows this loop:
- Mark this phase's task in_progress
- Scan/audit current state for this phase
- Present findings to user
- Propose specific changes
- AskUserQuestion — skip / approve / modify
- Implement approved changes
- Commit with descriptive message (e.g.,
docs: add CONTRIBUTING.md) - Mark phase task complete, move to next
Rules
- DO NOT prescribe choices — always ask via AskUserQuestion (license, CI provider, test framework, etc.)
- DO NOT drift into code quality review — stay focused on what matters for making the repo public. Ignore code style, error handling, architecture, performance.
- DO NOT over-engineer — don't add dotenv, validation, startup checks, or error handling beyond what the user asks for. The goal is open-source readiness, not refactoring.
- DO NOT dump everything at once — work one phase at a time, wait for user approval before moving on.
- DO treat personal info as a separate concern from secrets — emails, usernames, and real names in config or metadata are privacy issues even if they aren't credentials.
- DO check license consistency across LICENSE file, package metadata, and README.
- DO mention ecosystem-specific items when a known stack is detected.
Phase 1: Discovery
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):
- README
- LICENSE
- .gitignore
- CI/CD config (.github/workflows/, .gitlab-ci.yml, etc.)
- Tests directory
- CONTRIBUTING.md
- SECURITY.md
- CHANGELOG
Present findings to user before proceeding.
Phase 2: Secrets & Personal Info
Two separate scans. Both matter for making a repo public.
Secrets scan
- Hardcoded API keys, passwords, tokens, connection strings in source files
.envfiles or config files containing real credentials- AWS keys, GitHub tokens, database URLs with passwords, SMTP credentials
- Private keys (
.pem,.keyfiles)
Personal info scan
- Email addresses in package metadata (package.json
author, pyproject.tomlauthors, Cargo.tomlauthors) - Email addresses in source code comments or config
- Real names or usernames hardcoded in source (e.g.,
DEFAULT_AUTHOR = "jsmith") - Usernames in URLs or paths
If secrets or personal info found:
- Warn that git history also contains these values
- Recommend key rotation/revocation for any real credentials
- Suggest
git filter-repoor BFG Repo Cleaner for history rewriting if needed - Propose replacing secrets with environment variables and creating
.env.example - Propose replacing personal info with generic values or removing it
Do not add dotenv packages, validation, or startup checks unless the user asks.
Phase 3: License
Ask the user which license they want. Present common options:
- MIT — permissive, simple
- Apache-2.0 — permissive, patent grant
- GPL-3.0 — copyleft
- Other — ask user to specify
Then:
- Create or update
LICENSEfile - Update package metadata license field:
package.json→"license": "MIT"pyproject.toml→licensefieldCargo.toml→licensefield
- Add license section to README (or update if present)
- Check for mismatches — if LICENSE file says MIT but metadata says ISC, flag it
Phase 4: Documentation
README
Check for these sections (present or missing):
- What the project does and why
- Installation / getting started
- Usage with examples
- Configuration (if applicable)
- License section
- Limitations / known issues
Don't write the full docs without asking. Propose the structure, ask user for approval, then help draft.
CONTRIBUTING.md
Propose including:
- How to report bugs
- How to submit changes (PR workflow)
- Code style / conventions
- Testing expectations
- Any CLA or DCO requirements
SECURITY.md
Propose a vulnerability reporting process. At minimum: an email or instructions for responsible disclosure.
CLAUDE.md (optional)
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.
Phase 5: Gitignore Refinement
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:
.envand.env.*patterns excluded- Credentials directories excluded
- Build artifacts excluded
- IDE/OS files excluded (
.idea/,.vscode/,.DS_Store,Thumbs.db)
If sensitive files are already tracked:
- Flag them: "These files are tracked by git and need
git rm --cached" - Propose the commands, get approval before running
Phase 6: Project Hardening
Ask the user what level of hardening they want before proposing anything. Options:
- Minimal — just CI basics
- Standard — CI + dependency updates
- Full — CI + dependency updates + hooks + coverage
CI/CD
Ask which provider (GitHub Actions is most common). Propose a workflow that:
- Runs tests
- Runs linter (if project has one)
- Runs on push and PR
Dependency management
Suggest Dependabot (GitHub) or Renovate. Brief config.
Pre-commit hooks
Suggest only if project doesn't already have them. Keep it simple — lint + format.
Coverage enforcement
Suggest only if tests already exist. Don't add test frameworks — that's beyond open-source prep scope.
Phase 7: Repository Metadata
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.
Phase 8: Backlog & Honesty
Building trust with contributors by being upfront about the project's state.
- BACKLOG.md — Suggest creating one if the project has known gaps, unfinished features, or planned work. Ask user what to include.
- Limitations section in README — If not already present, suggest adding known limitations, unsupported use cases, or stability caveats.
These are optional. Ask before creating.
Phase 9: Final Review
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"
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

