skills/precommit-fast/SKILL.md
Quick pre-commit checks — lint:fix -> test
npx skillsauth add sd0xdev/sd0x-dev-flow precommit-fastInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
/precommit)/verify)| Step | Goal | Safety | Skip if Missing | |------|------|--------|----------------| | lint-fix | Auto-fix code style issues | read-write | yes | | test-unit | Run fast test suite | read-only | yes |
Failure behavior: continue-all (run all steps, report all results)
Run quick pre-commit checks: lint:fix -> test (no build step)
Use Glob to check if .claude/scripts/precommit-runner.js exists in the project root.
node .claude/scripts/precommit-runner.js --mode fast --tail 60
package.json exists. If no package.json → skip, fall through to Step 2.Glob: ~/.claude/plugins/**/sd0x-dev-flow/scripts/precommit-runner.jsGlob: ${REPO_ROOT}/node_modules/sd0x-dev-flow/scripts/precommit-runner.js@scripts/precommit-runner.jsDetect the project ecosystem to run steps manually.
| Manifest | Ecosystem | Lint-fix | Test |
|----------|-----------|----------|------|
| package.json | Node.js | {pm} lint:fix | {pm} test:fast / test:unit / test |
| pyproject.toml | Python | ruff check --fix . | pytest tests/unit/ |
| Cargo.toml | Rust | cargo clippy --fix | cargo test |
| go.mod | Go | golangci-lint run --fix | go test ./... |
| build.gradle | Java | ./gradlew spotlessApply | ./gradlew test |
| pom.xml | Java (Maven) | mvn spotless:apply | mvn test |
| Gemfile | Ruby | bundle exec rubocop -a | bundle exec rspec |
After lint:fix completes, run git diff --name-only to capture auto-fixed files.
## Precommit (fast)
## Results
| Step | Status | Notes |
|------|--------|-------|
| lint:fix | ✅/❌/⏭️ | skipped if no script |
| test | ✅/❌/⏭️ | skipped if no script |
## Changed Files (after lint:fix)
- <files or "(none)">
## Overall: ✅ PASS / ❌ FAIL
## Checklist
- [ ] All available checks pass
- [ ] git status reviewed
documentation
Rewrite the previous reply in Traditional Chinese
development
Monitor GitHub Actions CI runs until completion. Use when: watching CI after push, checking build status, monitoring PR checks, waiting for CI completion, user says 'watch CI', 'check CI', 'CI status', 'monitor build', or /watch-ci. Not for: pushing code (use push-ci), creating PRs (use create-pr). Output: per-run verdict (pass/fail/timeout).
development
Verification loop — lint -> typecheck -> unit -> integration -> e2e
development
Research current code state then update corresponding docs, ensuring docs stay in sync with code.