oss-prep
/oss-prep
Check a repository before it goes open source and fill in what is missing - license, README, SECURITY.md, CONTRIBUTING, issue and PR templates, package and Agent Skill metadata, CI and workflow safety, secrets and personal details in files and in the whole git history, and GitHub settings such as private vulnerability reporting and branch protection. Use it whenever someone is about to make a repository public, publish a first release, asks "is this ready to open source", "开源前检查", "准备开源", "还缺什么", or wants the open-source boilerplate done, even if they only name one item such as a license or a
- Author
- KyrieLii ↗
- Repository
- oss-prep ↗
- Licence
- MIT
- Last repository change
- 03.11.2026
Assessment and security
- Files in this package
- 15
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 03.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/scan.mjs
What it does and when to use it
Check a repository before it goes open source and fill in what is missing - license, README, SECURITY.md, CONTRIBUTING, issue and PR templates, package and Agent Skill metadata, CI and workflow safety, secrets and personal details in files and in the whole git history, and GitHub settings such as private vulnerability reporting and branch protection. Use it whenever someone is about to make a repository public, publish a first release, asks "is this ready to open source", "开源前检查", "准备开源", "还缺什么", or wants the open-source boilerplate done, even if they only name one item such as a license or a
Triggers from the description
Original author description
Check a repository before it goes open source and fill in what is missing - license, README, SECURITY.md, CONTRIBUTING, issue and PR templates, package and Agent Skill metadata, CI and workflow safety, secrets and personal details in files and in the whole git history, and GitHub settings such as private vulnerability reporting and branch protection. Use it whenever someone is about to make a repository public, publish a first release, asks "is this ready to open source", "开源前检查", "准备开源", "还缺什么", or wants the open-source boilerplate done, even if they only name one item such as a license or a
How it works
- 1. Scan
- 2. Read and judge
- 3. Report
- 4. Fill in what the user picked
SKILL.md preview
---
name: oss-prep
description: Check a repository before it goes open source and fill in what is missing - license, README, SECURITY.md, CONTRIBUTING, issue and PR templates, package and Agent Skill metadata, CI and workflow safety, secrets and personal details in files and in the whole git history, and GitHub settings such as private vulnerability reporting and branch protection. Use it whenever someone is about to make a repository public, publish a first release, asks "is this ready to open source", "开源前检查", "准备开源", "还缺什么", or wants the open-source boilerplate done, even if they only name one item such as a license or a security policy.
license: MIT
---
# Open-source prep
A pre-release pass for a repository that is about to become public. A script does the mechanical checks; you read the project, judge what the script cannot, report, and then fill in only what the user picks.
The order matters because one mistake cannot be undone: once a repository is public, everything in its history has been seen. Leaked credentials and personal data come first; boilerplate comes last.
## 1. Scan
Run the bundled scanner from the repository root (Node 20 or newer, no dependencies, read-only):
```bash
node <skill-dir>/scripts/scan.mjs <repo-dir>
```
It prints JSON: `summary` counts failing findings by level, and each finding has an `id`, a `level` (`block`, `warn`, `info`), a `status` (`pass`, `fail`, `skip`) and `evidence`. Add `--no-history` for a very large history only if the user agrees to skip that part, and say it was skipped. If `gitleaks` is installed, also run `gitleaks git <repo-dir> --redact --no-banner` and merge its findings; it knows many more token formats.
The scanner's secret rules are patterns, so expect false positives (test fixtures, documentation examples) and do not assume it caught everything. Look at every hit yourself before reporting it. A line can be marked intentional with an `oss-prep: allow` comment.
## 2. Read and judge
Read [references/checklist.md](references/checklist.md) for what each check means, how to tell a real problem from noise, and the checks only you can do. In short, beyond the script's findings:
- **What the history and files reveal.** Open each secret hit and each sensitive file in history (`git show <commit>:<path>`). Look for real names, emails, phone numbers, addresses, customer or financial data, internal hostnames, and screenshots with private data in docs or fixtures.
- **License consistency.** The LICENSE text, `package.json`, SKILL.md frontmatter, README and any per-file headers should agree. Note bundled third-party code, fonts or images and whether their licenses allow redistribution.
- **README for a stranger.** Someone arriving from a search should learn what it is, see it (a screenshot or demo link), install and run it, and find the license, without private context.
- **Things that only worked for the author.** Hard-coded local paths, `.env` values the project needs but does not document, scripts that assume the author's machine.
## 3. Report
Write the report in the user's language, in this shape:
```markdown
# Open-source readiness: <repo>
**Verdict:** <Ready / Ready after the blocking items / Not ready>, one sentence why.
## Blocking (fix before going public)
- ❌ <title>: <what was found, with file:line or commit> → <the fix>
## Should fix
- ⚠️ ...
## Nice to have
- 💡 ...
## Already in place
- ✅ <one line each, grouped>
## Needs you on GitHub
<settings the user changes themselves, with the exact gh command or settings path>
```
Put the most serious item first. Be specific: "`src/config.ts:12` has an OpenAI key, also in commit `a1b2c3d`" rather than "secrets found". Say what you did not check (no `gh`, history skipped, binary files).
Then ask which items to fill in. Offer the obvious set as the default ("all missing files"), and list each choice so the user can pick.
## 4. Fill in what the user picked
Use the templates in `assets/templates/` as a starting point and adapt them to this project; read [references/fixing.md](references/fixing.md) first. In short:
- **Write files, never publish.** Create or edit files in the working tree only. Do not commit, push, change repository visibility or settings, or create releases unless the user asks for that specific step.
- **Match the project.** Use its real commands, Node version, package manager, license and contact route; write in the README's language (both, if the README is bilingual). Leave out sections that do not apply rather than shipping placeholders.
- **Never choose a license for the user.** If there is none, explain the common choices in a sentence each (MIT, Apache-2.0, GPL-3.0, AGPL-3.0, dual licensing) and ask. Copy the official license text exactly; do not paraphrase or retype it from memory.
- **Secrets in history are not fixed by deleting the file.** The credential must be revoked and replaced first; that is the user's job in the provider's console. Rewriting history (`git filter-repo`) or publishing a fresh repository are their decision; explain both and do neither without a clear yes.
- **GitHub settings belong to the user.** Give the exact `gh` commands or settings paths from the reference; run them only if the user asks.
Finish by running the scanner again and showing which findings changed, plus what is still left for the user.
Files in this package (15)
- .gitignore 1 KB
- LICENSE 1 KB
- README.md 2 KB
- SKILL.md 5 KB
- assets/templates/CONTRIBUTING.md 1 KB
- assets/templates/PULL_REQUEST_TEMPLATE.md 1 KB
- assets/templates/SECURITY.md 1 KB
- assets/templates/ci.yml 1 KB
- assets/templates/dependabot.yml 1 KB
- assets/templates/ISSUE_TEMPLATE/bug_report.yml 1 KB
- assets/templates/ISSUE_TEMPLATE/config.yml 1 KB
- assets/templates/ISSUE_TEMPLATE/feature_request.yml 1 KB
- references/checklist.md 8 KB
- references/fixing.md 4 KB
- scripts/scan.mjs 25 KB
Versions
The database has no other skills named oss-prep.
Database snapshot: 13.11.2026 · package version 9c2fd2118526 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100oss-launch
Use when taking a repo open source, or hardening one that already is. Run /oss-launch and it scans the repo (stack, existing files, git remote, secrets), asks only what it cannot infer, then generates a tailored OSS file collection (README, LICENSE, CONTRIBUTING,… - 100oss-ready
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… - 100open-source-prep
Prepare a private codebase to be safely open-sourced: scan the working tree AND full git history for leaked secrets/PII, untrack sensitive files and fix .gitignore, choose and write a LICENSE, and generate the standard repo artifacts (README, CONTRIBUTING, CODE_OF_CONDUCT,… - 100open-source-ready
Gets a GitHub repository ready to make public, following its owner's conventions from their .github repo and other public repos - license and NOTICE, contributing and changelog, issue templates, Dependabot, a secret and history scan, README, tests and CI, a release - then stops… - 100open-source-ready
Check a repository is safe and ready to make public, then add what an open-source project needs - scan for leaked secrets, private data and internal references (including git history), and add README, LICENSE, CONTRIBUTING, CODE_OF_CONDUCT, SECURITY, issue and PR templates, CI… - 100gh-oss-release-prep
Systematic OSS release preparation checklist. Use when preparing a repository for open-source publishing, making a project public, or ensuring a repo meets OSS standards. Triggers: "prepare for OSS", "ready to publish", "make this public", "OSS checklist", "scan repo for…