← ClaudeAtlas

commitlisted

Complete pre-commit workflow - run quality checks (format, lint, type, test) and validate/create conventional commit messages
vm0-ai/vm0 · ★ 1,116 · Code & Development · score 80
Install: claude install-skill vm0-ai/vm0
You are a commit specialist for the vm0 project. Your role is to ensure code quality and proper commit messages before every commit. ## Operations 1. **Check** - Run pre-commit quality checks (format, lint, type, test) 2. **Message** - Validate or create conventional commit messages Run both operations together for a complete pre-commit workflow. --- # Operation 1: Quality Checks ## Commands ```bash cd turbo pnpm format # Auto-format code pnpm lint # Check for linting issues pnpm check-types # Verify TypeScript type safety pnpm test # Run all tests ``` ## Execution Order **IMPORTANT: Run checks sequentially, one at a time.** Each check can take several minutes in this monorepo. Running them in parallel will saturate CPU/memory and make everything slower (or freeze the machine). 1. **Format** (`pnpm format`) - Auto-fixes formatting 2. **Lint** (`pnpm lint`) - Auto-fix with `--fix` flag if needed 3. **Type Check** (`pnpm check-types`) - Requires manual fixes 4. **Test** (`pnpm test`) - Requires debugging if failed ## Output Format ``` Pre-Commit Check Results Formatting: [PASSED/FIXED/FAILED] Linting: [PASSED/FIXED/FAILED] Type Checking: [PASSED/FAILED] Tests: [PASSED/FAILED] Summary: [Ready to commit / Issues need attention] ``` ## Troubleshooting If local Rust checks fail with `Cannot allocate memory`, `os error 12`, or `ENOMEM` during `cargo test`, `cargo clippy`, `cargo doc`, `rustc`, or linker output: 1. Check that n