oss-ready
Skill0 starsChanged 22 days agoMITView on GitHub
Prepare a private or internal repository to be published as open source — scans code and full git history for secrets, internal hostnames, emails and company references; adds LICENSE, README, CONTRIBUTING, SECURITY and CODE_OF_CONDUCT; checks dependency licenses; and produces a go/no-go checklist. Use whenever someone says "open source this", "make this repo public", "publish to GitHub", "is this safe to share", "clean this up before release", or is about to flip a repo's visibility — even for a small personal project.
- Reads credentials
- Deletes or force-pushes
3 other projects use a version of this.
Adopted by
Most recently taken up by
- luongnv89/skillstheir own version, first seen Nov 6, 2026
- hongphuc5497/skillstheir own version, first seen Nov 1, 2026
- Montimage/skillstheir own version, first seen Feb 8, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- luongnv89/skills★ 149same name
- Montimage/skills★ 9same name
- hongphuc5497/skills★ 3same 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 repository7 other files it gives its agents.
- anti-slop-editorSkill
- codebase-viva-prepSkill
- incident-postmortemSkill
- md-to-docSkill
- pr-explainer-quizSkill
- stacked-pr-splitterSkill
- terraform-plan-reviewerSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Run the bundled scanner from the repo root:
- Distinctive: line 21
Read every finding yourself.
- Very specific: line 27
If the repo has very few commits, starting a fresh history (rm -rf .git && git init, one clean commit) is often simpler than filter-repo.
- Distinctive: line 37
Ask which license if not specified (suggest MIT for "just let people use it", Apache-2.0 if patents matter, GPL-3.0 if they want copyleft).
- Distinctive: line 46
Check for copyleft dependencies that conflict with the chosen license (e.g.
- Distinctive: line 58
Never change repo visibility yourself — that's the user's call after the blockers are clear.
“Common” is measured: kept by at least 6 in 10 of the 3 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
OSS-ready
Making a repo public is irreversible in practice: forks, caches and scrapers keep what you pushed. Secrets in old commits are the classic mistake — deleting a file doesn't remove it from history. This skill finds the problems first, fixes what it safely can, and lists what the human must decide.
Match the request
If the user only asks a question ("is this safe to publish?"), stay read-only: scan, report, and offer the fixes. Don't create .gitignore, .env.example, LICENSE or anything else until they say so. If they ask you to add files or fix things, do that and still run the scan, because they'll want to know about blockers before going public.
1. Scan (read-only)
Run the bundled scanner from the repo root:
bash <skill-dir>/scripts/scan.sh # working tree + full git history
bash <skill-dir>/scripts/scan.sh --org acme # also flag the internal org/company nameIt uses gitleaks or trufflehog if installed (much better), and falls back to a regex pass otherwise. It also lists internal-looking hostnames, private IPs, email addresses, and large binaries.
Read every finding yourself. Classify each as: real secret, internal reference (hostnames, ticket IDs, colleague names, customer names), or false positive.
2. Handle secrets correctly
For any real secret — even one that's "only in history":
- Tell the user to rotate/revoke it first. Rewriting history does not un-leak a key that's already been pushed anywhere.
- Then offer to purge it from history with
git filter-repo(preferred) or BFG — show the command, and only run after confirmation, on a fresh clone (git clone --mirror), since it rewrites every commit hash. Never suggestreflog expire/gc --prune=nowin the user's only copy without a backup. - If the repo has very few commits, starting a fresh history (
rm -rf .git && git init, one clean commit) is often simpler than filter-repo. Say so. - Anything already pushed to a remote may survive in forks, clones, CI caches and GitHub's own cache of old commits. Rotation is the real fix, and the history purge is just cleanup.
- Move config to environment variables and add a
.env.examplewith placeholder values.
2b. Ownership
Before suggesting a license holder, ask who owns the code. If the README, hostnames, package names or emails point to a company ("acme", an internal domain, a work email in the commits), the copyright probably belongs to the employer or client. Open-sourcing it may need their approval, and the LICENSE should name them. Raise this as a NEEDS DECISION item.
3. Add the community files
Files you write must be ready to publish: no leftover placeholders like <EMAIL>. If a value is missing, prefer a route that needs none (GitHub private vulnerability reporting) and name the gap in your reply. Never put the internal company/org name or internal hostnames in new files.
Ask which license if not specified (suggest MIT for "just let people use it", Apache-2.0 if patents matter, GPL-3.0 if they want copyleft). Create, if missing:
LICENSE(exact SPDX text, correct year + holder name)README.md— what it is, a 30-second quickstart, requirements, license badge. Rewrite internal jargon.CONTRIBUTING.md— how to set up and run this repo: read the code for the real entry point and every environment variable or config key it reads (e.g.os.environ["API_KEY"]), and list them by name with placeholder values. Then tests and PR expectationsSECURITY.md— how to report vulnerabilities privately (GitHub private vulnerability reporting or an email)CODE_OF_CONDUCT.md— Contributor Covenant, if they want one.gitignoreentries for env files, build output, editor folders
4. Dependency licenses
Check for copyleft dependencies that conflict with the chosen license (e.g. AGPL dependency in an MIT project). Use the ecosystem's tool if available (npx license-checker --summary, pip-licenses, go-licenses, cargo deny), otherwise read the manifest and flag unknowns.
5. Report
End with a checklist the user can act on:
BLOCKERS (must fix before going public)
[ ] AWS key in config/old.yaml (commit a1b2c3, 2024-03) — rotate, then purge history
NEEDS DECISION
[ ] 14 references to "acme-internal.net" in docs/ — replace or remove?
DONE
[x] Added MIT LICENSE, README, SECURITY.mdNever change repo visibility yourself — that's the user's call after the blockers are clear.
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.

