yeah so basically this checks if your project has the right structure or not. like if you forgot to add a README or LICENSE or whatever, it'll tell you.
- checks if you have basic files (README, LICENSE, etc)
- looks at your project type (node, go, rust, whatever)
- tells you what's missing
- can fix some stuff automatically if you want
- works on linux, mac, windows
curl -sSL https://raw.githubusercontent.com/m-mdy-m/psx/main/scripts/install.sh | bashgo to releases page and download the one for your OS
git clone https://github.com/m-mdy-m/psx
cd psx
make buildjust run it in your project folder:
psx checkit'll tell you what's wrong. if you want more info:
psx check --verbosefix stuff automatically:
psx fixor fix stuff one by one (asks you first):
psx fix --interactivecreate a psx.yml file in your project:
version: 1
rules:
general:
readme_required: error
license_required: warning
gitignore_required: warning
structure:
src_folder_required: warning
tests_folder_required: erroror just init with a template:
psx init --template node # for nodejs projects
psx init --template go # for go projects
# etccd my-node-app
psx check
# output:
# ✗ README_MISSING
# ✗ tests/ folder not found
# ⚠ No LICENSE filepsx fix
# creates README.md
# creates tests/ folder
# asks which license you wantbasic stuff:
- README.md exists?
- LICENSE file?
- .gitignore setup?
- source folder (src/ or whatever)?
- tests folder?
depending on project type:
- nodejs: package.json valid? dependencies ok?
- go: go.mod exists? properly formatted?
- rust: Cargo.toml good?
- python: requirements.txt or pyproject.toml?
optional stuff (warnings):
- docs/ folder
- CI/CD configs (.github/workflows)
- ADR documents
- pre-commit hooks
i kept forgetting to add READMEs and licenses to my projects lol. also wanted something simple that just works without tons of config.
sure, send PRs. check CONTRIBUTING.md if you care about that stuff.
MIT - do whatever you want
open an issue on github or email me: [email protected]