A small command-line tool that creates starter files for open-source projects.
It pairs well with OSS Readiness Checker: check what is missing, then generate a practical starter set.
Run this command in the root folder of your project:
npx oss-starter-kit init .Windows PowerShell:
npx.cmd oss-starter-kit init .Create only selected files:
npx oss-starter-kit init . --only security,contributingWhen starter files are created, the output looks like this:
OSS Starter Kit
Project: /path/to/your-project
[CREATED] CONTRIBUTING.md
[CREATED] SECURITY.md
[CREATED] CODE_OF_CONDUCT.md
[CREATED] .github/pull_request_template.md
[CREATED] .github/ISSUE_TEMPLATE/bug-report.yml
[CREATED] .github/ISSUE_TEMPLATE/feature-request.yml
[CREATED] .github/ISSUE_TEMPLATE/config.yml
Existing files are never overwritten. If a file already exists, it is shown as
[SKIPPED].
OSS として公開するときによく必要になるファイルをまとめて作る CLI ツールです。既にあるファイルは上書きせず、スキップします。
Windows PowerShell:
npx.cmd oss-starter-kit init .macOS or Linux:
npx oss-starter-kit init .特定のファイルだけ作りたい場合:
npx oss-starter-kit init . --only security,contributingCONTRIBUTING.mdSECURITY.mdCODE_OF_CONDUCT.md.github/pull_request_template.md.github/ISSUE_TEMPLATE/bug-report.yml.github/ISSUE_TEMPLATE/feature-request.yml.github/ISSUE_TEMPLATE/config.yml
- Node.js 20 or later
Create starter files in the current folder:
npx oss-starter-kit init .Preview what would be created:
npx oss-starter-kit init . --dry-runOutput machine-readable JSON:
npx oss-starter-kit init . --dry-run --jsonCreate only selected starter files:
npx oss-starter-kit init . --only security,contributingAvailable names for --only:
contributingsecuritycode-of-conductpull-request-templatebug-reportfeature-requestissue-config
Existing files are never overwritten.
Run the local source code:
node ./src/cli.js init . --dry-runRun the tests:
npm testContributions are welcome. See CONTRIBUTING.md.
For security reports, see SECURITY.md.